/* =============================================================
   zone-houdini.css — CSS Houdini Zone Styles
   Zone 6 · Accent: #60a5fa · Symbol: ■
   ============================================================= */

/* ── Zone Custom Properties ─────────────────────────────────── */

/* Typed custom properties for Houdini paint worklet */
@property --pattern-density {
  syntax: '<number>';
  inherits: false;
  initial-value: 12;
}

@property --pattern-color-h {
  syntax: '<number>';
  inherits: false;
  initial-value: 210;
}

@property --pattern-size {
  syntax: '<number>';
  inherits: false;
  initial-value: 40;
}

/* Zone accent token */
:root {
  --houdini-accent: #60a5fa;
  --houdini-accent-dim: rgb(96 165 250 / 0.15);
  --houdini-accent-glow: rgb(96 165 250 / 0.35);
  /* Upgrade with relative color syntax where supported */
  --houdini-accent-dim: oklch(from #60a5fa l c h / 0.15);
  --houdini-accent-glow: oklch(from #60a5fa l c h / 0.35);
}

/* ── Zone Header ─────────────────────────────────────────────── */
.zone-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: oklch(8% 0.01 265 / 0.85);
  border-bottom: 1px solid var(--color-border);
}

.zone-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  gap: var(--space-lg);
}

.nav-home {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-home:hover { color: var(--color-text); }

.nav-home-icon {
  font-size: 1em;
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav-home:hover .nav-home-icon { transform: translateX(-3px); }

.nav-hub {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--houdini-accent);
  letter-spacing: 0.04em;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid oklch(from #60a5fa l c h / 0.3);
  border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-hub:hover {
  background: var(--houdini-accent-dim);
  border-color: var(--houdini-accent);
}

/* ── Act 1: Hero ─────────────────────────────────────────────── */
.zone-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 3.5rem; /* nav height */
}

/* Paint Stage — full-bleed canvas layer */
.hero-paint-stage {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

/* The element the paint worklet renders into */
.hero-paint-canvas {
  width: 100%;
  height: 100%;

  /* CSS Houdini Paint API — primary rendering */
  background-image: paint(patternPainter);

  /* Typed custom property values for initial hero state */
  --pattern-density: 18;
  --pattern-color-h: 210;
  --pattern-size: 55;

  /* Animated hue sweep via @property interpolation */
  animation: houdini-hue-sweep 20s linear infinite;

  /* Fallback for non-Chromium browsers */
  @supports not (background: paint(x)) {
    background-image: none;
    background: radial-gradient(
        ellipse 80% 60% at 20% 40%,
        oklch(55% 0.22 210 / 0.25) 0%,
        transparent 60%
      ),
      radial-gradient(
        ellipse 60% 80% at 80% 20%,
        oklch(65% 0.18 240 / 0.2) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 70% 50% at 50% 80%,
        oklch(45% 0.25 195 / 0.2) 0%,
        transparent 60%
      ),
      var(--color-base);
  }
}

@keyframes houdini-hue-sweep {
  from { --pattern-color-h: 210; }
  to   { --pattern-color-h: 570; } /* 210 + 360 = full cycle */
}

/* Grain overlay for visual depth */
.hero-noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* A dark radial vignette so text stays readable */
.zone-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 80% at 50% 50%,
    transparent 20%,
    oklch(8% 0.01 265 / 0.7) 100%
  );
}

/* Hero text content */
.hero-content {
  position: relative;
  z-index: var(--z-raised);
  text-align: center;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  animation: fade-in-up 0.8s var(--ease-out) 0.1s both;
}

.zone-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--houdini-accent);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid oklch(from #60a5fa l c h / 0.4);
  border-radius: var(--radius-pill);
  background: oklch(from #60a5fa l c h / 0.08);
}

.zone-badge-sep { color: var(--color-border); }

.zone-badge-tag {
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--color-text);
  animation: fade-in-up 0.8s var(--ease-out) 0.2s both;

  & em {
    font-style: normal;
    color: var(--houdini-accent);
    display: block;
    filter: drop-shadow(0 0 40px oklch(from #60a5fa l c h / 0.5));
  }
}

.hero-subtitle {
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  animation: fade-in-up 0.8s var(--ease-out) 0.35s both;
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  animation: fade-in-up 0.8s var(--ease-out) 0.5s both;
}

.scroll-indicator {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--houdini-accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

.scroll-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Browser support badge */
.browser-support-badge {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-raised);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: oklch(12% 0.015 265 / 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  backdrop-filter: blur(8px);
  animation: fade-in-up 0.6s var(--ease-out) 1s both;
}

.support-icon { font-size: 0.75em; }
.support-text { color: var(--color-muted); }

.browser-support-badge[data-supported="true"] {
  border-color: oklch(from #60a5fa l c h / 0.4);
  & .support-icon { color: var(--houdini-accent); }
  & .support-text { color: var(--houdini-accent); }
}

.browser-support-badge[data-supported="false"] {
  border-color: oklch(65% 0.18 35 / 0.4);
  & .support-icon { color: oklch(65% 0.18 35); }
  & .support-text { color: oklch(65% 0.18 35); }
}

/* ── Act 2: Story ────────────────────────────────────────────── */
.zone-story {
  padding: var(--space-2xl) 0;
  background: var(--color-base);
  position: relative;
}

.zone-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--houdini-accent), transparent);
  opacity: 0.4;
}

.story-header {
  margin-bottom: var(--space-2xl);

  & .label  { color: var(--houdini-accent); margin-bottom: var(--space-md); display: block; }
  & h2      { margin-bottom: var(--space-md); }
  & .subtitle { max-width: 60ch; }
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: var(--space-lg);
}

.story-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--duration-base) var(--ease-out);

  &:hover { border-color: oklch(from #60a5fa l c h / 0.4); }
  & h3    { margin-bottom: var(--space-sm); }

  & p {
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: 1.65;
    margin-bottom: var(--space-md);
    &:last-child { margin-bottom: 0; }
  }

  & code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--houdini-accent);
    background: oklch(from #60a5fa l c h / 0.08);
    padding: 0.1em 0.35em;
    border-radius: var(--radius-sm);
  }
}

.story-card--featured {
  grid-column: 1 / -1;
  border-color: oklch(from #60a5fa l c h / 0.25);
  background: linear-gradient(135deg, var(--color-surface), oklch(from #60a5fa l c h / 0.04));
}

.story-card--support { grid-column: 1 / -1; }

.story-card-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}

/* Code blocks */
.code-block-wrapper {
  position: relative;
  margin-top: var(--space-md);
}

.code-block {
  background: oklch(6% 0.008 265);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  tab-size: 2;
  margin: 0;

  &::-webkit-scrollbar       { height: 4px; }
  &::-webkit-scrollbar-track { background: transparent; }
  &::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-pill); }
}

.code-block code {
  background: none;
  padding: 0;
  color: var(--color-text);
  font-size: inherit;
  border-radius: 0;
}

/* Syntax highlighting tokens */
.token-comment  { color: var(--color-muted); font-style: italic; }
.token-keyword  { color: oklch(72% 0.18 290); }
.token-name     { color: oklch(78% 0.16 150); }
.token-string   { color: oklch(72% 0.18 85); }
.token-number   { color: oklch(72% 0.18 35); }
.token-property { color: var(--houdini-accent); }
.token-value    { color: oklch(72% 0.18 150); }
.token-selector { color: oklch(72% 0.18 290); }
.token-at-rule  { color: oklch(78% 0.2 320); }
.token-var      { color: var(--houdini-accent); }
.token-param    { color: oklch(72% 0.15 60); }

/* Copy button */
.copy-btn {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 1;

  &:hover {
    color: var(--houdini-accent);
    border-color: oklch(from #60a5fa l c h / 0.5);
    background: oklch(from #60a5fa l c h / 0.08);
  }

  &[data-copied="true"] {
    color: oklch(72% 0.18 150);
    border-color: oklch(72% 0.18 150 / 0.5);
  }
}

.copy-btn--small {
  position: static;
  font-size: var(--text-xs);
}

/* Support table */
.support-table {
  display: grid;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-md) 0;
  font-size: var(--text-sm);
}

.support-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;

  & > * {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
  }

  &:last-child > * { border-bottom: none; }

  @media (max-width: 480px) {
    grid-template-columns: 1fr 1fr;
  }
}

.support-row--header {
  background: oklch(from #60a5fa l c h / 0.06);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.support-yes     { color: oklch(72% 0.18 150); font-weight: 600; }
.support-no      { color: oklch(60% 0.15 35);  font-weight: 600; }
.support-partial { color: oklch(72% 0.18 85);  font-weight: 600; }

.support-note {
  margin-top: var(--space-md) !important;
  font-size: var(--text-xs) !important;
  padding: var(--space-sm) var(--space-md);
  background: oklch(from #60a5fa l c h / 0.06);
  border-left: 2px solid var(--houdini-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Act 3: Playground ───────────────────────────────────────── */
.zone-playground {
  padding: var(--space-2xl) 0;
  background: oklch(9% 0.012 265);
  position: relative;
}

.zone-playground::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--houdini-accent), transparent);
  opacity: 0.3;
}

.playground-header {
  margin-bottom: var(--space-2xl);

  & .label { color: var(--houdini-accent); margin-bottom: var(--space-md); display: block; }
  & h2     { margin-bottom: var(--space-md); }

  & code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--houdini-accent);
    background: oklch(from #60a5fa l c h / 0.1);
    padding: 0.1em 0.35em;
    border-radius: var(--radius-sm);
  }
}

.playground-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;

  @media (max-width: 860px) { grid-template-columns: 1fr; }
}

.playground-preview-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  box-shadow:
    0 0 0 1px oklch(from #60a5fa l c h / 0.15),
    0 24px 64px oklch(8% 0.01 265 / 0.8);
}

.playground-canvas {
  width: 100%;
  height: 100%;
  background-image: paint(patternPainter);

  --pattern-density: 12;
  --pattern-color-h: 210;
  --pattern-size: 40;

  transition:
    --pattern-density 400ms var(--ease-out),
    --pattern-color-h 400ms var(--ease-out),
    --pattern-size    400ms var(--ease-out);

  @supports not (background: paint(x)) {
    background-image: none;
    background: linear-gradient(
      135deg,
      oklch(55% 0.22 210 / 0.4) 0%,
      oklch(50% 0.2 240 / 0.3) 50%,
      oklch(60% 0.18 195 / 0.4) 100%
    );
  }
}

.canvas-fallback-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  text-align: center;
  background: oklch(8% 0.01 265 / 0.85);
  backdrop-filter: blur(4px);

  & .fallback-icon {
    font-size: 3rem;
    color: var(--houdini-accent);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
  }

  & p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    max-width: 30ch;
    line-height: 1.6;
  }
}

.playground-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.control-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.control-legend {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
  padding: 0;
}

.control-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.control-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.control-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;

  & code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--houdini-accent);
    background: none;
    padding: 0;
  }
}

.control-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--houdini-accent);
  min-width: 3ch;
  text-align: right;
  transition: color var(--duration-fast) var(--ease-out);
}

.control-desc {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0;
  line-height: 1.4;
}

/* Custom range slider */
.houdini-slider {
  --slider-track-height: 4px;
  --slider-thumb-size: 18px;
  --slider-fill-color: var(--houdini-accent);

  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: var(--slider-thumb-size);
  background: transparent;
  cursor: pointer;
  outline: none;
  padding: 0;

  &::-webkit-slider-runnable-track {
    height: var(--slider-track-height);
    background: var(--color-border);
    border-radius: var(--radius-pill);
  }

  &::-moz-range-track {
    height: var(--slider-track-height);
    background: var(--color-border);
    border-radius: var(--radius-pill);
  }

  &::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: var(--slider-thumb-size);
    height: var(--slider-thumb-size);
    border-radius: 50%;
    background: var(--slider-fill-color);
    box-shadow: 0 0 0 3px oklch(from #60a5fa l c h / 0.2);
    margin-top: calc((var(--slider-track-height) - var(--slider-thumb-size)) / 2);
    transition:
      box-shadow var(--duration-fast) var(--ease-out),
      transform   var(--duration-fast) var(--ease-out);
  }

  &::-moz-range-thumb {
    width: var(--slider-thumb-size);
    height: var(--slider-thumb-size);
    border-radius: 50%;
    border: none;
    background: var(--slider-fill-color);
    box-shadow: 0 0 0 3px oklch(from #60a5fa l c h / 0.2);
    cursor: grab;
    transition:
      box-shadow var(--duration-fast) var(--ease-out),
      transform   var(--duration-fast) var(--ease-out);
  }

  &:hover::-webkit-slider-thumb,
  &:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px oklch(from #60a5fa l c h / 0.25);
    transform: scale(1.1);
  }

  &:hover::-moz-range-thumb,
  &:focus::-moz-range-thumb {
    box-shadow: 0 0 0 6px oklch(from #60a5fa l c h / 0.25);
    transform: scale(1.1);
  }

  &:focus-visible {
    outline: 2px solid var(--houdini-accent, var(--color-primary));
    outline-offset: 4px;
    border-radius: var(--radius-pill);
  }

  &:active::-webkit-slider-thumb { cursor: grabbing; }
  &:active::-moz-range-thumb    { cursor: grabbing; }
}

/* Hue slider — rainbow track */
.houdini-slider--hue {
  &::-webkit-slider-runnable-track {
    background: linear-gradient(
      to right,
      hsl(0,60,50%), hsl(60,80%,50%), hsl(120,80%,50%),
      hsl(180,80%,50%), hsl(240,80%,50%), hsl(300,80%,50%), hsl(360,80%,50%)
    );
  }

  &::-moz-range-track {
    background: linear-gradient(
      to right,
      hsl(0,60%,50%), hsl(60,80%,50%), hsl(120,80%,50%),
      hsl(180,80%,50%), hsl(240,80%,50%), hsl(300,80%,50%), hsl(360,80%,50%)
    );
  }

  &::-webkit-slider-thumb {
    background: white;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  }

  &::-moz-range-thumb {
    background: white;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  }
}

/* Generated CSS panel */
.generated-css-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.generated-css-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: oklch(6% 0.008 265);
}

.code-block--generated {
  background: oklch(6% 0.008 265);
  border: none;
  border-radius: 0;
  font-size: var(--text-xs);
  min-height: 8rem;
  padding: var(--space-lg);
  margin: 0;
}

/* ── Zone Footer Navigation ──────────────────────────────────── */
.zone-footer-nav {
  background: var(--color-base);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
}

.zone-nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);

  @media (max-width: 600px) {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.zone-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-muted);
  transition: all var(--duration-fast) var(--ease-out);
  min-width: 9rem;

  & span { display: flex; flex-direction: column; }
}

.zone-nav-link--prev { text-align: left; }
.zone-nav-link--next { text-align: right; flex-direction: row-reverse; }

.zone-nav-link--hub {
  border-color: oklch(from #60a5fa l c h / 0.3);
  color: var(--houdini-accent);
  min-width: unset;
  gap: var(--space-sm);
  flex-direction: row;
  align-items: center;
}

.zone-nav-link:hover {
  border-color: oklch(from #60a5fa l c h / 0.5);
  color: var(--color-text);
  background: oklch(from #60a5fa l c h / 0.06);
}

.zone-nav-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.zone-nav-name {
  font-weight: 600;
  color: var(--color-text);
}

.zone-nav-dir {
  font-size: 1.2em;
  color: var(--houdini-accent);
  flex-shrink: 0;
}

/* ── Keyframe Animations ─────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Reduced Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-paint-canvas  { animation: none; }
  .scroll-indicator   { animation: none; }
  .playground-canvas  { transition: none; }
}

/* ── Ambient Aurora (Layer 1 / Task 5) ─────────────────── */
.ambient-bg--aurora::before {
  content: ""; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent, var(--zone-color, oklch(0.65 0.18 290)) 30%, transparent 60%);
  animation: ambient-aurora 60s linear infinite;
  opacity: 0.12;
}
