:root {
  --bg-primary: #111009;
  --bg-panel: #161616;
  --steel-dark: #2a2a2a;
  --steel-mid: #4a4a4a;
  --steel-highlight: #9a9a9a;
  --text-primary: #e8e8e8;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #ff6a00;
  --font-display: 'Fraunces', serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--steel-mid) var(--bg-primary); }
body { background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

body::before {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ═══════ NAV ═══════ */
.nav { position: fixed; top: 0; right: 0; z-index: 1002; padding: 2rem; }
.hamburger {
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; z-index: 1002; position: relative; transition: transform 0.3s ease;
}
.hamburger:hover { transform: scale(1.1); }
.hamburger span { display: block; width: 28px; height: 2px; background: var(--steel-highlight); transition: all 0.4s cubic-bezier(0.77,0,0.175,1); transform-origin: center; }
.hamburger.active { opacity: 0; pointer-events: none; }

.menu-overlay {
  position: fixed; inset: 0; z-index: 1001; background: rgba(10,10,10,0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 1rem; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.menu-overlay.active { opacity: 1; pointer-events: all; }

.menu-close {
  position: fixed; top: 2rem; right: 2rem;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  z-index: 1003;
}
.menu-close span {
  display: block; width: 28px; height: 2px; background: var(--accent);
  position: absolute;
}
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }

.menu-list { list-style: none; text-align: center; }
.menu-list li { overflow: hidden; }
.menu-list a {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.7vw, 3rem); line-height: 1.25;
  color: var(--steel-mid); text-decoration: none; letter-spacing: 0.05em; padding: 0;
  transition: color 0.3s ease, transform 0.3s ease; transform: translateY(100%);
}
.menu-overlay.active .menu-list a { transform: translateY(0); transition: color 0.3s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.menu-list li:nth-child(1) a { transition-delay: 0.08s; }
.menu-list li:nth-child(2) a { transition-delay: 0.12s; }
.menu-list li:nth-child(3) a { transition-delay: 0.16s; }
.menu-list li:nth-child(4) a { transition-delay: 0.20s; }
.menu-list li:nth-child(5) a { transition-delay: 0.24s; }
.menu-list li:nth-child(6) a { transition-delay: 0.28s; }
.menu-list li:nth-child(7) a { transition-delay: 0.32s; }
.menu-list a:hover { color: var(--accent); transform: translateX(10px); }

/* ═══════ HOME ═══════ */
#page-home {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; position: relative;
}
.steel-logo-wrap {
  position: relative; z-index: 1; display: flex;
  justify-content: center; align-items: center;
}
.steel-logo-wrap img { opacity: 1; transition: opacity 0.3s ease; }
.steel-logo-wrap:hover img { opacity: 0.85; }

/* ═══════ SECTIONS ═══════ */
section { scroll-margin-top: 2rem; }

.page-inner { max-width: 900px; margin: 0 auto; padding: 7rem 2rem 5rem; }
.page-header { margin-bottom: 4rem; }
.page-title {
  font-family: var(--font-display); font-size: clamp(3rem,6vw,5rem);
  letter-spacing: 0.04em; color: var(--text-primary); position: relative; display: inline-block;
}
.page-title::after { content: ''; position: absolute; bottom: -0.3rem; left: 0; width: 3rem; height: 3px; background: var(--accent); }

.about-mission {
  font-family: var(--font-body); font-size: clamp(1.05rem,2vw,1.25rem);
  line-height: 1.9; color: var(--text-secondary); margin-bottom: 3rem; font-weight: 300;
}
.about-mission strong { color: var(--text-primary); font-weight: 500; }

.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.04em; color: var(--text-primary); margin-bottom: 2.5rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--steel-dark);
}

.team-grid { display: flex; flex-direction: column; gap: 3rem; }
.team-member {
  background: var(--bg-panel); border: 1px solid var(--steel-dark);
  padding: 2.5rem; transition: border-color 0.3s ease;
}
.team-member:hover { border-color: var(--steel-mid); }
.team-name {
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.03em;
  color: var(--text-primary); margin-bottom: 0.25rem;
}
.team-role {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.team-bio {
  font-family: var(--font-body); font-size: 0.95rem; line-height: 1.85;
  color: var(--text-secondary); font-weight: 300;
}

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; margin-top: 2rem; }
.portfolio-card { aspect-ratio: 1/1; background: var(--bg-panel); border: 1px solid var(--steel-dark); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color 0.3s ease; }
.portfolio-card:hover { border-color: var(--steel-mid); }
.portfolio-card-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.2em; }

.contact-line { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.75rem; line-height: 1.6; }
.contact-line a { color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--steel-dark); transition: border-color 0.3s ease, color 0.3s ease; }
.contact-line a:hover { color: var(--accent); border-color: var(--accent); }

.subscribe-block { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--steel-dark); max-width: 480px; }
.subscribe-label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.85rem; line-height: 1.6; }
.subscribe-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.subscribe-form input[type=email] {
  flex: 1; min-width: 200px;
  background: transparent; border: 1px solid var(--steel-mid); color: var(--text-primary);
  padding: 0.65rem 0.85rem; font-family: var(--font-mono); font-size: 0.85rem;
  outline: none; transition: border-color 0.3s ease;
}
.subscribe-form input[type=email]:focus { border-color: var(--accent); }
.subscribe-form button {
  background: var(--accent); color: #000; border: none; padding: 0.65rem 1.4rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; cursor: pointer; transition: opacity 0.3s ease;
}
.subscribe-form button:hover { opacity: 0.85; }
.subscribe-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.subscribe-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.subscribe-msg { margin-top: 0.85rem; font-family: var(--font-mono); font-size: 0.75rem; min-height: 1rem; }
.subscribe-msg.ok { color: var(--accent); }
.subscribe-msg.err { color: #c66; }

.section-divider { border: none; border-top: 1px solid var(--steel-dark); margin: 0; }

.footer { padding: 2rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.15em; }
.footer a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.footer a:hover { color: var(--accent); }


.press-list { display: flex; flex-direction: column; gap: 1.5rem; }
.press-item {
  background: var(--bg-panel); border: 1px solid var(--steel-dark);
  padding: 2rem 2.5rem; transition: border-color 0.3s ease;
  text-decoration: none; display: block;
}
.press-item:hover { border-color: var(--accent); }
.press-source {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}
.press-title {
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.02em;
  color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.4;
}
.press-arrow {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--steel-mid);
  transition: color 0.3s ease;
}
.press-item:hover .press-arrow { color: var(--accent); }

/* ═══════ EVENTS ═══════ */
.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.event-card {
  background: var(--bg-panel); border: 1px solid var(--steel-dark);
  overflow: hidden; transition: border-color 0.3s ease;
  aspect-ratio: 1371 / 766;
}
.event-card-link {
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem; text-decoration: none; gap: 1rem;
}
.event-card:hover { border-color: var(--accent); }
.event-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.event-title {
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.03em;
  color: var(--text-primary); line-height: 1.3;
}
.event-desc {
  font-family: var(--font-body); font-size: 0.9rem; line-height: 1.7;
  color: var(--text-secondary); font-weight: 300;
}
.event-cta {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--steel-mid);
  transition: color 0.3s ease;
}
.event-card-link:hover .event-cta { color: var(--accent); }
@media (max-width: 700px) {
  .events-grid { grid-template-columns: 1fr; }
  .event-card { aspect-ratio: auto; }
}

/* ═══════ EXHIBITIONS + WORKSHOPS ═══════ */
.entry-list { display: flex; flex-direction: column; gap: 2rem; }
.entry-card {
  background: var(--bg-panel); border: 1px solid var(--steel-dark);
  padding: 2.5rem; text-decoration: none; display: block;
  transition: border-color 0.3s ease;
}
.entry-card:hover { border-color: var(--accent); }
.entry-meta {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.entry-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.03em; color: var(--text-primary); line-height: 1.3;
  margin-bottom: 0.5rem;
}
.entry-subtitle {
  font-family: var(--font-body); font-style: italic; font-size: 0.95rem;
  color: var(--text-secondary); margin-bottom: 1rem;
}
.entry-desc {
  font-family: var(--font-body); font-size: 0.95rem; line-height: 1.75;
  color: var(--text-secondary); font-weight: 300; margin-bottom: 1.25rem;
}
.entry-cta {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em;
  color: var(--steel-mid); text-transform: uppercase;
  transition: color 0.3s ease;
}
.entry-card:hover .entry-cta { color: var(--accent); }

.detail-hero {
  margin-bottom: 3rem;
}
.detail-eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.detail-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.03em; color: var(--text-primary); line-height: 1.15;
  margin-bottom: 0.5rem;
}
.detail-subtitle {
  font-family: var(--font-body); font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary); margin-bottom: 1.75rem; font-weight: 300;
}
.detail-facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-secondary);
  padding-top: 1.25rem; border-top: 1px solid var(--steel-dark);
}
.detail-facts strong { color: var(--text-primary); font-weight: 400; margin-right: 0.5rem; }

.detail-body {
  font-family: var(--font-body); font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.9; color: var(--text-secondary); font-weight: 300;
  margin-bottom: 4rem;
}
.detail-body p { margin-bottom: 1.5rem; }
.detail-body em { color: var(--text-primary); font-style: italic; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
  margin-top: 2rem;
}
.gallery-item {
  background: var(--bg-panel); border: 1px solid var(--steel-dark);
  overflow: hidden; cursor: pointer; aspect-ratio: 3/2;
  transition: border-color 0.3s ease;
}
.gallery-vertical { grid-template-columns: repeat(3, 1fr); }
.gallery-vertical .gallery-item { aspect-ratio: 2/3; }
@media (max-width: 700px) {
  .gallery-vertical { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item:hover { border-color: var(--accent); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.residency-body {
  display: grid; grid-template-columns: 320px 1fr; gap: 3rem;
  align-items: start; margin-bottom: 3rem;
}
.residency-portrait img {
  width: 100%; display: block; border: 1px solid var(--steel-dark);
}
.residency-portrait figcaption {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: #ffffff;
  margin-top: 0.75rem;
}
@media (max-width: 700px) {
  .residency-body { grid-template-columns: 1fr; gap: 2rem; }
}

.back-link {
  display: inline-block; margin-bottom: 3rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-secondary); text-decoration: none;
  transition: color 0.3s ease;
}
.back-link:hover { color: var(--accent); }

.btn-cta {
  display: inline-block;
  background: var(--accent); color: #000;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.3s ease;
}
.btn-cta:hover { opacity: 0.85; }

.fiscal-note {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.08em; color: var(--text-secondary);
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--steel-dark);
}
.fiscal-note a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--steel-dark);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.fiscal-note a:hover { color: var(--accent); border-color: var(--accent); }

.empty-note {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text-muted); letter-spacing: 0.1em; padding: 2rem 0;
}

/* ═══════ LIGHTBOX ═══════ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; cursor: pointer;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: fixed; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; z-index: 2001;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close span {
  display: block; width: 28px; height: 2px; background: var(--steel-highlight);
  position: absolute;
}
.lightbox-close span:first-child { transform: rotate(45deg); }
.lightbox-close span:last-child { transform: rotate(-45deg); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; z-index: 2001;
  color: var(--steel-highlight); font-family: var(--font-mono);
  font-size: 2rem; padding: 1rem 1.25rem;
  transition: color 0.3s ease;
}
.lightbox-nav:hover { color: var(--accent); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 600px) {
  .nav { padding: 1.25rem; }
  .page-inner { padding: 5rem 1.5rem 4rem; }
  .footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
