@font-face {
  font-family: "Runrun Display";
  src:
    url("assets/fonts/runrun-display-v01.woff?v=3") format("woff"),
    url("assets/fonts/runrun-display-v01.ttf?v=3") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #211b1a;
  --paper: #f2e9da;
  --accent: #d9c8b4;
  --highlight: #b93436;
  --muted: #746964;
  --line: rgba(33, 27, 26, 0.18);
  --runrun-red: #b93436;
  --runrun-cream: #f2e9da;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-space {
  display: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  color: var(--ink);
  transition: color 220ms ease, opacity 220ms ease;
}

.site-header .brand {
  transition: opacity 240ms ease, transform 240ms ease;
}

.site-header.is-over-landing .brand {
  opacity: 0;
  transform: translateY(-0.75rem);
  pointer-events: none;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: clamp(6.5rem, 9vw, 8.5rem);
}

.brand--runrun {
  width: clamp(4rem, 5vw, 4.8rem);
  height: clamp(4rem, 5vw, 4.8rem);
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.runrun-brand-lockup {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.runrun-brand-lockup img {
  display: block;
  width: 150%;
  max-width: none;
  height: auto;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  filter: blur(0);
  transition:
    clip-path 520ms cubic-bezier(0.65, 0, 0.35, 1),
    filter 420ms ease,
    opacity 260ms ease;
  will-change: clip-path, filter, opacity;
}

.brand-logo--light {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

.site-header.is-on-dark {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 72%, rgba(33, 27, 26, 0) 100%);
  color: var(--paper);
}

.site-header.is-on-dark .brand-logo--dark {
  opacity: 0;
  clip-path: polygon(0 7%, 0 7%, 0 93%, 0 93%);
  filter: blur(2.5px);
}

.site-header.is-on-dark .brand-logo--light {
  opacity: 1;
  clip-path: polygon(0 0, 100% 5%, 100% 94%, 0 100%);
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo {
    transition: opacity 120ms linear;
  }
}

/* Ajustes finales de legibilidad y flujo */
@media (min-width: 781px) {
  .diagnostic {
    height: auto;
    min-height: 64rem;
  }

  .diagnostic-stage {
    position: relative;
    min-height: 64rem;
    height: auto;
    grid-template-rows: minmax(12rem, auto) minmax(34rem, auto) auto;
    overflow: visible;
  }

  .diagnostic-message[data-phase="actuar"] h2 {
    max-width: none;
    font-size: clamp(2.35rem, 4vw, 4.8rem);
    white-space: nowrap;
  }

  .flow-card {
    min-height: 34rem;
  }
}

@media (max-width: 0px) {
  html {
    scroll-snap-type: none;
  }

  .landing,
  .story,
  .authority,
  .diagnostic,
  .case-study,
  .contact {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .story {
    height: auto;
  }

  .story-snap-points,
  .story-progress,
  .scroll-hint {
    display: none;
  }

  .story-stage {
    position: relative;
    top: auto;
    display: grid;
    height: auto;
  }

  .story-step,
  .story-step.is-active,
  .story-step.is-preview {
    position: relative;
    inset: auto;
    min-height: 72svh;
    padding: 7rem var(--pad) 5rem;
    opacity: 1;
    filter: none;
    transform: none;
    pointer-events: auto;
  }

  .story-step p br {
    display: none;
  }

  .story-step p,
  .story-step--long p,
  .story-step--closing p {
    width: min(100%, 20.5rem);
    max-width: 20.5rem;
    margin-inline: auto;
    font-size: clamp(1.85rem, 8vw, 2.65rem);
    line-height: 1.04;
    text-wrap: balance;
  }

  .story-step::before {
    position: static;
    width: min(100%, 20.5rem);
    margin: 0 auto 1.35rem;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
  }

  .story-step--closing {
    align-content: center;
    padding-top: 6rem;
  }

  .story-step--closing p {
    font-size: clamp(1.65rem, 7.2vw, 2.25rem);
  }

  .story-cta {
    width: min(100%, 19rem);
    max-width: none;
    margin: 1.8rem auto 0;
  }

  .diagnostic {
    height: auto;
    min-height: 0;
  }

  .diagnostic-snap-points,
  .diagnostic-index,
  .flow-tabs,
  .flow-line,
  .flow-arrow,
  .flow-finish {
    display: none;
  }

  .diagnostic-stage {
    position: relative;
    top: auto;
    display: block;
    height: auto;
    padding: 5.5rem var(--pad) 4.5rem;
    overflow: visible;
  }

  .diagnostic-heading {
    display: block;
    margin-bottom: 2.25rem;
  }

  .diagnostic-messages {
    display: block;
  }

  .diagnostic-message {
    display: none;
  }

  .diagnostic-message[data-phase="entender"] {
    display: block;
    opacity: 1;
    filter: none;
    transform: none;
    pointer-events: auto;
  }

  .diagnostic-flow,
  .diagnostic[data-phase="detectar"] .diagnostic-flow,
  .diagnostic[data-phase="actuar"] .diagnostic-flow {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    height: auto;
    overflow: visible;
  }

  .flow-card,
  .flow-card.is-active,
  .flow-card.is-past,
  .flow-card.is-future,
  .diagnostic[data-phase="actuar"] .flow-card[data-flow-step],
  .diagnostic[data-phase="detectar"] .flow-card[data-flow-step] {
    position: relative;
    inset: auto;
    z-index: 1;
    display: flex;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 1.35rem;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .flow-card.is-active {
    box-shadow: 0.35rem 0.45rem 0 var(--highlight);
  }

  .flow-card-body {
    margin-top: 0.9rem;
  }

  .flow-points .flow-conclusion {
    margin-top: 1.1rem;
    padding-top: 1rem;
  }

  .diagnostic-bridge {
    margin-top: 2.75rem;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid currentColor;
  padding: 0.35rem 0;
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.landing {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(5.5rem, 9vh, 8rem) var(--pad) clamp(5rem, 8vh, 7rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(185, 52, 54, 0.11), transparent 24rem),
    var(--paper);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.landing-inner {
  display: flex;
  width: min(100%, 74rem);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-logo {
  display: flex;
  width: clamp(27rem, 48vw, 43rem);
  flex-direction: column;
  align-items: center;
  margin: 0 0 clamp(1.25rem, 2.4vh, 1.9rem);
}

.landing-logo-word {
  display: block;
  width: 100%;
  height: auto;
}

.landing-logo-descriptor {
  margin-top: -0.25rem;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.62rem, 0.8vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.landing h1 {
  max-width: 72rem;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.3rem, 4.05vw, 4.45rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.landing h1 span {
  display: block;
}

.landing h1 span + span {
  margin-top: 0.18em;
}

.landing p {
  max-width: 55rem;
  margin: clamp(1.45rem, 3vh, 2.1rem) auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  text-wrap: balance;
}

.landing-scroll {
  position: absolute;
  right: var(--pad);
  bottom: 1.7rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font: 500 0.68rem "DM Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-scroll span:last-child {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.story {
  position: relative;
  height: 500vh;
  background:
    radial-gradient(circle at 78% 18%, rgba(185, 52, 54, 0.12), transparent 26rem),
    var(--paper);
}

.story-snap-points {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(5, 100vh);
  pointer-events: none;
}

.story-snap-points span {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.story-step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem var(--pad) 4rem;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(4rem) scale(0.985);
  transition: opacity 220ms linear, filter 220ms linear, transform 220ms linear;
  will-change: opacity, transform, filter;
  pointer-events: none;
}

.story-step.is-preview {
  pointer-events: none;
}

.story-step.is-active {
  pointer-events: auto;
}

.story-step::before {
  position: absolute;
  top: calc(50% - clamp(9.5rem, 14vw, 13rem));
  left: 50%;
  content: attr(data-kicker);
  font-family: "DM Mono", monospace;
  font-size: clamp(1.05rem, 1.32vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f625a;
  transform: translateX(-50%);
  white-space: nowrap;
}

.story-step:not([data-kicker])::before {
  display: none;
}

.story-step p {
  position: relative;
  z-index: 1;
  width: min(100%, 76rem);
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.45rem, 5.45vw, 5.55rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-align: center;
}

.mobile-copy {
  display: none;
}

.highlight {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
}

.highlight::after {
  position: absolute;
  z-index: -1;
  right: -0.11em;
  bottom: -0.045em;
  left: -0.12em;
  height: 0.39em;
  background:
    repeating-linear-gradient(
      2deg,
      rgba(23, 27, 23, 0.04) 0,
      rgba(23, 27, 23, 0.04) 1px,
      transparent 2px,
      transparent 5px
    ),
    linear-gradient(
      96deg,
      rgba(185, 52, 54, 0.24) 0%,
      rgba(185, 52, 54, 0.48) 16%,
      rgba(185, 52, 54, 0.36) 42%,
      rgba(185, 52, 54, 0.54) 67%,
      rgba(185, 52, 54, 0.22) 100%
    );
  background-blend-mode: multiply;
  clip-path: polygon(
    0 55%, 2% 32%, 5% 20%, 10% 25%, 17% 14%, 27% 23%, 38% 17%,
    49% 26%, 58% 15%, 70% 22%, 82% 13%, 93% 24%, 100% 18%,
    99% 38%, 100% 61%, 98% 78%, 94% 69%, 91% 69%, 81% 81%,
    70% 72%, 59% 84%, 48% 74%, 36% 82%, 25% 71%, 14% 80%,
    6% 72%, 2% 68%
  );
  content: "";
  opacity: 0.92;
  filter: saturate(0.92) contrast(1.06);
  transform: rotate(-1.7deg) skewX(-5deg) scaleX(var(--highlight-reveal, 0));
  transform-origin: left center;
  transition: transform 620ms cubic-bezier(0.16, 0.78, 0.22, 1);
}

.highlight:nth-of-type(even)::after {
  background:
    repeating-linear-gradient(
      -2deg,
      rgba(23, 27, 23, 0.035) 0,
      rgba(23, 27, 23, 0.035) 1px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(
      88deg,
      rgba(185, 52, 54, 0.32),
      rgba(185, 52, 54, 0.52) 34%,
      rgba(185, 52, 54, 0.27) 59%,
      rgba(185, 52, 54, 0.45)
    );
  clip-path: polygon(
    0 48%, 2% 27%, 8% 28%, 19% 15%, 31% 24%, 43% 12%, 55% 23%,
    68% 16%, 79% 27%, 91% 17%, 100% 29%, 98% 73%, 88% 82%,
    76% 70%, 64% 79%, 51% 69%, 39% 83%, 27% 72%, 13% 80%,
    5% 69%, 1% 62%
  );
  transform: rotate(0.9deg) skewX(3deg) scaleX(var(--highlight-reveal, 0));
}

.story-step--long p {
  font-size: clamp(2.3rem, 4.85vw, 5rem);
  line-height: 1;
}

.story-step--revenue p {
  font-size: clamp(2.2rem, 4.45vw, 4.6rem);
}

.story-step--closing {
  flex-direction: column;
}

.story-step--closing p {
  max-width: 66rem;
  font-size: clamp(2rem, 3.8vw, 3.9rem);
  line-height: 1.03;
}

.story-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: clamp(1.7rem, 3.5vh, 2.7rem);
  border: 1px solid var(--runrun-red);
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  background: var(--runrun-red);
  color: var(--runrun-cream);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, gap 180ms ease, transform 180ms ease;
}

.story-cta:hover,
.story-cta:focus-visible {
  gap: 1.15rem;
  background: var(--ink);
  color: var(--runrun-cream);
  transform: translateY(-2px);
}

.story-step em,
.contact h2 em {
  position: relative;
  z-index: 1;
  font-style: normal;
}

.story-step--final p {
  font-size: clamp(2.6rem, 4.8vw, 4.9rem);
  font-weight: 600;
}

.story-step--final {
  flex-direction: column;
}

.story-step--final::before {
  top: calc(50% - clamp(14.5rem, 23vw, 19rem));
}

.story-signature {
  width: clamp(20rem, 33vw, 31rem);
  height: auto;
  margin-top: clamp(1.2rem, 2.5vh, 2rem);
}

.story-welcome {
  margin-top: clamp(1rem, 2vh, 1.5rem);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-signature--runrun {
  display: block;
  width: clamp(16rem, 28vw, 25rem);
  overflow: visible;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.story-signature--runrun img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.22);
}

h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 650;
  letter-spacing: -0.055em;
}

.story-progress {
  position: sticky;
  z-index: 3;
  top: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: auto minmax(7rem, 15rem) auto;
  gap: 1rem;
  align-items: center;
  width: fit-content;
  margin-left: var(--pad);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.progress-track {
  display: block;
  height: 1px;
  background: var(--line);
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--ink);
}

.scroll-hint {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  top: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.scroll-icon {
  display: grid;
  width: 2.4rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: nudge 1.7s ease-in-out infinite;
}

@keyframes nudge {
  50% { transform: translateY(0.35rem); }
}

.authority {
  position: relative;
  z-index: 4;
  height: 270vh;
  background:
    radial-gradient(circle at 50% 46%, rgba(185, 52, 54, 0.12), transparent 28rem),
    linear-gradient(rgba(19, 23, 19, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 3.25rem, auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.authority-snap-points {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 85vh 85vh 100vh;
  pointer-events: none;
}

.authority-snap-points span {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.authority-stage {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  overflow: hidden;
  place-items: center;
}

.authority-heading {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(calc(100% - (var(--pad) * 2)), 72rem);
  min-height: clamp(14rem, 34vh, 22rem);
  padding: 2rem 0;
  place-items: center;
  text-align: center;
}

.authority-message {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(1.5rem) scale(0.985);
  transition: opacity 380ms ease, filter 500ms ease, transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
  pointer-events: none;
}

.authority-message.is-current {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.authority-message h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.3rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.authority-message--future h2 {
  font-size: clamp(3.4rem, 6.7vw, 7rem);
}

.authority-highlight {
  --highlight-reveal: 0;
}

.authority-message--future.is-current .authority-highlight {
  --highlight-reveal: 1;
}

.authority-message p {
  margin: 1.25rem 0 0;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.68rem, 0.9vw, 0.86rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #5f625a;
  text-transform: uppercase;
}

.stamp-wall {
  position: absolute;
  inset: 0;
}

.client-stamp {
  --drag-x: 0px;
  --drag-y: 0px;
  position: absolute;
  z-index: 1;
  top: var(--y);
  left: var(--x);
  display: grid;
  width: min(var(--w), 15vw);
  aspect-ratio: 1.75;
  margin: 0;
  place-items: center;
  border: 1px solid rgba(19, 23, 19, 0.2);
  background:
    repeating-linear-gradient(3deg, rgba(19, 23, 19, 0.018) 0 1px, transparent 1px 5px),
    #e4e2d9;
  box-shadow: 0 0.65rem 1.25rem rgba(19, 23, 19, 0.1);
  cursor: grab;
  isolation: isolate;
  opacity: 0;
  filter: blur(4px) drop-shadow(0 0 0 rgba(19, 23, 19, 0));
  transform: translate(calc(-50% + var(--drag-x)), calc(-50% + var(--drag-y))) rotate(calc(var(--r) - 2deg)) scale(1.16);
  transition:
    opacity 170ms ease var(--d),
    filter 300ms ease var(--d),
    transform 460ms cubic-bezier(0.18, 0.9, 0.25, 1.28) var(--d),
    background-color 200ms ease;
  will-change: transform, opacity, filter;
}

.client-stamp::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 28%, transparent 0 28%, rgba(19, 23, 19, 0.045) 72%, transparent 74%);
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.45;
  pointer-events: none;
}

.client-stamp::before {
  content: none;
}

.client-stamp img {
  position: relative;
  z-index: 1;
  display: block;
  width: 92%;
  height: 86%;
  object-fit: contain;
  pointer-events: none;
}

.client-stamp.is-stamped {
  opacity: 0.92;
  filter: blur(0) drop-shadow(0 0.35rem 0 rgba(19, 23, 19, 0.08));
  transform: translate(calc(-50% + var(--drag-x)), calc(-50% + var(--drag-y))) rotate(var(--r)) scale(1);
}

.client-stamp.is-stamped:hover {
  z-index: 6;
  background-color: #eeece4;
  filter: blur(0) contrast(1.12) drop-shadow(0 0.65rem 0 rgba(185, 52, 54, 0.52));
  transform: translate(calc(-50% + var(--drag-x)), calc(-53% + var(--drag-y))) rotate(0deg) scale(1.07);
}

.client-stamp.is-dragging {
  z-index: 10;
  cursor: grabbing;
  filter: blur(0) contrast(1.08) drop-shadow(0 1rem 0.75rem rgba(19, 23, 19, 0.18));
  transform: translate(calc(-50% + var(--drag-x)), calc(-50% + var(--drag-y))) rotate(0deg) scale(1.08);
  transition: filter 160ms ease, transform 100ms ease;
}

.stamp-soft { border-radius: 1.2rem 2.8rem 1.5rem 2.2rem; }
.stamp-round { aspect-ratio: 1; border-radius: 50%; }
.stamp-oval { border-radius: 50%; }
.stamp-ticket { border-radius: 0.35rem; }
.stamp-cut { clip-path: polygon(4% 0, 97% 3%, 100% 88%, 95% 100%, 2% 96%, 0 8%); }
.stamp-torn { clip-path: polygon(2% 8%, 11% 2%, 22% 6%, 34% 1%, 48% 5%, 61% 0, 74% 5%, 88% 1%, 99% 7%, 96% 93%, 85% 98%, 73% 94%, 60% 100%, 45% 95%, 31% 99%, 18% 94%, 1% 98%); }

@media (min-width: 781px) {
  .client-stamp {
    touch-action: none;
    user-select: none;
  }
}

.diagnostic {
  position: relative;
  z-index: 4;
  height: 100vh;
  background:
    linear-gradient(rgba(19, 23, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 23, 19, 0.025) 1px, transparent 1px),
    #e7e4da;
  background-size: 100% 3.25rem, 3.25rem 100%, auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.diagnostic-snap-points {
  display: none;
}

.diagnostic-snap-points span {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.diagnostic-stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(11rem, 0.64fr) minmax(20rem, 1.18fr) auto;
  gap: clamp(0.45rem, 1.2vh, 0.85rem);
  width: 100%;
  height: 100vh;
  padding: clamp(4.8rem, 6vh, 5.5rem) var(--pad) clamp(4.3rem, 6vh, 5.5rem);
  overflow: hidden;
}

.diagnostic-heading {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.diagnostic-index {
  position: absolute;
  top: 0;
  left: 0;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #696c63;
}

.diagnostic-messages {
  display: grid;
}

.diagnostic-message {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(2rem);
  transition: opacity 340ms ease, filter 460ms ease, transform 460ms cubic-bezier(0.2, 0.75, 0.25, 1);
  pointer-events: none;
}

.diagnostic-message.is-current {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.diagnostic .eyebrow {
  display: block;
  margin-bottom: 1.35rem;
  font-size: clamp(0.78rem, 0.9vw, 0.95rem);
  font-weight: 500;
  line-height: 1.4;
  color: #555950;
}

.diagnostic h2 {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(2.8rem, 4.5vw, 5.35rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-transform: uppercase;
  word-spacing: 0.16em;
}

.diagnostic-message[data-phase="detectar"] h2 {
  font-size: clamp(2.8rem, 4.5vw, 5.35rem);
}

.diagnostic-message > p {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  font-size: clamp(0.98rem, 1.15vw, 1.15rem);
  line-height: 1.58;
  color: #5f625a;
}

.diagnostic-highlight {
  --highlight-reveal: 0;
}

.diagnostic-message.is-current .diagnostic-highlight {
  --highlight-reveal: 1;
}

.diagnostic-desk {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 55rem;
  height: min(70vh, 44rem);
  border: 1px solid rgba(19, 23, 19, 0.2);
  background:
    radial-gradient(circle at 84% 14%, rgba(200, 255, 49, 0.26), transparent 13rem),
    repeating-linear-gradient(3deg, rgba(19, 23, 19, 0.018) 0 1px, transparent 1px 6px),
    #d5d0c3;
  box-shadow: 0 1.8rem 4rem rgba(19, 23, 19, 0.13);
  isolation: isolate;
  transform: rotate(0.35deg);
}

.desk-grain {
  position: absolute;
  inset: 0;
  background: linear-gradient(113deg, transparent 0 47%, rgba(19, 23, 19, 0.035) 48%, transparent 49% 100%);
  background-size: 13rem 9rem;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.desk-paper {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-height: 10rem;
  padding: clamp(1.1rem, 2vw, 1.7rem);
  border: 1px solid rgba(19, 23, 19, 0.17);
  background:
    repeating-linear-gradient(0deg, transparent 0 1.8rem, rgba(19, 23, 19, 0.065) 1.85rem 1.9rem),
    #f1f0e9;
  box-shadow: 0 0.8rem 1rem rgba(19, 23, 19, 0.12);
  transition: left 650ms cubic-bezier(0.2, 0.8, 0.2, 1), top 650ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 400ms ease, opacity 300ms ease;
}

.desk-paper--proposal {
  z-index: 3;
  top: 10%;
  left: 7%;
  width: 47%;
  height: 38%;
  transform: rotate(-4deg);
}

.desk-paper--communication {
  z-index: 2;
  top: 31%;
  left: 42%;
  width: 48%;
  height: 37%;
  transform: rotate(3.5deg);
}

.desk-paper--sales {
  z-index: 4;
  top: 61%;
  left: 15%;
  width: 54%;
  height: 30%;
  transform: rotate(-1.5deg);
}

.paper-tag {
  margin-bottom: auto;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.55rem, 0.7vw, 0.68rem);
  letter-spacing: 0.09em;
  color: #686b63;
}

.desk-paper strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.05rem, 1.65vw, 1.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.paper-line {
  display: block;
  width: 68%;
  height: 1px;
  margin-top: 0.8rem;
  background: rgba(19, 23, 19, 0.25);
}

.paper-line--short { width: 42%; margin-top: 0.55rem; }

.paper-note {
  position: absolute;
  right: 7%;
  bottom: 7%;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.55rem, 0.72vw, 0.7rem);
  line-height: 1.25;
  color: #70736a;
  transform: rotate(-5deg);
}

.sales-path {
  display: flex;
  align-items: center;
  margin-top: 1.1rem;
}

.sales-path i {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.sales-path i:not(:last-child)::after {
  display: block;
  width: clamp(2rem, 4vw, 4.5rem);
  height: 1px;
  margin: 0.3rem 0 0 0.65rem;
  background: rgba(19, 23, 19, 0.35);
  content: "";
}

.desk-clue {
  position: absolute;
  z-index: 8;
  padding: 0.75rem 0.9rem;
  background: var(--highlight);
  box-shadow: 0 0.45rem 0 rgba(19, 23, 19, 0.1);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.62rem, 0.8vw, 0.78rem);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0;
  filter: blur(5px);
  transform: scale(1.18) rotate(var(--clue-r));
  transition: opacity 240ms ease, filter 360ms ease, transform 460ms cubic-bezier(0.2, 0.9, 0.2, 1.25);
}

.desk-clue--one { --clue-r: -7deg; top: 15%; right: 4%; }
.desk-clue--two { --clue-r: 5deg; right: 4%; bottom: 12%; }
.desk-clue--three { --clue-r: -3deg; bottom: 40%; left: 3%; }

.diagnostic[data-phase="detectar"] .desk-clue {
  opacity: 0.96;
  filter: blur(0);
  transform: scale(1) rotate(var(--clue-r));
}

.diagnostic[data-phase="detectar"] .desk-paper {
  filter: grayscale(0.3) contrast(1.04);
}

.desk-route {
  position: absolute;
  z-index: 10;
  inset: 42% 7% auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 0.8rem 0.8rem 0 var(--highlight);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.58rem, 0.8vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(2rem) rotate(-1deg);
  transition: opacity 300ms ease, transform 550ms cubic-bezier(0.18, 0.9, 0.25, 1.2);
}

.desk-route i {
  width: clamp(1.5rem, 3vw, 4rem);
  height: 1px;
  margin: 0 0.8rem;
  background: var(--ink);
}

.desk-route i::after {
  display: block;
  float: right;
  width: 0.4rem;
  height: 0.4rem;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  content: "";
  transform: translateY(-0.2rem) rotate(45deg);
}

.desk-stamp {
  position: absolute;
  z-index: 11;
  right: 6%;
  bottom: 7%;
  display: grid;
  width: 9rem;
  height: 9rem;
  place-items: center;
  border: 3px double var(--ink);
  border-radius: 50%;
  font-family: "DM Mono", monospace;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  opacity: 0;
  transform: rotate(14deg) scale(1.35);
  transition: opacity 200ms ease 200ms, transform 520ms cubic-bezier(0.2, 1.25, 0.3, 1) 180ms;
}

.desk-stamp small {
  display: block;
  max-width: 6rem;
  margin-top: -2.3rem;
  font-size: 0.48rem;
  line-height: 1.25;
}

.diagnostic[data-phase="actuar"] .desk-paper--proposal {
  top: 7%; left: 6%; transform: rotate(-1deg) scale(0.78); opacity: 0.66;
}

.diagnostic[data-phase="actuar"] .desk-paper--communication {
  top: 9%; left: 35%; transform: rotate(1deg) scale(0.78); opacity: 0.66;
}

.diagnostic[data-phase="actuar"] .desk-paper--sales {
  top: 10%; left: 62%; transform: rotate(-1deg) scale(0.72); opacity: 0.66;
}

.diagnostic[data-phase="actuar"] .desk-route,
.diagnostic[data-phase="actuar"] .desk-stamp {
  opacity: 1;
}

.diagnostic[data-phase="actuar"] .desk-route { transform: translateY(0) rotate(-1deg); }
.diagnostic[data-phase="actuar"] .desk-stamp { transform: rotate(-9deg) scale(1); }

.diagnostic-notebook {
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  transform: rotate(0.6deg);
}

.notebook-shadow {
  position: absolute;
  z-index: -2;
  inset: 4.5% 3% 0 5%;
  background: rgba(19, 23, 19, 0.18);
  filter: blur(1.4rem);
  transform: translate(0.8rem, 1.2rem) rotate(-1deg);
}

.notebook-page {
  position: absolute;
  inset: 3.5% 3.5% 1.5% 4.5%;
  overflow: hidden;
  border: 1px solid rgba(55, 49, 37, 0.24);
  background:
    linear-gradient(90deg, transparent 0 9.5%, rgba(175, 73, 62, 0.24) 9.6% 9.8%, transparent 9.9%),
    repeating-linear-gradient(0deg, transparent 0 2.55rem, rgba(68, 91, 116, 0.13) 2.6rem 2.67rem),
    radial-gradient(circle at 83% 17%, rgba(143, 111, 62, 0.08), transparent 18rem),
    #ebe5d6;
  box-shadow:
    0.45rem 0.6rem 0 #c7bdab,
    0.8rem 1rem 0 #ded5c5,
    1.3rem 1.8rem 2.5rem rgba(19, 23, 19, 0.18);
  color: #171a19;
  transform: rotate(-0.8deg);
}

.notebook-page::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(103deg, rgba(65, 52, 33, 0.018) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 12% 92%, rgba(96, 70, 36, 0.09), transparent 9rem);
  content: "";
  mix-blend-mode: multiply;
  pointer-events: none;
}

.notebook-binding {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: 1.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 2rem 0;
  pointer-events: none;
}

.notebook-binding i {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 0.68rem;
  border: 2px solid #3f413d;
  border-right: 0;
  border-radius: 0.7rem 0 0 0.7rem;
  background: linear-gradient(#77786f, #252824 42% 58%, #8a8a80);
  box-shadow: -0.25rem 0.2rem 0.25rem rgba(19, 23, 19, 0.25);
  transform: translateX(-0.85rem) rotate(-1deg);
}

.notebook-binding i::after {
  position: absolute;
  top: 50%;
  right: -0.18rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #9e9687;
  box-shadow: inset 0 0 0 1px rgba(19, 23, 19, 0.25);
  content: "";
  transform: translateY(-50%);
}

.notebook-meta {
  position: absolute;
  z-index: 2;
  top: 4.5%;
  right: 5%;
  left: 13.5%;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(19, 23, 19, 0.34);
  padding-bottom: 0.65rem;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.5rem, 0.65vw, 0.65rem);
  letter-spacing: 0.1em;
  color: #5d5b54;
}

.notebook-date,
.notebook-page blockquote,
.pen-note,
.notebook-conclusion {
  font-family: "Caveat", cursive;
}

.notebook-date {
  position: absolute;
  top: 12%;
  left: 14%;
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  font-weight: 500;
  transform: rotate(-1deg);
}

.notebook-page blockquote {
  position: absolute;
  top: 17%;
  left: 15%;
  margin: 0;
  font-size: clamp(1.75rem, 3.15vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.95;
  transform: rotate(-1.2deg);
}

.notebook-page blockquote::after {
  position: absolute;
  right: -0.2rem;
  bottom: -0.35rem;
  left: -0.1rem;
  height: 0.16rem;
  background: #181c1a;
  clip-path: polygon(0 40%, 13% 20%, 29% 50%, 47% 25%, 64% 58%, 82% 18%, 100% 45%, 99% 78%, 75% 62%, 55% 80%, 31% 60%, 11% 82%);
  content: "";
  opacity: 0.75;
  transform: rotate(0.7deg);
}

.pen-note {
  position: absolute;
  z-index: 2;
  font-size: clamp(1.05rem, 1.75vw, 1.7rem);
  font-weight: 600;
  line-height: 0.9;
  opacity: 0;
  filter: blur(1px);
  transform: translateY(0.7rem) rotate(var(--pen-r));
  transition: opacity 260ms ease var(--pen-d), filter 320ms ease var(--pen-d), transform 480ms cubic-bezier(0.18, 0.9, 0.25, 1.2) var(--pen-d);
}

.diagnostic[data-phase="entender"] .pen-note {
  opacity: 0.9;
  filter: blur(0);
  transform: translateY(0) rotate(var(--pen-r));
}

.pen-note--why { --pen-r: 8deg; --pen-d: 120ms; top: 15%; right: 10%; font-size: clamp(1.4rem, 2.4vw, 2.5rem); }
.pen-note--understand { --pen-r: -5deg; --pen-d: 220ms; top: 43%; left: 13%; }
.pen-note--contacts { --pen-r: 4deg; --pen-d: 320ms; top: 47%; right: 7%; }
.pen-note--difference { --pen-r: -3deg; --pen-d: 420ms; bottom: 27%; left: 17%; }
.pen-note--sure { --pen-r: 5deg; --pen-d: 520ms; right: 7%; bottom: 24%; }

.pen-circle {
  position: absolute;
  z-index: 1;
  width: 37%;
  height: 15%;
  border: 2px solid rgba(18, 24, 22, 0.68);
  border-radius: 48% 52% 45% 55%;
  opacity: 0;
  transform: rotate(-5deg) scale(0.8);
  transition: opacity 240ms ease 600ms, transform 520ms cubic-bezier(0.18, 0.9, 0.25, 1.1) 600ms;
}

.pen-circle--one { top: 39%; left: 9%; }

.diagnostic[data-phase="entender"] .pen-circle {
  opacity: 0.7;
  transform: rotate(-5deg) scale(1);
}

.pen-arrow {
  position: absolute;
  top: 34%;
  right: 24%;
  font-family: "Caveat", cursive;
  font-size: clamp(2rem, 4vw, 4rem);
  opacity: 0.72;
  transform: rotate(18deg);
}

.notebook-conclusion {
  position: absolute;
  right: 8%;
  bottom: 6%;
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 0.9;
  text-align: right;
  transform: rotate(-2deg);
}

.notebook-conclusion span {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.notebook-conclusion span::after {
  position: absolute;
  z-index: -1;
  right: -0.25rem;
  bottom: -0.02em;
  left: -0.3rem;
  height: 0.48em;
  background: var(--highlight);
  clip-path: polygon(0 40%, 4% 17%, 18% 25%, 34% 12%, 51% 27%, 68% 14%, 84% 26%, 100% 15%, 98% 77%, 83% 68%, 65% 84%, 47% 72%, 29% 82%, 11% 70%, 1% 79%);
  content: "";
  opacity: 0.82;
  transform: rotate(-1deg) scaleX(0);
  transform-origin: left center;
  transition: transform 680ms cubic-bezier(0.16, 0.78, 0.22, 1) 760ms;
}

.diagnostic[data-phase="entender"] .notebook-conclusion span::after {
  transform: rotate(-1deg) scaleX(1);
}

.notebook-page-corner {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 3.8rem;
  height: 3.8rem;
  background: linear-gradient(135deg, rgba(112, 94, 65, 0.08) 0 48%, #d2c9b8 50% 72%, #f2ecdf 73%);
  filter: drop-shadow(-0.15rem -0.15rem 0.2rem rgba(19, 23, 19, 0.12));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.notebook-title {
  position: absolute;
  top: 12%;
  left: 14%;
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: clamp(3.5rem, 6vw, 6.25rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  transform: rotate(-1.5deg);
}

.notebook-client-label {
  position: absolute;
  top: 39%;
  left: 16%;
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: clamp(1.4rem, 2.25vw, 2.25rem);
  font-weight: 500;
  transform: rotate(-1deg);
}

.notebook-page .notebook-client-quote {
  top: 47%;
  left: 17%;
  z-index: 2;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 700;
  line-height: 0.9;
  white-space: nowrap;
  transform: rotate(-1.2deg);
}

.notebook-page .notebook-client-quote::after {
  display: none;
}

.marker-ring {
  position: absolute;
  z-index: 1;
  top: 43.5%;
  left: 11%;
  width: 72%;
  height: 22%;
  border: clamp(0.65rem, 1.2vw, 1.1rem) solid rgba(200, 255, 49, 0.78);
  border-radius: 49% 54% 47% 52%;
  clip-path: polygon(0 20%, 6% 7%, 24% 1%, 45% 5%, 69% 0, 91% 9%, 100% 28%, 98% 74%, 90% 91%, 67% 98%, 43% 94%, 20% 100%, 3% 84%);
  opacity: 0;
  filter: blur(1.5px);
  transform: rotate(-2deg) scale(0.75);
  transition: opacity 260ms ease 360ms, transform 720ms cubic-bezier(0.18, 0.9, 0.25, 1.15) 360ms;
}

.diagnostic[data-phase="entender"] .marker-ring {
  opacity: 0.9;
  transform: rotate(-2deg) scale(1);
}

.marker-arrow {
  position: absolute;
  top: 61%;
  right: 18%;
  font-family: "Caveat", cursive;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 500;
  color: rgba(144, 190, 22, 0.95);
  opacity: 0;
  transform: rotate(18deg) translateY(-0.5rem);
  transition: opacity 240ms ease 850ms, transform 480ms ease 850ms;
}

.diagnostic[data-phase="entender"] .marker-arrow {
  opacity: 1;
  transform: rotate(18deg) translateY(0);
}

.notebook-question {
  position: absolute;
  right: 11%;
  bottom: 10%;
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  font-weight: 650;
  line-height: 0.92;
  text-align: right;
  opacity: 0;
  transform: rotate(-3deg) translateY(0.75rem);
  transition: opacity 260ms ease 900ms, transform 500ms cubic-bezier(0.18, 0.9, 0.25, 1.15) 900ms;
}

.diagnostic[data-phase="entender"] .notebook-question {
  opacity: 0.92;
  transform: rotate(-3deg) translateY(0);
}

.diagnostic-flow {
  --flow-progress: 0%;
  position: relative;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.25vw, 1.25rem);
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100%;
  padding: 0;
}

.flow-tabs {
  display: none;
}

.flow-line {
  display: none;
}

.flow-line span {
  display: block;
  width: var(--flow-progress);
  height: 100%;
  background: var(--ink);
  transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flow-card {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
  height: auto;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(19, 23, 19, 0.18);
  padding: clamp(1.2rem, 1.8vw, 1.8rem);
  background: rgba(241, 240, 233, 0.9);
  color: var(--ink);
  cursor: pointer;
  opacity: 0.42;
  filter: grayscale(1);
  transform: none;
  transition:
    opacity 340ms ease,
    filter 400ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 300ms ease,
    box-shadow 400ms ease;
}

.flow-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 0.25rem;
}

.flow-card.is-active {
  z-index: 3;
  background: var(--paper);
  box-shadow: 0.75rem 0.85rem 0 var(--highlight);
  opacity: 1;
  filter: grayscale(0);
  transform: none;
}

.flow-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.52rem, 0.62vw, 0.66rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-status {
  color: #74776e;
  text-align: right;
}

.flow-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: clamp(0.9rem, 1.8vh, 1.25rem) 0 0;
}

.flow-kicker {
  display: block;
  margin-bottom: 0.65rem;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.58rem, 0.7vw, 0.72rem);
  letter-spacing: 0.1em;
  color: #65685f;
  text-transform: uppercase;
}

.flow-card h3 {
  display: flex;
  min-height: 0;
  align-items: flex-start;
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  word-spacing: 0.14em;
}

.flow-card[data-flow-step="2"] h3 {
  font-size: clamp(1.55rem, 2.25vw, 2.6rem);
  white-space: nowrap;
}

.flow-card p {
  margin: 0.8rem 0 0;
  max-width: 28rem;
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  line-height: 1.5;
  color: #686b62;
}

.flow-points {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: clamp(1.05rem, 1.8vh, 1.4rem);
  padding-top: clamp(0.85rem, 1.3vh, 1.05rem);
  border-top: 1px solid rgba(19, 23, 19, 0.16);
}

.flow-points strong {
  display: block;
  margin-bottom: 0.85rem;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.58rem, 0.68vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.flow-points ul {
  display: grid;
  gap: clamp(0.45rem, 0.75vh, 0.65rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: clamp(0.72rem, 0.82vw, 0.86rem);
  line-height: 1.35;
  color: #555950;
}

.flow-points li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--ink);
  content: "";
  transform: translateY(-50%);
}

.flow-card.is-active .flow-points li::before {
  background: var(--highlight);
  box-shadow: inset 0 0 0 1px rgba(19, 23, 19, 0.32);
}

.flow-points .flow-conclusion {
  margin-top: auto;
  padding-top: clamp(1rem, 1.6vh, 1.35rem);
  font-size: clamp(0.72rem, 0.82vw, 0.86rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.flow-arrow,
.flow-finish {
  align-self: flex-end;
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  line-height: 1;
}

.flow-card.is-active .flow-number,
.flow-card.is-active .flow-kicker {
  position: relative;
  width: fit-content;
}

.flow-card.is-active .flow-number::after,
.flow-card.is-active .flow-kicker::after {
  content: none;
}

.diagnostic-bridge {
  position: relative;
  z-index: 6;
  display: block;
  align-self: end;
  width: min(100%, 58rem);
  margin: 0 auto;
  padding-top: clamp(0.2rem, 0.6vh, 0.5rem);
  text-align: center;
}

.diagnostic-bridge p {
  max-width: 54rem;
  margin: 0 auto;
  font-size: clamp(1.25rem, 1.8vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.diagnostic-bridge p span {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
}

.diagnostic-bridge p span::after {
  content: none;
}

.diagnostic-bridge small {
  display: block;
  margin-top: 0.5rem;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.54rem, 0.62vw, 0.66rem);
  letter-spacing: 0.1em;
  color: #696c63;
  text-transform: uppercase;
}

.case-study {
  position: relative;
  z-index: 5;
  padding: clamp(7rem, 10vw, 10rem) var(--pad);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  scroll-snap-align: start;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 0.8fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  max-width: 92rem;
  margin: 0 auto;
}

.case-label,
.case-step-number {
  font-family: "DM Mono", monospace;
  font-size: clamp(0.6rem, 0.7vw, 0.72rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.case-label {
  color: #b8bbb1;
}

.case-hero h2 {
  max-width: 58rem;
  margin: 1.3rem 0 1.8rem;
  font-size: clamp(3.8rem, 7.1vw, 7.8rem);
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.case-hero h2 span {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.case-hero h2 span::after {
  position: absolute;
  z-index: -1;
  right: -0.3rem;
  bottom: -0.1em;
  left: -0.25rem;
  height: 0.29em;
  background: var(--highlight);
  clip-path: polygon(0 30%, 6% 5%, 19% 19%, 32% 3%, 48% 22%, 61% 8%, 78% 20%, 92% 4%, 100% 28%, 98% 86%, 82% 72%, 64% 92%, 43% 75%, 23% 91%, 3% 79%);
  content: "";
}

#caso-runrun .case-hero h2 {
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 0.92;
}

#caso-runrun .case-hero {
  display: block;
  max-width: 78rem;
  text-align: center;
}

#caso-runrun .case-hero h2 {
  max-width: 72rem;
  margin-right: auto;
  margin-left: auto;
}

#caso-runrun .case-manifesto {
  max-width: 58rem;
  margin: 0 auto;
}

#caso-runrun .case-manifesto .case-lead {
  margin-bottom: clamp(0.8rem, 1.5vw, 1.4rem);
  color: var(--paper);
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  font-weight: 500;
  line-height: 1.45;
}

#caso-runrun .case-manifesto .case-inline-result {
  margin-top: 1rem;
  color: var(--paper);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.5;
}

.case-manifesto {
  max-width: 44rem;
  display: grid;
  gap: 0.9rem;
}

.case-manifesto p {
  margin: 0;
  color: #b9bcb2;
  font-size: clamp(0.88rem, 1.02vw, 1.05rem);
  line-height: 1.5;
}

.case-manifesto strong {
  color: var(--paper);
  font-weight: 750;
}

.case-manifesto em {
  color: var(--paper);
  font-style: normal;
}

.case-result {
  position: relative;
  border: 1px solid #55594f;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    linear-gradient(rgba(241, 240, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 240, 233, 0.04) 1px, transparent 1px);
  background-size: 2.6rem 2.6rem;
}

.case-result::after {
  position: absolute;
  right: -0.65rem;
  bottom: -0.65rem;
  width: 58%;
  height: 0.65rem;
  background: var(--highlight);
  content: "";
}

.case-result img {
  width: min(10rem, 45%);
  max-height: 5rem;
  margin-bottom: 2.5rem;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) brightness(0) invert(1);
}

.case-result > p {
  margin: 0 0 1.3rem;
  color: #b8bbb1;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.case-metrics div {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #55594f;
  padding-top: 1rem;
}

.case-metrics strong {
  color: var(--highlight);
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.case-metrics span {
  margin-top: 0.55rem;
  color: #b8bbb1;
  font-size: 0.78rem;
}

.case-thesis {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: center;
  max-width: 92rem;
  margin: clamp(7rem, 11vw, 11rem) auto clamp(4rem, 7vw, 7rem);
  border-top: 1px solid #55594f;
  padding-top: 1.5rem;
  text-align: center;
}

.case-thesis-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--highlight);
  text-transform: uppercase;
}

.case-thesis p {
  max-width: 66rem;
  margin: 0 auto;
  font-size: clamp(2.2rem, 4.7vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.case-thesis strong {
  font-weight: 800;
  color: var(--highlight);
}

.case-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 92rem;
  margin: 0 auto;
  color: var(--ink);
}

.case-step {
  position: relative;
  min-height: 32rem;
  border: 1px solid rgba(19, 23, 19, 0.22);
  padding: clamp(1.6rem, 2.7vw, 2.8rem);
  background: var(--paper);
}

.case-step:nth-child(1),
.case-step:nth-child(2) {
  min-height: 36rem;
  align-self: start;
}

.case-step:nth-child(3) {
  align-self: start;
}

.case-step:nth-child(2) {
  transform: none;
}

.case-step:nth-child(3) {
  transform: none;
}

.case-step--dark {
  border-color: #73766e;
  background: #2b2220;
  color: var(--paper);
}

.case-step--accent {
  background: var(--highlight);
  color: var(--runrun-cream);
}

.case-step--accent .case-step-number,
.case-step--accent h3,
.case-step.case-step--accent p,
.case-step--accent small {
  color: var(--runrun-cream);
}

.case-step--accent small {
  border-top-color: rgba(242, 233, 218, 0.36);
}

.case-step-number {
  color: #666a61;
}

.case-step--dark .case-step-number {
  color: #b8bbb1;
}

.case-step h3 {
  margin: clamp(1.7rem, 3.5vh, 2.5rem) 0 1.2rem;
  font-size: clamp(1.75rem, 2.55vw, 3.05rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.case-step p {
  margin: 0;
  color: #5e6259;
  font-size: clamp(0.9rem, 1.08vw, 1.08rem);
  line-height: 1.58;
}

.case-step p + p {
  margin-top: 0.9rem;
}

.case-step--dark p {
  color: #c3c5bc;
}

.case-step blockquote {
  margin: 2rem 0 0;
  border-left: 0.3rem solid var(--highlight);
  padding-left: 1rem;
  color: var(--paper);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 650;
  line-height: 1.3;
}

.case-step small {
  position: absolute;
  right: clamp(1.6rem, 2.7vw, 2.8rem);
  bottom: clamp(1.6rem, 2.7vw, 2.8rem);
  left: clamp(1.6rem, 2.7vw, 2.8rem);
  border-top: 1px solid rgba(19, 23, 19, 0.2);
  padding-top: 1rem;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-step--dark small {
  border-top-color: rgba(241, 240, 233, 0.2);
  color: #c4c7bd;
}

.case-actions {
  position: relative;
  max-width: 92rem;
  height: clamp(42rem, 55vw, 52rem);
  margin: clamp(5rem, 8vw, 8rem) auto clamp(6rem, 9vw, 9rem);
}

.case-polaroid {
  position: absolute;
  z-index: 1;
  width: var(--photo-width);
  margin: 0;
  padding: clamp(0.4rem, 0.7vw, 0.65rem) clamp(0.4rem, 0.7vw, 0.65rem) clamp(2.4rem, 3.6vw, 3.5rem);
  background: #ebe8de;
  box-shadow: 0.45rem 0.65rem 1.4rem rgba(0, 0, 0, 0.35);
  color: var(--ink);
  transform: rotate(var(--photo-rotation));
  transform-origin: 50% 45%;
  transition:
    transform 420ms cubic-bezier(0.18, 0.88, 0.24, 1),
    box-shadow 320ms ease,
    filter 320ms ease;
}

.case-polaroid:hover,
.case-polaroid:focus-within {
  z-index: 10;
  box-shadow: 0.8rem 1rem 2.2rem rgba(0, 0, 0, 0.52);
  filter: saturate(1.05);
  transform: rotate(0deg) scale(1.055);
}

.case-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.case-polaroid--wide img {
  aspect-ratio: 4 / 3;
}

.case-polaroid figcaption {
  position: absolute;
  right: 0.6rem;
  bottom: 0.65rem;
  left: 0.6rem;
  font-family: "Rock Salt", cursive;
  font-size: clamp(0.62rem, 0.82vw, 0.9rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-align: center;
}

.case-polaroid:nth-child(1) { --photo-width: 29%; --photo-rotation: -3.2deg; top: 2%; left: 1.5%; }
.case-polaroid:nth-child(2) { --photo-width: 17%; --photo-rotation: 2.5deg; top: 6%; left: 32%; }
.case-polaroid:nth-child(3) { --photo-width: 17%; --photo-rotation: -2deg; top: 0; left: 54%; }
.case-polaroid:nth-child(4) { --photo-width: 17%; --photo-rotation: 3.5deg; top: 7%; right: 3%; }
.case-polaroid:nth-child(5) { --photo-width: 17%; --photo-rotation: 2.2deg; bottom: 2%; left: 5%; }
.case-polaroid:nth-child(6) { --photo-width: 16%; --photo-rotation: -3deg; bottom: 7%; left: 27%; }
.case-polaroid:nth-child(7) { --photo-width: 17%; --photo-rotation: 2.8deg; right: 31%; bottom: 3%; }
.case-polaroid:nth-child(8) { --photo-width: 28%; --photo-rotation: -2.2deg; right: 1%; bottom: 5%; }

.case-audio-section {
  position: relative;
  z-index: 5;
  padding: clamp(5rem, 7vw, 7rem) var(--pad) clamp(2rem, 3vw, 3rem);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  scroll-snap-align: start;
}

.case-audio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.1rem;
  max-width: 92rem;
  margin: 0 auto;
  padding-top: clamp(3rem, 5vw, 5rem);
  text-align: center;
}

.case-audio h3 {
  max-width: 58rem;
  margin: 0;
  font-size: clamp(2.4rem, 4.2vw, 4.8rem);
  letter-spacing: -0.058em;
  line-height: 0.95;
}

.case-audio-copy {
  max-width: 43rem;
  margin: 0;
  color: #68645d;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  line-height: 1.6;
}

.case-audio-card {
  width: min(100%, 44rem);
  margin-top: 1.2rem;
  padding: 0;
  background: transparent;
  text-align: left;
}

.audio-wave {
  display: flex;
  height: 6rem;
  align-items: center;
  gap: clamp(0.35rem, 0.7vw, 0.65rem);
  overflow: hidden;
}

.audio-wave i {
  display: block;
  width: 0.22rem;
  height: calc(18% + (var(--wave, 1) * 7%));
  background: var(--highlight);
}

.audio-wave i:nth-child(2n) { --wave: 5; }
.audio-wave i:nth-child(3n) { --wave: 8; }
.audio-wave i:nth-child(4n) { --wave: 3; }
.audio-wave i:nth-child(5n) { --wave: 10; }

.audio-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #55594f;
  padding-top: 0.9rem;
  color: #aeb1a7;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-audio-button {
  display: flex;
  width: 100%;
  margin-top: 2rem;
  justify-content: space-between;
  border: 0;
  padding: 1rem 0;
  background: var(--highlight);
  color: var(--ink);
  font: inherit;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 750;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.case-audio-button {
  padding-right: 1.1rem;
  padding-left: 1.1rem;
}

.case-audio-button[hidden],
.audio-card-note[hidden] {
  display: none;
}

.case-audio-card > small {
  display: block;
  margin-top: 0.8rem;
  color: #8f9389;
  font-size: 0.62rem;
  line-height: 1.45;
}

.case-audio-form {
  margin-top: 0;
}

.case-audio-form[hidden] {
  display: none;
}

.case-audio-fields {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 0.7rem;
}

.case-audio-fields--single {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
}

.case-audio-fields label > span {
  display: block;
  margin-bottom: 0.45rem;
  color: #68645d;
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-audio-fields em,
.audio-consent em {
  font-style: normal;
  opacity: 0.65;
}

.case-audio-fields input {
  width: 100%;
  border: 1px solid rgba(32, 29, 27, 0.42);
  border-radius: 0;
  outline: 0;
  min-height: 3.35rem;
  padding: 0.9rem 0.95rem;
  background: rgba(255, 255, 255, 0.3);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}

.case-audio-fields input:focus {
  border-color: var(--runrun-red);
}

.audio-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  margin-top: 0.65rem;
  color: #68645d;
  font-size: 0.62rem;
  line-height: 1.5;
}

.audio-consent input {
  margin-top: 0.18rem;
  accent-color: var(--runrun-red);
}

.audio-consent a {
  color: inherit;
}

.case-audio-form .ml-form-recaptcha {
  width: 238px;
  height: 61px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.case-audio-form .g-recaptcha {
  transform: scale(0.78);
  transform-origin: 0 0;
}

.case-audio-submit {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border: 0;
  min-height: 3.35rem;
  padding: 0.9rem 1rem;
  background: var(--runrun-red);
  color: var(--paper);
  font: inherit;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 750;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.case-audio-form .ml-form-embedSubmit {
  margin-top: 0;
}

.case-audio-form > small {
  display: block;
  margin-top: 0.8rem;
  color: #8f9389;
  font-size: 0.62rem;
  line-height: 1.45;
}

.case-audio-success {
  padding: 2rem 0 0;
}

.case-audio-success h4 {
  margin: 0.8rem 0 0.6rem;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1;
}

.case-audio-success p {
  margin: 0;
  color: #68645d;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .case-audio-fields {
    grid-template-columns: 1fr;
  }
}

.contact {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(25rem, 0.78fr);
  column-gap: clamp(3.5rem, 7vw, 7rem);
  row-gap: clamp(2.25rem, 4vw, 4rem);
  min-height: 100vh;
  padding: clamp(7rem, 12vw, 10rem) var(--pad);
  padding-bottom: 0.45rem;
  background: var(--paper);
  color: var(--ink);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}

.contact h2 {
  margin: 1.6rem 0 2.2rem;
  max-width: 100%;
  font-size: clamp(3rem, 4.65vw, 5.25rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.contact h2 em {
  color: #777169;
}

.contact .eyebrow {
  font-size: clamp(0.82rem, 0.92vw, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--runrun-red);
}

.contact-copy {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
}

.contact-copy p {
  margin: 0;
  font-size: clamp(0.96rem, 1.08vw, 1.08rem);
  line-height: 1.58;
  color: #68645d;
}

.contact-copy .contact-pause {
  margin: 0.18rem 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.92rem, 1.08vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  color: var(--ink);
  text-transform: uppercase;
}

.contact-note {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 2.8rem;
  padding-top: 0;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  text-transform: uppercase;
  color: #777169;
}

.note-number {
  display: grid;
  width: 4rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(32, 29, 27, 0.28);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1rem;
}

.lead-form {
  position: sticky;
  top: 8rem;
  align-self: start;
  padding-top: clamp(2rem, 7vh, 5rem);
}

.mailer-form {
  min-width: 0;
  align-self: start;
}

.form-row {
  border-bottom: 1px solid rgba(32, 29, 27, 0.24);
  padding: 1.15rem 0 0.85rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777169;
}

.form-row label span {
  text-transform: none;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 clamp(1.05rem, 1.5vw, 1.35rem) "Manrope", sans-serif;
}

.form-row textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.45;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #999087;
}

.form-row:focus-within {
  border-color: var(--runrun-red);
}

.form-row.ml-error {
  border-color: #ff8d7e;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.privacy {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  color: #777169;
  font-size: 0.72rem;
  line-height: 1.5;
}

.privacy input {
  accent-color: var(--runrun-red);
}

.privacy a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #9f7b74;
  text-underline-offset: 0.18em;
}

.ml-form-recaptcha {
  min-height: 4.9rem;
  margin: 1.35rem 0 1rem;
  overflow: hidden;
}

.ml-form-embedSubmit {
  width: 100%;
}

.lead-form button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  padding: 1.3rem 1.4rem;
  background: var(--runrun-red);
  color: var(--paper);
  cursor: pointer;
  font: 700 clamp(0.9rem, 1.3vw, 1.1rem) "Manrope", sans-serif;
  transition: background 180ms ease, transform 180ms ease;
}

.lead-form button:hover {
  background: #9f292f;
  transform: translateY(-2px);
}

.button-arrow {
  font-size: 1.5rem;
}

.site-footer {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 0 0;
  border-top: 1px solid rgba(32, 29, 27, 0.16);
  background: transparent;
  color: rgba(32, 29, 27, 0.58);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0;
  white-space: nowrap;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

@media (max-width: 720px) {
  .site-footer {
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 0 0;
    font-size: clamp(0.46rem, 2vw, 0.56rem);
    text-align: left;
  }
}

.form-aftercare {
  margin: 1rem 0 0;
  color: #70746b;
  font-size: 0.7rem;
  line-height: 1.5;
}

.form-submit-status {
  min-height: 1.5em;
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-submit-status[data-state="sending"] {
  color: var(--ink-soft, #675f55);
}

.form-submit-status[data-state="error"] {
  color: #9f2f24;
  font-weight: 700;
}

.form-loader {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(19, 23, 19, 0.28);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: form-spin 700ms linear infinite;
}

@keyframes form-spin {
  to { transform: rotate(360deg); }
}

.form-success {
  position: sticky;
  top: 9rem;
  align-self: start;
  border-top: 1px solid rgba(32, 29, 27, 0.22);
  border-bottom: 1px solid rgba(32, 29, 27, 0.22);
  padding: 3rem 0;
}

.form-success h3 {
  margin: 1.5rem 0 1rem;
  font-size: clamp(2.5rem, 4.5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.form-success p {
  max-width: 34rem;
  margin: 0;
  color: #68645d;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 780px) {
  :root {
    --pad: clamp(1.65rem, 7vw, 2.1rem);
  }

  .site-header {
    padding-top: 1.1rem;
  }

  .landing {
    min-height: 100svh;
    padding: 5.5rem var(--pad) 5.25rem;
  }

  .landing-logo {
    width: min(21rem, 88vw);
    margin-bottom: 1.25rem;
  }

  .landing-logo-descriptor {
    margin-top: -0.1rem;
    font-size: clamp(0.47rem, 2.25vw, 0.58rem);
    letter-spacing: 0.15em;
  }

  .landing h1 {
    max-width: 21rem;
    font-size: clamp(1.8rem, 7.8vw, 2.45rem);
    letter-spacing: -0.05em;
    line-height: 1.02;
  }

  .landing p {
    max-width: 20.5rem;
    margin-top: 1.35rem;
    font-size: 0.88rem;
    line-height: 1.52;
  }

  .landing-scroll {
    right: 50%;
    bottom: 1.15rem;
    transform: translateX(50%);
  }

  .landing-scroll span:first-child {
    display: none;
  }

  .brand {
    width: 6.9rem;
  }

  .brand.brand--runrun {
    width: 4.2rem;
    height: 4.2rem;
  }

  .story {
    height: 500vh;
  }

  .story-step {
    align-items: center;
    padding: 4rem var(--pad) 3rem;
  }

  .story-step::before {
    top: calc(50% - 8.8rem);
    width: calc(100% - (var(--pad) * 2));
    font-size: clamp(0.98rem, 4.2vw, 1.08rem);
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }

  .story-step--final::before {
    top: calc(50% - 11.4rem);
  }

  .story-step p {
    width: 100%;
    max-width: 21rem;
    font-size: clamp(1.95rem, 8.35vw, 3.45rem);
    letter-spacing: 0.01em;
    line-height: 0.96;
    overflow-wrap: normal;
    word-break: normal;
  }

  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: inline;
  }

  .story-step--long p {
    max-width: 20.5rem;
    font-size: clamp(1.65rem, 7.1vw, 2.9rem);
    line-height: 1;
  }

  .story-step--revenue p {
    max-width: 21rem;
    font-size: clamp(1.58rem, 6.65vw, 2.7rem);
  }

  .story-step--closing p {
    max-width: 21rem;
    font-size: clamp(1.55rem, 6.45vw, 2.3rem);
    line-height: 1.08;
  }

  .story-cta {
    max-width: 19rem;
    margin-top: 1.7rem;
    font-size: 0.66rem;
    line-height: 1.45;
    text-align: center;
  }

  .highlight--long {
    font-size: 0.9em;
  }

  .story-step--final p {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.25rem, 10vw, 3.35rem);
    letter-spacing: -0.055em;
    line-height: 0.94;
  }

  .story-signature {
    width: min(17rem, 84vw);
    margin-top: 1.35rem;
  }

  .story-progress {
    top: calc(100vh - 3.2rem);
    grid-template-columns: auto 5rem auto;
  }

  .progress-label,
  .scroll-hint span:first-child {
    display: none;
  }

  .scroll-hint {
    top: calc(100vh - 4.2rem);
  }

  .authority {
    height: 270svh;
  }

  .authority-snap-points {
    grid-template-rows: 85svh 85svh 100svh;
  }

  .authority-stage {
    height: 100svh;
  }

  .authority-heading {
    width: calc(100% - (var(--pad) * 2));
    min-height: 19rem;
    padding-inline: var(--pad);
  }

  .authority-message h2,
  .authority-message--future h2 {
    font-size: clamp(2.45rem, 11.3vw, 3.55rem);
    line-height: 0.98;
  }

  .authority-message p {
    max-width: 17rem;
    margin: 1.15rem auto 0;
    font-size: 0.62rem;
    line-height: 1.5;
  }

  .client-stamp {
    width: min(var(--w), 24vw);
    cursor: default;
  }

  .client-stamp:nth-child(1)  { --x: 13% !important; --y: 8% !important; }
  .client-stamp:nth-child(2)  { --x: 42% !important; --y: 12% !important; }
  .client-stamp:nth-child(3)  { --x: 71% !important; --y: 7% !important; }
  .client-stamp:nth-child(4)  { --x: 90% !important; --y: 16% !important; }
  .client-stamp:nth-child(5)  { --x: 20% !important; --y: 25% !important; }
  .client-stamp:nth-child(6)  { --x: 53% !important; --y: 21% !important; }
  .client-stamp:nth-child(7)  { --x: 82% !important; --y: 29% !important; }
  .client-stamp:nth-child(8)  { --x: 8% !important; --y: 32% !important; }
  .client-stamp:nth-child(9)  { --x: 14% !important; --y: 70% !important; }
  .client-stamp:nth-child(10) { --x: 45% !important; --y: 76% !important; }
  .client-stamp:nth-child(11) { --x: 75% !important; --y: 69% !important; }
  .client-stamp:nth-child(12) { --x: 92% !important; --y: 79% !important; }
  .client-stamp:nth-child(13) { --x: 25% !important; --y: 86% !important; }
  .client-stamp:nth-child(14) { --x: 58% !important; --y: 84% !important; }
  .client-stamp:nth-child(15) { --x: 84% !important; --y: 91% !important; }
  .client-stamp:nth-child(16) { --x: 7% !important; --y: 94% !important; }
  .client-stamp:nth-child(17) { --x: 37% !important; --y: 96% !important; }
  .client-stamp:nth-child(18) { --x: 67% !important; --y: 95% !important; }
  .client-stamp:nth-child(19) { --x: 92% !important; --y: 96% !important; }
  .client-stamp:nth-child(20) { --x: 92% !important; --y: 35% !important; }

  .diagnostic {
    height: 300svh;
  }

  .diagnostic-snap-points {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: repeat(3, 100svh);
    pointer-events: none;
  }

  .diagnostic-snap-points span {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .diagnostic-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 10.8rem 19rem minmax(9.7rem, 1fr);
    gap: 0.55rem;
    height: 100svh;
    padding: 3.8rem var(--pad) 1.6rem;
  }

  .diagnostic-heading {
    justify-content: center;
  }

  .diagnostic-index {
    top: 0.25rem;
  }

  .diagnostic .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.66rem;
  }

  .diagnostic h2,
  .diagnostic-message[data-phase="detectar"] h2 {
    max-width: 22rem;
    font-size: clamp(2.05rem, 9.3vw, 3.35rem);
    line-height: 0.98;
  }

  .diagnostic-message[data-phase="actuar"] h2 {
    max-width: none;
    font-size: clamp(1.58rem, 7.1vw, 1.9rem);
    white-space: nowrap;
  }

  .diagnostic-message > p {
    max-width: 22rem;
    margin-top: 0.9rem;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .diagnostic-desk {
    align-self: stretch;
    height: auto;
    min-height: 18rem;
  }

  .desk-paper {
    min-height: 5.8rem;
    padding: 0.75rem;
  }

  .desk-paper--proposal { top: 8%; left: 4%; width: 51%; height: 39%; }
  .desk-paper--communication { top: 28%; left: 45%; width: 51%; height: 39%; }
  .desk-paper--sales { top: 59%; left: 10%; width: 60%; height: 34%; }

  .paper-tag { font-size: 0.43rem; }
  .desk-paper strong { font-size: clamp(0.72rem, 3.3vw, 1rem); }
  .paper-line { margin-top: 0.4rem; }
  .paper-line--short { margin-top: 0.3rem; }
  .paper-note { font-size: 0.4rem; }
  .sales-path { margin-top: 0.45rem; }
  .sales-path i { width: 0.45rem; height: 0.45rem; }
  .sales-path i:not(:last-child)::after { width: 1.6rem; margin: 0.17rem 0 0 0.4rem; }

  .desk-clue {
    padding: 0.5rem 0.55rem;
    font-size: 0.48rem;
  }

  .desk-clue--one { top: 7%; right: 2%; }
  .desk-clue--two { right: 2%; bottom: 6%; }
  .desk-clue--three { bottom: 40%; left: 1%; }

  .desk-route {
    inset: 42% 4% auto;
    padding: 1rem 0.55rem;
    font-size: 0.45rem;
    box-shadow: 0.45rem 0.45rem 0 var(--highlight);
  }

  .desk-route i { width: 1.4rem; margin: 0 0.4rem; }

  .desk-stamp {
    right: 4%;
    bottom: 4%;
    width: 5.2rem;
    height: 5.2rem;
    border-width: 2px;
    font-size: 0.62rem;
  }

  .desk-stamp small { max-width: 3.6rem; margin-top: -1.3rem; font-size: 0.3rem; }

  .diagnostic[data-phase="actuar"] .desk-paper--proposal { top: 4%; left: 2%; }
  .diagnostic[data-phase="actuar"] .desk-paper--communication { top: 5%; left: 29%; }
  .diagnostic[data-phase="actuar"] .desk-paper--sales { top: 6%; left: 51%; }

  .diagnostic-notebook {
    min-height: 21rem;
    transform: rotate(0.35deg);
  }

  .notebook-page {
    inset: 2% 1.5% 1% 4%;
    background:
      linear-gradient(90deg, transparent 0 9.5%, rgba(175, 73, 62, 0.22) 9.6% 9.9%, transparent 10%),
      repeating-linear-gradient(0deg, transparent 0 1.75rem, rgba(68, 91, 116, 0.13) 1.8rem 1.86rem),
      radial-gradient(circle at 83% 17%, rgba(143, 111, 62, 0.08), transparent 12rem),
      #ebe5d6;
  }

  .notebook-binding {
    left: 0.5%;
    padding: 1.2rem 0;
  }

  .notebook-binding i {
    width: 1.6rem;
    height: 0.45rem;
    border-width: 1px;
    transform: translateX(-0.55rem);
  }

  .notebook-binding i::after { width: 0.32rem; height: 0.32rem; }
  .notebook-meta { top: 3.5%; left: 13%; font-size: 0.38rem; padding-bottom: 0.4rem; }
  .notebook-date { top: 10%; left: 14%; font-size: 0.88rem; }
  .notebook-page blockquote { top: 15%; left: 14%; font-size: clamp(1.25rem, 6.2vw, 1.7rem); }
  .pen-note { font-size: clamp(0.76rem, 3.7vw, 1.02rem); }
  .pen-note--why { top: 13%; right: 8%; font-size: 1.25rem; }
  .pen-note--understand { top: 40%; left: 13%; }
  .pen-note--contacts { top: 45%; right: 4%; }
  .pen-note--difference { bottom: 28%; left: 14%; }
  .pen-note--sure { right: 4%; bottom: 24%; }
  .pen-circle { border-width: 1px; }
  .pen-circle--one { top: 37%; left: 8%; width: 43%; height: 14%; }
  .pen-arrow { top: 31%; right: 21%; font-size: 2rem; }
  .notebook-conclusion { right: 6%; bottom: 5%; font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .notebook-page-corner { width: 2.3rem; height: 2.3rem; }
  .notebook-title { top: 11%; left: 14%; font-size: clamp(2.6rem, 14vw, 3.5rem); }
  .notebook-client-label { top: 38%; left: 15%; font-size: 1.15rem; }
  .notebook-page .notebook-client-quote {
    top: 46%;
    left: 15%;
    font-size: clamp(1.65rem, 8.6vw, 2.2rem);
  }
  .marker-ring { top: 42%; left: 8%; width: 85%; height: 21%; border-width: 0.6rem; }
  .marker-arrow { top: 59%; right: 14%; font-size: 2.8rem; }
  .notebook-question { right: 8%; bottom: 9%; font-size: clamp(1.35rem, 7vw, 1.75rem); }

  .diagnostic-flow {
    align-self: stretch;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
    height: 100%;
    padding: 0;
  }

  .diagnostic[data-phase="detectar"] .diagnostic-flow,
  .diagnostic[data-phase="actuar"] .diagnostic-flow {
    grid-template-columns: 1fr;
  }

  .flow-tabs {
    display: grid;
    grid-template-columns: 1fr 0.68fr 1.15fr;
    gap: 0.35rem;
    min-width: 0;
  }

  .flow-tab {
    min-width: 0;
    border: 1px solid rgba(19, 23, 19, 0.16);
    padding: 0.58rem 0.5rem;
    overflow: hidden;
    background: rgba(241, 240, 233, 0.6);
    color: #777a70;
    cursor: pointer;
    font: 500 0.48rem/1.1 "DM Mono", monospace;
    letter-spacing: 0.025em;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .flow-tab span {
    display: block;
    margin-bottom: 0.18rem;
    font-size: 0.4rem;
  }

  .flow-tab.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
  }

  .flow-card {
    display: none;
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    height: 100%;
    padding: 1rem;
    transform: none;
  }

  .flow-card.is-active {
    display: flex;
    box-shadow: 0.35rem 0.45rem 0 var(--highlight);
  }

  .flow-card-top { display: block; font-size: 0.5rem; }
  .flow-status { display: none; }
  .flow-kicker { margin-bottom: 0.5rem; font-size: 0.48rem; }
  .flow-card-body { margin: 0.7rem 0 auto; }
  .flow-card h3 {
    display: block;
    font-size: clamp(1.15rem, 5.6vw, 1.45rem);
    hyphens: none;
    line-height: 1;
    overflow-wrap: normal;
    white-space: normal;
  }
  .flow-card.is-active h3 { font-size: clamp(1.15rem, 5.6vw, 1.45rem); }
  .flow-card[data-flow-step="2"] h3 {
    font-size: clamp(1.02rem, 4.9vw, 1.28rem);
    hyphens: none;
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .flow-card[data-flow-step="2"].is-active h3 {
    font-size: clamp(1.02rem, 4.9vw, 1.28rem);
    white-space: nowrap;
  }
  .flow-card p {
    margin-top: 0.65rem;
    font-size: clamp(0.68rem, 3vw, 0.78rem);
    line-height: 1.4;
  }
  .flow-points {
    margin-top: 0.8rem;
    padding-top: 0.7rem;
  }
  .flow-points strong { margin-bottom: 0.55rem; font-size: 0.5rem; }
  .flow-points ul { gap: 0.42rem; }
  .flow-points li { padding-left: 0.75rem; font-size: clamp(0.58rem, 2.55vw, 0.67rem); line-height: 1.3; }
  .flow-points li::before { width: 0.28rem; height: 0.28rem; }
  .flow-arrow,
  .flow-finish { font-size: 1.2rem; }

  .diagnostic-flow,
  .diagnostic[data-phase="detectar"] .diagnostic-flow,
  .diagnostic[data-phase="actuar"] .diagnostic-flow {
    position: relative;
    display: block;
    height: 100%;
    overflow: visible;
  }

  .flow-tabs {
    display: none;
  }

  .flow-card,
  .flow-card.is-active {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: grayscale(0.8);
    pointer-events: none;
    transform: translateY(110%) rotate(0.8deg) scale(0.98);
    transition:
      opacity 280ms ease,
      filter 420ms ease,
      transform 620ms cubic-bezier(0.18, 0.88, 0.24, 1);
  }

  .flow-card.is-past {
    z-index: 2;
    opacity: 0.72;
    filter: grayscale(0.7);
    transform: translate(-0.2rem, 0) rotate(-1deg) scale(0.985);
  }

  .flow-card.is-active {
    z-index: 4;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: translateY(0) rotate(0) scale(1);
  }

  .flow-card.is-future {
    z-index: 3;
    opacity: 0;
    transform: translateY(110%) rotate(0.8deg) scale(0.98);
  }

  .diagnostic[data-phase="actuar"] .flow-card[data-flow-step="0"] {
    transform: translate(-0.3rem, 0) rotate(-1.6deg) scale(0.97);
  }

  .diagnostic[data-phase="actuar"] .flow-card[data-flow-step="1"] {
    transform: translate(0.28rem, 0.85rem) rotate(1.15deg) scale(0.985);
  }

  .diagnostic[data-phase="actuar"] .flow-card[data-flow-step="2"] {
    transform: translate(-0.12rem, 1.1rem) rotate(-0.5deg) scale(1);
  }

  .diagnostic[data-phase="detectar"] .flow-card[data-flow-step="0"] {
    transform: translate(-0.22rem, 0) rotate(-1.1deg) scale(0.985);
  }

  .diagnostic[data-phase="detectar"] .flow-card[data-flow-step="1"] {
    transform: translate(0.2rem, 0.8rem) rotate(0.8deg) scale(1);
  }

  .diagnostic-bridge {
    position: relative;
    z-index: 6;
    display: block;
    align-self: center;
    max-width: 21rem;
    margin: 0 auto;
    padding: 0.25rem 0 0.1rem;
    text-align: center;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(0.8rem);
    transition:
      opacity 320ms ease 220ms,
      filter 420ms ease 220ms,
      transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1) 220ms;
  }

  .diagnostic[data-phase="actuar"] .diagnostic-bridge {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  .diagnostic-bridge p {
    margin: 0;
    font-size: clamp(0.95rem, 4.15vw, 1.08rem);
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.24;
  }

  .diagnostic-bridge p span {
    position: relative;
    z-index: 0;
    display: inline-block;
    white-space: nowrap;
  }

  .diagnostic-bridge p span::after {
    position: absolute;
    z-index: -1;
    right: -0.16rem;
    bottom: -0.02em;
    left: -0.16rem;
    height: 0.45em;
    background: var(--highlight);
    clip-path: polygon(0 40%, 7% 16%, 25% 25%, 43% 12%, 65% 28%, 84% 14%, 100% 30%, 97% 82%, 75% 68%, 54% 86%, 31% 70%, 4% 84%);
    content: "";
    opacity: 0.82;
  }

  .diagnostic-bridge small {
    display: block;
    margin-top: 0.42rem;
    font-family: "DM Mono", monospace;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    color: #696c63;
    text-transform: uppercase;
  }

  .case-study {
    padding: 6.5rem var(--pad) 7rem;
  }

  .case-hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .case-hero h2 {
    margin-top: 1rem;
    font-size: clamp(3.05rem, 14vw, 4.4rem);
    line-height: 0.89;
  }

  .case-manifesto {
    gap: 0.8rem;
  }

  .case-manifesto p {
    font-size: 0.92rem;
  }

  .case-result img {
    margin-bottom: 2rem;
  }

  .case-metrics strong {
    font-size: clamp(2.5rem, 13vw, 3.6rem);
  }

  .case-thesis {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 6.5rem 0 3.5rem;
  }

  .case-thesis p {
    font-size: clamp(2.25rem, 10.7vw, 3.3rem);
  }

  .case-journey {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .case-step {
    min-height: 29rem;
  }

  .case-step:nth-child(1),
  .case-step:nth-child(2) {
    min-height: 34rem;
  }

  .case-step:nth-child(1) {
    transform: none;
  }

  .case-step:nth-child(2) {
    transform: none;
  }

  .case-step:nth-child(3) {
    transform: none;
  }

  .case-step h3 {
    margin-top: 3.4rem;
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .case-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    margin: 4rem 0 6rem;
    align-items: start;
    gap: 0.4rem 0.1rem;
    padding: 0 0.15rem;
  }

  .case-polaroid,
  .case-polaroid:nth-child(n) {
    --photo-width: auto;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    padding: 0.35rem 0.35rem 2.35rem;
  }

  .case-polaroid:nth-child(odd) {
    transform: translateY(-0.45rem) rotate(-2.4deg);
  }

  .case-polaroid:nth-child(even) {
    transform: translateY(1.1rem) rotate(2.1deg);
  }

  .case-polaroid:hover,
  .case-polaroid:focus-within {
    transform: rotate(0) scale(1.025);
  }

  .case-polaroid img,
  .case-polaroid--wide img {
    aspect-ratio: 4 / 5;
  }

  .case-polaroid figcaption {
    right: 0.35rem;
    bottom: 0.55rem;
    left: 0.35rem;
    font-size: clamp(0.48rem, 2.65vw, 0.66rem);
  }

  .case-audio {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .case-audio h3 {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 4rem;
    min-height: 0;
  }

  .contact h2 {
    font-size: clamp(2.7rem, 11.5vw, 4.15rem);
    line-height: 0.98;
  }

  .contact-copy {
    gap: 0.9rem;
  }

  .contact-copy p {
    font-size: 0.98rem;
  }

  .contact-copy .contact-pause {
    margin: 0.35rem 0;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #fff;
  }

  .contact-note {
    margin-top: 0;
  }

  .lead-form {
    position: static;
    padding-top: 0;
  }

  .ml-form-recaptcha {
    width: 238px;
    min-height: 4.1rem;
  }

  .g-recaptcha {
    transform: scale(0.78);
    transform-origin: 0 0;
  }

  .form-success {
    position: static;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: y proximity;
  }
  .story-step { transition: none; }
  .scroll-icon { animation: none; }
  .client-stamp {
    transition: opacity 100ms linear;
  }
}

/* Este bloque debe cerrar la hoja para prevalecer sobre las variantes históricas. */
@media (min-width: 781px) {
  .diagnostic { height: auto; min-height: 64rem; }
  .diagnostic-stage {
    position: relative;
    height: auto;
    min-height: 64rem;
    grid-template-rows: minmax(12rem, auto) minmax(34rem, auto) auto;
    overflow: visible;
  }
  .diagnostic-message[data-phase="actuar"] h2 {
    max-width: none;
    font-size: clamp(2.35rem, 4vw, 4.8rem);
    white-space: nowrap;
  }
  .flow-card { min-height: 34rem; height: auto; }
}

@media (max-width: 0px) {
  html { scroll-snap-type: none; }
  .landing, .story, .authority, .diagnostic, .case-study, .contact {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
  .story { height: auto; }
  .story-snap-points, .story-progress, .scroll-hint { display: none; }
  .story-stage { position: relative; top: auto; display: grid; height: auto; }
  .story-step, .story-step.is-active, .story-step.is-preview {
    position: relative;
    inset: auto;
    min-height: 72svh;
    padding: 7rem var(--pad) 5rem;
    opacity: 1;
    filter: none;
    transform: none;
    pointer-events: auto;
  }
  .story-step p br { display: none; }
  .story-step .mobile-space { display: inline; }
  .story-step p, .story-step--long p, .story-step--closing p {
    width: min(100%, 20.5rem);
    max-width: 20.5rem;
    margin-inline: auto;
    font-size: clamp(1.85rem, 8vw, 2.65rem);
    line-height: 1.04;
    text-wrap: balance;
  }
  .story-step::before {
    position: static;
    width: min(100%, 20.5rem);
    margin: 0 auto 1.35rem;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
  }
  .story-step--closing { align-content: center; padding-top: 6rem; }
  .story-step--closing p { font-size: clamp(1.65rem, 7.2vw, 2.25rem); }
  .story-cta { width: min(100%, 19rem); max-width: none; margin: 1.8rem auto 0; }

  .diagnostic { height: auto; min-height: 0; }
  .diagnostic-snap-points, .diagnostic-index, .flow-tabs, .flow-line, .flow-arrow, .flow-finish { display: none; }
  .diagnostic-stage {
    position: relative;
    top: auto;
    display: block;
    height: auto;
    padding: 5.5rem var(--pad) 4.5rem;
    overflow: visible;
  }
  .diagnostic-heading { display: block; margin-bottom: 2.25rem; }
  .diagnostic-messages { display: block; }
  .diagnostic-message { display: none; }
  .diagnostic-message[data-phase="entender"] {
    display: block;
    opacity: 1;
    filter: none;
    transform: none;
    pointer-events: auto;
  }
  .diagnostic-flow,
  .diagnostic[data-phase="detectar"] .diagnostic-flow,
  .diagnostic[data-phase="actuar"] .diagnostic-flow {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    height: auto;
    overflow: visible;
  }
  .flow-card,
  .flow-card.is-active,
  .flow-card.is-past,
  .flow-card.is-future,
  .diagnostic[data-phase="actuar"] .flow-card[data-flow-step],
  .diagnostic[data-phase="detectar"] .flow-card[data-flow-step] {
    position: relative;
    inset: auto;
    z-index: 1;
    display: flex;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 1.35rem;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }
  .flow-card.is-active { box-shadow: 0.35rem 0.45rem 0 var(--highlight); }
  .flow-card-body { margin-top: 0.9rem; }
  .flow-points .flow-conclusion { margin-top: 1.1rem; padding-top: 1rem; }
  .diagnostic-bridge { margin-top: 2.75rem; opacity: 1; filter: none; transform: none; }
}

/* En móvil, solo el descubrimiento conserva el relato secuenciado. */
@media (max-width: 0px) {
  .story {
    height: 500svh;
  }

  .story-snap-points {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: repeat(5, 100svh);
    pointer-events: none;
  }

  .story-snap-points span {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .story-progress,
  .scroll-hint {
    display: flex;
  }

  .story-stage {
    position: sticky;
    top: 0;
    display: block;
    height: 100svh;
    overflow: hidden;
  }

  .story-step,
  .story-step.is-active,
  .story-step.is-preview {
    position: absolute;
    inset: 0;
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 6.5rem var(--pad) 5.25rem;
    opacity: 0;
    filter: blur(14px);
    transform: translateY(4rem) scale(0.985);
    pointer-events: none;
  }

  .story-step.is-active {
    pointer-events: auto;
  }

  .story-step p,
  .story-step--long p,
  .story-step--closing p {
    width: 100%;
    max-width: 21rem;
    margin: 0 auto;
    font-size: clamp(1.78rem, 7.7vw, 2.55rem);
    line-height: 1.03;
    text-align: center;
    text-wrap: initial;
  }

  .story-step p br {
    display: initial;
  }

  .story-step p small {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.58em;
    font-weight: 600;
    line-height: 1.2;
  }

  .story-step:first-child p {
    font-size: clamp(1.55rem, 6.6vw, 1.8rem);
  }

  .story-step::before {
    position: absolute;
    top: calc(50% - 9.25rem);
    left: 50%;
    width: calc(100% - (var(--pad) * 2));
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.3;
    text-align: center;
    transform: translateX(-50%);
  }

  .story-step--closing {
    flex-direction: column;
    padding-top: 7.5rem;
  }

  .story-step--closing::before {
    top: calc(50% - 8rem);
  }

  .story-step--closing p {
    font-size: clamp(1.45rem, 6.35vw, 2rem);
    line-height: 1.08;
  }

  .story-cta {
    width: min(100%, 19rem);
    margin: 1.7rem auto 0;
  }
}

/* Móvil: secuencia hasta el mural; después, lectura continua. */
@media (max-width: 780px) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none !important;
  }

  html.mobile-free-scroll {
    scroll-snap-type: none !important;
  }

  .landing,
  .story,
  .authority,
  .diagnostic,
  .case-study,
  .contact,
  .story-snap-points span,
  .authority-snap-points span,
  .diagnostic-snap-points span {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
  }

  .story-step--closing::before {
    top: calc(50% - 11.8rem);
  }

  .story-step--long p small {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.56em;
    font-weight: 600;
    line-height: 1.2;
  }

  .story {
    height: auto;
  }

  .story-snap-points,
  .story-progress,
  .scroll-hint {
    display: none;
  }

  .story-stage {
    position: relative;
    top: auto;
    display: grid;
    height: auto;
    overflow: visible;
  }

  .story-step,
  .story-step.is-active,
  .story-step.is-preview {
    position: relative;
    inset: auto;
    min-height: 82svh;
    padding: 7rem var(--pad) 5rem;
    pointer-events: auto;
  }

  .story-step::before {
    width: calc(100% - (var(--pad) * 2));
  }

  .story-step--closing {
    flex-direction: column;
  }

  .story-step--closing::before {
    top: calc(50% - 11.8rem);
  }

  .diagnostic {
    height: auto;
    min-height: 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .diagnostic-snap-points,
  .diagnostic-index,
  .flow-tabs,
  .flow-line,
  .flow-arrow,
  .flow-finish {
    display: none;
  }

  .diagnostic-stage {
    position: relative;
    top: auto;
    display: block;
    height: auto;
    padding: 5.25rem var(--pad) 4.5rem;
    overflow: visible;
  }

  .diagnostic-heading {
    display: block;
    margin-bottom: 2.25rem;
  }

  .diagnostic-messages {
    display: block;
  }

  .diagnostic-message {
    display: none;
  }

  .diagnostic-message[data-phase="entender"] {
    display: block;
    opacity: 1;
    filter: none;
    transform: none;
    pointer-events: auto;
  }

  .diagnostic-flow,
  .diagnostic[data-phase="detectar"] .diagnostic-flow,
  .diagnostic[data-phase="actuar"] .diagnostic-flow {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    height: auto;
    overflow: visible;
  }

  .flow-card,
  .flow-card.is-active,
  .flow-card.is-past,
  .flow-card.is-future,
  .diagnostic[data-phase="actuar"] .flow-card[data-flow-step],
  .diagnostic[data-phase="detectar"] .flow-card[data-flow-step] {
    position: relative;
    inset: auto;
    z-index: 1;
    display: flex;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 1.35rem;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .flow-card.is-active {
    box-shadow: 0.35rem 0.45rem 0 var(--highlight);
  }

  .flow-card-body {
    margin-top: 0.9rem;
  }

  .flow-points .flow-conclusion {
    margin-top: 1.1rem;
    padding-top: 1rem;
  }

  .diagnostic-bridge {
    margin-top: 2.75rem;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
