/* Aggressive journey effects. Opposite of frost/mist/pill: hard cuts, no blur, snap motion.
   Scoped to .tone-aggressive / fx-* so polite packs stay untouched. */

body.tone-aggressive {
  --pack-radius: 0px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
}

/* Pack color ownership: shared surfaces read pack tokens, never foreign hex. */
body.has-pack {
  --chroma-a: var(--accent);
  --chroma-b: var(--accent-2, var(--text));
  --spectral-a: var(--accent);
  --spectral-b: var(--accent-2, var(--text));
  --perk-from: color-mix(in srgb, var(--accent) 32%, var(--header));
  --perk-to: color-mix(in srgb, var(--accent-2, var(--accent)) 22%, var(--header));
  --hero-panel-bg: var(--bg);
  --hero-panel-fg: var(--text);
  --ink-on-accent: var(--bg);
}
body.has-pack:not(.fx-alert-bar) .perks {
  background: linear-gradient(90deg, var(--perk-from), var(--perk-to), var(--perk-from));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line, transparent));
  animation: none;
}
html body.has-pack .btn {
  background: var(--accent);
  color: var(--ink-on-accent, var(--bg));
  border-color: var(--accent);
  box-shadow: none;
  animation: none;
}
html body.has-pack .btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}
body.has-pack .site-header {
  background: var(--header);
  color: var(--text);
}
body.has-pack .product-card,
body.has-pack .cat-card,
body.has-pack .summary,
body.has-pack .ship-card {
  background: color-mix(in srgb, var(--surface, var(--header)) 92%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line, currentColor));
  box-shadow: none;
}
html body.tone-aggressive .btn,
html body.tone-aggressive .nav-toggle,
html body.tone-aggressive .product-card,
html body.tone-aggressive .post-card,
html body.tone-aggressive input,
html body.tone-aggressive select,
html body.tone-aggressive .txn-shell,
html body.tone-aggressive .shop-chip,
html body.tone-aggressive .badge,
html body.tone-aggressive .step-nav li {
  border-radius: 0;
  backdrop-filter: none;
}
body.tone-aggressive .btn {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--text);
}
body.tone-aggressive .eyebrow {
  letter-spacing: 0.22em;
  font-weight: 700;
}
html body.tone-aggressive.view-home .block-hero .hero-copy,
html body.tone-aggressive.view-home .block-hero.variant-cinematic .block-inner {
  max-width: 42rem;
  padding: 1.1rem 1.2rem;
  border-radius: 0;
  background: var(--hero-panel-bg, var(--bg));
  color: var(--hero-panel-fg, var(--text));
  backdrop-filter: none;
  border: 3px solid var(--accent);
  text-shadow: none;
}
html body.tone-aggressive.view-home .block-hero .hero-copy .eyebrow,
html body.tone-aggressive.view-home .block-hero .hero-copy .lede,
html body.tone-aggressive.view-home .block-hero.variant-cinematic .block-inner .eyebrow,
html body.tone-aggressive.view-home .block-hero.variant-cinematic .block-inner .lede {
  color: inherit;
  opacity: 0.82;
}
html body.tone-aggressive.view-home .block-hero .hero-copy .btn,
html body.tone-aggressive.view-home .block-hero.variant-cinematic .block-inner .btn {
  background: var(--accent);
  color: var(--ink-on-accent, var(--bg));
  border-color: var(--accent);
}
body.tone-aggressive .block.surface-frost,
body.tone-aggressive .block.surface-glass {
  backdrop-filter: none;
  background: var(--text);
  color: var(--bg);
}
body.tone-aggressive.fx-kinetic:not(.fx-reduced) .block-hero .hero-media,
body.tone-aggressive.fx-kinetic:not(.fx-reduced) [data-motion="float"] {
  animation: none;
  transform: none;
}

body.fx-slam-cut.view-home .block-hero .hero-copy {
  animation: ag-slam-cut calc(var(--pack-fx-ms, 420ms) * var(--pack-fx-scale, 1)) var(--pack-fx-ease, cubic-bezier(0.15, 0, 0, 1)) both;
  animation-delay: var(--pack-stagger-ms, 0ms);
}
body.fx-slam-cut .product-card {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%);
}
@keyframes ag-slam-cut {
  from {
    clip-path: inset(0 100% 0 0);
    transform: translate3d(calc(var(--pack-fx-distance, 6) * -1%), 0, 0);
  }
  to { clip-path: inset(0); transform: none; }
}

body.fx-strobe-edge .btn,
body.fx-strobe-edge .site-header {
  box-shadow: 0 0 0 2px var(--accent);
}
body.fx-strobe-edge .btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

body.fx-type-impact h1,
body.fx-type-impact .brand {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
body.fx-type-impact h1 {
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  line-height: 0.92;
}

body.fx-slash-wipe.view-home .block-hero {
  overflow: clip;
}
body.fx-slash-wipe.view-home .block-hero::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    transparent 42%,
    var(--accent) 50%,
    transparent 58%
  );
  opacity: 0.85;
  animation: ag-slash calc(var(--pack-fx-ms, 420ms) * var(--pack-fx-scale, 1) * 3.33) var(--pack-fx-ease, cubic-bezier(0.2, 0, 0, 1)) 1 both;
  animation-delay: var(--pack-stagger-ms, 0ms);
}
@keyframes ag-slash {
  from { transform: translate3d(calc(var(--pack-fx-distance, 6) * -6.67%), 0, 0); }
  to { transform: translate3d(calc(var(--pack-fx-distance, 6) * 6.67%), 0, 0); opacity: 0; }
}

body.fx-velocity-skew:not(.fx-reduced).journey-discover .product-card:hover,
body.fx-velocity-skew:not(.fx-reduced).journey-discover .product-card:focus-visible {
  transform: skewX(calc(var(--pack-fx-distance, 6) * -1deg)) translate3d(calc(var(--pack-fx-distance, 6) * 1.33px), calc(var(--pack-fx-distance, 6) * -0.5px), 0);
  transition: transform calc(var(--pack-fx-ms, 420ms) * var(--pack-fx-scale, 1)) var(--pack-fx-ease, cubic-bezier(0.15, 0, 0, 1));
  transition-delay: var(--pack-stagger-ms, 0ms);
}
body.fx-velocity-skew:not(.fx-reduced).journey-discover .catalog-band-title {
  transform: skewX(calc(var(--pack-fx-distance, 6) * -1.25deg));
  transform-origin: left center;
}
body.fx-velocity-skew:not(.fx-reduced) .site-header .brand {
  transform: skewX(calc(var(--pack-fx-distance, 6) * -0.75deg));
}

body.fx-stamp-hit .product-card {
  outline: 3px solid var(--text);
  outline-offset: -1px;
}
body.fx-stamp-hit .product-card .thumb::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  width: 3.2rem;
  height: 3.2rem;
  border: 3px solid var(--accent);
  transform: rotate(-18deg);
  pointer-events: none;
}

body.fx-chroma-split h1 {
  text-shadow:
    -3px 0 color-mix(in srgb, var(--chroma-a) 70%, transparent),
    3px 0 color-mix(in srgb, var(--chroma-b) 70%, transparent);
}
body.fx-chroma-split .brand:hover {
  text-shadow:
    -2px 0 color-mix(in srgb, var(--chroma-a) 80%, transparent),
    2px 0 color-mix(in srgb, var(--chroma-b) 80%, transparent);
}

body.fx-grid-slam .product-grid {
  gap: 2px;
}
body.fx-grid-slam .product-card {
  border: 2px solid var(--text);
  transition: none;
}
body.fx-grid-slam .product-card:hover,
body.fx-grid-slam .product-card:focus-visible {
  transform: translate3d(calc(var(--pack-fx-distance, 6) * 0.67px), calc(var(--pack-fx-distance, 6) * -0.67px), 0);
  transition: transform calc(var(--pack-fx-ms, 420ms) * var(--pack-fx-scale, 1)) var(--pack-fx-ease, cubic-bezier(0.15, 0, 0, 1)), background calc(var(--pack-fx-ms, 420ms) * var(--pack-fx-scale, 1)) var(--pack-fx-ease, cubic-bezier(0.15, 0, 0, 1)), color calc(var(--pack-fx-ms, 420ms) * var(--pack-fx-scale, 1)) var(--pack-fx-ease, cubic-bezier(0.15, 0, 0, 1));
  transition-delay: var(--pack-stagger-ms, 0ms);
  background: var(--accent);
  color: var(--bg);
}

body.fx-alert-bar .perks {
  background: repeating-linear-gradient(
    -18deg,
    var(--accent) 0 12px,
    var(--text) 12px 24px
  );
  color: var(--bg);
  border-bottom: 0;
}
body.fx-alert-bar .perk,
body.fx-alert-bar a.perk {
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
body.fx-alert-bar .perk + .perk { border-left-color: color-mix(in srgb, var(--bg) 40%, transparent); }

body.atm-strike .atm-layer {
  opacity: 0.42;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 16px,
      color-mix(in srgb, var(--accent) 28%, transparent) 16px 18px
    ),
    repeating-linear-gradient(
      18deg,
      transparent 0 40px,
      color-mix(in srgb, var(--text) 12%, transparent) 40px 41px
    );
}
body.atm-strike .atm-sweep {
  display: block;
  inset: auto 0;
  height: 4px;
  top: 0;
  background: var(--accent);
  animation: atm-scan calc(var(--pack-fx-ms, 420ms) * var(--pack-fx-scale, 1) * 3.81) var(--pack-fx-ease, linear) infinite;
  animation-delay: var(--pack-stagger-ms, 0ms);
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  body.tone-aggressive .btn,
  body.fx-slam-cut.view-home .block-hero .hero-copy,
  body.fx-slash-wipe.view-home .block-hero::after,
  body.atm-strike .atm-sweep {
    animation: none !important;
  }
  body.fx-velocity-skew .product-card,
  body.fx-velocity-skew .catalog-band-title,
  body.fx-velocity-skew .site-header .brand {
    transform: none !important;
  }
  body.fx-slash-wipe.view-home .block-hero::after { display: none; }
  body.fx-chroma-split h1 { text-shadow: none; }
}
body.rm-static.tone-aggressive .btn,
body.rm-static.fx-slam-cut.view-home .block-hero .hero-copy {
  animation: none !important;
}
body.rm-static.fx-slash-wipe.view-home .block-hero::after { display: none; }
body.journey-txn.tone-aggressive .btn { animation: none; }
body.journey-txn.tone-aggressive .atm-sweep { animation: none; }

/* A market's motion level scales the shared cut-and-slam vocabulary, so a calm
   market reads as calm instead of only being labelled that way. The pack keeps
   authoring its own --pack-fx-ms; this only stretches it. */
body.motion-high { --pack-fx-scale: 1; }
body.motion-medium { --pack-fx-scale: 1.3; }
body.motion-low { --pack-fx-scale: 1.7; }
body.motion-low .atm-sweep,
body.motion-low.fx-strobe-edge .site-header { animation: none; }
body.motion-low.fx-slash-wipe.view-home .block-hero::after { display: none; }
body.motion-low.fx-velocity-skew .product-card,
body.motion-low.fx-velocity-skew .catalog-band-title { transform: none; }
body.motion-none .atm-sweep,
body.motion-none .btn { animation: none; }
