/* =========================================
   Douglas Kelly — Tenor
   Editorial design inspired by The Local Project
   ========================================= */

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

:root {
  --black: #1a1510;
  --off-white: #e6ede0;
  --white: #ffffff;
  --mid-grey: #888;
  --light-grey: #e2e6de;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
}

.header-logo a {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--black);
}

.header-logo span {
  font-weight: 400;
  font-style: italic;
}

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

.header-nav a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 0.5;
}

.header-nav .nav-cta a {
  border: 1px solid var(--black);
  padding: 8px 18px;
}

.header-nav .nav-cta a:hover {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
}

/* =========================================
   HERO
   ========================================= */

.hero {
  margin-top: 64px;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px 80px;
  min-height: 340px;
}

.hero-content {
  color: var(--white);
}

.hero-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(80px, 11vw, 150px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 400;
  font-style: italic;
  opacity: 0.9;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  opacity: 0.6;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: currentColor;
}

/* =========================================
   FEATURE (portrait + quote + bio)
   ========================================= */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

.feature-image {
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.feature-text {
  background: var(--off-white);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
}

.feature-quote p {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-style: italic;
  line-height: 1.45;
  color: var(--black);
  margin-bottom: 16px;
}

.feature-quote cite {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-grey);
  font-style: normal;
}

.feature-bio h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  margin-top: 20px;
}

.feature-bio p {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 16px;
}

.feature-bio p:last-of-type {
  margin-bottom: 28px;
}

/* =========================================
   SECTION UTILITIES
   ========================================= */

.section-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 20px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--light-grey);
}

/* =========================================
   PULL QUOTE
   ========================================= */

.pull-quote {
  padding: 80px 40px;
  background: var(--off-white);
  text-align: center;
}

.pull-quote blockquote {
  max-width: 800px;
  margin: 0 auto;
}

.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  font-style: italic;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 20px;
}

.pull-quote cite {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-grey);
  font-style: normal;
}

/* =========================================
   ABOUT SECTION
   ========================================= */

.about {
  padding: 100px 40px;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

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

.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 36px;
}

.about-text p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.about-text p:last-of-type {
  margin-bottom: 36px;
}

.about-text .cv-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
  transition: opacity 0.2s;
}

.about-text .cv-link:hover {
  opacity: 0.5;
}

.about-image {
  position: relative;
}

.about-image-frame {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.about-caption {
  margin-top: 12px;
  font-size: 11px;
  color: var(--mid-grey);
  font-style: italic;
}

/* =========================================
   HIGHLIGHTS GRID
   ========================================= */

.highlights {
  padding: 80px 40px 100px;
  background: var(--white);
}

.highlights-header {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--light-grey);
  padding-top: 48px;
}

.highlights-header h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
}

.highlights-header .view-all {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

.highlights-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 360px 280px;
  gap: 4px;
}

.highlight-card {
  position: relative;
  overflow: hidden;
  background: #222;
  min-height: 0;
}

.highlight-card.large {
  grid-column: span 2;
}

.highlight-card-image {
  position: absolute;
  inset: 0;
}

.highlight-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
  transition: background 0.3s;
}

.highlight-card:hover .highlight-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
}

.highlight-card-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

.highlight-card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}

.highlight-card.large .highlight-card-title {
  font-size: 28px;
}

.highlight-card-sub {
  font-size: 12px;
  opacity: 0.75;
}

/* Placeholder backgrounds for cards without images */
.highlight-card.no-image .highlight-card-image {
  background: var(--black);
}

/* =========================================
   AWARDS BANNER
   ========================================= */

.awards {
  background: var(--black);
  color: var(--white);
  padding: 80px 40px;
}

.awards-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.awards .section-label {
  color: rgba(255,255,255,0.45);
  margin-bottom: 48px;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.award-item {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}

.award-year {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.award-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.award-org {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}

/* =========================================
   GALLERY
   ========================================= */

.gallery {
  padding: 100px 40px;
  background: var(--off-white);
}

.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.gallery-header h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 8px;
}

.gallery-item {
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(2) {
  grid-column: span 2;
}

.gallery-item img {
  transition: transform 0.5s ease;
  aspect-ratio: 1;
}

.gallery-item:nth-child(1) img {
  aspect-ratio: auto;
  height: 100%;
}

.gallery-item:nth-child(2) img {
  aspect-ratio: 16/9;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
  background: none;
  border: none;
}

/* =========================================
   PERFORMANCES / CV SECTION
   ========================================= */

.performances {
  padding: 100px 40px;
}

.performances-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
}

.performances-sidebar h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.performances-sidebar p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 32px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 24px;
  transition: background 0.2s;
}

.btn-download:hover {
  background: #333;
}

.performances-list {
  list-style: none;
}

.perf-year-group {
  margin-bottom: 40px;
}

.perf-year {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  border-bottom: 1px solid var(--light-grey);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.perf-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-grey);
  font-size: 14px;
}

.perf-role {
  font-style: italic;
  color: var(--mid-grey);
  font-size: 13px;
  margin-top: 3px;
}

.perf-org {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid-grey);
  text-align: right;
}

/* =========================================
   CONTACT / FOOTER
   ========================================= */

.contact {
  background: var(--off-white);
  padding: 100px 40px;
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact .section-label {
  margin-bottom: 24px;
}

.contact h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-link {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.5;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

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

/* =========================================
   ACTIVE NAV STATE
   ========================================= */

.header-nav .nav-active {
  opacity: 0.45;
}

/* =========================================
   PAGE BANNER (sub-pages)
   ========================================= */

.page-banner {
  margin-top: 64px;
  padding: 80px 40px 60px;
  border-bottom: 1px solid var(--light-grey);
}

.page-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-banner h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  margin-top: 16px;
}

/* =========================================
   RECORDINGS
   ========================================= */

.recordings {
  padding: 80px 40px 100px;
}

.recordings-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.recordings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #111;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.recording-meta {
  padding-top: 24px;
  border-top: 1px solid var(--light-grey);
  margin-top: 24px;
}

.recording-meta h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.recording-sub {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 6px;
}

.recording-org {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-grey);
}

/* Sub-page gallery: no extra top padding, remove off-white bg */
.gallery .gallery-inner {
  padding-top: 0;
}

/* Sub-page performances: no sidebar h2 (now in page-banner) */
.performances-sidebar h2 {
  display: none;
}

/* Sub-page contact: remove duplicate section-label */
.contact .section-label {
  display: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    order: -1;
  }

  .about-image-frame {
    aspect-ratio: 3/2;
  }

  .highlights-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 240px;
  }

  .highlight-card.large {
    grid-column: span 2;
  }

  .performances-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(2) {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .recordings-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding: 64px 24px 48px;
    min-height: 260px;
  }

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

  .feature-image {
    height: 70vw;
    min-height: 260px;
  }

  .feature-text {
    padding: 48px 24px;
    gap: 32px;
  }

  .highlights,
  .gallery,
  .performances,
  .contact,
  .awards,
  .recordings,
  .page-banner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .highlights-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
    padding-bottom: 12px;
  }

  .highlights-grid::-webkit-scrollbar {
    height: 3px;
  }

  .highlights-grid::-webkit-scrollbar-track {
    background: var(--light-grey);
  }

  .highlights-grid::-webkit-scrollbar-thumb {
    background: var(--black);
  }

  .highlight-card,
  .highlight-card.large {
    flex: 0 0 78vw;
    grid-column: span 1;
    scroll-snap-align: start;
    height: 420px;
  }

  .awards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .site-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
  }

  .footer-nav {
    display: none;
  }

  .perf-item {
    grid-template-columns: 1fr;
  }

  .perf-org {
    text-align: left;
  }
}
