/* ==========================================================================
   BEJO
   Design tokens live in :root. Change the look here first.
   Shape lock: everything is sharp (radius 0). One accent: purple.
   ========================================================================== */

:root {
  /* Colors */
  --bg: #0b0b0c;
  --bg-raised: #141416;
  --bg-alt: #1c1c1f;
  --line: #262629;
  --text: #ecebe8;
  --muted: #9a9894;
  --accent: #a66bff;
  --dot: #2b2b2f;

  /* Typography */
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* Spacing & layout */
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(6rem, 14vw, 11rem);
  --max-width: 1320px;
  --header-h: 64px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --bpm: 175;
  --bar: calc(60s / var(--bpm) * 4); /* one bar at BEJO's tempo */

  /* Layers */
  --z-header: 10;
  --z-grain: 50;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; } /* keep the hidden attribute winning over display rules */
::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  padding: 0.5rem 1rem; background: var(--accent); color: var(--bg);
  z-index: calc(var(--z-grain) + 1);
}
.skip-link:focus { top: 0.5rem; }

/* Film grain over everything. Fixed + pointer-events none, so it never repaints on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--text); border-color: var(--text); }
  .btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
}

/* ---------- Placeholder slots (remove as real media comes in) ---------- */
.slot {
  display: grid;
  place-items: center;
  background-color: var(--bg-raised);
  background-image: radial-gradient(circle, var(--dot) 0 1.2px, transparent 1.7px);
  background-size: 7px 7px;
  border: 1px solid var(--line);
}
.slot-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg);
  padding: 0.35rem 0.6rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.header-logo img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.nav-cta {
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700 !important;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.nav-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .nav-cta:hover { background: var(--text); }
}

.nav-toggle { display: none; width: 2.5rem; height: 2.5rem; position: relative; margin-right: -0.5rem; }
.nav-toggle span {
  position: absolute; left: 0.5rem; right: 0.5rem; height: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease-out);
}
.nav-toggle span:first-child { top: 1rem; }
.nav-toggle span:last-child  { top: 1.4rem; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(0.2rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-0.2rem) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.9rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0 !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 1000px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: 1.5rem;
  padding: 2rem var(--gutter) clamp(2rem, 6vh, 4rem);
  overflow: hidden;
  isolation: isolate;
}

/* Purple halftone glow behind the logo, same dot language as the logo itself */
.hero-field {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background-image: radial-gradient(circle, var(--accent) 0 1.5px, transparent 2px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse 45% 50% at 64% 44%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 45% 50% at 64% 44%, #000 0%, transparent 70%);
  opacity: 0.32;
}

.hero-logo {
  grid-column: 3 / -1;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  position: relative;
  width: min(100%, calc(min(62svh, 620px) * 1.59));
  margin-right: calc(var(--gutter) * -0.5);
  transform: rotate(-3deg);
  line-height: 0;
}
.hero-logo img { width: 100%; height: auto; }
.hero-logo-accent {
  position: absolute;
  inset: 0;
  transform: translate(-0.9%, 1.1%);
  opacity: 0.85;
}
.hero-logo-white { position: relative; }

.hero-copy {
  grid-column: 1 / span 5;
  grid-row: 2;
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
}
.hero-sub {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  max-width: 30ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3rem; }
  .hero-logo { grid-column: 1; width: 112%; margin-right: -8%; justify-self: center; }
  .hero-copy { grid-column: 1; padding-top: 3rem; }
  .hero-field {
    -webkit-mask-image: radial-gradient(ellipse 70% 40% at 50% 30%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse 70% 40% at 50% 30%, #000 0%, transparent 70%);
  }
}

/* ---------- Hero switch: <html data-hero="wild|classic"> ---------- */
.hero-wild { display: none; }
[data-hero="wild"] .hero-wild { display: grid; }
[data-hero="wild"] .hero-classic { display: none; }

/* ---------- Wild hero: dot-cloud logo + big headline ---------- */
.dots-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  touch-action: pan-y; /* taps blow the logo apart, vertical swipes still scroll */
}
.wild-logo {
  /* Out of the layout flow: the canvas draws the logo, this image is only the no-JS fallback */
  position: absolute;
  top: 6%;
  right: var(--gutter);
  width: min(56%, 760px);
  transform: rotate(-3deg);
  line-height: 0;
}
.wild-logo img { width: 100%; height: auto; }
.hero-wild.has-dots .wild-logo img { visibility: hidden; } /* dots take over; h1 keeps its alt text */

.wild-copy {
  position: relative;
  z-index: 1;
  grid-column: 1 / span 9;
  grid-row: 2;
  display: grid;
  gap: clamp(1.25rem, 3vh, 2rem);
  padding-top: 1rem;
  pointer-events: none; /* let the cursor reach the dots behind the text */
}
.wild-copy .hero-ctas { pointer-events: auto; }
.wild-statement {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.wild-statement strong { font-weight: 900; color: var(--accent); }
.hero-play { min-width: 9.5rem; justify-content: center; }
.hero-play[aria-pressed="true"] { background: var(--text); border-color: var(--text); }

@media (max-width: 900px) {
  .hero-wild { min-height: min(100svh - var(--header-h), 860px); }
  .wild-logo { top: 8%; left: 4%; right: 4%; width: auto; }
  .wild-copy { grid-column: 1 / -1; }
  .wild-statement { font-size: clamp(2.35rem, 9vw, 3.5rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .wild-copy > * { animation: rise 800ms var(--ease-out) both; }
  .wild-statement { animation-delay: 700ms !important; }
  .wild-copy .hero-ctas { animation-delay: 850ms !important; }
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--section-space) var(--gutter) 0;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.25rem, 9vw, 7.5rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- Music ---------- */
.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.feature-cover { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; }
.feature-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.feature-meta { color: var(--muted); margin-top: 0.5rem; }
.feature-desc { margin-top: 1.25rem; max-width: 46ch; }
.embed { width: 100%; height: 152px; margin-top: 2rem; border: 0; }

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}
.platforms li { margin: 0 -1px -1px 0; } /* collapse neighbouring borders */
.platforms a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.platforms a span { color: var(--muted); transition: transform 200ms var(--ease-out), color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .platforms a:hover { background: var(--bg-raised); color: var(--accent); }
  .platforms a:hover span { color: var(--accent); transform: translate(2px, -2px); }
}

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

/* ---------- Studio promo ---------- */
.promo-shot {
  display: block;
  border: 1px solid var(--line);
  transition: border-color 200ms ease;
}
.promo-shot img { width: 100%; height: auto; }
.promo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  margin-top: 1.75rem;
}
.promo-row p { max-width: 52ch; color: var(--muted); font-size: 1.125rem; }
@media (hover: hover) and (pointer: fine) {
  .promo-shot:hover { border-color: var(--accent); }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about-text p { max-width: 60ch; color: var(--muted); }
.about-text p + p { margin-top: 1rem; }
.about-text .about-lead {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.about-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: clamp(0rem, 10vw, 9rem);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.facts dd { font-weight: 500; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { margin-top: 0; max-width: 480px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Shows ---------- */
.shows-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
  overflow-x: clip; /* TBA drifts sideways */
}
.tba {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 22vw, 16rem);
  line-height: 0.8;
  color: transparent;
  background-image: radial-gradient(circle, var(--accent) 0 1.6px, transparent 2.1px);
  background-size: 7px 7px;
  -webkit-background-clip: text;
          background-clip: text;
}
.shows-empty-copy { display: grid; gap: 0.5rem; justify-items: start; color: var(--muted); }
.shows-empty-title { font-size: 1.375rem; font-weight: 500; color: var(--text); }
.shows-empty-copy .btn { margin-top: 1rem; }

@media (max-width: 640px) {
  .shows-empty { grid-template-columns: 1fr; }
}

/* Show list, for when dates are announced */
.show {
  display: grid;
  grid-template-columns: 7rem 1fr 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.show-date { font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.show-venue { font-weight: 500; }
.show-city { color: var(--muted); }
.show-link { font-weight: 700; text-transform: uppercase; font-size: 0.8125rem; letter-spacing: 0.08em; }
@media (max-width: 640px) {
  .show { grid-template-columns: 5rem 1fr auto; }
  .show-city { grid-column: 2; grid-row: 2; }
}

/* ---------- Booking ---------- */
.booking { padding-bottom: var(--section-space); overflow-x: clip; } /* the title drifts sideways */
.booking-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 17vw, 15rem);
  line-height: 0.82;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: -0.04em;
}
.booking-body {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  max-width: 44rem;
  margin-left: auto;
}
.booking-body p { color: var(--muted); font-size: 1.125rem; }
.booking-email {
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 3vw, 2rem);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .booking-email:hover { color: var(--accent); }
}

/* Other inboxes under the booking email */
.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  max-width: 44rem;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.contact { display: grid; gap: 0.5rem; align-content: start; scroll-margin-top: calc(var(--header-h) + 2rem); }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.contact p { color: var(--muted); }
.contact-email {
  font-family: var(--font-mono);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.3em;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .contact-email:hover { color: var(--accent); text-decoration-color: var(--accent); }
}
@media (max-width: 640px) {
  .contacts { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.socials a { text-decoration: none; transition: color 200ms ease; }
.socials-handle { font-family: var(--font-mono); font-weight: 700; color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .socials a:hover { color: var(--accent); }
}

/* ==========================================================================
   Motion. Only runs when the visitor has not asked for reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Logo glitches in once on load, stepped like the pixel edges of the logo */
  .hero-logo-white { animation: glitch-in 640ms steps(1, end) both; }
  .hero-logo-accent   { animation: accent-in 640ms steps(1, end) both; }

  /* Halftone glow thumps once per bar at --bpm */
  .hero-field { animation: thump var(--bar) var(--ease-out) 700ms infinite; }

  /* Re-trigger the glitch on hover */
  @media (hover: hover) and (pointer: fine) {
    .hero-logo:hover .hero-logo-white { animation: glitch-hover 360ms steps(1, end); }
    .hero-logo:hover .hero-logo-accent   { animation: accent-hover 360ms steps(1, end); }
  }

  /* Scroll reveal. Content stays visible without JS (no .js class). */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Section titles glitch in, stepped like the logo */
  .js .section-title[data-reveal] { transform: none; transition: none; }
  .js .section-title[data-reveal].is-in { animation: glitch-in 600ms steps(1, end) both; }

  /* Images resolve out of halftone dots: the dots grow until they join into the full picture */
  .js [data-reveal="halftone"] {
    opacity: 1;
    transform: none;
    --dot: 0px;
    -webkit-mask-image: radial-gradient(circle, #000 var(--dot), transparent calc(var(--dot) + 0.5px));
            mask-image: radial-gradient(circle, #000 var(--dot), transparent calc(var(--dot) + 0.5px));
    -webkit-mask-size: 16px 16px;
            mask-size: 16px 16px;
    transition: --dot 1100ms var(--ease-in-out) calc(var(--i, 0) * 70ms), border-color 200ms ease;
  }
  .js [data-reveal="halftone"].is-in { --dot: 12px; } /* 12px covers the whole 16px cell */

  /* The giant type drifts sideways as it scrolls past (browsers with scroll-driven animations) */
  @supports (animation-timeline: view()) {
    .booking-title,
    .tba {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    .tba { animation-name: drift-back; }
  }

  .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero-sub   { animation-delay: 450ms !important; }
  .hero-ctas  { animation-delay: 530ms !important; }
}

@property --dot {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@keyframes drift {
  from { transform: translateX(5%); }
  to   { transform: translateX(-5%); }
}
@keyframes drift-back {
  from { transform: translateX(-6%); }
  to   { transform: translateX(6%); }
}

@keyframes glitch-in {
  0%   { opacity: 0; }
  12%  { opacity: 1; clip-path: inset(0 0 72% 0); transform: translateX(-4%); }
  24%  { clip-path: inset(40% 0 22% 0); transform: translateX(3%); }
  36%  { clip-path: inset(10% 0 55% 0); transform: translateX(-1.5%); }
  48%  { clip-path: inset(0 0 0 0); transform: translateX(1%); }
  60%  { clip-path: inset(62% 0 8% 0); transform: translateX(-2%); }
  72%  { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
  100% { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
}
@keyframes accent-in {
  0%   { opacity: 0; }
  12%  { opacity: 0.85; transform: translate(4%, 1.1%); }
  36%  { transform: translate(-5%, 1.1%); }
  60%  { transform: translate(2.5%, 1.1%); }
  72%  { transform: translate(-0.9%, 1.1%); }
  100% { opacity: 0.85; transform: translate(-0.9%, 1.1%); }
}
@keyframes glitch-hover {
  0%   { clip-path: inset(30% 0 45% 0); transform: translateX(2%); }
  33%  { clip-path: inset(65% 0 5% 0); transform: translateX(-2%); }
  66%  { clip-path: inset(5% 0 70% 0); transform: translateX(1%); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes accent-hover {
  0%   { transform: translate(3%, 1.1%); }
  50%  { transform: translate(-3%, 1.1%); }
  100% { transform: translate(-0.9%, 1.1%); }
}
@keyframes thump {
  0%   { opacity: 0.5; transform: scale(1.015); }
  30%  { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.3; transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
