/* ─── Fonts ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'BalbesFree';
  src: url('assets/Main title_Balbes Free.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'AndaleMono';
  src: url('assets/Body_Andale Mono.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg: #080808;
  --fg: #f0f0f0;
  --muted: rgba(240, 240, 240, 0.45);
  --border: rgba(240, 240, 240, 0.1);
  --nav-height: 64px;
}

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

/* ─── Base ───────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'AndaleMono', 'Andale Mono', monospace;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ─── Nav ────────────────────────────────────────────────────── */
.site-nav {
  font-family: 'BalbesFree', sans-serif;
  font-size: clamp(4.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem 12px;
  z-index: 100;
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-top: 26px;
  /* the nav-links text sits lower than center due to line-height, so nudge the logo down to match (align-items:center halves the effect of this margin) */
}

.nav-logo img {
  height: 24px;
  display: block;
}

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

.nav-links a {
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* push the video below the fixed nav bar instead of hiding it underneath */
  padding-top: var(--nav-height);
}

.hero-bg {
  display: block;
  width: 100%;
  /* matches the video's native 1920x1080 ratio, so it always shows full
     width with no cropping and no letterbox bars; height can exceed the
     viewport and the page scrolls */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.1) 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: 'BalbesFree', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-meta {
  font-size: 0.8125rem;
  opacity: 0.5;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

/* ─── Home recap (mobile only — the hero video carries this text too,
   but it's illegible once cropped down to a phone screen) ───────── */
.home-recap {
  display: none;
}

/* ─── About page layout ──────────────────────────────────────── */
.about-layout {
  display: flex;
  /* lay children out in a row */
  gap: 3rem;
  /* space between image and text */
  align-items: flex-start;
  /* both start at the top */
}

.about-image {
  flex: 0 0 35%;
}

.about-image img {
  width: 100%;
  height: auto;
  margin-left: 2rem;
}

.map-image {
  flex: 0 0 45%;
  /* same flex behaviour as about-image */
  margin-left: 2rem;
}

.map-image img {
  width: 100%;
  height: auto;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: 999px;
}

.btn-light {
  background: var(--fg);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(240, 240, 240, 0.35);
}

.btn:hover {
  opacity: 0.75;
}

/* ─── Page wrapper (non-hero pages) ─────────────────────────── */
.page-wrap {
  padding-top: var(--nav-height);
}

/* ─── Section / content widths ───────────────────────────────── */
.section {
  /* no max-width/centering here — this page's titles must share the same
     left edge as the image below them (.about-image img has margin-left: 2rem,
     i.e. the same 2rem as this padding), otherwise "About" floats to the
     right of the poster instead of lining up with it */
  padding: 4rem 2rem;
}

.section-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ─── Typography helpers ─────────────────────────────────────── */
.page-title {
  font-family: 'BalbesFree', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.body-text {
  font-size: 0.8125rem;
  line-height: 1.85;
  color: rgba(240, 240, 240, 0.8);
  border: 1px solid rgba(240, 240, 240, 0.2);
  margin-right: 4rem;
  padding: 4.5rem;
  flex: 1;
  /* fills remaining space next to the image */
}

.body-text p+p {
  margin-top: 1.25rem;
}

.body-text h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.body-text h3:first-child {
  margin-top: 0;
}

/* zone descriptions: plain white body copy — only the headings carry color */
.body-text.zones p,
.body-text.zones .highlight {
  color: var(--fg);
}

/* each zone heading gets its own shade of blue — echoes the four
   colour-coded zones in the floor-plan map legend (body copy stays white) */
.body-text.zones h3:nth-of-type(1) {
  color: #AACCEA;
}

.body-text.zones h3:nth-of-type(2) {
  color: #74D3AE;
}

.body-text.zones h3:nth-of-type(3) {
  color: #4F95DB;
}

.body-text.zones h3:nth-of-type(4) {
  color: #5A6BB5;
}

.body-text.zones .highlight {
  color: rgba(141, 211, 224, 0.9);
}

.signature {
  margin-top: 2rem;
  text-align: right;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── About footer (caption + press release) ─────────────────── */
.about-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 960px;
  margin: 3rem auto 0;
  padding: 0 2rem 4rem;
}

.about-footer .caption {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--muted);
  max-width: 32rem;
}

/* ─── Full-bleed image ───────────────────────────────────────── */
.full-bleed {
  width: 100%;
  background: #000000;
  overflow: hidden;
}

.full-bleed img {
  width: 60%;
  height: 60%;
  object-fit: cover;
  margin-left: 2rem;
}

.full-bleed-16-9 {
  aspect-ratio: 16 / 9;
}

/* ─── Artists grid ───────────────────────────────────────────── */
.artists-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.project-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s;
}

.project-card:hover {
  opacity: 0.7;
}

.project-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  overflow: hidden;
  margin-bottom: 0.875rem;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.03);
}

.project-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.project-card-artist {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── Individual project page ────────────────────────────────── */
.project-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem;
}

.project-title {
  font-family: 'BalbesFree', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.project-artist-name {
  font-family: 'BalbesFree', sans-serif;
  font-size: 0.875rem;
  /* color: var(--muted); */
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.project-artist-bio {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.project-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 72vh;
  background: #111;
  overflow: hidden;
}

.project-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 72vh;
  background: #111;
  overflow: hidden;
}

.project-secondary-image {
  aspect-ratio: 16 / 9;
}

.project-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-thumb {
  aspect-ratio: 1;
  background: #1a1a1a;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  display: flex;
  flex-direction: column;
}

.project-meta {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.project-description {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.instagram-icon {
  height: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.project-link:hover {
  border-color: var(--fg);
}

/* ─── Prev / Next nav ────────────────────────────────────────── */
.project-pagination {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.project-pagination a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.project-pagination a:hover {
  color: var(--fg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--fg);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: 4rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 90px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer span:last-child {
  margin-left: auto;
  /* push the Goldsmiths logo to the right edge, links stay grouped on the left */
}

.footer-logo {
  height: 32px;
  opacity: 1;
  flex-shrink: 0;
  /* keep its natural aspect ratio — without this the flex row crushes it sideways when space is tight */
}

/* ─── About page layout (mobile) ─────────────────────────────── */
@media (max-width: 768px) {

  /* stack image above text on mobile — side-by-side left an ugly empty
     gap under the (short) image next to the much taller text column */
  .about-layout {
    flex-direction: column;
    align-items: stretch;
    /* make image and text box span the same width and align edges */
    gap: 1.5rem;
  }

  .about-image,
  .map-image,
  .body-text {
    width: 100%;
  }

  .about-image,
  .map-image {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .about-image img {
    margin-left: 0;
  }

  .body-text {
    box-sizing: border-box;
    margin-right: 0;
    padding: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.7;
  }

  .signature {
    margin-top: 1.5rem;
    text-decoration: underline;
    text-align: left;
  }

  /* section heading highlight blocks */
  .page-title,
  .subtitle,
  .label+h2 {
    background: rgba(240, 240, 240, 0.06);
  }

  .section {
    padding: 2.5rem 1.25rem;
  }

  .page-title {
    display: inline-block;
    padding: 0.6rem 1rem;
  }

  .subtitle,
  .label+h2 {
    padding: 0.6rem 1rem;
  }

  /* compact stacked zone list */
  .body-text.zones {
    font-size: 0.65rem;
    line-height: 1.5;
  }

  .body-text.zones h3 {
    margin-top: 1rem;
  }

  .body-text.zones p+h3 {
    margin-top: 1rem;
  }

  .about-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 1.25rem 3rem;
  }

  /* "Venue / Exhibition Floor Plan" reads as a label for the map below it,
     so pull it away from the about content above and tuck it close to the map */
  .about-layout+.section {
    margin-top: 3rem;
    padding-bottom: 0.5rem;
  }

  /* the footer row is tight on a phone screen — at 48px the logo had no
     room to keep its aspect ratio and rendered squashed; shrink it so it
     fits naturally alongside the two links */
  .site-footer {
    gap: 1.5rem;
  }

  .footer-logo {
    height: 26px;
  }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-logo img {
    height: 18px;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .home-recap {
    display: block;
    padding: 2.5rem 1.25rem 3rem;
  }

  .home-recap .page-title {
    margin-bottom: 1rem;
  }

  .home-recap .intro {
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(240, 240, 240, 0.8);
    margin-bottom: 2rem;
  }

  .recap-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.75rem;
  }

  .recap-meta .label {
    display: block;
    margin-bottom: 0.25rem;
  }

  .section,
  .section-sm,
  .project-header,
  .project-body,
  .project-pagination,
  .artists-header,
  .project-grid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .project-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ─── Lightbox (click image to enlarge) ──────────────────────── */
.lightbox {
  display: none;
  /* hidden by default; JS adds .open to show */
  position: fixed;
  inset: 0;
  /* top/right/bottom/left: 0 — cover the screen */
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  z-index: 1000;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  /* show the whole image, no cropping */
}