/* ============================================================
   AND-E WARHOL — SAFE WEBSITE
   andewarhol.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;700&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:   #E63329;
  --black: #0A0A0A;
  --white: #F5F5F5;
  --gray:  #1A1A1A;
  --mid:   #888888;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* --- UTILITY --- */
.display     { font-family: var(--font-display); letter-spacing: 0.04em; }
.red-bar     { display: block; height: 4px; background: var(--red); }
.section     { padding: 80px 40px; }
.section--dark  { background: var(--black); }
.section--red   { background: var(--red); }
.section--gray  { background: var(--gray); }
.container   { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 60px;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  filter: grayscale(100%) contrast(1.1);
}

.hero-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.2) 0%,
    rgba(10,10,10,0.55) 40%,
    rgba(10,10,10,0.85) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 80px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 160px);
  letter-spacing: 0.06em;
  line-height: 0.9;
  color: var(--white);
}

.hero-divider {
  width: 240px;
  height: 4px;
  background: var(--red);
  margin: 20px auto;
}

.hero-tagline {
  font-size: clamp(10px, 1.5vw, 14px);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.85);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.5;
  font-size: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   QUOTE
   ============================================================ */
#quote {
  padding: 80px 40px;
  background: var(--red);
  text-align: center;
}

.quote-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 300;
  max-width: 900px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.quote-attr {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ============================================================
   GALLERY
   ============================================================ */
#gallery {
  padding: 80px 40px;
  background: var(--black);
}

.gallery-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--mid);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(20%);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.gallery-item-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
}

.gallery-item-artist {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.gallery-item-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.gallery-item-caption {
  font-size: 12px;
  color: var(--mid);
  font-style: italic;
}

/* Gallery hidden state */
.gallery-item.hidden {
  display: none;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,5,5,0.96);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#lightbox.open { display: flex; }

.lightbox-inner {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  align-items: center;
}

.lightbox-img {
  flex: 0 0 auto;
  max-width: 60%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-meta {
  flex: 1;
  min-width: 0;
}

.lightbox-artist {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 16px;
}

.lightbox-medium {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.lightbox-caption {
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  color: rgba(245,245,245,0.8);
  border-left: 3px solid var(--red);
  padding-left: 16px;
  margin-bottom: 32px;
}

.lightbox-sig {
  height: 48px;
  object-fit: contain;
  object-position: left center;
  filter: invert(1);
  opacity: 0.7;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 32px;
  color: var(--mid);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.2s;
  z-index: 201;
}

.lightbox-close:hover { color: var(--white); }

/* ============================================================
   THE SAFE
   ============================================================ */
#the-safe {
  padding: 80px 40px;
  background: var(--gray);
}

.safe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
  margin-top: 60px;
}

.safe-card {
  position: relative;
  padding: 32px 24px;
  border-top: 3px solid var(--red);
  background: var(--black);
  transition: background 0.2s;
}

.safe-card:hover { background: #141414; }

.safe-card-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.safe-card-handle {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.safe-card-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 20px;
}

.safe-card-bio {
  font-size: 13px;
  color: rgba(245,245,245,0.6);
  line-height: 1.6;
}

/* ============================================================
   CONSUME
   ============================================================ */
#consume {
  padding: 80px 40px;
  background: var(--red);
}

#consume .section-title { color: var(--white); }

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

.consume-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--black);
}

.consume-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  opacity: 0.85;
}

.consume-card:hover img { transform: scale(1.05); opacity: 1; }

.consume-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  text-align: center;
}

.consume-label-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.consume-btn {
  display: inline-block;
  padding: 8px 24px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.consume-btn:hover {
  background: var(--red);
  color: var(--white);
}

/* ============================================================
   MANIFESTO
   ============================================================ */
#manifesto {
  padding: 100px 40px;
  background: var(--black);
  text-align: center;
}

.manifesto-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}

.manifesto-body {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  line-height: 1.8;
  max-width: 820px;
  margin: 0 auto;
  color: rgba(245,245,245,0.8);
}

.manifesto-body strong {
  color: var(--white);
  font-weight: 700;
}

/* ============================================================
   FOLLOW
   ============================================================ */
#follow {
  padding: 80px 40px;
  background: var(--gray);
  text-align: center;
}

.follow-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
}

.follow-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--mid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.follow-link:hover { color: var(--white); }

.follow-link svg {
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
}

.follow-link:hover svg { transform: scale(1.1); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 32px 40px;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.1em;
}

.footer-copy {
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.1em;
}

.footer-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .section { padding: 60px 20px; }
  .hero-title { font-size: clamp(48px, 14vw, 96px); }
  .consume-grid { grid-template-columns: 1fr; }
  .lightbox-inner { flex-direction: column; }
  .lightbox-img { max-width: 100%; max-height: 50vh; }
  .safe-grid { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .safe-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.gallery-loading {
  text-align: center;
  padding: 60px;
  color: var(--mid);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); }
