/* ─────────────────────────────────────────────
   Hana Lili — moody editorial
   ───────────────────────────────────────────── */
:root {
  --bg: #0d0c0f;
  --surface: #16141a;
  --surface-2: #1d1a22;
  --text: #f4f1ea;
  --muted: #9a948c;
  --line: rgba(244, 241, 234, 0.12);
  --accent: #d24b4b;       /* muted vermilion / oxblood */
  --accent-soft: #e8c9c0;  /* blush */
  --serif: "Archivo Black", system-ui, sans-serif;
  --sans: "Archivo Black", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 5vw, 6rem);
  --nav-h: 4.5rem;   /* approx fixed-nav height; reserved at top of hero */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* analog grain */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 1.1rem;
}

.section-title, .release-title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

/* ───────────── NAV ───────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem var(--pad);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13, 12, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.3rem; letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  position: relative; font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links .shop-link { color: var(--accent-soft); }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 24px; position: relative; }
.menu-btn span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--text); transition: transform 0.4s var(--ease), opacity 0.3s; }
.menu-btn span:nth-child(1) { top: 6px; }
.menu-btn span:nth-child(2) { bottom: 6px; }
.menu-btn.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px); z-index: 99;
  background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; gap: 1.4rem;
  padding: var(--pad); transform: translateX(100%); transition: transform 0.5s var(--ease);
}
.drawer.open { transform: translateX(0); }
.drawer a { font-family: var(--serif); font-size: 1.8rem; color: var(--text); }
.drawer a:hover { color: var(--accent); }

/* ───────────── HERO ───────────── */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 20px);   /* nav height + breathing room; hero grows rather than overlapping the nav */
  background: radial-gradient(120% 90% at 72% 18%, #2a2030 0%, #16141a 46%, var(--bg) 100%);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13,12,15,0.95) 0%, rgba(13,12,15,0.25) 45%, rgba(13,12,15,0.55) 100%);
}
.hero-inner { position: relative; padding: 0 var(--pad) clamp(3rem, 9vh, 7rem); max-width: 1100px; }
.hero-title {
  font-family: var(--serif); font-weight: 300; line-height: 0.86;
  font-size: clamp(4rem, 17vw, 13rem); letter-spacing: -0.03em;
  display: flex; flex-direction: column;
}
.hero-title span { font-style: italic; font-weight: 400; color: var(--accent-soft); }
.hero-sub { max-width: 34ch; margin-top: 1.6rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }
/* inline-grid + equal 1fr columns => both buttons size to the wider one */
.hero-cta { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1rem; margin-top: 2.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.8rem; font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: 999px; transition: all 0.35s var(--ease);
  border: 1px solid transparent; cursor: pointer;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #fff; color: #111; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }


/* ───────────── RELEASE ───────────── */
.release {
  display: grid; grid-template-columns: minmax(0, 0.9fr) 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center; padding: clamp(5rem, 12vh, 9rem) var(--pad);
}
.release-art img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); transition: transform 0.6s var(--ease);
}
.release-art:hover img { transform: scale(1.02) rotate(-0.5deg); }
.release-title { margin-bottom: 1.3rem; }
.release-title em { font-style: italic; color: var(--muted); font-size: 0.55em; }
.release-copy { color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.player { margin-bottom: 2rem; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8); }
.player iframe { display: block; }
.stream-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.stream-links a {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  transition: all 0.3s;
}
.stream-links a:hover { border-color: var(--accent); color: var(--text); }

/* ───────────── GALLERY / CAROUSEL ───────────── */
.gallery { padding: clamp(4rem, 10vh, 7rem) 0; border-top: 1px solid var(--line); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 2rem; padding: 0 var(--pad); margin-bottom: 2.6rem; }
.gallery-head .eyebrow { width: 100%; margin-bottom: 0; }
.ig-handle { margin-left: auto; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; transition: color 0.3s; }
.ig-handle:hover { color: var(--accent-soft); }

.carousel { position: relative; }
.car-viewport { overflow: hidden; padding: 0 var(--pad); }
.car-track { list-style: none; display: flex; gap: clamp(0.8rem, 1.5vw, 1.4rem); transition: transform 0.7s var(--ease); will-change: transform; }
.car-track li { flex: 0 0 auto; width: clamp(220px, 26vw, 340px); }
.car-track img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px;
  filter: grayscale(0.25) contrast(1.02); transition: filter 0.5s, transform 0.5s var(--ease);
}
.car-track li:hover img { filter: grayscale(0) contrast(1.05); transform: translateY(-6px); }

.car-arrow {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: rgba(13,12,15,0.6); border: 1px solid var(--line); color: var(--text);
  font-size: 1.5rem; line-height: 1; backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.car-arrow:hover { background: var(--accent); border-color: var(--accent); }
.car-arrow.prev { left: calc(var(--pad) - 26px); }
.car-arrow.next { right: calc(var(--pad) - 26px); }
@media (max-width: 720px) { .car-arrow { display: none; } }

.car-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.8rem; }
.car-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: background 0.3s, transform 0.3s; }
.car-dots button.active { background: var(--accent); transform: scale(1.4); }

/* ───────────── ABOUT ───────────── */
.about { padding: clamp(5rem, 12vh, 9rem) var(--pad); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 8vw, 7rem); max-width: 1100px; margin: 0 auto; }
.about-text .lead { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25; margin-bottom: 1.6rem; }
.about-text p:last-child { color: var(--muted); max-width: 56ch; }

/* ───────────── TOUR ───────────── */
.tour { padding: clamp(4rem, 10vh, 7rem) var(--pad); border-top: 1px solid var(--line); }
.tour .section-title { margin-bottom: 2.4rem; }
.dates { list-style: none; }
.dates li {
  display: grid; grid-template-columns: 7rem 1fr auto auto; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.35s var(--ease);
}
.dates li:last-child { border-bottom: 1px solid var(--line); }
.dates li:hover { padding-left: 0.8rem; }
.dates .date { font-family: var(--serif); font-size: 1.3rem; color: var(--accent-soft); }
.dates .venue { font-size: 1.05rem; }
.dates .city { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.05em; }
.dates .tix { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.55rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; transition: all 0.3s; }
.dates .tix:hover { background: var(--text); color: #111; }

/* ───────────── SIGNUP ───────────── */
.signup { padding: clamp(5rem, 12vh, 8rem) var(--pad); text-align: center; border-top: 1px solid var(--line); background: radial-gradient(120% 100% at 50% 0%, rgba(210,75,75,0.10), transparent 60%); }
.signup-inner { max-width: 540px; margin: 0 auto; }
.signup h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.8rem; }
.signup p { color: var(--muted); margin-bottom: 2rem; }
.signup-form { display: flex; gap: 0.6rem; max-width: 420px; margin: 0 auto; }
.signup-form input {
  flex: 1; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 0.95rem 1.2rem; border-radius: 999px; font-family: var(--sans); font-size: 0.95rem;
}
.signup-form input:focus { outline: none; border-color: var(--accent); }
.signup-note { margin-top: 1.2rem; color: var(--accent-soft); }

/* ───────────── FOOTER ───────────── */
.footer { padding: clamp(3rem, 8vh, 5rem) var(--pad) 2.5rem; border-top: 1px solid var(--line); text-align: center; }
.foot-word { font-family: var(--serif); font-size: clamp(2.5rem, 12vw, 8rem); font-weight: 300; line-height: 1; letter-spacing: -0.02em; opacity: 0.9; margin-bottom: 2rem; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin-bottom: 1.6rem; }
.socials a { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.socials a:hover { color: var(--accent-soft); }
.copy { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.05em; }

/* ───────────── REVEAL ANIMATION ───────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .release { grid-template-columns: 1fr; }
  .release-art { max-width: 360px; }
  .about-grid { grid-template-columns: 1fr; }
  .dates li { grid-template-columns: 5rem 1fr auto; }
  .dates .city { display: none; }
}
@media (max-width: 520px) {
  .signup-form { flex-direction: column; }
  .signup-form input, .signup-form .btn { width: 100%; }
  /* stack the hero buttons, keeping them equal width */
  .hero-cta { grid-auto-flow: row; }
  .hero-cta .btn { width: 100%; }
  .dates li { grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: 0.25rem; }
  .dates .date  { grid-column: 1; grid-row: 1; }
  .dates .venue { grid-column: 1; grid-row: 2; }
  .dates .tix   { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; }
}


/* ───────────── SITE GATE ─────────────
   Password curtain. <html class="gate-locked"> ships in the markup and
   gate.js takes it off — so with JavaScript disabled the site stays hidden
   rather than falling open. See the note at the top of gate.js: this keeps
   casual visitors out, it is not security. */

/* While locked: freeze the page and hide every top-level block except the
   grain (kept for texture) and the gate itself. */
html.gate-locked, html.gate-locked body { height: 100%; overflow: hidden; }
html.gate-locked body > *:not(#gate):not(.grain) { display: none !important; }

.gate {
  position: fixed; inset: 0; z-index: 9998;
  display: none;
  place-items: center;
  padding: var(--pad);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(210, 75, 75, 0.12), transparent 62%),
    var(--bg);
  transition: opacity 0.5s var(--ease);
}
html.gate-locked .gate { display: grid; }
.gate.unlocking { opacity: 0; pointer-events: none; }

.gate-inner { width: 100%; max-width: 25rem; text-align: center; }

.gate-word {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1;
  letter-spacing: -0.01em; margin-bottom: 1rem;
}
.gate-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

.gate-form { display: flex; gap: 0.6rem; }
.gate-form input {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 0.95rem 1.2rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.95rem;
}
.gate-form input:focus { outline: none; border-color: var(--accent); }
.gate-form input::placeholder { color: var(--muted); }

.gate-err {
  min-height: 1.5rem; margin-top: 1.1rem;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
  opacity: 0; transition: opacity 0.3s;
}
.gate-err.show { opacity: 1; }

.gate-noscript { margin: 1.5rem 0 0; color: var(--accent-soft); font-size: 0.8rem; }

/* wrong password nudge */
.gate-inner.shake { animation: gate-shake 0.4s var(--ease); }
@keyframes gate-shake {
  10%, 90% { transform: translateX(-2px); }
  30%, 70% { transform: translateX(4px); }
  50%      { transform: translateX(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate-inner.shake { animation: none; }
  .gate { transition: none; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 520px) {
  .gate-form { flex-direction: column; }
  .gate-form input, .gate-form .btn { width: 100%; }
}
