:root {
  --bg: #0f1113;
  --bg-alt: #16191c;
  --text: #ece7de;
  --text-muted: #a8a29a;
  --brass: #c9a24b;
  --brass-light: #e0c27a;
  --border: #2a2d31;
  --max-width: 1080px;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading-zh: 'Noto Serif SC', 'Cormorant Garamond', Georgia, serif;
  --font-body-zh: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[data-lang="zh"] body { font-family: var(--font-body-zh); }
html[data-lang="zh"] h1,
html[data-lang="zh"] h2,
html[data-lang="zh"] h3,
html[data-lang="zh"] .logo {
  font-family: var(--font-heading-zh);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--brass-light);
}

a { color: var(--brass-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 19, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(15, 17, 19, 0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding 0.3s ease;
}
.site-header.scrolled .header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.logo:hover { text-decoration: none; color: var(--brass-light); }

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.site-nav a:hover { color: var(--brass-light); text-decoration: none; }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang-toggle {
  margin-left: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover {
  border-color: var(--brass);
  color: var(--brass-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(201, 162, 75, 0.14), transparent 60%);
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero-photo { padding: 160px 0 130px; }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 17, 19, 0.55) 0%, rgba(15, 17, 19, 0.75) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(15, 17, 19, 0.5) 0%, rgba(15, 17, 19, 0.15) 50%, rgba(15, 17, 19, 0.5) 100%);
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; }

.hero-anim {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 0.7s ease forwards;
  animation-delay: calc(var(--d) * 0.12s + 0.1s);
}

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--brass);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 12px;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--brass);
  color: #14161a;
}
.btn-primary:hover {
  background: var(--brass-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 162, 75, 0.25);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--brass);
  color: var(--brass-light);
  transform: translateY(-2px);
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.audio-stack .reveal.in-view,
.awards-grid .reveal.in-view {
  transition-delay: var(--stagger, 0s);
}

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-sub { color: var(--text-muted); margin-top: -8px; margin-bottom: 40px; }

/* Awards */
.awards { padding: 24px 0 90px; }
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.award-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-alt);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.award-item:hover {
  transform: translateY(-4px);
  border-color: var(--brass);
}
.award-rank {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--brass-light);
}
.award-name {
  font-weight: 600;
  font-size: 0.98rem;
}
.award-place {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.about-photo-grid img:hover {
  transform: translateY(-4px);
  border-color: var(--brass);
}

.about-copy p { color: var(--text-muted); margin-bottom: 16px; }

.education-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.education-list li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 5px 0;
}

.about-copy h3 {
  font-size: 1.3rem;
  color: var(--brass-light);
  margin: 32px 0 12px;
}

.judging-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.judging-list li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 5px 0;
}

.judging-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
  margin: 12px 0 0;
}

/* Recent Arrangement */
.arrangement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.arrangement-copy p {
  color: var(--text-muted);
  margin: 0;
}
.arrangement-grid .audio-card { margin: 0; }

/* Studio Policy */
.policy-copy {
  max-width: 720px;
}
.policy-copy p {
  color: var(--text-muted);
  margin: 0 0 16px;
}
.policy-copy .btn { margin-top: 8px; }

/* FAQ */
.faq-copy { max-width: 720px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--brass);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--text-muted);
  margin: 14px 0 0;
}
.faq-item p a { color: var(--brass-light); }

/* Full policy page */
.policy-page { padding-top: 160px; }
.policy-article {
  max-width: 740px;
  margin: 0 auto;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.back-link:hover { color: var(--brass-light); }

.policy-subtitle {
  color: var(--brass);
  font-size: 0.95rem;
  margin: -8px 0 24px;
}
.policy-intro {
  color: var(--text-muted);
  margin: 0 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.policy-article h3 {
  font-size: 1.4rem;
  color: var(--brass-light);
  margin: 44px 0 14px;
}
.policy-article p {
  color: var(--text-muted);
  margin: 0 0 14px;
}
.policy-list {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text-muted);
}
.policy-list li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.policy-list li strong { color: var(--text); }

.policy-closing {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-style: italic;
}

/* Audio */
.audio-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.audio-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.audio-card:hover {
  transform: translateX(4px);
  border-color: var(--brass);
}
.audio-card iframe { display: block; }
.audio-text { padding: 20px 24px 4px; }
.audio-text h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.audio-meta {
  color: var(--brass);
  font-size: 0.85rem;
  margin: 0 0 12px;
}
.audio-text p:not(.audio-meta) {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 4px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-copy p { color: var(--text-muted); }

.contact-info {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}
.contact-info li { margin-bottom: 8px; color: var(--text-muted); }

.contact-form-wrap {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.google-form-embed { display: block; }

/* Light theme for the Contact section, so the white Google Form embed
   doesn't sit awkwardly on the dark background. Overriding the shared
   design tokens locally lets every existing rule (headings, links, muted
   text, borders) adapt automatically. */
.section-light {
  background: #ffffff;
  --text: #1f2223;
  --text-muted: #5b5650;
  --brass: #8a6a22;
  --brass-light: #6f5419;
  --border: #e5e1da;
}
.section-light .contact-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
}
.section-light .contact-form-wrap {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--text-muted); }
.social-links a:hover { color: var(--brass-light); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brass);
  color: #14161a;
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--brass-light);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 800px) {
  .about-grid, .contact-grid, .arrangement-grid { grid-template-columns: 1fr; }
  .about-photo-grid { max-width: 420px; }
  .awards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }
  .nav-toggle span { transition: transform 0.25s ease, opacity 0.25s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
  }
  .site-nav.open {
    max-height: 360px;
    opacity: 1;
    padding: 16px 24px;
  }
  .lang-toggle {
    margin-left: 0;
    align-self: flex-start;
  }
  .hero { padding: 90px 0 70px; }
  .hero-photo { padding: 110px 0 80px; }
  .policy-page { padding-top: 110px; }
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-anim {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-glow { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .audio-card:hover,
  .award-item:hover,
  .about-photo-grid img:hover,
  .btn:hover {
    transform: none;
  }
}
