body { background: #f4f1ea; color: #121216; }

.progress {
  position: fixed; inset: 0 0 auto; height: 4px; z-index: 5;
  background: #ff4d2e;
  transform-origin: 0 50%;
}

.hero { min-height: 90vh; display: grid; place-content: center; padding: 24px; text-align: center; }
.hero h1 { font-size: clamp(40px, 8vw, 88px); line-height: 0.95; letter-spacing: -0.03em; margin: 0; max-width: 12ch; }
.kicker { text-transform: uppercase; letter-spacing: 0.15em; font-size: 12px; color: #ff4d2e; }

main { display: grid; gap: 15vh; padding: 0 24px 30vh; }

.panel {
  display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 32px; align-items: center;
  width: min(880px, 100%); margin: 0 auto; padding: 24px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 20px 60px -30px rgb(0 0 0 / 0.35);
}
.panel h2 { margin: 0 0 8px; font-size: 28px; }
.panel p { margin: 0; color: #55535c; }
.panel-art {
  aspect-ratio: 1; border-radius: 14px;
  background: linear-gradient(135deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 50) 90% 50%));
}
@media (max-width: 560px) { .panel { grid-template-columns: 1fr; } }

.parallax {
  position: relative; overflow: hidden;
  height: 70vh; border-radius: 24px;
  display: grid; place-items: center;
  width: min(1100px, 100%); margin: 0 auto;
}
.parallax h2 { position: relative; color: #fff; font-size: clamp(32px, 6vw, 64px); margin: 0; text-align: center; }
.parallax-bg {
  position: absolute; inset: -30% 0;
  background:
    radial-gradient(circle at 20% 30%, #ff4d2e 0 12%, transparent 13%),
    radial-gradient(circle at 75% 60%, #ffb02e 0 9%, transparent 10%),
    radial-gradient(circle at 45% 80%, #7a5cff 0 14%, transparent 15%),
    #121216;
}

/* Everything below only runs where scroll timelines are supported.
   Elsewhere the page is simply static — a clean fallback. */
@supports (animation-timeline: view()) {
  html:not([data-motion="reduce"]) {
    .progress {
      animation: grow linear both;
      animation-timeline: scroll(root);
    }

    [class*="reveal-"] {
      animation: linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    .reveal-rise  { animation-name: rise; }
    .reveal-scale { animation-name: scale-in; }
    .reveal-left  { animation-name: from-left; }
    .reveal-right { animation-name: from-right; }
    .reveal-clip  { animation-name: clip; }
    .reveal-tilt  { animation-name: tilt; }

    .parallax-bg {
      animation: parallax linear both;
      animation-timeline: view();
    }
  }
}

@keyframes grow { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(80px); } }
@keyframes scale-in { from { opacity: 0; transform: scale(0.8); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-120px); } }
@keyframes from-right { from { opacity: 0; transform: translateX(120px); } }
@keyframes clip { from { clip-path: inset(0 50% 0 50% round 20px); } to { clip-path: inset(0 0 0 0 round 20px); } }
@keyframes tilt { from { opacity: 0; transform: rotate(-6deg) translateY(60px); } }
@keyframes parallax { from { transform: translateY(-15%); } to { transform: translateY(15%); } }

/* OS-level reduced motion: same as the viewer toggle. */
@media (prefers-reduced-motion: reduce) {
  .progress, [class*="reveal-"], .parallax-bg { animation: none !important; }
}
