:root {
  --bg: #0b0b0d;
  --bg-soft: #141417;
  --text: #ededed;
  --muted: #8d8d93;
  --accent: #b31b1b;
  --line: rgba(237, 237, 237, 0.12);
  --font-display: "Cinzel", serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.hero,
.page-top,
.site-foot {
  width: 100%;
}

.hero,
.page-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  padding: 2.4rem 1.25rem 0.4rem;
  perspective: 900px;
}

.hero a:has(.sigil-img) {
  display: block;
  transform-style: preserve-3d;
}

.hero .sigil-img {
  animation: sigil-turn 10s linear infinite;
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
}

@keyframes sigil-turn {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .sigil-img {
    animation: none;
  }
}

.page-top {
  padding: 1.75rem 1.25rem 0.4rem;
}

.sigil-img {
  width: 160px;
  height: auto;
  margin: 0 auto 12px;
  filter: none;
  mix-blend-mode: normal;
}


.page-top .sigil-img {
  width: 84px;
}

.brand-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--text);
}

.page-top .brand-text {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
}

.brand-text span,
.mark span {
  color: var(--accent);
}

.brand-text a {
  color: inherit;
}

.mark {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.site-nav {
  margin-top: 1.75rem;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.section {
  flex: 1 0 auto;
  width: min(42rem, 100%);
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.2rem 1.35rem 4rem;
  align-self: center;
}

.hero + .section {
  padding-top: 2rem;
  text-align: center;
}

.section-title {
  margin: 0 0 1.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.section p,
.lead {
  margin: 0 0 1.1rem;
  color: #d4d4d6;
  font-size: 1.05rem;
}

.ai-note {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.inline-link {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.inline-link:hover {
  color: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.card {
  display: block;
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h2 {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  padding: 0.7rem 0.75rem;
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  margin-top: 0.3rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-aside {
  margin-top: 2rem;
}

.contact-aside a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.empty-state {
  color: var(--muted);
}

.track-list,
.media-grid,
.media-section {
  width: min(54rem, 100%);
}

.media-section {
  max-width: 54rem;
}

.track-list,
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.track {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.track-cover {
  width: 88px;
  height: 88px;
  object-fit: cover;
}

.track-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.track-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.play-btn {
  flex: 0 0 2.3rem;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 3px;
}

.play-btn.is-playing .play-icon {
  width: 4px;
  height: 11px;
  border: 0;
  margin: 0 5px 0 0;
  background: currentColor;
  box-shadow: 6px 0 0 currentColor;
}

.track-progress {
  flex: 1;
  min-width: 0;
}

.seek {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.times {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.media-item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.media-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
}

.media-title {
  display: block;
  padding: 0.55rem 0.7rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.media-play {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #ededed;
  transform: translate(-40%, -50%);
  filter: drop-shadow(0 0 6px #000);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 6, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: grid;
  justify-items: center;
}

.lightbox-image,
.lightbox-video {
  max-width: 92vw;
  max-height: 82vh;
  background: #000;
}

.lightbox-image[hidden],
.lightbox-video[hidden],
.lightbox-title[hidden] {
  display: none !important;
}

.lightbox-title {
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lightbox-btn {
  position: absolute;
  border: 0;
  background: transparent;
  color: #ededed;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close { top: 1rem; right: 1.1rem; }
.lightbox-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }
.lightbox-full { right: 3.2rem; top: 1.05rem; font-size: 1.35rem; }

.post-date {
  display: block;
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-title {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post + .post {
  margin-top: 1.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.site-foot {
  flex-shrink: 0;
  padding: 2.4rem 1.25rem 2.2rem;
  border-top: 1px solid var(--line);
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
}

.socials a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--text);
}

.socials svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.socials a:hover svg,
.socials a:focus-visible svg {
  color: var(--accent);
}

@media (min-width: 720px) {
  .hero { padding-top: 3rem; }
  .hero .sigil-img { width: 168px; }
  .brand-text { letter-spacing: 0.22em; }
  .site-nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 0.35rem 1.6rem;
  }
  .cards,
  .track-list,
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.archive-meta {
  margin: -0.7rem 0 1.2rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-latest {
  width: min(54rem, 100%);
  max-width: 54rem;
  padding-top: 1.2rem;
}

.home-previews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.home-preview {
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: inherit;
}

.home-preview-frame {
  position: relative;
  display: block;
  overflow: hidden;
}

.home-preview-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
}

.home-preview-label {
  display: block;
  padding: 0.55rem 0.7rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-preview:hover .home-preview-label {
  color: var(--text);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .section > *:not(.site-nav),
  .home-preview,
  .media-item,
  .track,
  .post,
  .card {
    animation: rise 0.75s ease both;
  }

  .section > *:nth-child(2) { animation-delay: 0.08s; }
  .section > *:nth-child(3) { animation-delay: 0.16s; }
  .section > *:nth-child(4) { animation-delay: 0.24s; }
  .section > *:nth-child(5) { animation-delay: 0.32s; }
  .home-preview:nth-child(1),
  .media-item:nth-child(1),
  .track:nth-child(1),
  .card:nth-child(1) { animation-delay: 0.12s; }
  .home-preview:nth-child(2),
  .media-item:nth-child(2),
  .track:nth-child(2),
  .card:nth-child(2) { animation-delay: 0.2s; }
  .home-preview:nth-child(3),
  .media-item:nth-child(3),
  .track:nth-child(3),
  .card:nth-child(3) { animation-delay: 0.28s; }
  .media-item:nth-child(4),
  .card:nth-child(4) { animation-delay: 0.36s; }
  .media-item:nth-child(5),
  .card:nth-child(5) { animation-delay: 0.44s; }
}

@media (min-width: 720px) {
  .home-previews {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sound-toggle {
  margin-top: 1.6rem;
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.sound-toggle:hover,
.sound-toggle.is-on {
  color: var(--text);
}

.sound-toggle.is-on {
  border-bottom-color: var(--accent);
}

.compare-thumb {
  position: relative;
  display: block;
}

.compare-thumb > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #111;
}

.compare-thumb-cut {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
}

.compare-thumb-cut img {
  width: 200%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}

.compare-thumb-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #ededed;
  transform: translateX(-50%);
}

.compare-view {
  position: relative;
  max-width: 92vw;
  max-height: 82vh;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.compare-view[hidden] {
  display: none !important;
}

.compare-after,
.compare-before {
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
}

.compare-before-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
}

.compare-before {
  max-width: none;
  height: 100%;
  width: auto;
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #ededed;
  pointer-events: none;
}

.compare-range {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
