﻿/* ARTSPACE artist pages — shared with index theme */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #111111;
  --bg2: #1a1a1a;
  --bg3: #242424;
  --white: #ffffff;
  --white2: #a3aba0;
  --white3: rgba(255,255,255,0.6);
  --accent: #ba5d1a;
  --line: rgba(255,255,255,0.08);
  --line2: rgba(255,255,255,0.14);
  --pad-x: clamp(20px, 5vw, 48px);
  --pad-y: clamp(64px, 10vw, 120px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
}

a { color: inherit; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  background: linear-gradient(to bottom, rgba(17,17,17,0.94), transparent);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 200;
  font-size: 20px;
  letter-spacing: 0.25em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  z-index: 201;
}

.nav-logo-mark { height: 28px; width: auto; display: block; }
.nav-logo-word span { font-weight: 400; color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white2);
  text-decoration: none;
  transition: color 0.3s;
}

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

.lang-toggle {
  display: flex;
  border: 0.5px solid var(--line2);
}

.lang-btn {
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  background: transparent;
  color: var(--white3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.lang-btn.active { background: var(--white); color: var(--bg); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 0.5px;
  background: var(--white);
  transition: all 0.35s ease;
}

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

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--pad-x) 48px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77,0,0.175,1);
  border-left: 0.5px solid var(--line);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-links { list-style: none; width: 100%; margin-bottom: 48px; }
.mobile-nav-links a {
  font-weight: 300;
  font-size: clamp(32px, 9vw, 52px);
  color: var(--white2);
  text-decoration: none;
  display: block;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--line);
}

.mobile-nav-footer {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white3);
}

@media (max-width: 900px) {
  .nav-links, .nav-right > .lang-toggle { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
}

/* ARTIST HERO */
.artist-page { padding-top: 100px; }

.artist-hero {
  display: grid;
  grid-template-columns: minmax(140px, 260px) 1fr;
  gap: clamp(20px, 3.5vw, 40px);
  padding: clamp(28px, 4vw, 48px) var(--pad-x);
  border-bottom: 0.5px solid var(--line);
  align-items: start;
}

.artist-hero-media {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  background: var(--bg2);
  overflow: hidden;
}

.artist-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--bg3), var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white3);
}

.artist-hero-body { max-width: 720px; }

.artist-hero-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.artist-hero-title {
  font-weight: 200;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.artist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.artist-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 0.5px solid var(--line2);
  color: var(--white2);
}

.artist-bio {
  font-weight: 200;
  font-size: 15px;
  line-height: 1.9;
  color: var(--white3);
  margin-bottom: 32px;
}

.artist-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 0.5px solid var(--accent);
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 0.5px solid var(--line2);
}

.btn-ghost:hover { border-color: var(--white2); }

/* PORTFOLIO */
.portfolio-section {
  padding: clamp(56px, 10vw, 120px) var(--pad-x);
}

.section-header { margin-bottom: 48px; }

.section-number {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-weight: 200;
  font-size: clamp(28px, 4vw, 40px);
}

.section-title em { font-style: normal; color: var(--accent); font-weight: 300; }

.portfolio-section .section-title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.portfolio-cell {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: clamp(280px, 42vw, 360px);
  aspect-ratio: 3 / 4;
}

.portfolio-cell:nth-child(4n + 2),
.portfolio-cell:nth-child(4n + 3) {
  aspect-ratio: 4 / 5;
}

.portfolio-cell.featured {
  aspect-ratio: 3 / 4;
}

@media (min-width: 769px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-cell.featured {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 360px;
  }
}

.portfolio-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, opacity 0.35s;
  opacity: 0.9;
}

.portfolio-cell:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.portfolio-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  color: var(--white3);
  font-weight: 200;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 1180px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.lightbox-btn {
  background: transparent;
  border: 0.5px solid var(--line2);
  color: var(--white);
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#lightboxImg {
  max-width: min(94vw, 1180px);
  max-height: 84vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-nav button {
  pointer-events: auto;
  width: 48%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s;
}

.lightbox-panel:hover .lightbox-nav button { opacity: 1; }

/* FOOTER */
footer {
  border-top: 0.5px solid var(--line);
  padding: 64px var(--pad-x) 32px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 22px;
  letter-spacing: 0.2em;
  font-weight: 200;
  margin-bottom: 12px;
}

.footer-brand span { color: var(--accent); font-weight: 400; }

.footer-tagline { font-size: 13px; color: var(--white3); font-weight: 200; max-width: 280px; }

.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white2);
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  color: var(--white3);
  text-decoration: none;
  margin-bottom: 8px;
  font-weight: 200;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 0.5px solid var(--line);
  font-size: 11px;
  color: var(--white3);
}

@media (max-width: 768px) {
  .artist-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
