:root {
  --black: #020000;
  --charcoal: #151515;
  --graphite: #404040;
  --paper: #f1fbff;
  --soft-gray: #d8d8d8;
  --accent: #ffb347;
  --gold-text: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728);
  --gold-rich: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--paper);
  background: var(--black);
  line-height: 1.8;
}

main > section {
  scroll-margin-top: 72px;
}

a {
  color: inherit;
}

.site-nav {
  min-height: 68px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  letter-spacing: 0;
}

.navbar-brand img {
  width: 190px;
  max-width: 46vw;
}

.nav-link {
  min-width: 88px;
  padding: 1rem 1.2rem !important;
  border-radius: 6px;
  color: #f5f5f5;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #111;
  background: linear-gradient(180deg, #f4df91 0%, #dfbd63 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 0 rgba(0, 0, 0, 0.35);
}

.split-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-section > * {
  position: relative;
  z-index: 2;
}

.split-copy,
.split-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 7vw, 6rem);
}

.split-copy {
  flex-direction: column;
}

.split-copy p {
  max-width: 660px;
  font-size: 0.93rem;
}

.split-media img,
.hero-photo img {
  width: min(94%, 720px);
  border-radius: 22px;
  box-shadow: 2px 2px 0 #000;
  position: relative;
  z-index: 2;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)), url("../assets/DSC03521-scaled.jpeg") center / cover no-repeat;
  border-bottom: 1px solid rgba(252, 246, 186, 0.32);
}

.logo-panel {
  background: transparent;
}

.hero-logo {
  width: min(420px, 75vw);
}

.hero-photo {
  background: transparent;
}

.layered-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.layered-photo img {
  width: min(76%, 720px);
  max-height: 54vh;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.dark-gradient {
  background: linear-gradient(102deg, var(--graphite) 0%, #0d0000 100%);
}

.photo-bg-section {
  position: relative;
  overflow: hidden;
  border-radius: 0 28px 28px 0;
  background: #000;
}

.photo-bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--section-bg) center / cover no-repeat;
  filter: brightness(0.32);
}

.photo-bg-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.38);
}

.bio-section {
  --section-bg: url("../assets/DSC03563-scaled.jpeg");
}

.script-title {
  position: relative;
  display: inline-block;
  max-width: 820px;
  margin: 0 0 2.4rem;
  font-family: "Dancing Script", cursive;
  font-size: clamp(2.55rem, 4.8vw, 3.8rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fcf6ba;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  font-size: clamp(2.7rem, 6.5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.18;
  color: #fcf6ba;
}

.script-title[data-text]::after,
.section-title[data-text]:not(.dark-title)::after,
.project-card h3[data-text]::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background: var(--gold-rich);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-title {
  color: #000;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.text-link,
.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.3rem 0.1rem;
  border: 0;
  border-bottom: 1px solid #fff;
  color: #fff;
  background: transparent;
  text-decoration: none;
  font: inherit;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover,
.outline-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.news-section {
  background: var(--black);
}

.light-panel {
  color: #000;
  background: var(--soft-gray);
}

.agenda {
  width: min(260px, 100%);
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: #e5e5e5;
}

.agenda-date {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.agenda-date.active {
  background: #222;
  color: #fff;
}

.agenda-details {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
}

.agenda-details strong {
  color: var(--accent);
}

.project-carousel {
  width: min(420px, 100%);
  padding-bottom: 2rem;
}

.project-card {
  min-height: 660px;
  padding: 32px;
  color: #fff;
  background: transparent;
  text-align: center;
}

.project-card h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1.15;
  color: #fcf6ba;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border-radius: 18px;
}

.project-card p {
  min-height: 130px;
  font-size: 0.95rem;
}

.project-card a {
  display: inline-flex;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid currentColor;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.project-card a:hover {
  color: #fcf6ba;
}

.carousel-indicators {
  bottom: -1.5rem;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fcf6ba;
  opacity: 0.35;
}

.carousel-indicators .active {
  background-color: #fcf6ba;
  opacity: 1;
  transform: scale(1.2);
}

.lesson-section {
  --section-bg: url("../assets/DSC03461-1024x683.jpeg");
}

.contact-section {
  --section-bg: url("../assets/DSC03360-scaled.jpeg");
}

.gallery-section {
  min-height: 100vh;
  padding: clamp(5rem, 9vw, 8rem) 0;
  color: #220000;
  background: url("../assets/Slide-11.png") center / cover no-repeat;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

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

.email-box {
  display: inline-flex;
  justify-content: center;
  min-width: 228px;
  margin-top: 1.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #fff;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.email-box:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #000;
  background: url("../assets/Slide-11.png") center / cover no-repeat;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.bio-modal {
  color: #fff;
  background: linear-gradient(102deg, var(--graphite) 0%, #0d0000 100%);
}

.bio-modal .script-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4rem);
}

.gallery-modal {
  position: relative;
  border: 0;
  background: transparent;
}

.gallery-modal img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

@media (max-width: 991px) {
  .site-nav {
    background: rgba(0, 0, 0, 0.94);
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-copy,
  .split-media {
    min-height: 50vh;
    padding: 4rem 2rem;
  }

  .logo-panel {
    min-height: 42vh;
    border-radius: 0;
  }

  .hero-photo {
    min-height: 58vh;
  }

  .lesson-photo,
  .contact-photo {
    min-height: 48vh;
  }

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

@media (max-width: 575px) {
  .navbar-brand img {
    width: 150px;
  }

  .split-copy,
  .split-media {
    padding: 3rem 1.25rem;
  }

  .section-title {
    font-size: 2.6rem;
  }

  .script-title {
    font-size: 2.85rem;
  }

  .project-card {
    min-height: auto;
    padding: 24px;
  }

  .project-card img {
    height: 210px;
  }

  .project-card p {
    min-height: 0;
  }

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