/* Store-level special effects: overlay, scroll, header chrome, cursor, page edge.
   CSS-first; motion.js only drives pointer coordinates. Reduced-motion disables animation. */

:root {
  --pointer-x: 50%;
  --pointer-y: 28%;
}

.fx-overlay,
.fx-cursor {
  pointer-events: none;
  position: fixed;
  z-index: 2;
}
.fx-overlay {
  display: none;
  inset: 0;
}
.fx-cursor { display: none; }

body[class*="ovl-"]:not(.ovl-none) .fx-overlay { display: block; }

body.ovl-bloom .fx-overlay {
  background:
    radial-gradient(42% 36% at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    radial-gradient(28% 24% at 88% 8%, color-mix(in srgb, var(--header) 40%, transparent), transparent 70%);
  mix-blend-mode: soft-light;
}
body.ovl-frost .fx-overlay {
  backdrop-filter: blur(0.35px);
  background: color-mix(in srgb, var(--header) 8%, transparent);
}
body.ovl-vignette .fx-overlay {
  background: radial-gradient(ellipse at center, transparent 48%, color-mix(in srgb, var(--text) 28%, #000) 100%);
  opacity: 0.55;
}
body.ovl-chroma .fx-overlay {
  box-shadow:
    inset 10px 0 24px color-mix(in srgb, #ff2d55 18%, transparent),
    inset -10px 0 24px color-mix(in srgb, #00f0ff 16%, transparent);
}
body.ovl-glow .fx-overlay {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
    inset 0 0 80px color-mix(in srgb, var(--accent) 16%, transparent);
}

body.scr-snap { scroll-snap-type: y proximity; }
body.scr-snap main > .block { scroll-snap-align: start; scroll-margin-top: 0.5rem; }
body.scr-soft { scroll-behavior: smooth; }
body.scr-stack main > .block {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
body.scr-pin main > .block-hero,
body.scr-pin main > .block-lookbook,
body.scr-pin main > .block-mosaic {
  position: sticky;
  top: 0;
  min-height: 72vh;
  z-index: 0;
}

body.hdr-slim .site-header { backdrop-filter: blur(10px); }
body.hdr-slim .header-inner { min-height: 3.1rem; gap: 1rem; }
body.hdr-slim .brand { font-size: 1.05rem; }

body.hdr-pill .site-header {
  background: transparent;
  border-bottom: 0;
}
body.hdr-pill .header-inner {
  margin: 0.65rem auto;
  width: min(1120px, calc(100% - 1.4rem));
  min-height: 3.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--header) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  padding-inline: 1rem;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--text) 8%, transparent);
}
@media (max-width: 800px) {
  body.hdr-pill .header-inner {
    border-radius: 18px;
    width: min(1120px, calc(100% - 1rem));
    margin-block: 0.4rem;
    padding-inline: 0.7rem;
  }
}

body.hdr-clear .site-header {
  background: color-mix(in srgb, var(--header) 18%, transparent);
  border-bottom-color: transparent;
  backdrop-filter: blur(12px);
}

body.hdr-split .header-inner { justify-content: space-between; }
body.hdr-split .nav { justify-content: center; }
body.hdr-split .brand { min-width: 8rem; }
@media (max-width: 800px) {
  body.hdr-split .brand { min-width: 0; }
}

body.cur-follow .fx-cursor,
body.cur-bloom .fx-cursor,
body.cur-grid .fx-cursor,
body.cur-orbit .fx-cursor {
  display: block;
  left: var(--pointer-x);
  top: var(--pointer-y);
  width: 14rem;
  height: 14rem;
  margin: -7rem 0 0 -7rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
  mix-blend-mode: plus-lighter;
  opacity: 0.7;
}
body.cur-bloom .fx-cursor {
  width: 22rem;
  height: 22rem;
  margin: -11rem 0 0 -11rem;
  opacity: 0.85;
}
body.cur-grid .fx-cursor {
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 35%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  mix-blend-mode: overlay;
  border-radius: 0;
}
body.cur-orbit .fx-cursor {
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.7rem 0 0 -1.7rem;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 8%, transparent);
  mix-blend-mode: normal;
  opacity: 1;
}

body.edg-hairline main {
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
body.edg-matte {
  background: color-mix(in srgb, var(--bg) 55%, #ded8ce);
}
body.edg-matte .site-header,
body.edg-matte main,
body.edg-matte .site-footer {
  margin-inline: clamp(0.6rem, 3vw, 2.2rem);
  background: var(--bg);
}
body.edg-matte .site-header { margin-top: 0.8rem; }
body.edg-matte .site-footer { margin-bottom: 0.8rem; }
body.edg-soft .site-header,
body.edg-soft main,
body.edg-soft .site-footer {
  border-radius: var(--radius-lg, 22px);
  overflow: hidden;
}
body.edg-soft { padding: 0.7rem; }
body.edg-brutal {
  outline: 4px solid var(--text);
  outline-offset: -4px;
}
body.edg-brutal .site-header { border-bottom-width: 3px; border-bottom-color: var(--text); }

body.fx-kinetic .hero h1,
body.fx-kinetic .block-hero h1,
body.fx-kinetic .split-copy h2 {
  letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.95;
}

.block.surface-frost {
  background: color-mix(in srgb, var(--surface, #fff) 42%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.block.surface-ink {
  background: color-mix(in srgb, var(--text) 88%, var(--bg));
  color: var(--bg);
}
.block.surface-ink h1,
.block.surface-ink h2,
.block.surface-ink p,
.block.surface-ink a { color: inherit; }

.press-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.press-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--muted);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 140px;
  gap: 0.45rem;
}
.mosaic-cell {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md, 10px);
}
.mosaic-hero { grid-column: span 2; grid-row: span 2; }
.block-mosaic.variant-dense .mosaic-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 110px;
  gap: 0.28rem;
}
.block-mosaic.variant-dense .mosaic-hero { grid-column: span 3; grid-row: span 2; }

.proof-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.proof-list blockquote {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface, #fff) 70%, transparent);
}
.proof-list p { margin: 0; font-family: var(--font-heading); font-size: 1.15rem; }
.proof-list cite { display: block; margin-top: 0.6rem; color: var(--muted); font-style: normal; font-size: 0.85rem; }
.proof-ticker {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  grid-template-columns: none;
}
.proof-ticker blockquote { min-width: min(280px, 80vw); }

.story-rail {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}
.story-chip {
  flex: 0 0 auto;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.4rem;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--header) 80%, transparent);
}
.story-chip.is-chip {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.6rem;
  align-items: center;
}
.split-media { min-height: 320px; border-radius: var(--radius-lg, 22px); }
.split-ph {
  background: color-mix(in srgb, var(--accent) 12%, var(--header));
}

body.fx-kinetic:not(.fx-reduced) .block-hero .hero-media,
body.fx-kinetic:not(.fx-reduced) [data-motion="float"] {
  animation: chrome-float 8s ease-in-out infinite;
}
@keyframes chrome-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-overlay,
  .fx-cursor,
  body.fx-kinetic .block-hero .hero-media,
  [data-motion="float"] {
    animation: none !important;
  }
  body.scr-snap { scroll-snap-type: none; }
  body.scr-stack main > .block,
  body.scr-pin main > .block-hero,
  body.scr-pin main > .block-lookbook,
  body.scr-pin main > .block-mosaic { position: static; }
  body.cur-follow .fx-cursor,
  body.cur-bloom .fx-cursor,
  body.cur-grid .fx-cursor,
  body.cur-orbit .fx-cursor { display: none; }
}
@media (pointer: coarse) {
  body.cur-follow .fx-cursor,
  body.cur-bloom .fx-cursor,
  body.cur-grid .fx-cursor,
  body.cur-orbit .fx-cursor { display: none; }
}
@media (max-width: 800px) {
  .mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic-hero { grid-column: span 2; }
  .split-grid { grid-template-columns: 1fr; }
  body.edg-matte .site-header,
  body.edg-matte main,
  body.edg-matte .site-footer { margin-inline: 0.4rem; }
  body.scr-stack main > .block,
  body.scr-pin main > .block-hero { position: static; }
}
