/* ═══════════════════════════════════════════════════════════════
   elysrei — one-page artist site (fullscreen editorial structure)
   Fonts: classic editorial — Times serif + Helvetica sans
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #070405;
  --ink: #f0e9e4;
  --ink-dim: #b8a9a6;
  --red: #96101e;        /* same red as the overlay gradient */
  --red-hover: #ad1f2e;
  --serif: Garamond, Georgia, serif;
  --sans: Helvetica, Arial, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  background:
    /* restrained smoke: mostly black, faint red breathing at the edges */
    radial-gradient(55% 45% at 10% 6%, rgba(150, 16, 30, 0.30), transparent 65%),
    radial-gradient(48% 42% at 90% 94%, rgba(110, 15, 26, 0.24), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* one page — no scroll */
}

img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 60;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── top bar ───────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem clamp(1.1rem, 3vw, 2.4rem);
}

.brand img { height: clamp(34px, 5vw, 46px); width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.35rem);
}

.nav button, .nav a {
  font-family: var(--serif);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s ease;
  opacity: 0.9;
}

.nav button:hover, .nav button:focus-visible,
.nav a:hover, .nav a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.nav button.active { text-decoration: underline; text-underline-offset: 4px; }

.nav-ig { display: inline-flex; }
.nav-ig svg { width: 19px; height: 19px; }

.nav-group { position: relative; }

.nav-parent span {
  display: inline-block;
  margin-left: 0.18rem;
  font-size: 0.78em;
  transition: transform 0.2s ease;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  width: max-content;
  min-width: 170px;
  padding: 0.55rem;
  background: rgba(7, 4, 5, 0.94);
  border: 1px solid rgba(240, 233, 228, 0.14);
  border-radius: 4px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -5px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown a {
  display: block;
  padding: 0.48rem 0.65rem;
  font-size: 0.8rem;
  text-shadow: none;
  white-space: nowrap;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-group:hover .nav-parent span,
.nav-group:focus-within .nav-parent span { transform: rotate(180deg); }

.home-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  position: relative;
  z-index: 101;
}

.home-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.home-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.home-hamburger.open span:nth-child(2) { opacity: 0; }
.home-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.home-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  padding: 6.5rem 1.5rem 3rem;
  background: rgba(7, 4, 5, 0.97);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.home-mobile-menu.open { opacity: 1; pointer-events: auto; }

.home-mobile-menu button,
.home-mobile-menu a {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.home-mobile-menu > button,
.home-mobile-menu > a,
.mobile-nav-group { width: min(84vw, 360px); }

.home-mobile-menu > button,
.home-mobile-menu > a { text-align: center; }

.mobile-nav-group { text-align: center; }

.mobile-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.mobile-accordion-toggle span { transition: transform 0.2s ease; }
.mobile-nav-group.open .mobile-accordion-toggle span { transform: rotate(45deg); }

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  display: grid;
  gap: 0.25rem;
  transition: max-height 0.28s ease, padding 0.28s ease;
}

.mobile-nav-group.open .mobile-submenu {
  max-height: 420px;
  padding-top: 0.7rem;
}

.home-mobile-menu .mobile-submenu a {
  padding: 0.22rem;
  font-family: var(--sans);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.home-mobile-menu .mobile-instagram { font-size: 1rem; }

/* ── landing: centered Canvas loop + copy beneath ──────────── */
.landing {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.6vh, 2rem);
  padding: 5.2rem 1.2rem 1.6rem; /* clears the fixed topbar */
}

.canvas-wrap {
  height: min(56svh, 520px);
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 90px rgba(150, 16, 30, 0.18);
}

.canvas-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.canvas-tint { display: none; } /* only used on mobile full-bleed */

.landing-copy {
  text-align: center;
  width: min(92vw, 480px);
}

.landing-kicker {
  margin-top: 0.65rem;
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Small bold sans caps, two tight lines */
.landing-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.landing-note {
  max-width: 38ch;
  margin: 0.45rem auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  line-height: 1.45;
  color: var(--ink-dim);
}

.landing-cta {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  /* sits centered at natural width so both buttons stay on one line */
  width: max-content;
  max-width: 94vw;
  margin-inline: auto;
  flex-wrap: wrap;
}

/* quiet outlined button, serif label — like the reference */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  padding: 0.6rem 1.1rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(240, 233, 228, 0.75);
  border-radius: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn:hover, .btn:focus-visible {
  background: rgba(150, 16, 30, 0.4);
  border-color: var(--ink);
}

/* mobile: full-bleed immersive version (viewport is ~9:16 anyway) */
@media (max-width: 700px), (max-height: 560px) {
  .canvas-wrap {
    position: fixed;
    inset: 0;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    z-index: 0;
  }

  .canvas-tint {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(7, 4, 5, 0.55), rgba(7, 4, 5, 0.08) 35%, rgba(7, 4, 5, 0.68));
    pointer-events: none;
  }

  .landing {
    justify-content: flex-end;
    padding-bottom: clamp(2.4rem, 8vh, 4.5rem);
  }

  .landing-copy { position: relative; z-index: 10; width: auto; }

  .landing-kicker,
  .landing-note { color: var(--ink); text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85); }
  .landing-title { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7); }
  .btn { background: rgba(7, 4, 5, 0.35); backdrop-filter: blur(4px); }
}

/* ── overlays: red/black smoke ─────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.1rem, 4vw, 3rem) 7rem;
  background: #070405;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.overlay.open { opacity: 1; }

/* blurred MV still — ties overlay panels to the landing visually */
.overlay::before {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  background: url('../img/mv-still.jpg') center/cover no-repeat;
  filter: blur(40px) brightness(0.35);
  opacity: 0.6;
}

.overlay-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.overlay-narrow { max-width: 660px; }

.overlay-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
}

.overlay-title:focus { outline: none; }

.overlay-close {
  position: fixed;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 55;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 200;
  line-height: 1;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.overlay-close:hover, .overlay-close:focus-visible {
  opacity: 0.7;
  transform: rotate(90deg);
}

/* ── shows ─────────────────────────────────────────────────── */
.show-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(240, 233, 228, 0.14);
  border: 1px solid rgba(240, 233, 228, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.05rem 1.5rem;
  margin: 0 auto 0.9rem;
  max-width: 820px;
}

.show-card.residency {
  background: rgba(150, 16, 30, 0.32);
  border-color: rgba(240, 233, 228, 0.22);
}

.show-line { font-weight: 500; font-size: 1.02rem; }

.show-sub { color: var(--ink-dim); font-size: 0.84rem; margin-top: 0.15rem; }

.show-card.residency .show-sub { color: rgba(240, 233, 228, 0.75); }

.show-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.95rem;
  border-radius: 7px;
  background: rgba(240, 233, 228, 0.16);
  white-space: nowrap;
}

.shows-past-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  text-align: center;
  margin: 2.4rem 0 1.2rem;
}

.show-link {
  text-decoration: none;
  transition: background 0.25s ease;
}

.show-link:hover, .show-link:focus-visible { background: rgba(240, 233, 228, 0.22); }

.shows-empty {
  text-align: center;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  padding: 1.5rem 0;
}

@media (max-width: 560px) {
  .show-card { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

/* ── tiles (music / videos / press) ────────────────────────── */
.tile-grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.music-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; }
.video-grid { grid-template-columns: repeat(4, 1fr); }
.quote-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } }

.music-video-embed {
  width: min(900px, 100%);
  aspect-ratio: 16 / 9;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.music-video-embed iframe { width: 100%; height: 100%; border: 0; }

.tile { text-align: left; text-decoration: none; display: block; }

.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-grid .tile img { aspect-ratio: 16 / 9; }

.tile:hover img, .tile:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.tile-title {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.35;
}

.tile-action {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.tile:hover .tile-action { color: var(--ink); }

/* press quote tiles */
.quote-tile {
  background: rgba(240, 233, 228, 0.1);
  border: 1px solid rgba(240, 233, 228, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.quote-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.quote-link:hover,
.quote-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(240, 233, 228, 0.35);
}

.quote-tile blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.55;
}

.quote-tile figcaption,
.quote-cite {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.7;
}

.quote-date {
  display: block;
  opacity: 0.7;
}

/* ── info / contact ────────────────────────────────────────── */
.info-copy p + p { margin-top: 1.2rem; }

.info-copy .lede {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.55;
}

.contact-shell { max-width: 900px; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-details { display: grid; gap: 1.2rem; }

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 233, 228, 0.4);
  transition: border-color 0.25s ease;
}

.contact-email:hover { border-color: var(--ink); }

.contact-whatsapp {
  width: max-content;
  font-family: var(--serif);
  font-size: 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 211, 102, 0.5);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  text-align: left;
}

.contact-field { display: block; }

.contact-field span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.75rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(184, 169, 166, 0.55);
  border-radius: 0;
  outline: 0;
  font: inherit;
}

.contact-field input:focus,
.contact-field textarea:focus { border-bottom-color: var(--red-hover); }

.contact-field textarea { min-height: 110px; resize: vertical; }
.contact-field-full { grid-column: 1 / -1; }

.booking-submit {
  justify-self: start;
  margin-top: 0.5rem;
  padding: 0.7rem 1.6rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(240, 233, 228, 0.75);
  font-family: var(--serif);
}

.booking-submit:hover,
.booking-submit:focus-visible { background: rgba(150, 16, 30, 0.4); }
.booking-submit:disabled { opacity: 0.6; cursor: default; }
.form-status { min-height: 1.4em; color: var(--ink-dim); font-size: 0.82rem; }

.socials {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}

.socials a { opacity: 0.8; transition: opacity 0.25s ease, transform 0.25s ease; display: inline-flex; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; }

/* ── video lightbox ────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(7, 4, 5, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.lightbox-frame {
  width: min(1000px, 94vw);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }

/* ── mobile nav ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .topbar { flex-direction: row; padding-top: 1rem; }
  .nav { display: none; }
  .home-hamburger { display: flex; }
}

@media (max-width: 720px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

/* ── reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .overlay::before { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
