@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f5f1e9;
  --surface: #fcfaf5;
  --surface-strong: #fffdf8;
  --ink: #27332e;
  --muted: #68736c;
  --faint: #a6aaa1;
  --line: rgba(39, 51, 46, .16);
  --line-strong: rgba(39, 51, 46, .28);
  --accent: #536f5a;
  --accent-soft: rgba(83, 111, 90, .11);
  --accent-line: rgba(83, 111, 90, .42);
  --low: #607d9a;
  --high: #ae7658;
  --button: #354e40;
  --button-ink: #fffdf8;
  --celebrate: #8aaa87;
  --notation-paper: #fffcf5;
  --notation-ink: #27332e;
  --notation-line: rgba(39, 51, 46, .34);
  --notation-faint: rgba(39, 51, 46, .15);
  --shadow: 0 20px 45px rgba(54, 57, 46, .07);
  --radius: 18px;
  --font: "DM Sans", "Noto Sans KR", sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { background: var(--bg); font-family: var(--font); }
button, input { font-family: inherit; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 10px 15px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.section-wrap { width: min(100% - 64px, 1240px); margin-inline: auto; }
.site-header {
  position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px; min-height: 80px; padding: 0 max(32px, calc((100vw - 1240px)/2));
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.site-brand { display: inline-flex; align-items: center; width: 126px; text-decoration: none; }
.site-brand img { width: 100%; height: auto; }
.site-nav { display: flex; gap: clamp(19px, 2.8vw, 43px); align-items: center; }
.site-nav a { color: #56645a; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: #a06d48; }
.header-aside { justify-self: end; color: #8b9186; font-family: "Playfair Display", Georgia, serif; font-size: 13px; font-style: italic; }
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(35px, 5vw, 88px); min-height: 640px; padding-top: 60px; padding-bottom: 72px; }
.hero-copy { position: relative; padding-bottom: 10px; }
.eyebrow, .section-kicker, .group-label { color: #937b60; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 27px; }
.eyebrow-line { display: inline-block; width: 31px; height: 1px; background: #af9270; }
.hero h1, .section-heading h2 { margin: 0; color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-weight: 400; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(60px, 6.7vw, 86px); line-height: 1.04; }
.hero h1 em, .section-heading h2 em { color: #708b73; font-weight: 400; }
.hero-intro { max-width: 405px; margin: 29px 0 0; color: #58645b; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 36px; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; min-width: 171px; padding: 14px 19px; border-radius: 5px; background: var(--button); color: white; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.primary-link:hover { transform: translateY(-2px); background: #496a55; }
.quiet-link { color: #596d5d; font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.hero-footnote { margin: 62px 0 0; color: #788478; font-family: "Playfair Display", Georgia, serif; font-size: 15px; font-style: italic; }
.hero-figure { position: relative; margin: 0; padding: 13px 13px 0; background: #e8e0d0; box-shadow: 14px 18px 0 rgba(191, 180, 158, .22); transform: rotate(1.1deg); }
.hero-figure img { width: 100%; aspect-ratio: 1.26; object-fit: cover; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 15px; padding: 15px 5px 16px; color: #746f62; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero-doodle { position: absolute; top: -38px; right: -15px; color: #9fae91; font-family: Georgia, serif; font-size: 59px; transform: rotate(-9deg); }
.about-section, .history-section, .gallery-section { border-top: 1px solid var(--line); padding-top: 72px; padding-bottom: 76px; }
.about-section { display: grid; grid-template-columns: 1fr .75fr; gap: 12%; }
.section-heading h2 { margin-top: 21px; font-size: clamp(43px, 5vw, 69px); line-height: 1.17; }
.section-heading > p { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.about-copy { padding-top: 45px; }
.about-copy p { margin: 0 0 18px; color: #56635a; font-size: 15px; line-height: 1.9; }
.about-copy em { color: var(--ink); }
.social-links { display: flex; gap: 26px; margin-top: 29px; }
.social-links a { color: #47684f; font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.history-section > .section-heading { margin-bottom: 48px; }
.performance-intro { display: flex; align-items: center; gap: 23px; padding: 0 0 27px; border-bottom: 1px solid var(--line); }
.performance-date { display: inline-flex; align-items: center; gap: 7px; color: #a88562; font-family: "Playfair Display", Georgia, serif; font-size: 49px; line-height: 1; }
.performance-date small { font-family: var(--font); font-size: 9px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; }
.performance-intro h3 { margin: 0 0 5px; font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 500; }
.performance-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 28px; }
.team-card { overflow: hidden; border: 1px solid var(--line); background: #fbf9f3; }
.memory-carousel { position: relative; overflow: hidden; background: #e7dfd1; }
.memory-carousel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-visual { height: auto; aspect-ratio: 4 / 3; }
.team-visual img { object-fit: contain; }
.carousel-arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(252, 250, 245, .91); color: var(--ink); cursor: pointer; font-size: 17px; transform: translateY(-50%); }
.carousel-previous { left: 14px; } .carousel-next { right: 14px; }
.carousel-counter { position: absolute; right: 14px; bottom: 14px; padding: 5px 8px; border-radius: 3px; background: rgba(39, 51, 46, .76); color: #fff; font-size: 10px; letter-spacing: .08em; }
.team-details { padding: 27px 29px 30px; }
.team-details h3 { margin: 11px 0 25px; font-family: "Playfair Display", Georgia, serif; font-size: 31px; font-weight: 500; letter-spacing: -.035em; }
.song-list { margin: 0; padding: 0; list-style: none; }
.song-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.song-list a { flex: 0 0 auto; color: #56745d; font-size: 12px; font-weight: 700; text-decoration: none; }
.song-list a:hover { text-decoration: underline; }
.ensemble-card { grid-column: 1 / -1; background: #e9eee4; }
.ensemble-card .team-details { padding-block: 27px 30px; }
.gallery-heading { margin-bottom: 42px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.gallery-card { position: relative; display: block; overflow: hidden; padding: 0; border: 0; background: #d8d0be; cursor: pointer; text-align: left; }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
.gallery-afterparty img { object-position: center top; }
.gallery-card:hover img { transform: scale(1.045); }
.gallery-card::after { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(27, 32, 28, .74)); content: ""; }
.gallery-card-label { position: absolute; z-index: 1; right: 21px; bottom: 20px; left: 21px; display: grid; gap: 6px; color: white; }
.gallery-card-label small { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gallery-card-label strong { font-family: "Playfair Display", Georgia, serif; font-size: clamp(18px, 2vw, 26px); font-weight: 500; line-height: 1.15; }
.practice-section { padding: 72px 0 82px; background: #ebece4; }
.practice-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 39px; }
.practice-heading p { margin-bottom: 8px; }
.app-shell { display: flex; width: min(100% - 64px, 1240px); min-height: 0; gap: 20px; margin: 0 auto; padding: 0; }
.tool-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mode-switch { width: min(100%, 480px); }
.mode-view { flex: none; }
.score-view { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.score-player-panel { grid-column: 1 / -1; }
.score-message { grid-column: 1 / -1; }
.score-library, .score-import, .score-player-panel, .pitch-graph { box-shadow: none; background: #faf9f3; }
.library-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.library-item { min-height: 58px; }
.score-library, .score-import { padding: 22px; }
.score-import { align-content: center; }
.score-player-panel { padding: 28px; }
.notation-meter { fill: #7b816f; font-size: 9px; font-weight: 700; }
.notation-slur { fill: none; stroke: var(--notation-ink); stroke-width: 1.1; opacity: .8; }
[hidden] { display: none !important; }
.part-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.part-mixer .section-label { flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.part-mixer .section-label > span { max-width: 100%; text-align: right; }
.tuner-view { grid-template-columns: minmax(285px, .72fr) minmax(0, 1.28fr); grid-template-rows: minmax(300px, auto) auto; gap: 20px; }
.pitch-summary { grid-column: 1; grid-row: 1; min-height: 320px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #faf9f3; }
.pitch-graph { grid-column: 2; grid-row: 1 / 3; min-height: 410px; }
.reference-section { grid-column: 1; grid-row: 2; align-content: start; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #faf9f3; }
.reference-section h2 small { margin-left: 10px; color: var(--muted); font-size: 11px; font-weight: 400; }
.tuning-meter { position: relative; width: min(100%, 280px); height: 12px; margin: 21px 0 0; border-radius: 999px; background: linear-gradient(90deg, #a4b8c5 0%, #e5e8dc 31%, #d1dfce 38%, #d1dfce 62%, #e5e8dc 69%, #ccac96 100%); }
.meter-band { position: absolute; top: -3px; left: 35%; width: 30%; height: 18px; border: 1px solid #71926c; border-radius: 999px; }
.meter-needle { position: absolute; top: -7px; left: 50%; width: 3px; height: 26px; border-radius: 3px; background: var(--ink); box-shadow: 0 1px 4px #0004; transform: translateX(-50%); transition: left .12s ease; }
.meter-zero { position: absolute; top: 3px; left: 50%; width: 1px; height: 6px; background: #4e6d52; }
.meter-labels { display: flex; justify-content: space-between; width: min(100%, 280px); margin-top: 11px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.pitch-letter { font-size: clamp(68px, 7vw, 94px); }
.note-button { touch-action: none; user-select: none; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: min(100% - 64px, 1240px); min-height: 108px; margin: 0 auto; padding: 25px 0; color: #67746a; text-align: left; white-space: normal; }
.footer-mark { width: 132px; height: auto; flex: none; }
.site-footer p { margin: 0; font-size: 12px; }
.site-footer a { font-size: 12px; font-weight: 700; text-decoration: none; }
.gallery-dialog { width: min(100% - 34px, 920px); max-width: none; max-height: min(92vh, 1050px); padding: 0; border: 0; background: #fbf9f3; box-shadow: 0 25px 80px #1d2b2455; }
.gallery-dialog::backdrop { background: rgba(24, 32, 27, .8); }
.dialog-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr); }
.dialog-image-wrap { position: relative; display: grid; place-items: center; min-height: 420px; max-height: min(88vh, 900px); background: #e8e1d5; }
.dialog-image-wrap img { width: 100%; height: 100%; max-height: min(88vh, 900px); object-fit: contain; }
.dialog-prev, .dialog-next { position: absolute; top: 50%; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fbf9f3e8; color: var(--ink); cursor: pointer; font-size: 20px; transform: translateY(-50%); }
.dialog-prev { left: 16px; } .dialog-next { right: 16px; }
.dialog-caption { display: flex; flex-direction: column; justify-content: center; padding: 36px; }
.dialog-caption > span { color: #a18464; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dialog-caption h2 { margin: 15px 0; font-family: "Playfair Display", Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1.15; }
.dialog-caption p { color: #637065; font-size: 14px; line-height: 1.7; }
.dialog-caption small { margin-top: 45px; color: #9b9e91; font-size: 11px; }
.dialog-close { position: absolute; z-index: 3; top: 15px; right: 15px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #f6f3ea; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr; padding-inline: 24px; }
  .header-aside { display: none; }
  .site-nav { justify-content: end; gap: 18px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 43px; padding-top: 65px; }
  .hero-copy { max-width: 690px; }
  .hero h1 { font-size: clamp(62px, 9vw, 80px); }
  .hero-figure { width: min(calc(100% - 16px), 720px); margin-inline: auto; }
  .about-section { grid-template-columns: 1fr; gap: 20px; }
  .about-copy { max-width: 660px; padding-top: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .section-wrap, .app-shell, .site-footer { width: min(100% - 36px, 560px); }
  .site-header { grid-template-columns: 1fr; gap: 0; min-height: 101px; padding: 11px 18px 12px; }
  .site-brand { width: 114px; }
  .site-nav { justify-content: space-between; gap: 10px; overflow-x: auto; padding-top: 8px; }
  .site-nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 58px; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(55px, 12vw, 80px); }
  .hero-intro { margin-top: 21px; font-size: 14px; }
  .hero-footnote { display: none; }
  .hero-figure { max-width: 570px; }
  .hero-doodle { right: 1px; }
  .about-section, .history-section, .gallery-section { padding-top: 55px; padding-bottom: 54px; }
  .about-section { grid-template-columns: 1fr; gap: 15px; }
  .about-copy { padding-top: 0; }
  .section-heading h2 { font-size: clamp(39px, 9vw, 57px); }
  .team-grid { grid-template-columns: 1fr; gap: 20px; }
  .team-visual { height: auto; }
  .practice-heading { align-items: start; flex-direction: column; gap: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .gallery-card img { aspect-ratio: 1; }
  .gallery-card-label { right: 12px; bottom: 12px; left: 12px; }
  .gallery-card-label strong { font-size: 17px; }
  .practice-section { padding: 55px 0 65px; }
  .tool-topbar { align-items: stretch; flex-direction: column; }
  .mode-switch { width: 100%; }
  .topbar-actions { align-self: flex-start; }
  .score-view, .tuner-view { display: grid; grid-template-columns: 1fr; }
  .library-search { max-width: none; }
  .score-player-panel, .score-message, .pitch-summary, .pitch-graph, .reference-section { grid-column: 1; grid-row: auto; }
  .library-list, .part-list { grid-template-columns: 1fr; }
  .part-mixer .section-label > span { width: 100%; text-align: left; }
  .score-import { grid-template-columns: auto 1fr; }
  .score-import .secondary-button { grid-column: 1 / -1; }
  .tuner-view { grid-template-rows: auto auto auto; }
  .pitch-summary { min-height: 260px; }
  .pitch-graph { min-height: 350px; }
  .reference-section { padding: 17px; }
  .site-footer { flex-wrap: wrap; min-height: 125px; }
  .site-footer p { order: 3; width: 100%; }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-image-wrap { min-height: 0; max-height: 64vh; }
  .dialog-image-wrap img { height: auto; max-height: 64vh; }
  .dialog-caption { padding: 20px 23px 24px; }
  .dialog-caption h2 { margin: 8px 0; font-size: 26px; }
  .dialog-caption p { margin: 0; font-size: 12px; }
  .dialog-caption small { margin-top: 12px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 49px; }
  .hero-actions { row-gap: 17px; }
  .gallery-card-label strong { font-size: 15px; }
  .performance-intro { gap: 14px; }
  .performance-intro h3 { font-size: 20px; }
}
