/* ════════════════════════════════════════════
   MACBETH — Global Styles
   ════════════════════════════════════════════ */

/* ─── Reset & Variables ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:            #0a0a0a;
  --bg-surface:    #111111;
  --text:          rgba(255,255,255,0.95);
  --text-dim:      rgba(255,255,255,0.95);
  --accent:        rgba(255,255,255,0.95);
  --accent-dim:    rgba(255,255,255,0.15);
  --font-display:  'Helvetica Neue', 'Arial', sans-serif;
  --font-body:     'Helvetica Neue', 'Arial', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Grain Overlay ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* ─── Nav ─── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,10,10,0.9) 0%, transparent 100%);
  transition: background 0.4s;
}
nav.scrolled { background: rgba(10,10,10,0.96); backdrop-filter: blur(6px); }

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.25em;
  color: var(--text);
  text-decoration: none;
}

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { text-decoration: underline; text-underline-offset: 4px; }
.nav-links a.active::after { display: none; }

/* ─── Hamburger Toggle (hidden on desktop) ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Animate to X when open */
nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile-only nav project links (hidden on desktop) ─── */
.nav-projects { display: none; }

/* ─── Shared Utilities ─── */
.section-label {
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════ */

/* ─── Hero (hidden in new layout) ─── */
.hero {
  display: none;
}

/* ─── Projects List (Home) ─── */
.projects-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}
.projects-header {
  padding: 0 60px;
  max-width: 1300px;
  margin: 0 auto 40px;
}
.projects-header .section-label { margin-bottom: 0; }

.project-list {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-row {
  position: static;
  padding: 0 60px;
  cursor: pointer;
  width: 100%;
}

/* the link itself is full-width but visually just the title */
.project-row a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 12px 0;
  position: relative;
  z-index: 20;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 100px);
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--text);
  white-space: nowrap;
  display: inline-block;
  position: relative;
  transition: transform 0.3s ease;
}

/* Hover effect: slight scale up */
.project-row:hover .project-title {
  transform: scale(1.05);
}

.project-meta {
  display: none; /* Hidden in this layout style */
}

/* ─── Slideshow background container ─── */
.slideshow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ─── Individual preview slide ─── */
.project-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.project-preview.active {
  opacity: 1;
}

.project-preview img,
.project-preview video {
  max-width: 70vw;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

/* ─── About strip (home) ─── */
.about-strip {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--bg-surface);
  padding: 100px 60px;
}
.about-strip-inner {
  max-width: 780px; margin: 0 auto; text-align: center;
}
.about-strip p {
  font-size: 20px; font-weight: 300;
  color: var(--text-dim); line-height: 1.9;
  margin-bottom: 24px;
}
.about-strip p em { color: var(--accent); font-style: italic; }

/* ─── Footer ─── */
footer {
  background: var(--bg);
  padding: 72px 48px 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.social-links {
  display: flex; justify-content: center; gap: 40px; margin-bottom: 48px;
}
.social-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 12px; letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.social-links a::after {
  content: '';
  position: absolute; bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s;
}
.social-links a:hover { color: var(--accent); }
.social-links a:hover::after { width: 100%; }

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 0.3em;
  color: var(--text-dim); margin-bottom: 14px;
}
.footer-copy { font-size: 12px; color: var(--text-dim); opacity: 0.45; letter-spacing: 0.1em; }

/* ═══════════════════════════════════════════
   PROJECT PAGE
   ═══════════════════════════════════════════ */

/* ─── Project Hero ─── */
.project-hero {
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center;
  padding: 0 48px 80px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* optional full-bleed background image / video behind title */
.project-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg);
  /* SWAP: background-image: url('your-hero-image.jpg'); background-size: cover; background-position: center; */
}
/* video or img dropped inside hero-bg fills the container */
.project-hero-bg video,
.project-hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-hero-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, transparent 30%, var(--bg) 100%);
}
.project-hero-content { position: relative; z-index: 1; }
.project-hero .section-label { margin-bottom: 18px; }
.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 110px);
  letter-spacing: 0.12em;
  line-height: 0.95;
}
.project-hero-tagline {
  margin-top: 20px;
  font-size: 15px; font-weight: 300; font-style: italic;
  color: var(--text-dim); letter-spacing: 0.1em;
}

/* ─── Project Body ─── */
.project-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 48px;
}
.project-body p {
  font-size: 18px; font-weight: 300;
  color: var(--text-dim); line-height: 2;
  margin-bottom: 24px;
}
.project-body p em { color: var(--accent); font-style: italic; }
.project-body h3 {
  font-family: var(--font-display);
  font-size: 34px; letter-spacing: 0.12em;
  color: var(--text);
  margin: 56px 0 20px;
}
/* pull-quote */
.project-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 48px 0;
  font-size: 22px; font-style: italic; font-weight: 300;
  color: var(--text); line-height: 1.6;
}

/* ─── View Collection Button ─── */
.view-collection {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 36px;
  margin-top: 8px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.view-collection:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

/* ─── Media Grid (inside project page) ─── */
.media-grid {
  max-width: 1100px; margin: 60px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 48px;
}
.media-grid .media-item {
  overflow: hidden; border-radius: 3px;
  background: var(--bg-surface);
  aspect-ratio: 4/3;
}
.media-grid .media-item.tall { aspect-ratio: 3/4; }
.media-grid .media-item img,
.media-grid .media-item video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Show video controls only on hover */
.media-grid .media-item video::-webkit-media-controls { opacity: 0; transition: opacity 0.3s; }
.media-grid .media-item:hover video::-webkit-media-controls { opacity: 1; }
/* placeholder for media items */
.media-grid .media-item .media-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.media-grid .media-item .media-placeholder svg { width: 44px; height: 44px; opacity: 0.15; }

/* caption under a media block */
.media-caption {
  max-width: 1100px; margin: -44px auto 60px;
  padding: 0 48px;
  font-size: 13px; font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

/* ─── Prev / Next Navigation ─── */
.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin: 40px 0 0;
}
.project-nav a {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  padding: 48px 60px;
  transition: background 0.3s;
}
.project-nav a:hover { background: rgba(255,255,255,0.04); }
.project-nav a:first-child { border-right: 1px solid rgba(255,255,255,0.1); }
.project-nav a:last-child { align-items: flex-end; text-align: right; }

.project-nav .nav-dir {
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.project-nav .nav-title {
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 0.1em;
  color: var(--text);
  transition: color 0.3s;
}
.project-nav a:hover .nav-title { color: var(--accent); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */

.about-page-hero {
  min-height: 40vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 48px 80px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.about-page-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  letter-spacing: 0.1em;
  font-weight: 400;
}

.about-page-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 48px 120px;
}

.about-text-section {
  margin-bottom: 80px;
}

.about-portrait {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto 48px;
  border-radius: 4px;
}

.about-text-section p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 24px;
  color: var(--text);
}

.notable-events {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.notable-events h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-weight: 400;
}

.events-subtitle {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 48px;
  opacity: 0.7;
}

.event-year {
  margin-bottom: 48px;
}

.event-year h4 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 600;
}

.event-year p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .media-grid { grid-template-columns: 1fr; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav a:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .project-nav a:last-child { align-items: flex-start; text-align: left; }
  .project-title { font-size: clamp(36px, 7vw, 72px); }
}
@media (max-width: 600px) {
  /* ─── Mobile Nav / Hamburger ─── */
  nav { padding: 20px 24px; }
  .nav-toggle { display: flex; flex-direction: column; }
  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(10,10,10,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
  }
  nav.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { font-size: 18px; letter-spacing: 0.25em; }

  /* ─── Mobile nav project list ─── */
  .nav-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-projects a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
  }
  .nav-projects a:hover { color: var(--accent); }

  /* ─── Force media grids to stack (override inline styles) ─── */
  .media-grid { grid-template-columns: 1fr !important; }

  /* ─── Typography ─── */
  .logo { font-size: 20px; }
  .project-title {
    font-size: clamp(28px, 9vw, 48px);
    white-space: normal;
  }
  .project-body h3 { font-size: 24px; }
  .project-body p,
  .about-strip p,
  .about-text-section p { font-size: 16px; }
  .project-body blockquote { font-size: 18px; }
  .project-nav .nav-title { font-size: 20px; }

  /* ─── Spacing ─── */
  .project-row { padding: 0 24px; }
  .project-row a { padding: 10px 0; }
  .projects-header, .about-strip { padding-left: 24px; padding-right: 24px; }
  .project-body { padding: 60px 24px; }
  .media-grid, .media-caption { padding-left: 24px; padding-right: 24px; }
  .project-nav a { padding: 36px 24px; }
  .about-page-hero { padding: 100px 24px 60px; }
  .about-page-body { padding: 80px 24px; }
  footer { padding: 56px 24px 32px; }
  .social-links { gap: 24px; }

  /* ─── Hero ─── */
  .project-hero { min-height: 40vh; padding: 0 24px 60px; }
  .project-hero-title { font-size: clamp(36px, 10vw, 64px); }

  /* ─── Slideshow previews ─── */
  .project-preview img,
  .project-preview video {
    max-width: 90vw;
    max-height: 60vh;
  }
}
