/* Sycamore — demo. Carbon, ivory, red. Logo alone; one idea per screen. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Chomsky"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/chomsky.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cinzel Decorative"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/cinzel-decorative-black.woff2") format("woff2"); }

:root {
  --bg: #141513;
  --fg: #e4dfd0;
  --muted: #9a9688;
  --line: #4a4b46;
  --accent: #d10f1d;
  --caret: #c4a035;
  --font: "Archivo", Helvetica, Arial, sans-serif;
  --display: "Chomsky", "Times New Roman", serif;
  --pad: clamp(1rem, 3vw, 2rem);
  --bar: 3.25rem;
  --rail: 3.25rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: url("/img/grain.png"); background-size: 180px 180px;
  opacity: 0.05; mix-blend-mode: overlay;
}
@media (prefers-contrast: more) { body::before { display: none; } }
img { max-width: 100%; display: block; }
a { color: var(--fg); text-decoration: none; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 0.75rem; top: -3.5rem; z-index: 200;
  background: var(--fg); color: var(--bg); padding: 0.4rem 0.65rem;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— Sticky nav: four text links, nothing else ——— */
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--pad);
  background: rgba(20, 21, 19, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-mark { display: block; height: 2.35rem; opacity: 0; transition: opacity 0.3s ease; }
.topbar-mark img { height: 100%; width: auto; }
body.scrolled .topbar-mark,
body:not(.page-home) .topbar-mark { opacity: 1; }
.menu {
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem);
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.menu a { position: relative; padding: 0.4rem 0; color: var(--muted); transition: color 0.2s ease; }
.menu a:hover, .menu a.is-active, .menu a.is-current { color: var(--fg); }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.menu a.is-active::after, .menu a.is-current::after { transform: scaleX(1); }

#top, .mixes, .sore { scroll-margin-top: var(--bar); }

/* ——— 1. Hero: the logo alone ——— */
.mast {
  position: relative;
  min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar));
  display: flex; align-items: center; justify-content: center;
  padding: 2rem var(--pad) 5rem;
}
.brand { margin: 0; display: flex; justify-content: center; width: 100%; }
.logo { width: min(58vw, 54rem); height: auto; max-height: 48vh; object-fit: contain; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; width: 2.5rem; height: 3.2rem;
  transform: translateX(-50%); display: flex; justify-content: center;
}
.scroll-cue span { display: block; width: 1px; height: 100%; background: linear-gradient(var(--line), var(--muted)); transition: background 0.2s ease; }
.scroll-cue:hover span { background: var(--fg); }

/* ——— 2. Mixes: a catalog on the field ——— */
.mixes {
  position: relative;
  min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar));
  padding: clamp(4rem, 12vh, 8rem) var(--pad) clamp(4rem, 12vh, 8rem) calc(var(--rail) + clamp(1.5rem, 5vw, 5rem));
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
}
.section-title {
  position: absolute; top: 0; bottom: 0; left: 0; margin: 0; width: var(--rail);
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1;
  box-shadow: -1px 0 0 var(--line);
}
.archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4.5vw, 4.5rem);
  width: min(100%, 66rem);
}
.set { display: contents; }

.entry {
  position: relative; grid-row: 1;
  display: flex; flex-direction: column; align-items: stretch; gap: 1.1rem;
  margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  min-width: 0; width: 100%;
}
.thumb { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.thumb-soon { display: block; background: transparent; border: 1px solid var(--line); }
.meta { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.num {
  display: block; width: fit-content; max-width: 100%;
  margin: 0; padding: 0; border: 0; background: none; color: var(--fg);
  font-family: var(--font); font-weight: 800; font-stretch: 80%;
  font-size: clamp(3.5rem, 6.5vw, 5.75rem); letter-spacing: -0.055em; line-height: 0.8;
  text-align: left; white-space: nowrap; cursor: default;
}
button.num { cursor: pointer; transition: color 0.2s ease; }
button.num:hover, button.num:focus-visible,
button.num[aria-expanded="true"] { color: var(--accent); }
.is-soon .num { color: var(--muted); cursor: default; }
.cap {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.cap-link { align-self: flex-start; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.cap-link:hover, .cap-link:focus-visible { color: var(--fg); text-decoration-color: var(--fg); }
.play-cue {
  position: absolute; right: 0; bottom: 0;
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.play-cue::after {
  content: ""; width: 0.4rem; height: 0.4rem;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.3s ease;
}
.entry:has(button.num:hover) .play-cue, .entry:has(button.num[aria-expanded="true"]) .play-cue { color: var(--fg); }
.entry:has(button.num[aria-expanded="true"]) .play-cue::after { transform: rotate(-135deg) translateY(-2px); }

/* the inline player opens full-width under the row, slowly */
.drop {
  grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s ease;
}
#drop-0002 { grid-row: 2; }
#drop-0001 { grid-row: 3; }
.drop[hidden] { display: none; }
.drop.is-open { grid-template-rows: 1fr; }
.drop-inner { overflow: hidden; min-height: 0; border-top: 1px solid var(--line); margin-top: 0; }
.drop.is-open .drop-inner { margin-top: 2rem; }
.wave-player { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem; padding: 1.4rem 0 0.4rem; }
.wp-toggle {
  width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--fg); border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wp-toggle:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.wave-player.is-playing .wp-toggle { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.wp-icon { width: 0.95rem; height: 0.95rem; fill: currentColor; display: none; }
.wp-icon-play { display: block; margin-left: 2px; }
.wave-player.is-playing .wp-icon-play { display: none; }
.wave-player.is-playing .wp-icon-pause { display: block; }
.wave-player.is-loading .wp-icon-play, .wave-player.is-loading .wp-icon-pause { display: none; }
.wave-player.is-loading .wp-icon-load { display: block; animation: wp-spin 0.9s linear infinite; }
@keyframes wp-spin { to { transform: rotate(360deg); } }
.wp-wave { position: relative; height: 48px; cursor: pointer; touch-action: none; }
.wp-wave canvas { display: block; width: 100%; height: 100%; }
.wp-time { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.wp-cur { color: var(--fg); }
.wp-sep { margin: 0 0.3em; }
.wp-engine { position: absolute; left: -9999px; top: 0; width: 320px; height: 166px; overflow: hidden; opacity: 0; pointer-events: none; }
.wp-engine iframe { width: 320px; height: 166px; border: 0; }

/* ——— 3. SORE: typography, one idea ——— */
.sore {
  min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar));
  display: flex; align-items: center;
  padding: clamp(4rem, 12vh, 8rem) var(--pad) clamp(4rem, 12vh, 8rem) calc(var(--rail) + clamp(1.5rem, 5vw, 5rem));
  border-top: 1px solid var(--line);
}
.sore-stack { max-width: 40rem; }
.kicker { margin: 0 0 1.4rem; font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.sore-title {
  margin: 0 0 1.6rem; display: inline-flex; align-items: baseline;
  font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 500;
  font-size: clamp(6rem, 17vw, 13rem); letter-spacing: -0.02em; line-height: 0.82; color: var(--fg);
  overflow: visible;
}
.cursor {
  display: inline-block;
  width: 0.038em;
  height: 0.64em;
  margin-left: 0.05em;
  flex: 0 0 auto;
  align-self: baseline;
  background: var(--caret);
  border-radius: 0;
  animation: sore-caret 1.6s steps(1, end) infinite;
}
@keyframes sore-caret {
  0%, 58% { opacity: 1; }
  59%, 100% { opacity: 0; }
}
.sore-meta {
  margin: 0 0 1.6rem; display: flex; gap: 1.5rem;
  font-family: "Cinzel Decorative", "Times New Roman", serif;
  font-size: 11px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.sore-note { margin: 0 0 2.4rem; max-width: 28em; font-size: 16px; line-height: 1.6; color: var(--fg); }
.shop { margin: 0; display: inline-flex; gap: 1.5rem; align-items: baseline; padding-bottom: 0.5rem; border-bottom: 1px solid var(--fg); font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.avail { color: var(--muted); font-weight: 600; }

/* ——— Inner pages: Listen + Contact ——— */
.listen, .contact {
  min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar));
  display: flex; flex-direction: column; align-items: center; padding: clamp(4rem, 14vh, 9rem) var(--pad) 5rem;
}
.page-title {
  margin: 0 0 clamp(2rem, 5vh, 3.25rem); font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: 0; text-align: center;
}
.platforms { list-style: none; margin: 0; padding: 0; text-align: center; display: flex; flex-direction: column; gap: 0.35rem; }
.platforms a, .platforms .is-soon {
  display: inline-block; padding: 0.35rem 0; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em;
}
.platforms a { color: var(--fg); position: relative; }
.platforms a span:first-child { background: linear-gradient(var(--fg), var(--fg)) left bottom / 0 1px no-repeat; transition: background-size 0.3s ease; padding-bottom: 3px; }
.platforms a:hover span:first-child, .platforms a:focus-visible span:first-child { background-size: 100% 1px; }
.platforms-soon { margin-top: 2.2rem; }
.platforms .is-soon { color: var(--muted); cursor: default; }
.platforms .is-soon em { margin-left: 0.7rem; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8; }
.dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 3rem; }

.contact-list { list-style: none; margin: 0; padding: 0; width: min(100%, 34rem); border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list .label { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact-list li > span:last-child { font-size: 17px; }
.contact-list a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color 0.2s ease; }
.contact-list a:hover { text-decoration-color: var(--fg); }
.soon-text { color: var(--muted); }

/* ——— Small screens ——— */
@media (max-width: 860px) {
  :root { --rail: 0px; --bar: 3rem; }
  .menu { font-size: 9.5px; letter-spacing: 0.16em; gap: 0.95rem; }
  .topbar-mark { height: 1.85rem; }
  .logo { width: 82vw; max-height: 36vh; }
  .mixes { padding: 4rem var(--pad) 4rem; justify-content: flex-start; }
  .section-title {
    position: static; width: auto; writing-mode: horizontal-tb; transform: none; box-shadow: none;
    justify-content: flex-start; margin: 0 0 2rem; font-size: 2.2rem;
  }
  .archive { grid-template-columns: 1fr; row-gap: 0; }
  .entry { grid-row: auto; flex-direction: row; align-items: center; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
  .entry:first-child { border-top: 1px solid var(--line); }
  .num { font-size: clamp(2.75rem, 13vw, 3.75rem); }
  .thumb { width: 5.5rem; flex: 0 0 auto; }
  .play-cue { bottom: auto; top: 50%; transform: translateY(-50%); }
  #drop-0002, #drop-0001 { grid-row: auto; }
  .drop-inner { border-top: 0; }
  .drop.is-open .drop-inner { margin-top: 0; }
  .wave-player { grid-template-columns: auto 1fr; gap: 0.4rem 0.9rem; padding: 1rem 0 1.2rem; }
  .wp-time { grid-column: 2; justify-self: end; }
  .wp-wave { height: 42px; }
  .sore { padding: 4rem var(--pad); }
  .sore-title { font-size: clamp(5.5rem, 30vw, 8rem); }
  .sore-note { font-size: 15px; }
  .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drop, .topbar-mark, .play-cue::after, .menu a::after { transition: none !important; }
  .cursor { animation: none; opacity: 1; }
}

/* ——— Site loader: glowing planet, first visit per session ——— */
.site-loader {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}
.site-loader-media {
  display: block;
  width: min(72vw, 68vh, 500px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #000;
  -webkit-mask-image: radial-gradient(circle, #000 64%, transparent 86%);
  mask-image: radial-gradient(circle, #000 64%, transparent 86%);
}
html.loader-seen .site-loader,
html.loader-done .site-loader {
  opacity: 0; visibility: hidden; pointer-events: none;
}

/* ——— Brand-red hover on links, icons, and buttons ——— */
a:not(.skip-link),
button.wp-toggle {
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, text-decoration-color 0.2s ease, fill 0.2s ease, outline-color 0.2s ease;
}
a:not(.skip-link):hover,
a:not(.skip-link):focus-visible {
  color: var(--accent);
}
a:not(.skip-link):hover svg,
a:not(.skip-link):focus-visible svg {
  fill: currentColor;
  color: var(--accent);
}
.menu a:hover,
.menu a:focus-visible,
.menu a.is-active:hover,
.menu a.is-current:hover,
.menu a.is-active:focus-visible,
.menu a.is-current:focus-visible {
  color: var(--accent);
}
.menu a:hover::after,
.menu a:focus-visible::after {
  background: var(--accent);
  transform: scaleX(1);
}
.cap-link:hover,
.cap-link:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.scroll-cue:hover span,
.scroll-cue:focus-visible span {
  background: var(--accent);
}
.wp-toggle:hover,
.wp-toggle:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--fg);
}
.entry:has(button.num:hover) .play-cue,
.entry:has(button.num:focus-visible) .play-cue,
.entry:has(button.num[aria-expanded="true"]) .play-cue {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .site-loader { transition: none; }
}
