:root {
  --ink: #0e0d0c;
  --ink-2: #151310;
  --bone: #ece5d4;
  --bone-dim: #a89f8c;
  --blood: #7c1f1a;
  --line: #3a362f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ink) url('assets/bg-texture.jpg') center center / cover no-repeat fixed;
  color: var(--bone);
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.6;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,8,7,0.72), rgba(9,8,7,0.82) 40%, rgba(9,8,7,0.9));
  z-index: -1;
}
h1, h2, h3, .display {
  font-family: 'Bebas Neue', 'Cormorant Garamond', serif;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin: 0 0 0.6em;
  color: var(--bone);
}
a { color: var(--bone); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 6vw; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 6vw;
  padding-top: max(1.1rem, env(safe-area-inset-top, 0px));
  background: rgba(14,13,12,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: 'Bebas Neue', serif; font-size: 1.3rem; letter-spacing: 0.08em; text-decoration: none; color: var(--bone); }
.logo span { color: var(--blood); }

.accent { color: var(--blood); }

/* Hero logo (frame + flashing text layers) */
.logo-stack {
  position: relative;
  width: min(78vw, 380px);
  margin: 0 auto;
  aspect-ratio: 1;
}
.logo-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.logo-stack .layer-text {
  opacity: 0;
  animation: logo-flash 6.6s ease-out .3s forwards;
}
@keyframes logo-flash {
  from { opacity: .12; }
  to   { opacity: 1; }
}
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 1.02rem; color: var(--bone-dim); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-toggle { display: none; background: none; border: 0; color: var(--bone); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { display: block; padding: 1rem 6vw; border-top: 1px solid var(--line); }
}

/* Hero */
.hero { padding: 12vh 0 8vh; text-align: center; }
.hero .display { font-size: clamp(2.6rem, 9vw, 5rem); }
.ink-line { display: block; overflow: hidden; }
.ink-line span {
  display: inline-block; transform: translateY(110%); opacity: 0;
  animation: ink-rise .7s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes ink-rise { to { transform: translateY(0); opacity: 1; } }
.hero .tagline { color: var(--bone-dim); font-style: italic; font-size: 1.3rem; max-width: 40ch; margin: 1.2rem auto 0; }
.rule { width: 64px; height: 1px; background: var(--line); margin: 2.2rem auto; }

.btn {
  display: inline-block; margin-top: 1.6rem; padding: 0.85rem 2.1rem;
  border: 1px solid var(--bone-dim); border-radius: 2px;
  color: var(--bone); text-decoration: none; font-size: 1rem; letter-spacing: 0.03em;
  transition: border-color .2s, color .2s;
}
.btn:hover { border-color: var(--blood); color: var(--blood); }

/* Sections */
section { padding: 6vh 0; }
.section-title { text-align: center; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.section-lede { text-align: center; color: var(--bone-dim); max-width: 46ch; margin: 0 auto 3rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; text-align: center; }
.pillars svg { width: 42px; height: 42px; stroke: var(--bone-dim); margin-bottom: 1rem; }
.pillars h3 { font-size: 1.3rem; }
.pillars p { color: var(--bone-dim); font-size: 1rem; margin: 0; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; gap: 2.6rem; } }

.pillar { cursor: default; }
.pillar:hover .pillar-inner { animation: pillar-rise .55s ease forwards; }
@keyframes pillar-rise {
  from { transform: translateY(18px); opacity: .35; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Gallery */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.flash-card {
  aspect-ratio: 1; border: 1px solid var(--line); background: var(--ink-2);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.flash-card svg { width: 56%; height: 56%; stroke: var(--bone-dim); }
.flash-card .cap {
  position: absolute; bottom: 0.7rem; left: 0; right: 0; text-align: center;
  font-size: 0.85rem; color: var(--line); letter-spacing: 0.04em;
}

/* Artists */
.artists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem; }
@media (max-width: 720px) { .artists { grid-template-columns: 1fr; } }
.artist-card { border: 1px solid var(--line); padding: 2rem; text-align: center; }
.artist-card svg { width: 88px; height: 88px; stroke: var(--bone-dim); margin-bottom: 1.2rem; }
.artist-card h3 { margin-bottom: 0.2rem; }
.artist-card .role { color: var(--blood); font-size: 0.95rem; margin-bottom: 0.9rem; display: block; }
.artist-card p { color: var(--bone-dim); font-size: 1rem; }

/* Contact */
.contact-block { text-align: center; }
.contact-item {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-size: 1.15rem; margin: 0.9rem 0; color: var(--bone);
}
.contact-item svg { width: 20px; height: 20px; stroke: var(--bone-dim); flex-shrink: 0; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { color: var(--blood); }

/* Footer */
.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;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2.2rem; }
.tag {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1.1rem;
  font-size: 0.95rem; color: var(--bone-dim); letter-spacing: 0.02em;
}

footer {
  border-top: 1px solid var(--line); padding: 2.4rem 0;
  text-align: center; color: var(--line); font-size: 0.9rem;
}
