/* ============================================================
   2X — AOCD
   palette: crimson / matrix green / pitch black
   ============================================================ */

:root {
  --red:    #BD0906;
  --green:  #00FF33;
  --black:  #000000;
  --white:  #F2F2F2;
  --dim:    #707070;
  --rule:   #1a1a1a;

  --font-display: 'Major Mono Display', ui-monospace, monospace;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --pad-x: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--red); color: var(--white); }

/* Keyboard-only focus ring — visible but on-brand */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.cta-presave:focus-visible,
.inquiry__send:focus-visible {
  outline-offset: 5px;
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 28px;
  background: var(--black);
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--red);
  border-top: 1px solid var(--red);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  animation: marquee 22s linear infinite;
}
.marquee__track span { padding-right: 1ch; }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 80px 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  /* When the moving cover is ready, save it as
     images/backgroundcoverhome.gif and change .jpg → .gif below.
     One-character swap. */
  background-image: url('../images/backgroundcoverhome.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* subtle drift to feel "live" until you swap in a gif */
  animation: drift 18s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes drift {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* Lighter overlay — let the red cover come through.
   Stronger top/bottom vignette for marquee + CTA contrast. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.40) 70%,
      rgba(0,0,0,0.75) 100%
    ),
    linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.10) 30%,
      rgba(0,0,0,0.20) 70%,
      rgba(0,0,0,0.70) 100%
    );
  z-index: -1;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--green);
  text-transform: uppercase;
  /* keep tag readable on bright red */
  text-shadow: 0 0 4px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,1);
}
.hero__tag .dot {
  width: 8px; height: 8px;
  background: var(--green);
  display: inline-block;
  animation: blink 1.4s steps(2, end) infinite;
  box-shadow: 0 0 8px var(--green);
}
@keyframes blink {
  50% { opacity: 0.2; }
}

/* AOCD title — black hand-drawn ink on transparent.
   Treatment: thin white inner edge for legibility +
   crimson outer glow that integrates with the cover lighting +
   slight black drop for grounding. */
.hero__title {
  width: clamp(260px, 70vw, 720px);
  height: auto;
  user-select: none;
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,0.95))
    drop-shadow(0 0 2px rgba(255,255,255,0.7))
    drop-shadow(0 0 14px rgba(189, 9, 6, 0.85))
    drop-shadow(0 6px 0 rgba(0,0,0,0.55));
  /* very subtle glitch — don't overdo */
  animation: micro-shift 6s steps(20, end) infinite;
}
@keyframes micro-shift {
  0%, 88%, 100% { transform: translate(0,0); }
  90%           { transform: translate(-1px, 1px); }
  92%           { transform: translate(1px, -1px); }
  94%           { transform: translate(-1px, 0); }
}

/* PRESAVE — the loudest thing on the page.
   On a red cover it needs hard separation: thick black border + offset shadow. */
.cta-presave {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 48px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.15em;
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  transition: transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
  position: relative;
  z-index: 1;
}
.cta-presave:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--green);
  background: var(--black);
  color: var(--red);
  border-color: var(--green);
}
.cta-presave__arrow { transition: transform .15s ease; }
.cta-presave:hover .cta-presave__arrow { transform: translateX(6px); }

/* DISCORD — filled green ticket bottom-left */
.discord-box {
  position: absolute;
  bottom: 28px;
  left: var(--pad-x);
  border: 2px solid var(--green);
  padding: 10px 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--green);
  color: var(--black);
  transition: background .12s ease, color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.discord-box:hover {
  background: transparent;
  color: var(--green);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--green);
}
.discord-box__label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: inherit;
}
.discord-box__sub {
  font-size: 9px;
  letter-spacing: 0.15em;
  opacity: 0.75;
  margin-top: 2px;
  color: inherit;
}

/* GAME — filled red ticket bottom-right, mirrors Discord */
.game-box {
  position: absolute;
  bottom: 28px;
  right: var(--pad-x);
  border: 2px solid var(--red);
  padding: 10px 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--red);
  color: var(--white);
  transition: background .12s ease, color .12s ease, transform .12s ease, box-shadow .12s ease;
  text-align: right;
}
.game-box:hover {
  background: transparent;
  color: var(--red);
  transform: translate(2px, -2px);
  box-shadow: -4px 4px 0 var(--red);
}
.game-box__label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: inherit;
}
.game-box__sub {
  font-size: 9px;
  letter-spacing: 0.15em;
  opacity: 0.85;
  margin-top: 2px;
  color: inherit;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 0 var(--pad-x);
  margin: 0 auto 36px;
  max-width: var(--maxw);
}
.section-head__num {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.04em;
  color: var(--white);
}
.section-head__rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ============================================================
   TRACKLIST
   ============================================================ */
.tracklist {
  padding: 100px 0 80px;
  border-top: 1px solid var(--rule);
}
.tracks {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
}
.track {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  grid-template-areas:
    "num title time"
    "num note  note";
  column-gap: 24px;
  row-gap: 4px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .12s ease, padding .12s ease;
}
.track:hover {
  background: linear-gradient(90deg, rgba(189,9,6,0.08), transparent 80%);
  padding-left: 12px;
}
.track__num {
  grid-area: num;
  color: var(--red);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
}
.track__title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.04em;
  color: var(--white);
}
.track__time {
  grid-area: time;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.1em;
  align-self: center;
}
.track__time:empty { display: none; }
.track__note {
  grid-area: note;
  margin: 0;
  font-size: 13px;
  color: var(--dim);
  max-width: 720px;
  line-height: 1.6;
}
.track__note:empty { display: none; }

/* ============================================================
   FOLLOW GRID
   ============================================================ */
.follow {
  padding: 100px 0 80px;
  border-top: 1px solid var(--rule);
}
.follow__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.follow__tile {
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px 18px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  transition: background .12s ease, color .12s ease;
}
.follow__tile svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: fill .12s ease;
}
.follow__tile:hover {
  background: var(--red);
  color: var(--white);
}

/* ============================================================
   SHOP
   ============================================================ */
.shop {
  padding: 100px 0 80px;
  border-top: 1px solid var(--rule);
}
.shop__note {
  max-width: var(--maxw);
  margin: -20px auto 36px;
  padding: 0 var(--pad-x);
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.shop__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Two-item layout: narrower max-width so tiles don't stretch huge */
.shop__grid--two {
  max-width: 800px;
  grid-template-columns: repeat(2, 1fr);
}
.shop__item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  transition: border-color .12s ease, transform .12s ease;
}
.shop__item:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}
.shop__art {
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(45deg, #0a0a0a 0 8px, #050505 8px 16px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shop__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.shop__item:hover .shop__art img {
  transform: scale(1.03);
}
.shop__art::after {
  content: attr(data-placeholder);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.2em;
}
.shop__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--rule);
}
.shop__name {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--white);
}
.shop__cta {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--green);
}

/* ============================================================
   INQUIRY FORM
   ============================================================ */
.inquiry {
  padding: 100px 0 80px;
  border-top: 1px solid var(--rule);
}
.inquiry__note {
  max-width: var(--maxw);
  margin: -20px auto 36px;
  padding: 0 var(--pad-x);
  color: var(--dim);
  font-size: 13px;
}
.inquiry__form {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.inquiry__field { display: flex; flex-direction: column; gap: 8px; }
.inquiry__label {
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.inquiry__form input,
.inquiry__form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--green);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .12s ease, background .12s ease;
}
.inquiry__form input:focus,
.inquiry__form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(0,255,51,0.03);
}
.inquiry__send {
  align-self: flex-start;
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  padding: 14px 32px;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.inquiry__send:hover {
  background: var(--red);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--green);
}
.inquiry__send:disabled {
  opacity: 0.5;
  cursor: wait;
}
.inquiry__status {
  font-size: 12px;
  letter-spacing: 0.05em;
  min-height: 18px;
}
.inquiry__status[data-state="ok"]   { color: var(--green); }
.inquiry__status[data-state="err"]  { color: var(--red); }
.inquiry__status[data-state="info"] { color: var(--dim); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--rule);
  padding: 28px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--dim);
}
.foot a { transition: color .12s ease; }
.foot a:hover { color: var(--green); }
.foot__dot { color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .follow__grid,
  .shop__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-presave {
    padding: 18px 32px;
    font-size: 15px;
    box-shadow: 4px 4px 0 var(--black);
  }
  .cta-presave:hover {
    box-shadow: 6px 6px 0 var(--green);
  }
}

/* iPhone fix: extra bottom space on hero so the absolutely-positioned
   Discord + Game tickets can never overlap the LISTEN NOW button on
   short viewports. */
@media (max-width: 640px) {
  .hero {
    padding: 50px 0 130px;
  }
  .discord-box,
  .game-box {
    bottom: 22px;
  }
  /* Two-item shop grid stays 2 across on tablets */
  .shop__grid--two { grid-template-columns: repeat(2, 1fr); }
}

/* Very narrow phones (iPhone SE 1st gen 320px etc.) — shrink both tickets
   so they don't collide */
@media (max-width: 380px) {
  .discord-box,
  .game-box {
    padding: 6px 10px;
  }
  .discord-box__label,
  .game-box__label { font-size: 10px; }
  .discord-box__sub,
  .game-box__sub { font-size: 8px; }
}

@media (max-width: 540px) {
  .follow__grid { grid-template-columns: 1fr; }
  /* Shop stays 2-col on mobile so tiles don't blow up huge */
  .shop__grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop__grid--two { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop__name { font-size: 10px; letter-spacing: 0.08em; }
  .shop__cta { font-size: 10px; }
  .shop__meta { padding: 10px 12px; }
  .track {
    grid-template-columns: 40px 1fr auto;
    column-gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .hero__bg,
  .hero__title,
  .hero__tag .dot { animation: none; }
}
