/* ==========================================================================
   HANGANA — replica v2 (modern rebuild)
   Palette from official site: black bg, white headings, red #a10000 accent
   ========================================================================== */

:root {
  --bg: #0e0e0e;
  --bg-alt: #000000;
  --fg: #cfcfcf;
  --fg-dim: #8a8a8a;
  --heading: #ffffff;
  --border: #313131;
  --accent: #a10000;
  --accent-bright: #d00000;
  --amber: #fcb900;
  --font-display: "Anton", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  --radius: 10px;
  --maxw: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 700;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Film grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  background-repeat: repeat;
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand { flex-shrink: 0; line-height: 0; }
.brand-logo { height: 42px; width: auto; }

.site-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--heading); text-decoration: none; background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: var(--accent-bright); }
.nav-link-external { color: var(--amber); }

.header-socials {
  display: flex;
  gap: 0.4rem;
  margin-left: 0.75rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.social-link:hover {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: translateY(-2px);
  text-decoration: none;
}
.social-link svg { fill: currentColor; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--heading);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-alt);
  padding: 7rem 0 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/image1.jpg");
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0%, rgba(14, 14, 14, 0.55) 45%, var(--bg) 96%),
    radial-gradient(900px 480px at 50% 18%, rgba(161, 0, 0, 0.22), transparent 65%);
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.hero-logo {
  width: min(529px, 78vw);
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.8));
  animation: heroIn 1s var(--ease) both;
}

.hero-tagline {
  margin: 0;
  color: var(--fg);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  animation: heroIn 1s 0.2s var(--ease) both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  animation: heroIn 1s 0.35s var(--ease) both;
}

.hero-scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-dim);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  animation: heroIn 1s 0.6s both;
}
.hero-scroll:hover { color: var(--accent-bright); border-color: var(--accent-bright); text-decoration: none; }
.hero-scroll svg { fill: currentColor; animation: bounce 1.8s ease-in-out infinite; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ============ MARQUEE ============ */

.marquee {
  background: var(--accent);
  overflow: hidden;
  border-block: 1px solid #000;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  animation: marquee 22s linear infinite;
}
.marquee-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.55rem 0;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */

.section { padding: 5.5rem 0; scroll-margin-top: calc(var(--header-h) + 10px); }
.section-dark { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 2.75rem;
  text-align: center;
}
.sec-num { display: none; }
.title-muted { color: var(--heading); }
.title-accent { color: var(--accent); }

.bio {
  max-width: 640px;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--fg);
}

.band-photo {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ============ GALLERY (masonry) ============ */

.gallery-grid {
  columns: 3;
  column-gap: 1.25rem;
}
.gallery-item {
  margin: 0 0 1.25rem;
  break-inside: avoid;
}
.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-btn img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease), filter 0.3s ease;
}
.gallery-btn::after {
  content: "⛶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(to top, rgba(161, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-btn:hover::after { opacity: 1; }
.gallery-btn:hover img { transform: scale(1.045); filter: brightness(0.82); }

/* ============ TEASER VIDEO ============ */

.video-wrap {
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-note { text-align: center; color: var(--fg-dim); font-size: 0.9rem; margin-top: 1.25rem; }

/* ============ MEMBERS ============ */

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.member-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}
.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(161, 0, 0, 0.35);
  border-top-color: var(--accent-bright);
}
.member-num {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.09);
  transition: color 0.3s ease;
  pointer-events: none;
}
.member-card:hover .member-num { color: rgba(208, 0, 0, 0.4); }
.member-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--heading);
  margin: 0 0 0.1rem;
  padding-right: 2.2rem;
}
.member-real { color: var(--fg-dim); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.member-role {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
}
.member-quote {
  margin: 0 0 1.1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
  color: var(--fg);
  font-style: italic;
}
.member-set {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.6;
}
.member-set strong {
  display: block;
  color: var(--fg);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
}

/* ============ SHOWS ============ */

.show-feature {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.show-poster {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.show-poster img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.show-poster:hover img { transform: scale(1.03); }

.show-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.5rem;
}
.show-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--heading);
  margin: 0 0 1.5rem;
}
.show-meta {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.show-meta li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--heading);
}
.show-meta span {
  min-width: 90px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.show-meta a { color: var(--accent-bright); }

.shows-more { margin: 1.5rem 0 0; color: var(--fg-dim); font-size: 0.92rem; }

/* ============ MERCH ============ */

.merch-placeholder {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  color: var(--fg);
}
.merch-big {
  font-family: var(--font-display);
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--heading);
  margin: 0 0 0.5rem;
}
.merch-hint { color: var(--fg-dim); font-size: 0.9rem; }

/* ============ FOOTER ============ */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.footer-copy { margin: 0; color: var(--fg-dim); font-size: 0.92rem; }
.footer-copy strong { color: var(--heading); }
.footer-contact { margin: 0; text-align: center; font-size: 0.92rem; }
.footer-contact a { color: var(--heading); font-weight: 600; }
.footer-contact a:hover { color: var(--accent-bright); }
.footer-socials {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.footer-socials .social-link { width: 34px; height: 34px; }

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-bright); text-decoration: none; }

/* ============ LIGHTBOX ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}
.lightbox-figure figcaption { color: var(--fg); font-size: 0.9rem; }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ============ REVEAL ON SCROLL ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ BUTTONS ============ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.7rem;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-outline {
  border: 1px solid var(--fg-dim);
  color: var(--heading);
}
.btn-outline:hover { border-color: var(--heading); color: var(--heading); }

/* ============ RESPONSIVE ============ */

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .header-socials { display: none; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(320px, 84vw);
    height: calc(100vh - var(--header-h));
    background: rgba(0, 0, 0, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--border);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-link { display: block; padding: 0.85rem 1rem; font-size: 0.95rem; }

  .gallery-grid { columns: 2; }

  .show-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 480px;
  }
  .show-poster { max-width: 340px; }
}

@media (max-width: 640px) {
  .gallery-grid { columns: 1; }
  .section { padding: 4rem 0; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .footer-socials { justify-content: center; }
  .brand-logo { height: 34px; }
  .hero { min-height: 88svh; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ WORDPRESS ============ */

/* Keep the sticky header below the WP admin bar when logged in. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Don't let block editor styles bleed into the one-pager. */
.entry-content, .wp-block-group { margin: 0; padding: 0; }
