:root {
  --bg: #08090a;
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.55);
  --serif: Georgia, "Palatino", "Book Antiqua", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  scroll-behavior: smooth;
}

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

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 10px;
  background: linear-gradient(to bottom, rgba(6,7,6,0.75), rgba(6,7,6,0));
}

.logo-mark {
  width: 73px;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.logo-mark:hover {
  transform: rotate(-8deg);
}

.main-nav {
  margin-top: 10px;
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 15px;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  border-bottom-color: rgba(255,255,255,0.8);
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(clamp(85px, 8vh, 130px));
}

@media (max-width: 640px) {
  .hero {
    height: 68vh;
    min-height: 460px;
  }
}

/* Tagline section — separate section below the hero, with the site's own background video */
.tagline {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  text-align: center;
  padding: 90px 24px 0;
}

.tagline-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.9;
}

.tagline-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.25;
  will-change: opacity;
}

.tagline h1 {
  font-weight: 400;
  font-size: clamp(28px, 5vw, 49px);
  margin: 0 0 18px;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .tagline h1 {
    white-space: nowrap;
    font-size: 4.7vw;
  }
}

.tagline p.subtitle {
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255,255,255,0.9);
  margin: 0 0 34px;
}

.tagline nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.tagline nav a {
  font-size: 15px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.tagline nav a:hover { border-bottom-color: rgba(255,255,255,0.8); }

/* Logo ticker */
.ticker {
  width: 100%;
  height: 96px;
  overflow: hidden;
  background: #060706;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 90px;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
  padding-left: 90px;
}

.ticker-track img {
  height: 34px;
  width: auto;
  flex: 0 0 auto;
  opacity: 0.9;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Arc decoration — the same logo mark, enlarged and cropped to just its top curve */
.arc-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(120px, 22vw, 280px);
  overflow: hidden;
  margin-top: 60px;
}

.arc-wrap img {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(900px, 160vw, 2400px);
  max-width: none;
  height: auto;
  transform: translateX(-50%) translateY(26px);
  filter: blur(14px);
  opacity: 0.4;
  transition:
    filter 1.1s ease-out,
    opacity 1.1s ease-out,
    transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.arc-wrap img.in-view {
  filter: blur(0);
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  /* Base desktop image width is 900px; 30% bigger = 1170px.
     At the logo's 1536:995 aspect ratio, 1170px wide renders at
     ~758px tall, so a 379px container shows exactly the top half. */
  .arc-wrap {
    height: 379px;
  }

  .arc-wrap img {
    width: 1170px;
  }
}

/* Footer */
footer.site-footer {
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* Pages with a full-page background video */
html.artists-page,
body.artists-page,
html.projects-page,
body.projects-page {
  background: transparent;
}

.page-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--bg);
  z-index: -1;
}

.artists-page main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 100px;
}

.artist-roster {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  width: 100%;
}

.artist-list {
  text-align: center;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: center;
}

.artist-list li {
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.9;
  cursor: default;
}

.artist-photo-frame {
  position: relative;
  width: 220px;
  height: 300px;
  justify-self: end;
}

.artist-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.artist-photo.active {
  opacity: 1;
}

.artist-bio-frame {
  position: relative;
  width: 320px;
  min-height: 300px;
  justify-self: start;
}

.artist-bio {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.artist-bio.active {
  opacity: 1;
}

.artist-bio .role {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.artist-bio p {
  margin: 0 0 14px;
}

@media (max-width: 900px) {
  .artists-page main {
    padding: 140px 24px 80px;
    display: block;
  }

  .artist-roster {
    display: flex;
    flex-direction: column;
  }

  .artist-list {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
    gap: 6px 26px;
    margin: 0;
  }

  .artist-list li {
    font-size: 19px;
    line-height: 1.5;
    cursor: pointer;
  }

  .artist-photo-frame {
    order: 2;
    display: none;
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 28px auto 0;
  }

  .artist-photo-frame:has(.artist-photo.active) {
    display: block;
    position: relative;
    aspect-ratio: 220 / 300;
  }

  .artist-photo {
    display: none;
    opacity: 1;
  }

  .artist-photo.active {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .artist-bio-frame {
    order: 3;
    position: static;
    width: 100%;
    min-height: 0;
  }

  .artist-bio-frame:has(.artist-bio.active) {
    margin-top: 24px;
  }

  .artist-bio {
    display: none;
    position: static;
    opacity: 1;
  }

  .artist-bio.active {
    display: block;
  }
}

/* Projects page */
.projects-page main {
  padding-top: 130px;
  padding-bottom: 60px;
}

.project-scroll {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 20px;
}

.project-scroll::-webkit-scrollbar { height: 6px; }
.project-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }

.project-scroll figure {
  flex: 0 0 auto;
  height: min(70vh, 640px);
  scroll-snap-align: start;
  margin: 0;
}

.project-scroll img {
  width: auto;
  height: 100%;
  max-width: none;
}

.scroll-hint {
  text-align: right;
  max-width: 1100px;
  margin: 0 auto 10px;
  padding: 0 24px;
  color: rgba(255,255,255,0.5);
  font-size: 22px;
}

@media (max-width: 640px) {
  .main-nav a { font-size: 16px; }
}
