:root {
  --text: #1a2744;
  --muted: #2d4a78;
  --bg: #f5ede0;
  --border: rgba(255, 255, 255, 0.6);
  --accent: #1a2744;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Annapurna SIL", Georgia, "Times New Roman", serif;
  color: var(--text);
  background: url("static/clouds.jpg") center / cover no-repeat;
  background-color: var(--bg);
  line-height: 1.5;
  text-align: left;
}

.wrap {
  max-width: 400px;
  padding: 4rem 2rem;
  position: absolute;
  left: calc(65% + 80px);
  top: 30px;
  transform: translateX(-50%);
  text-align: center;
}

.avatar-wrap {
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.avatar {
  width: 480px;
  max-width: 130%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow:
    0 2px 8px rgba(26, 39, 68, 0.15),
    0 8px 30px rgba(26, 39, 68, 0.1);
}

.credit {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}

.credit:hover {
  background: var(--accent);
}

.credit .tooltip {
  position: absolute;
  bottom: 130%;
  left: 0;
  width: max-content;
  max-width: 200px;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.credit:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--accent);
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);  
}

p.tagline {
  color: var(--muted);
  margin: 0 0 2rem;
}

nav.links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

nav.links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

nav.links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.dropdown {
  position: relative;
}

.dropdown-label {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  cursor: default;
}

.dropdown:hover .dropdown-label {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  white-space: nowrap;
  font-size: 0.85rem;
}

a.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  z-index: 10;
}

a.back:hover {
  color: var(--accent);
}

main {
  margin-top: 1rem;
}

main a {
  color: var(--muted);
}

main a:hover {
  color: var(--accent);
}

.book-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.book-btn:hover {
  opacity: 0.7;
}

.bookshelf-1,
.bookshelf-2 {
  display: none;
}

.next-quote {
  position: fixed;
  top: calc(50% + 40px);
  left: calc(50% + 88px);
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.next-quote::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -30px;
  margin-left: -30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.3) 40%, transparent 70%);
  animation: glow-first 2.5s ease-in-out, glow 10s ease-in-out 2.5s infinite;
  pointer-events: none;
  filter: blur(5px);
}

.marquee {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  overflow-y: visible;
  padding: 1rem 0 2.5rem;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee-scroll 60s linear infinite;
  width: max-content;
}

.marquee-item {
  position: relative;
  flex-shrink: 0;
}

.marquee-item img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  background: var(--border);
}

.marquee-item:hover img {
  opacity: 1;
}

.marquee-item span {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--text);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.marquee-item:hover span {
  opacity: 1;
  visibility: visible;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.teaching-cta {
  position: absolute;
  left: 25%;
  top: calc(55% - 100px);
  transform: translateX(-50%);
  text-align: center;
}

.hover-gif-trigger {
  position: relative;
  border-bottom: 1px dashed var(--border);
  cursor: default;
}

.hover-gif {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
  margin-top: 8px;
}

.hover-gif-trigger:hover .hover-gif {
  opacity: 1;
  visibility: visible;
}

@keyframes glow-first {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  40% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes glow {
  0%, 70% {
    transform: scale(0.3);
    opacity: 0;
  }
  82% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.next-quote:hover {
  opacity: 0.7;
  background: transparent;
  border-color: var(--muted);
}

.bookshelf-1 {
  left: 10%;
  top: 25%;
}

.bookshelf-2 {
  left: 55%;
  top: 50%;
}

.highlight {
  position: absolute;
  max-width: 400px;
  text-align: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 1.2s ease;
  padding: 0 1.5rem;
}

.highlight.active {
  opacity: 1;
}

.highlight blockquote {
  margin: 0;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.highlight cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85em;
  color: var(--muted);
}

.conducting-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.lead {
  font-size: 25px;
}

.about-1,
.about-2,
.about-3,
.about-4 {
  font-size: 13px;
  position: absolute;
  max-width: 280px;
  padding: 0 1.5rem;
}

.about-1 {
  left: 8%;
  top: 8%;
}

.about-2 {
  left: 55%;
  top: 30%;
}

.about-3 {
  left: 15%;
  top: 55%;
}

.about-4 {
  left: 55%;
  top: 78%;
}

.music-1,
.music-2,
.music-3 {
  font-size: 13px;
  position: absolute;
  max-width: 400px;
  padding: 0 1.5rem;
  text-align: center;
}

.music-1 {
  left: 8%;
  top: 8%;
}

.music-3 {
  left: 50%;
  top: 38%;
}

.music-2 {
  left: 15%;
  top: 70%;
}

a {
  color:#1a2744;
}

.small {
  font-size:small;
  color: var(--muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  text-align: left;
  width: 140%;
  margin-left: -20%;
}

.contact-form label {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
  margin-top: 0.5rem;
  border: 1px solid var(--text);
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
}

button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-form button {
  align-self: flex-start;
}

@media (max-width: 768px) {
  .wrap {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    padding: 3rem 1.5rem;
  }

  .music-1 {
    position: relative;
    left: auto;
    top: auto;
    max-width: 100%;
    margin: 4rem auto 2rem;
  }

  .music-2,
  .music-3 {
    position: relative;
    left: auto;
    top: auto;
    max-width: 100%;
    margin: 2rem auto;
  }

  .contact-form {
    width: 100%;
    margin-left: 0;
  }

  .bookshelf-1,
  .bookshelf-2 {
    position: relative;
    left: auto;
    top: auto;
    max-width: 100%;
    margin: 2rem auto;
  }

  .highlight {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: none;
    max-height: 70vh;
    overflow-y: auto;
  }

  .next-quote {
    top: 15%;
    left: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    opacity: 0.5;
  }

  .conducting-hero {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 2rem auto;
    text-align: center;
    width: 100%;
    padding: 0 1.5rem;
  }

  .conducting-hero .avatar {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .teaching-cta {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 2rem auto;
    text-align: center;
  }

  .about-1 {
    position: relative;
    left: auto;
    top: auto;
    max-width: 100%;
    margin: 4rem auto 2rem;
    text-align: center;
    padding: 0 1.5rem;
  }

  .about-2,
  .about-3,
  .about-4 {
    position: relative;
    left: auto;
    top: auto;
    max-width: 100%;
    margin: 2rem auto;
    text-align: center;
    padding: 0 1.5rem;
  }
}

@keyframes sparkle-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.3);
  }
}