/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ EVERY HOMIE DEAD â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --bg: #0a0a0a;
  --bg-2: #121010;
  --ink: #ece6dc;
  --muted: #8a847b;
  --line: #2a2525;
  --red: #b3121b;
  --red-hot: #e01e2a;
  --font-black: "UnifrakturMaguntia", "Pirata One", serif;
  --font-head: "Pirata One", serif;
  --font-body: "Space Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 84px; /* room for the player */
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--red); color: var(--ink); }

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

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ Shared bits â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  display: inline-block; padding: 14px 28px; border: 1px solid var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn--red:hover { background: var(--red-hot); border-color: var(--red-hot); color: var(--ink); }

.web { position: absolute; width: clamp(160px, 28vw, 380px); opacity: .18; pointer-events: none; z-index: 1; }
.web--tl { top: 0; left: 0; }
.web--tr { top: 0; right: 0; transform: scaleX(-1); }
.web--br { bottom: 0; right: 0; transform: scale(-1, -1); }
.web--small { width: clamp(120px, 18vw, 240px); opacity: .12; }

.wordmark { font-family: var(--font-black); font-weight: 400; line-height: .9; text-transform: none; }
.wordmark__img { max-width: min(560px, 86vw); margin: 0 auto; }
.wordmark__img + .wordmark__text { display: none; } /* real logo loaded â†’ hide text fallback */
.wordmark__text { display: block; text-shadow: 0 0 30px rgba(179, 18, 27, .35); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ Gate â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at center, #1a0d0e 0%, var(--bg) 70%);
  transition: opacity .8s ease, visibility .8s;
}
.gate.is-gone { opacity: 0; visibility: hidden; }
.gate__inner { position: relative; z-index: 2; padding: var(--gutter); }
.gate .wordmark { font-size: clamp(64px, 16vw, 150px); margin-bottom: 18px; }
.gate__tag { font-size: 14px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.gate__tag em { color: var(--red-hot); font-style: normal; }
.gate__mute { display: block; margin: 18px auto 0; font-size: 12px; color: var(--muted); text-decoration: underline; letter-spacing: .1em; }
.gate__mute:hover { color: var(--ink); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ Nav â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  background: linear-gradient(var(--bg), rgba(10, 10, 10, 0)); transition: background .3s;
}
.nav.is-solid { background: rgba(10, 10, 10, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.nav__logo { font-family: var(--font-black); font-size: 30px; text-decoration: none; color: var(--red-hot); }
.nav__links { display: flex; gap: 32px; }
.nav__links a { text-decoration: none; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--red-hot); transition: right .25s; }
.nav__links a:hover::after { right: 0; }
.nav__toggle { display: none; width: 32px; height: 32px; position: relative; }
.nav__toggle span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 11px; }
.nav__toggle span:last-child { top: 19px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 15px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 15px; transform: rotate(-45deg); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ Hero â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 38% at 50% 100%, rgba(179, 18, 27, .55) 0%, rgba(90, 14, 20, .35) 40%, transparent 75%),
    radial-gradient(ellipse at 50% 30%, #1c1012 0%, var(--bg) 65%);
}
/* Moon: gives the crows and the graveyard silhouettes something to read against */
.hero::before {
  content: ""; position: absolute; top: 14%; right: 14%; width: clamp(90px, 13vw, 180px); aspect-ratio: 1; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 40% 38%, #efe6d6 0%, #cfc3ae 55%, #9d927f 100%);
  box-shadow: 0 0 60px 18px rgba(236, 230, 220, .14), 0 0 160px 60px rgba(179, 18, 27, .12);
  opacity: .82;
}
.hero__inner { position: relative; z-index: 3; padding: 96px var(--gutter) 200px; }
.wordmark--hero { font-size: clamp(56px, 11vw, 150px); margin-bottom: 24px; }
.hero__tag { font-family: var(--font-head); font-size: clamp(28px, 4.5vw, 52px); line-height: 1.05; color: var(--red-hot); margin-bottom: 40px; }
.hero__tag span { color: var(--ink); }
.graveyard { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(120px, 20vw, 240px); object-fit: cover; object-position: bottom; z-index: 2; pointer-events: none; }
.fog {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 45%; z-index: 2; pointer-events: none; opacity: .85;
  background:
    radial-gradient(ellipse 30% 40% at 20% 80%, rgba(236, 230, 220, .12), transparent 70%),
    radial-gradient(ellipse 35% 45% at 60% 90%, rgba(236, 230, 220, .1), transparent 70%),
    radial-gradient(ellipse 25% 35% at 85% 75%, rgba(236, 230, 220, .08), transparent 70%);
  animation: fog 40s linear infinite alternate;
}
@keyframes fog { to { transform: translateX(25%); } }

.crows { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.crow { position: absolute; width: 70px; opacity: 0; filter: drop-shadow(0 0 1px rgba(236, 230, 220, .25)); }
.crow--1 { top: 18%; animation: fly 22s linear infinite; }
.crow--2 { top: 28%; width: 46px; animation: fly 28s linear 7s infinite; }
.crow--3 { top: 12%; width: 34px; animation: fly 34s linear 15s infinite; }
@keyframes fly {
  0%   { transform: translate(-120px, 0) rotate(-4deg); opacity: 0; }
  5%   { opacity: .9; }
  50%  { transform: translate(55vw, -30px) rotate(3deg); }
  95%  { opacity: .9; }
  100% { transform: translate(calc(100vw + 120px), 10px) rotate(-2deg); opacity: 0; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ Marquee â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.marquee { background: var(--red); overflow: hidden; border-block: 1px solid #000; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--font-head); font-size: 26px; white-space: nowrap; padding: 8px 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ Sections â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section { position: relative; padding: clamp(64px, 10vw, 120px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; position: relative; z-index: 2; }
.section__title { font-family: var(--font-head); font-weight: 400; font-size: clamp(44px, 7vw, 80px); line-height: 1; }
.section__title--red { color: var(--red-hot); }
.section__sub { color: var(--muted); max-width: 420px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Product grid (placeholder cards + Shopify buy-button output both land here) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 24px; }
.card { position: relative; display: block; text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--red); transform: translateY(-4px); }
.card.is-hidden { display: none; }
.card__img { aspect-ratio: 1; overflow: hidden; background: radial-gradient(circle at 50% 45%, #3a2a2b 0%, #1a1515 55%, var(--bg-2) 80%); }
.card__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .5s; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.card__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card__price { color: var(--red-hot); font-weight: 700; white-space: nowrap; }
.card__tag { position: absolute; top: 12px; left: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 4px 8px; }

/* Shopify Buy Button SDK (rendered with iframe:false so this CSS applies) */
.grid .shopify-buy__collection-products { display: contents; }
.grid .shopify-buy__product { background: var(--bg-2); border: 1px solid var(--line); padding: 0 0 16px; margin: 0 !important; width: auto !important; transition: border-color .25s; }
.grid .shopify-buy__product:hover { border-color: var(--red); }
.grid .shopify-buy__product-img-wrapper { aspect-ratio: 1; overflow: hidden; margin-bottom: 14px; }
.grid .shopify-buy__product-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.grid .shopify-buy__product__title { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 0 16px; color: var(--ink); }
.grid .shopify-buy__product__price { padding: 4px 16px 10px; color: var(--red-hot); font-weight: 700; }
.grid .shopify-buy__option-select, .grid .shopify-buy__btn-wrapper { padding: 0 16px; }
.grid select { width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: 8px; font: inherit; margin-bottom: 10px; }
.grid .shopify-buy__btn, .shopify-buy__btn { width: 100%; background: var(--red) !important; color: var(--ink) !important; border: 0; border-radius: 0 !important; padding: 12px; font-family: var(--font-body) !important; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; }
.shopify-buy__btn:hover { background: var(--red-hot) !important; }
.shopify-buy__collection-pagination-button { grid-column: 1 / -1; }

.shop__note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; text-align: center; padding-top: 12px; }
.shop__note a { color: var(--red-hot); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ Art gallery â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gallery { columns: 2 280px; column-gap: 20px; position: relative; z-index: 2; max-width: 960px; }
.gallery figure { break-inside: avoid; margin-bottom: 20px; background: var(--bg-2); border: 1px solid var(--line); cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; transition: transform .5s, filter .5s; filter: grayscale(.2) contrast(1.05); }
.gallery figure:hover img { transform: scale(1.03); filter: none; }
.gallery figcaption { padding: 10px 14px; font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.gallery .art-empty { aspect-ratio: 4 / 5; display: grid; place-items: center; font-family: var(--font-black); font-size: 64px; color: #221d1d; cursor: default; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 5, 5, .96); display: grid; place-items: center; padding: 48px var(--gutter); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; width: auto; }
.lightbox p { margin-top: 14px; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .15em; font-size: 12px; }
.lightbox__close { position: absolute; top: 20px; right: 24px; font-size: 24px; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ About â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.about { text-align: center; }
.about__inner { max-width: 640px; margin: 0 auto; display: grid; gap: 28px; justify-items: center; }
.about p { color: var(--muted); font-size: 16px; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer { position: relative; padding-top: 140px; background: radial-gradient(ellipse 80% 120px at 50% 140px, rgba(179, 18, 27, .45), transparent 75%), linear-gradient(var(--bg), #050505); }
.graveyard--footer { top: 0; bottom: auto; transform: scaleX(-1); height: 140px; opacity: .9; }
.footer__inner { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding: 32px var(--gutter); border-top: 1px solid var(--line); background: #050505; }
.footer__mark { font-family: var(--font-black); font-size: 26px; }
.footer nav { display: flex; gap: 24px; }
.footer nav a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.footer nav a:hover { color: var(--ink); }
.footer small { color: var(--muted); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ Player â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.player {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(380px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: rgba(14, 12, 12, .95); border: 1px solid var(--line); backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}
.player__btn { width: 30px; height: 30px; font-size: 13px; color: var(--muted); flex: none; transition: color .2s; }
.player__btn:hover { color: var(--ink); }
.player__btn--main { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: var(--ink); font-size: 14px; }
.player__btn--main:hover { background: var(--red-hot); }
.player__meta { flex: 1; min-width: 0; padding-left: 6px; }
.player__artist { display: block; font-family: var(--font-head); font-size: 18px; line-height: 1; text-decoration: none; color: var(--red-hot); }
.player__title { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__bar { height: 2px; background: var(--line); margin-top: 6px; }
.player__bar div { height: 100%; width: 0; background: var(--red-hot); transition: width .3s linear; }
.player__vol { width: 64px; accent-color: var(--red); flex: none; }
.player__frame { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.player.is-playing .player__btn--main { box-shadow: 0 0 0 0 rgba(224, 30, 42, .6); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(224, 30, 42, 0); } }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€ Mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10, 10, 10, .98); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav__links.is-open { max-height: 320px; }
  .nav__links a { padding: 18px var(--gutter); border-top: 1px solid var(--line); }
  .player__vol { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { flex-direction: column; gap: 2px; padding: 10px 12px; }
  .card__title { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
