/*
 * Motion campaign flow
 * --------------------
 * Layered after the base, section and responsive styles. These are the
 * intentional cross-section treatments: ambient canvas, organic edges,
 * lighting and scroll depth. Keep individual section layouts in sections.css.
 * To move to a component framework, this file can become the shared theme.
 */

:root {
  --flow-canvas: #17191b;
  --flow-warm: rgba(255, 182, 43, .11);
  --flow-cool: rgba(235, 225, 211, .075);
}

/* Keep the "breaking" eyebrow, not a second full-width amber block. */
.topline {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
}
.topline span {
  background: transparent;
  color: var(--amber);
  padding: 0;
}
.site-header { border-bottom-color: transparent; }

/* A continuous stage instead of stacked panels with hard boundaries. */
main {
  background:
    radial-gradient(ellipse 43% 14% at 87% 28%, var(--flow-warm), transparent 100%),
    radial-gradient(ellipse 48% 14% at 6% 51%, rgba(202, 117, 54, .085), transparent 100%),
    radial-gradient(ellipse 55% 15% at 88% 69%, var(--flow-cool), transparent 100%),
    var(--flow-canvas);
}

.hero {
  background: #111214;
}

/* Organic, genuinely curved hero edge, not a stack of polygon corners. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 5;
  pointer-events: none;
  left: -1px;
  bottom: -1px;
  width: calc(100% + 2px);
  height: clamp(115px, 14vw, 215px);
  background: url('../assets/hero-wave.svg') center bottom / 100% 100% no-repeat;
}

.hero-bg picture {
  /* Match the maximum 38px parallax shift without viewport-width overscan. */
  height: calc(100% + 76px);
  margin-top: -38px;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.hero-sticker { bottom: 210px; }
.hero-foot { bottom: 154px; }




/* The first visual story: a warm light pool, not a cream rectangle. */
.problem {
  min-height: 700px;
  color: var(--white);
  background: transparent;
}

.problem::before {
  content: "";
  position: absolute;
  inset: -10% -12% -5% 30%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 62% 60%, rgba(246, 233, 204, .22), rgba(255, 184, 63, .065) 38%, transparent 72%);
}

.problem .overline { color: var(--amber); }
.problem .outline { -webkit-text-stroke-color: #f5f0e7; }
.problem-media {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}
.problem-media img {
  mix-blend-mode: normal;
  -webkit-mask-image: radial-gradient(ellipse 65% 76% at 52% 54%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 65% 76% at 52% 54%, #000 45%, transparent 100%);
}

/* No colored rectangular block behind the mode selector. */
.methods {
  position: relative;
  isolation: isolate;
  background: transparent;
}
.methods::before {
  content: "";
  position: absolute;
  inset: 12% -15% 6% 40%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 173, 43, .075), transparent 68%);
}
.method-menu { border-top: 0; }
.method-button { border-bottom-color: rgba(255, 255, 255, .1); }
.method-visual::before {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

/* A soft diagonal wash replaces the old hard slate-colored section. */
.time {
  position: relative;
  isolation: isolate;
  background: transparent;
}
.time::before {
  content: "";
  position: absolute;
  inset: -35% -20%;
  z-index: -1;
  pointer-events: none;
  transform: rotate(-7deg);
  background: linear-gradient(110deg,
    transparent 5%,
    rgba(246, 233, 204, .045) 31%,
    rgba(255, 182, 43, .075) 54%,
    transparent 77%);
  -webkit-mask-image: radial-gradient(ellipse 68% 42% at center, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 42% at center, #000 20%, transparent 100%);
}
.time-inner { position: relative; z-index: 1; }
.time-media {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

/* The recovery portrait dissolves into the same canvas. */
.pace { background: transparent; }
.pace-image {
  inset: -55px 0;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, transparent, black 16%, black 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, black 16%, black 82%, transparent);
}
.pace::after {
  background:
    linear-gradient(90deg, var(--flow-canvas) 0%, rgba(23,25,27,.96) 18%, rgba(23,25,27,.82) 43%, transparent 80%),
    linear-gradient(0deg, var(--flow-canvas), transparent 27%, transparent 74%, var(--flow-canvas));
}
.safety { border-top-color: var(--amber); }

/* The single intentional full-bleed color wall: our download CTA. */
.final {
  background: var(--amber);
  isolation: isolate;
}
.final::before { content: none; }

@media (max-width: 760px) {
  .hero::after { height: 106px; }
  .hero-bg picture { height: 100%; margin-top: 0; }
  .hero-sticker { bottom: 143px; }
  .hero-foot { bottom: 111px; }

  .problem { min-height: 800px; }
  .problem::before { inset: 30% -45% 0 -10%; }
  .problem-media, .time-media { will-change: auto; }
  .time::before { inset: -20% -50%; }
  .pace-image { inset: 0; will-change: auto; }
  .pace::after {
    background: linear-gradient(180deg,
      var(--flow-canvas) 0%, var(--flow-canvas) 29%,
      rgba(23,25,27,.87) 55%, rgba(23,25,27,.12) 83%, var(--flow-canvas) 100%);
  }
}

/* Transforms and automatic scrolling effects are strictly optional. */
@media (prefers-reduced-motion: reduce) {
  .hero-bg picture, .problem-media, .method-visual::before,
  .time-media, .pace-image {
    transform: none !important;
    will-change: auto;
  }
}

