/* ===========================
   Pragmatix — Edo x Psytrance theme
   =========================== */

:root {
  --bg: #11151b;
  --bg-alt: #171c23;
  --ink: #f1e9d6;
  --ink-dim: #b9ad95;
  --ink-faint: #6c6557;
  --indigo: #2e4a5c;
  --indigo-2: #16222c;
  --teal: #3c6b78;
  --rust: #c4583a;
  --rust-2: #8a3624;
  --maroon: #6b2320;
  --gold: #e0b04c;
  --sage: #8a8f63;
  --line: rgba(241, 233, 214, 0.1);
  --max: 1120px;
  --font-display: "Rampart One", "Anton", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* subtle grain overlay for atmosphere */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* seigaiha wave texture, used sparingly as a section backdrop */
.wave-texture {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><g fill='none' stroke='%23e0b04c' stroke-width='2'><path d='M0 60a30 30 0 0 1 60 0'/><path d='M60 60a30 30 0 0 1 60 0'/><path d='M-30 60a30 30 0 0 1 60 0'/><path d='M30 60a30 30 0 0 1 60 0'/><path d='M90 60a30 30 0 0 1 60 0'/></g></svg>");
  background-size: 120px 60px;
}

/* mon crest, used as a small decorative emblem */
.mon-crest {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

/* ===========================
   Header
   =========================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 21, 27, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* cartouche-style wordmark, echoing the vertical banner on the album covers */
.logo {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--rust-2), var(--maroon));
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 8px 12px;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ===========================
   Hero
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url("../assets/cover-tenmei.jpg");
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.9) brightness(0.6);
  transform: scale(1.05);
}

.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,21,27,0.55) 0%, rgba(17,21,27,0.35) 35%, rgba(17,21,27,0.85) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(17,21,27,0.5), transparent 35%, transparent 65%, rgba(17,21,27,0.5));
}

.hero-mountains {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--gold);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 13vw, 130px);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 6px 40px rgba(0,0,0,0.55);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-tagline {
  margin: 18px 0 0;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, var(--rust), var(--rust-2));
  border: 1px solid var(--gold);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 9px 18px; font-size: 12px; }

.hero-social {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 44px;
}

.hero-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  transition: all 0.2s ease;
}

.hero-social a:hover {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  z-index: 2;
}

.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollcue 2s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ===========================
   Sections
   =========================== */

.section {
  padding: 110px 0;
  position: relative;
}

.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  text-align: center;
  margin: 0 0 48px;
  letter-spacing: 0.02em;
}

.section-title-left { text-align: left; margin-bottom: 24px; }

.section-lead {
  text-align: center;
  color: var(--ink-dim);
  margin: -28px 0 48px;
  font-size: 17px;
}

/* About */

.lang-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.lang-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-tab.active,
.lang-tab:hover {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

.bio-text {
  max-width: 760px;
  margin: 0 auto;
}

.bio { display: none; color: var(--ink-dim); font-size: 17px; }
.bio.active { display: block; }
.bio em { color: var(--ink); font-style: normal; }

.festival-chips {
  max-width: 860px;
  margin: 48px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.festival-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-dim);
}

/* Album triptych */

.album-status {
  text-align: center;
  margin: -28px 0 48px;
}

.album-status span {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}

.album-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}

.album-cover {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
}

.album-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-cover:hover img { transform: scale(1.06); }

.album-cover-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(11,9,7,0.85));
  text-align: center;
}

.album-cover-label span {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* Music */

.spotify-embed {
  max-width: 760px;
  margin: 0 auto 36px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.spotify-embed iframe { display: block; border: none; }

.platform-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.platform-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  transition: all 0.2s ease;
}

.platform-link:hover {
  color: var(--ink);
  background: var(--rust);
  border-color: var(--rust);
}

/* Label */

.label-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.label-logo-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(224, 176, 76, 0.12), transparent 70%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.label-logo { width: 100%; max-width: 360px; }

.label-copy p { color: var(--ink-dim); font-size: 17px; }

/* Tour */

.tour-list {
  max-width: 720px;
  margin: 0 auto 36px;
}

.tour-empty {
  text-align: center;
  color: var(--ink-dim);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 40px 24px;
}

.tour-date {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line);
}

.tour-date-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  flex-shrink: 0;
}

.tour-date-num { font-family: var(--font-display); font-size: 22px; }
.tour-date-mon { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-dim); }

.tour-date-info { flex: 1; display: flex; flex-direction: column; }
.tour-date-event { font-weight: 700; }
.tour-date-loc { color: var(--ink-dim); font-size: 14px; }

/* Shop */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shop-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  position: relative;
}

.shop-card-img {
  height: 220px;
  border-radius: 6px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(224, 176, 76, 0.16), rgba(196, 88, 58, 0.12));
}

.shop-card-badge {
  position: absolute;
  top: 36px; right: 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  color: var(--ink-dim);
}

.shop-card h3 { margin: 0 0 6px; font-size: 18px; }
.shop-card-price { color: var(--ink-faint); margin: 0; }

.shop-note {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  margin-top: 28px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-grid p { color: var(--ink-dim); }

.contact-email {
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(16px, 4.8vw, 22px);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-weight: 600;
}

.contact-socials a { transition: color 0.2s ease; }
.contact-socials a:hover { color: var(--gold); }

/* ===========================
   Footer
   =========================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-sm { font-size: 13px; padding: 6px 10px; }

.footer-social {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-dim);
}

.footer-social a:hover { color: var(--gold); }

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--ink-faint);
  font-size: 12px;
  margin: 10px 0 0;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 880px) {
  .label-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .album-triptych { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 24px 24px;
    gap: 18px;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .shop-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 380px) {
  .label-logo-wrap { padding: 24px; }
  .shop-card-badge { top: 16px; right: 16px; }
  .hero-actions { gap: 12px; }
  .btn { padding: 13px 22px; }
}
