/* ============================================
   SWEEZY BEATZ
   system measured from the cover art itself.
   the covers are photographic — anonymous figures,
   film grain, blown highlights. the frame stays quiet
   (neutral grotesque + mono catalog labels, measured
   colors) while each record speaks in its own font,
   chosen by sweezy (see /sweezy media font folders).

   measured palettes (sampled from /sweezy media):
   shame     shadows #3b3736 · taupe #8f817a · paper #d6d2d0
   seen      black #272727 · mauve-pink #d39fc7 · #e9d8e7
   seen pt2  black #272727 · slate-peri #8d95c4 · #dfe0ea
   star time mostly light · cream #e0dfd9 · silver #857e73
   ego       pure neutral #292929 / #c7c7c7 — no color cast
   apathy    indigo #253073 · violet #7963d1 · lilac #ccb4df
   ftd       purple #3a244c / #8944c3 · acid green #cff020
   ============================================ */

:root {
  --bg: #201e1c;            /* warm charcoal, between the covers' blacks */
  --ink: #ddd8d0;           /* the blown-out highlight tone */
  --gray: #857e73;          /* star time's warm silver mids */
  --line: rgba(221, 216, 208, 0.14);

  /* the records — measured, not imagined */
  --taupe: #8f817a;         /* shame */
  --paper: #d6d2d0;         /* shame lights */
  --pink: #d39fc7;          /* seen */
  --peri: #8d95c4;          /* seen pt2 */
  --starlight: #e0dfd9;     /* star time */
  --ego: #c7c7c7;           /* ego */

  --soldout: #b56a5e;       /* ui only — muted brick, kept quiet */
  --added: #7d8a6f;         /* ui only — muted moss */

  --mono: "Courier New", Courier, monospace;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- project fonts (from /sweezy media font folders) ----------
   shame → Tobias · ego → Times · apathy → Blue Screen · ftd → Horizon
   note: Tobias is a TRIAL and Blue Screen is personal-use —
   license them before the site goes commercial. */

@font-face {
  font-family: "Tobias";
  src: url("../fonts/tobias-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tobias";
  src: url("../fonts/tobias-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tobias";
  src: url("../fonts/tobias-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Blue Screen";
  src: url("../fonts/blue-screen.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Horizon";
  src: url("../fonts/horizon.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Horizon Outlined";
  src: url("../fonts/horizon-outlined.woff2") format("woff2");
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* film grain over everything, like the covers */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--ink); }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- ticker ---------- */

.ticker {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  text-transform: uppercase;
  user-select: none;
}

.ticker__track {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker__track span { display: inline-block; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- nav ---------- */

.nav {
  padding: 28px 24px;
  text-align: center;
}

.nav nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.nav__link {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: background-size 0.25s ease;
}

.nav__link:hover { background-size: 100% 1px; }

.nav__link--active { background-size: 100% 1px; }

.nav__cart { font-family: var(--mono); }

/* ---------- landing ---------- */

.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(32, 30, 28, 0.5), rgba(32, 30, 28, 0.08) 40%, rgba(32, 30, 28, 0.92));
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 60px 24px;
}

.wordmark {
  font-size: clamp(52px, 12vw, 150px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--starlight);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.landing__tag {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--starlight);
  opacity: 0.85;
}

.landing__now {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.landing__now a {
  color: var(--starlight);
  text-decoration: none;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 2px;
}

.landing__links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  padding: 72px 24px 96px;
}

.big-link {
  font-size: clamp(18px, 3vw, 26px);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: letter-spacing 0.15s ease;
}

.big-link:hover {
  border-bottom-color: var(--ink);
  letter-spacing: 0.04em;
}

/* ---------- glitch (hover the wordmark) ----------
   the only two colors in the whole catalog: seen + seen pt2 */

.glitch { position: relative; display: inline-block; }

.glitch:hover::before,
.glitch:hover::after {
  content: attr(data-text);
  white-space: pre;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  line-height: 0.9;
  overflow: hidden;
  text-shadow: none;
}

.glitch:hover::before {
  color: var(--pink);
  z-index: -1;
  animation: glitch-a 0.3s infinite linear alternate-reverse;
}

.glitch:hover::after {
  color: var(--peri);
  z-index: -2;
  animation: glitch-b 0.3s infinite linear alternate;
}

@keyframes glitch-a {
  0%   { transform: translate(-3px, 1px); clip-path: inset(20% 0 40% 0); }
  50%  { transform: translate(3px, -1px); clip-path: inset(60% 0 5% 0); }
  100% { transform: translate(-2px, 2px); clip-path: inset(5% 0 70% 0); }
}

@keyframes glitch-b {
  0%   { transform: translate(3px, -1px); clip-path: inset(50% 0 20% 0); }
  50%  { transform: translate(-3px, 1px); clip-path: inset(10% 0 60% 0); }
  100% { transform: translate(2px, -2px); clip-path: inset(70% 0 5% 0); }
}

/* ---------- generic page ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 100px;
}

.page--full {
  max-width: none;
  padding: 0 0 100px;
}

.page__head {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.page__title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 8px;
}

.page__sub {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-top: 1px solid var(--ink);
  padding-top: 10px;
  margin: 72px 0 28px;
}

/* ---------- music: one section per record ----------
   identity comes from the measured wash + accent and
   the artwork itself. the type stays the same everywhere. */

.project {
  --accent: var(--ink);   /* label, lines, links */
  --title: var(--ink);    /* title color = the cover's light tone */
  --pfont: var(--sans);   /* the project's own typeface */
  --wash: transparent;
  background: var(--wash);
  border-top: 1px solid var(--line);
  padding: 88px 24px;
}

/* inside a project section, everything speaks that project's font */
.project .project__label,
.project .project__desc,
.project .singles__label,
.project .single__date,
.project .track__num,
.project .track__title,
.project .track__soon,
.project .project__links a {
  font-family: var(--pfont);
}

.project__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 56px;
  align-items: start;
}

.project__cover img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
}

.project__label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 14px;
}

.project__title {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--title);
  margin-bottom: 18px;
}

.project__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 540px;
  margin-bottom: 36px;
}

.project__desc em {
  font-style: normal;
  color: var(--gray);
}

/* the records — washes/accents measured from the art,
   titles set in each project's own font */

.project--shame {
  --accent: var(--taupe);
  --title: var(--paper);
  --pfont: "Tobias", Georgia, serif;
  --wash: #262321;          /* shame's warm shadow tone, deepened */
}

.project--shame .project__title {
  font-family: var(--pfont);
  font-weight: 600;
  transition: letter-spacing 0.45s ease;
}

.project--shame .project__title:hover { letter-spacing: 0.06em; }

.project--ego {
  --accent: var(--ego);
  --title: var(--ego);
  --pfont: "Times New Roman", Times, serif;
  --wash: #181818;          /* ego is the only neutral black — no warmth */
}

.project--ego .project__title {
  font-family: var(--pfont);
  font-weight: 400;
}

.project--ego .project__title:hover { font-style: italic; }

.project--apathy {
  --accent: #7963d1;        /* the cover's violet mids */
  --title: #ccb4df;         /* pale lilac lights */
  --pfont: "Blue Screen", "Courier New", monospace;
  --wash: #1d2147;          /* deep indigo shadows, deepened */
}

.project--apathy .project__title {
  font-family: var(--pfont);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 58px);
}

.project--apathy .project__title:hover { animation: jitter 0.22s steps(2) infinite; }

.project--ftd {
  --accent: #b683e0;        /* the cover's purple, lifted for legibility */
  --title: #cff020;         /* the acid green figure */
  --pfont: "Horizon", "Archivo", sans-serif;
  --wash: #2a1c38;          /* dark purple shadows */
  text-transform: uppercase; /* horizon has no lowercase — stay true */
}

.project--ftd .project__title {
  font-family: var(--pfont);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 5vw, 56px);
}

.project--ftd .project__title:hover {
  font-family: "Horizon Outlined", "Archivo", sans-serif;
  animation: shake 0.3s linear infinite;
}

@keyframes jitter {
  0%   { transform: translate(1px, -1px); }
  50%  { transform: translate(-1px, 1px); }
  100% { transform: translate(1px, 1px); }
}

@keyframes shake {
  0%   { transform: translate(2px, 0) rotate(0.3deg); }
  25%  { transform: translate(-2px, 1px) rotate(-0.3deg); }
  50%  { transform: translate(1px, -1px) rotate(0.2deg); }
  75%  { transform: translate(-1px, 1px) rotate(-0.2deg); }
  100% { transform: translate(2px, 0) rotate(0.3deg); }
}

/* singles (inside the shame section) — color only, same type */

.singles__label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gray);
  margin-bottom: 14px;
}

.single {
  --sa: var(--ink);
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.single:first-of-type { border-top: 1px solid var(--line); }

.single__cover {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.single__name {
  display: block;
  font-family: "Tobias", Georgia, serif;  /* the singles live in shame's world */
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--sa);
  line-height: 1.1;
}

.single__date {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
}

.single--seen { --sa: var(--pink); }
.single--seen-pt2 { --sa: var(--peri); }
.single--star-time { --sa: var(--starlight); }

.single audio {
  width: 240px;
  height: 30px;
}

/* tracks */

.track {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.track:first-of-type { border-top: 1px solid var(--accent); }

.track__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.track__title { font-size: 15px; }

.track audio {
  width: 240px;
  height: 30px;
}

.track__soon {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  border: 1px dashed var(--gray);
  padding: 5px 10px;
}

.project__links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.project__links a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.project__links a:hover { border-bottom-color: var(--accent); }

/* ---------- media archive (era pages) ----------
   era sections reuse the .project--* washes/accents/fonts */

.era__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.era__sub {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.media-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 52px 0 16px;
}

.gallery {
  columns: 3 240px;
  column-gap: 14px;
}

.gallery figure {
  break-inside: avoid;
  margin: 0 0 14px;
}

.gallery a { display: block; }

.gallery img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
}

.gallery a:hover img { opacity: 0.85; }

.gallery video {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: #000;
}

.gallery figcaption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  margin-top: 6px;
}

/* ---------- projects (endeavors) page ---------- */

.endeavor {
  border-top: 1px solid var(--line);
  padding: 80px 24px;
}

.endeavor__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.endeavor__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.2em;
}

.endeavor__title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  margin: 10px 0 22px;
}

.endeavor__desc {
  font-size: 15px;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 40px;
}

.endeavor__desc em {
  font-style: normal;
  color: var(--gray);
}

.endeavor__desc a { color: inherit; }

.cover-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.cover-strip a { display: block; text-decoration: none; }

.cover-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}

.cover-strip a:hover img { transform: scale(1.04); }

.cover-strip figcaption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  margin-top: 8px;
}

.wide-still {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

/* ---------- embeds / placeholder slots ---------- */

.embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.embed-slot {
  border: 1px dashed var(--gray);
  padding: 40px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray);
}

/* ---------- merch grid ---------- */

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 48px 32px;
}

.product { text-align: center; }

.product__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}

.product:hover .product__img { transform: scale(1.03); }

.product__name {
  margin-top: 16px;
  font-size: 14px;
}

.product__price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

.product__btn {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: lowercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
}

.product__btn:hover { background: var(--ink); color: var(--bg); }

.product__btn.added { background: var(--added); border-color: var(--added); color: var(--ink); }

.product--soldout .product__img { opacity: 0.35; }

.product__soldout {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soldout);
  margin-top: 12px;
  display: inline-block;
  border: 1px solid var(--soldout);
  padding: 8px 20px;
}

/* ---------- cart ---------- */

.cart {
  margin-top: 96px;
  border: 1px solid var(--ink);
  padding: 32px;
}

.cart h2 {
  font-family: var(--mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.cart__empty {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gray);
}

.cart__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.cart__row button {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soldout);
  cursor: pointer;
}

.cart__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-weight: 700;
  padding-top: 16px;
  font-size: 15px;
}

.cart__checkout {
  margin-top: 24px;
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px;
  cursor: pointer;
}

.cart__checkout:hover { background: transparent; color: var(--ink); }

.cart__note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
}

/* ---------- contact ---------- */

.contact-block { max-width: 580px; }

.contact-block p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-email {
  display: inline-block;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  margin: 8px 0 32px;
}

.contact-list {
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2.2;
}

.contact-list span { color: var(--gray); display: inline-block; width: 130px; }

/* ---------- footer ---------- */

.footer {
  text-align: center;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--line);
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer__socials a {
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer__socials a:hover { border-bottom-color: var(--ink); }

.footer__copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
}

/* ---------- motion & play ----------
   apple-smooth easing + jpegmafia chaos on demand */

/* cross-fade between pages (modern browsers; harmless elsewhere) */
@view-transition { navigation: auto; }

/* slim dark scrollbar */
::-webkit-scrollbar { width: 10px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3c3833; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* everything drifts up as it enters the screen (js adds the classes) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* hero gets a parallax depth (js drives the transform) */
.hero__img { will-change: transform; }
.hero__content { will-change: transform, opacity; }

/* covers lean in when you look at them */
.project__cover img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project__cover:hover img { transform: scale(1.02) rotate(-0.6deg); }

.single__cover { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

.single:hover .single__cover { transform: scale(1.12) rotate(2deg); }

/* the ticker pauses on hover. click it to rewind (find out) */
.ticker { cursor: pointer; }

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker--reverse .ticker__track { animation-direction: reverse; }

/* big links slide */
.big-link { transition: letter-spacing 0.15s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }

.big-link:hover { transform: translateX(8px); }

/* buttons press down */
.product__btn,
.cart__checkout { transition: background 0.1s ease, color 0.1s ease, transform 0.12s ease; }

.product__btn:active,
.cart__checkout:active { transform: scale(0.95); }

/* cart count pops when something lands in it */
.nav__cart.pop { animation: cart-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes cart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35) rotate(-3deg); }
  100% { transform: scale(1); }
}

/* footer socials lift */
.footer__socials a { transition: transform 0.2s ease; display: inline-block; }

.footer__socials a:hover { transform: translateY(-3px); }

/* the row that's playing breathes */
.track.playing .track__num,
.single.playing .single__name { animation: breathe 1.1s ease-in-out infinite; }

@keyframes breathe { 50% { opacity: 0.35; } }

/* ---------- toast (for the easter eggs) ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  z-index: 10000;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- easter egg: sweezy mode (type "sweezy") ---------- */

body.sweezy-mode .ticker__track { animation-duration: 5s; }

body.sweezy-mode img,
body.sweezy-mode video { animation: huecycle 4s linear infinite; }

@keyframes huecycle { to { filter: hue-rotate(360deg); } }

body.sweezy-mode .glitch::before,
body.sweezy-mode .glitch::after {
  content: attr(data-text);
  white-space: pre;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  line-height: 0.9;
  overflow: hidden;
  text-shadow: none;
}

body.sweezy-mode .glitch::before {
  color: var(--pink);
  z-index: -1;
  animation: glitch-a 0.3s infinite linear alternate-reverse;
}

body.sweezy-mode .glitch::after {
  color: var(--peri);
  z-index: -2;
  animation: glitch-b 0.3s infinite linear alternate;
}

/* ---------- easter egg: the inversion (click the wordmark 5x) ---------- */

html.inverted { filter: invert(1); }

/* ---------- calm everything for reduced-motion folks ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- motion & play ----------
   the feel: apple's fluidity (long eased curves, scroll-driven
   reveals, parallax) x jpegmafia's chaos (glitch, inversion,
   hidden toys). everything respects prefers-reduced-motion. */

/* cross-fade between pages (modern browsers; harmless elsewhere) */
@view-transition { navigation: auto; }

:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

/* slim dark scrollbar */
::-webkit-scrollbar { width: 10px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3c3833; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* everything drifts up as it enters the screen (js adds the classes) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* hero parallax (js drives the transforms) */
.hero__img { will-change: transform; }
.hero__content { will-change: transform, opacity; }

/* covers lean in when you look at them */
.project__cover img {
  transition: transform 0.6s var(--ease-out);
}

.project__cover:hover img {
  transform: scale(1.025) rotate(-0.6deg);
}

.single__cover { transition: transform 0.4s var(--ease-out); }

.single:hover .single__cover { transform: scale(1.14) rotate(2deg); }

/* gallery pieces breathe */
.gallery a img { transition: transform 0.5s var(--ease-out), opacity 0.3s ease; }

.gallery a:hover img { transform: scale(1.02); }

/* a row glows while its track is playing */
.track.playing .track__num,
.single.playing .single__name {
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.35; } }

/* the ticker pauses on hover. clicking it rewinds it. */
.ticker { cursor: pointer; }

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker--reverse .ticker__track { animation-direction: reverse; }

/* big links slide */
.big-link { transition: letter-spacing 0.2s var(--ease-out), transform 0.3s var(--ease-out); }

.big-link:hover { transform: translateX(8px); }

/* buttons press down */
.product__btn,
.cart__checkout { transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease; }

.product__btn:active,
.cart__checkout:active { transform: scale(0.95); }

/* cart count pops when something lands in it */
.nav__cart.pop { animation: cart-pop 0.4s var(--ease-out); }

@keyframes cart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4) rotate(-4deg); }
  100% { transform: scale(1); }
}

/* footer socials lift */
.footer__socials a { transition: transform 0.25s var(--ease-out); display: inline-block; }

.footer__socials a:hover { transform: translateY(-3px); }

/* ---------- toast (the easter eggs talk through this) ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  z-index: 10000;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- easter egg: sweezy mode (type "sweezy") ---------- */

body.sweezy-mode .ticker__track { animation-duration: 5s; }

body.sweezy-mode img,
body.sweezy-mode video {
  animation: huecycle 4s linear infinite;
}

@keyframes huecycle {
  to { filter: hue-rotate(360deg); }
}

body.sweezy-mode .glitch::before,
body.sweezy-mode .glitch::after {
  content: attr(data-text);
  white-space: pre;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  line-height: 0.9;
  overflow: hidden;
  text-shadow: none;
}

body.sweezy-mode .glitch::before {
  color: var(--pink);
  z-index: -1;
  animation: glitch-a 0.3s infinite linear alternate-reverse;
}

body.sweezy-mode .glitch::after {
  color: var(--peri);
  z-index: -2;
  animation: glitch-b 0.3s infinite linear alternate;
}

/* ---------- easter egg: the inversion (click the wordmark 5x) ---------- */

html.inverted { filter: invert(1); }

/* ---------- calm down for reduced-motion folks ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .project__inner { grid-template-columns: 1fr; gap: 32px; }
  .project__cover { max-width: 420px; }
  .track { grid-template-columns: 24px 1fr; }
  .track audio { width: 100%; }
  .track__player { grid-column: 2; }
  .single { grid-template-columns: 64px 1fr; }
  .single audio { width: 100%; }
  .single__player { grid-column: 2; }
  .cart { padding: 20px; }
}
