/* ============================================================
   Ablauf / Flow section – Was in uns bleibt
   Prefix: flow-  |  tokens match site :root
   ============================================================ */

.flow {
  --flow-paper: var(--paper, #eef6f0);
  --flow-raised: var(--paper-raised, #fffdf9);
  --flow-sunken: var(--paper-sunken, #e4efe7);
  --flow-ink: var(--ink, #1f2e26);
  --flow-ink-soft: var(--ink-soft, #3f5348);
  --flow-ink-mute: var(--ink-mute, #5f7468);
  --flow-ink-faint: var(--ink-faint, #8fa297);
  --flow-ivy: var(--ivy, #2f8a64);
  --flow-ivy-soft: var(--ivy-soft, #4eab80);
  --flow-ivy-pale: var(--ivy-pale, #dff5ea);
  --flow-clay: var(--clay, #c46a3d);
  --flow-radius: var(--radius, 14px);
  --flow-radius-lg: var(--radius-lg, 24px);
  --flow-radius-xl: var(--radius-xl, 32px);
  --flow-ease: var(--ease-ios, cubic-bezier(.32, .72, 0, 1));
  --flow-serif: var(--serif, 'Newsreader', Georgia, serif);
  --flow-sans: var(--sans, 'Figtree', system-ui, sans-serif);
  --flow-shadow: 0 18px 48px rgba(31, 46, 38, 0.12), 0 4px 12px rgba(31, 46, 38, 0.06);
  --flow-shadow-soft: 0 8px 24px rgba(47, 110, 80, 0.10), 0 2px 6px rgba(47, 110, 80, 0.05);

  position: relative;
  padding: clamp(3.25rem, 6vw, 4.75rem) 0;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(47, 138, 100, 0.07), transparent 60%),
    radial-gradient(900px 500px at 90% 80%, rgba(196, 106, 61, 0.05), transparent 55%),
    var(--flow-paper);
  color: var(--flow-ink);
  overflow: clip;
}

.flow-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.75rem;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .flow-shell { padding: 0 1rem; }
}

.flow-intro {
  max-width: 36rem;
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
}

.flow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  font-family: var(--flow-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--flow-ivy) 82%, #000);
}

.flow-kicker::before {
  content: "";
  width: 1.1rem;
  height: 1px;
  background: var(--flow-ivy);
  opacity: 0.7;
}

.flow-title {
  margin: 0 0 0.6rem;
  font-family: var(--flow-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--flow-ink);
}

.flow-lead {
  margin: 0;
  font-family: var(--flow-sans);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  color: var(--flow-ink-mute);
  max-width: 32rem;
}

/* ---------- Desktop: sticky stage + scrolling copy ---------- */
.flow-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.flow-stage-wrap {
  position: relative;
}

.flow-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-height: min(520px, 72vh);
  border-radius: var(--flow-radius-xl);
  background:
    linear-gradient(165deg, rgba(255, 253, 249, 0.92), rgba(228, 239, 231, 0.75));
  border: 1px solid rgba(70, 120, 95, 0.12);
  box-shadow: var(--flow-shadow-soft);
  overflow: hidden;
  isolation: isolate;
}

.flow-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.55s var(--flow-ease),
    transform 0.55s var(--flow-ease);
  will-change: opacity, transform;
}

.flow-scene.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.flow-scene-inner {
  position: relative;
  width: min(78%, 340px);
  height: min(78%, 360px);
}

/* ---------- Steps (copy) ---------- */
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  position: relative;
  padding: 1.35rem 0 1.55rem 0;
  border-bottom: 1px solid rgba(70, 120, 95, 0.12);
  opacity: 0.42;
  transform: translateY(6px);
  transition:
    opacity 0.45s var(--flow-ease),
    transform 0.45s var(--flow-ease);
  cursor: default;
}

.flow-step:first-child { padding-top: 0.25rem; }
.flow-step:last-child { border-bottom: 0; padding-bottom: 0.25rem; }

.flow-step.is-active {
  opacity: 1;
  transform: none;
}

.flow-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  font-family: var(--flow-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--flow-ivy);
  background: var(--flow-ivy-pale);
  letter-spacing: 0;
}

.flow-step.is-active .flow-step-index {
  color: #fff;
  background: var(--flow-ivy);
  box-shadow: 0 4px 14px rgba(47, 138, 100, 0.28);
}

.flow-step-title {
  margin: 0 0 0.55rem;
  font-family: var(--flow-serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  letter-spacing: -0.015em;
  color: var(--flow-ink);
}

.flow-step-copy {
  margin: 0;
  font-family: var(--flow-sans);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--flow-ink-mute);
  max-width: 34ch;
}

/* ============================================================
   SCENE 1 – Erzählen
   ============================================================ */
.flow-card {
  position: absolute;
  left: 6%;
  top: 8%;
  width: 74%;
  height: 70%;
  border-radius: 18px;
  background: var(--flow-raised);
  border: 1px solid rgba(70, 120, 95, 0.14);
  box-shadow: var(--flow-shadow);
  padding: 1.1rem 1.15rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  transform-origin: 50% 60%;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
}

.flow-scene.is-active .flow-card {
  animation: flow-card-in 0.9s var(--flow-ease) 0.05s both;
}

.flow-card-label {
  font-family: var(--flow-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--flow-ink-faint);
}

.flow-card-name {
  font-family: var(--flow-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--flow-ink);
  letter-spacing: -0.01em;
  margin: -0.35rem 0 0;
}

.flow-card-dates {
  font-family: var(--flow-sans);
  font-size: 0.72rem;
  color: var(--flow-ink-faint);
  margin-top: -0.55rem;
}

.flow-typewriter {
  flex: 0 1 auto;
  width: 100%;
  font-family: var(--flow-serif);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--flow-ink-soft);
  margin-top: 0.2rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.flow-typewriter-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  margin-left: 1px;
  background: var(--flow-ivy);
  vertical-align: -0.1em;
  opacity: 0;
}

.flow-scene.is-active .flow-typewriter-cursor {
  animation: flow-blink 1s steps(1) 0.9s infinite;
}

.flow-photos {
  position: absolute;
  right: -1%;
  bottom: 2%;
  width: 34%;
  height: 42%;
  pointer-events: none;
}

.flow-photo {
  position: absolute;
  width: 82%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  border: 3px solid #fffdf9;
  box-shadow:
    0 12px 28px rgba(31, 46, 38, 0.16),
    0 2px 6px rgba(31, 46, 38, 0.08),
    inset 0 0 0 1px rgba(31, 46, 38, 0.04);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(-40px) rotate(-6deg) scale(0.92);
}

.flow-photo--1 {
  left: 4%;
  bottom: 4%;
  z-index: 3;
  background:
    radial-gradient(ellipse 55% 45% at 48% 38%, rgba(255,236,210,.55), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 42%, rgba(120,90,70,.35), transparent 70%),
    linear-gradient(165deg, #c5d6c8 0%, #8fae9a 42%, #6d8f7a 100%);
}
.flow-photo--2 {
  left: 22%;
  bottom: 14%;
  z-index: 2;
  background:
    radial-gradient(ellipse 50% 42% at 45% 36%, rgba(255,220,190,.5), transparent 62%),
    radial-gradient(ellipse 36% 32% at 52% 40%, rgba(140,90,60,.28), transparent 70%),
    linear-gradient(150deg, #e8d5c0 0%, #c4a488 48%, #9a7a5e 100%);
}
.flow-photo--3 {
  left: 38%;
  bottom: 24%;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 40% 30%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(125deg, #b7c8d6 0%, #8aa0b4 55%, #5c7388 100%);
}

.flow-scene.is-active .flow-photo--1 {
  animation: flow-photo-fall 0.85s var(--flow-ease) 0.55s both;
}
.flow-scene.is-active .flow-photo--2 {
  animation: flow-photo-fall 0.85s var(--flow-ease) 0.78s both;
}
.flow-scene.is-active .flow-photo--3 {
  animation: flow-photo-fall 0.85s var(--flow-ease) 1.02s both;
}

.flow-photo--1 { --rot: -4deg; }
.flow-photo--2 { --rot: 5deg; }
.flow-photo--3 { --rot: -2deg; }

@keyframes flow-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes flow-photo-fall {
  0%   { opacity: 0; transform: translateY(-48px) rotate(calc(var(--rot) - 8deg)) scale(0.9); }
  70%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(var(--rot)) scale(1); }
}
@keyframes flow-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ============================================================
   SCENE 2 – Bewahren
   ============================================================ */
.flow-tile-glow {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 70%;
  height: 40%;
  translate: -50% -20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(47,138,100,.18), transparent 70%);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
}
.flow-scene.is-active .flow-tile-glow {
  animation: flow-fade-up 0.8s var(--flow-ease) 0.7s both;
}
.flow-tile {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 58%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 14px;
  background:
    var(--flow-tile-img, none) center/cover no-repeat,
    linear-gradient(145deg, #f7f3ec 0%, #ebe4d8 45%, #d9d0c0 100%);
  border: 1px solid rgba(90, 70, 40, 0.18);
  box-shadow:
    0 28px 50px rgba(31, 46, 38, 0.18),
    0 8px 16px rgba(31, 46, 38, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(24px) rotateX(8deg) scale(0.94);
  transform-style: preserve-3d;
}

.flow-scene.is-active .flow-tile {
  animation: flow-tile-settle 1s var(--flow-ease) 0.85s both;
}

.flow-tile-edge {
  position: absolute;
  inset: 7%;
  border-radius: 8px;
  border: 1px solid rgba(90, 70, 40, 0.12);
  pointer-events: none;
}

.flow-qr {
  width: 52%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: #fffdf9;
  padding: 6%;
  box-shadow: 0 2px 6px rgba(31, 46, 38, 0.08);
  opacity: 0;
  transform: scale(1.15);
}

.flow-scene.is-active .flow-qr {
  animation: flow-qr-settle 0.7s var(--flow-ease) 1.35s both;
}

.flow-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.flow-qr-module {
  fill: var(--flow-ink);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.flow-scene.is-active .flow-qr-module {
  animation: flow-module-in 0.45s var(--flow-ease) both;
}

/* Stagger via nth-child delays set in JS or CSS */
.flow-scene.is-active .flow-qr-module:nth-child(odd)  { animation-delay: 0.95s; }
.flow-scene.is-active .flow-qr-module:nth-child(even) { animation-delay: 1.05s; }
.flow-scene.is-active .flow-qr-module:nth-child(3n)   { animation-delay: 1.12s; }
.flow-scene.is-active .flow-qr-module:nth-child(5n)   { animation-delay: 1.18s; }
.flow-scene.is-active .flow-qr-module:nth-child(7n)   { animation-delay: 1.24s; }

.flow-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flow-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--flow-ivy) 55%, var(--flow-ink));
  opacity: 0;
  will-change: transform, opacity;
}

.flow-scene.is-active .flow-particle {
  animation: flow-particle-fly 1.1s var(--flow-ease) both;
}

@keyframes flow-tile-settle {
  from { opacity: 0; transform: translateY(28px) rotateX(10deg) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}
@keyframes flow-qr-settle {
  from { opacity: 0; transform: scale(1.18); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes flow-module-in {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes flow-particle-fly {
  0%   { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0.6); }
  20%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--ex), var(--ey)) scale(0.3); }
}

/* ============================================================
   SCENE 3 – Wiederfinden
   ============================================================ */
.flow-grave-tile {
  position: absolute;
  left: 14%;
  bottom: 14%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 10px;
  background:
    linear-gradient(145deg, #f3eee4, #ddd4c4 55%, #c9beab);
  border: 1px solid rgba(90, 70, 40, 0.2);
  box-shadow: 0 14px 30px rgba(31, 46, 38, 0.14);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px);
}

.flow-scene.is-active .flow-grave-tile {
  animation: flow-fade-up 0.7s var(--flow-ease) 0.1s both;
}

.flow-grave-qr {
  width: 48%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 3px;
  padding: 5%;
}
.flow-grave-qr svg { width: 100%; height: 100%; display: block; }

.flow-phone {
  position: absolute;
  right: 10%;
  top: 10%;
  width: 42%;
  aspect-ratio: 9 / 17.5;
  border-radius: 18px;
  background: #1a2420;
  border: 2px solid #2c3a34;
  box-shadow:
    0 24px 48px rgba(31, 46, 38, 0.28),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translate(-28%, 36%) rotate(-8deg) scale(0.92);
  transform-origin: 30% 90%;
}

.flow-scene.is-active .flow-phone {
  animation: flow-phone-approach 1.15s var(--flow-ease) 0.35s both;
}

.flow-phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  translate: -50% 0;
  width: 36%;
  height: 7px;
  border-radius: 999px;
  background: #0d1411;
  z-index: 3;
}

.flow-phone-screen {
  position: absolute;
  inset: 10px 7px 10px;
  border-radius: 12px;
  background: var(--flow-paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.flow-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  top: 18%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--flow-ivy-soft), transparent);
  box-shadow: 0 0 12px rgba(78, 171, 128, 0.65);
  opacity: 0;
  z-index: 4;
}

.flow-scene.is-active .flow-scan {
  animation: flow-scan 1.1s var(--flow-ease) 0.95s both;
}

.flow-mem {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.55rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}

.flow-scene.is-active .flow-mem {
  animation: flow-mem-in 0.7s var(--flow-ease) 1.55s both;
}

.flow-candle {
  width: 18px;
  height: 28px;
  position: relative;
  margin-bottom: 0.2rem;
}

.flow-candle-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: 7px;
  height: 14px;
  border-radius: 1.5px;
  background: linear-gradient(180deg, #fffdf9, #e8dcc8);
  box-shadow: inset 0 0 0 0.5px rgba(90, 70, 40, 0.2);
}

.flow-candle-flame {
  position: absolute;
  bottom: 13px;
  left: 50%;
  width: 8px;
  height: 12px;
  translate: -50% 0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 40% 30%, #ffe9a8, #f0a040 55%, #c46a3d 100%);
  opacity: 0.95;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 4px rgba(240, 160, 64, 0.55));
}

.flow-scene.is-active .flow-candle-flame {
  animation: flow-flicker 1.8s ease-in-out 1.7s infinite;
}

.flow-mem-name {
  font-family: var(--flow-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--flow-ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.flow-mem-dates {
  font-family: var(--flow-sans);
  font-size: 0.48rem;
  color: var(--flow-ink-faint);
}

.flow-mem-line {
  width: 40%;
  height: 1px;
  margin: 0.15rem 0;
  background: rgba(70, 120, 95, 0.22);
}

.flow-mem-snippet {
  font-family: var(--flow-serif);
  font-size: 0.52rem;
  line-height: 1.4;
  color: var(--flow-ink-mute);
  max-width: 90%;
}

@keyframes flow-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes flow-phone-approach {
  0%   { opacity: 0; transform: translate(-28%, 36%) rotate(-8deg) scale(0.92); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(-2deg) scale(1); }
}
@keyframes flow-scan {
  0%   { opacity: 0; top: 22%; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; top: 72%; }
}
@keyframes flow-mem-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes flow-flicker {
  0%, 100% { transform: scaleY(1) scaleX(1) rotate(-1deg); opacity: 0.95; }
  25%      { transform: scaleY(1.08) scaleX(0.92) rotate(1.5deg); opacity: 1; }
  50%      { transform: scaleY(0.94) scaleX(1.05) rotate(-0.5deg); opacity: 0.88; }
  75%      { transform: scaleY(1.05) scaleX(0.96) rotate(1deg); opacity: 1; }
}

/* ============================================================
   Desktop sticky layout
   ============================================================ */
@media (min-width: 900px) {
  .flow-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: start;
  }

  .flow-stage-wrap {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
  }

  .flow-stage {
    aspect-ratio: 1 / 1.02;
    max-height: min(560px, calc(100vh - 8rem));
  }

  .flow-steps {
    padding-top: 0.5rem;
  }

  .flow-step {
    min-height: 52vh;
    padding: 1.5rem 0 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .flow-step:first-child {
    min-height: 48vh;
    padding-top: 0.75rem;
  }
  .flow-step:last-child {
    min-height: 56vh;
    padding-bottom: 3.5rem;
  }
}

/* Mobile: each scene stacks with its own stage */
@media (max-width: 899px) {
  .flow {
    padding: 2.75rem 0 3rem;
  }

  .flow-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* On mobile we render per-step stages via JS cloning OR show stage above active.
     Here: keep one stage, but make steps tighter and stage smaller. */
  .flow-stage {
    aspect-ratio: 1 / 1;
    max-height: 360px;
    border-radius: var(--flow-radius-lg);
    margin-bottom: 1.5rem;
  }

  .flow-step {
    padding: 1.15rem 0 1.35rem;
    opacity: 0.5;
  }

  .flow-step.is-active { opacity: 1; }

  .flow-step-copy {
    font-size: 0.98rem;
    max-width: none;
  }
}

/* Optional: stacked mobile variant where each step owns a mini-stage */
.flow--stacked-mobile .flow-mobile-scene {
  display: none;
}

@media (max-width: 899px) {
  .flow--stacked-mobile .flow-stage-wrap,
  .flow--stacked-mobile .flow-steps {
    display: none;
  }

  .flow--stacked-mobile .flow-mobile-scene {
    display: block;
    margin-bottom: 3rem;
  }

  .flow--stacked-mobile .flow-mobile-scene:last-of-type {
    margin-bottom: 0;
  }

  .flow--stacked-mobile .flow-mobile-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 340px;
    border-radius: var(--flow-radius-lg);
    background:
      linear-gradient(165deg, rgba(255, 253, 249, 0.92), rgba(228, 239, 231, 0.75));
    border: 1px solid rgba(70, 120, 95, 0.12);
    box-shadow: var(--flow-shadow-soft);
    overflow: hidden;
    margin-bottom: 1.5rem;
  }

  .flow--stacked-mobile .flow-mobile-stage .flow-scene {
    opacity: 0;
    transform: scale(0.97);
  }

  .flow--stacked-mobile .flow-mobile-scene.is-inview .flow-scene {
    opacity: 1;
    transform: scale(1);
  }

  .flow--stacked-mobile .flow-mobile-copy {
    padding: 0 0.15rem;
  }

  .flow--stacked-mobile .flow-mobile-copy .flow-step-index {
    margin-bottom: 0.5rem;
  }

  .flow--stacked-mobile .flow-mobile-scene.is-inview .flow-step-index {
    color: #fff;
    background: var(--flow-ivy);
    box-shadow: 0 4px 14px rgba(47, 138, 100, 0.28);
  }
}

@media (min-width: 641px) and (max-width: 899px) {
  .flow--stacked-mobile .flow-mobile-stage {
    max-width: 480px;
    max-height: 420px;
    margin-inline: auto;
  }
  .flow--stacked-mobile .flow-mobile-scene {
    margin-bottom: 3.25rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .flow-scene,
  .flow-step,
  .flow-card,
  .flow-photo,
  .flow-tile,
  .flow-qr,
  .flow-qr-module,
  .flow-particle,
  .flow-grave-tile,
  .flow-phone,
  .flow-scan,
  .flow-mem,
  .flow-candle-flame,
  .flow-typewriter-cursor {
    animation: none !important;
    transition: none !important;
  }

  .flow-scene.is-active,
  .flow--stacked-mobile .flow-mobile-scene.is-inview .flow-scene {
    opacity: 1;
    transform: none;
  }

  .flow-card,
  .flow-photo,
  .flow-tile,
  .flow-qr,
  .flow-qr-module,
  .flow-grave-tile,
  .flow-phone,
  .flow-mem {
    opacity: 1 !important;
    transform: none !important;
  }

  .flow-photo--1 { transform: rotate(-4deg) !important; }
  .flow-photo--2 { transform: rotate(5deg) !important; }
  .flow-photo--3 { transform: rotate(-2deg) !important; }
  .flow-phone { transform: rotate(-2deg) !important; }
  .flow-typewriter-cursor { display: none; }
  .flow-scan { display: none; }
  .flow-particle { display: none; }
  .flow-step { opacity: 1; transform: none; }
}
