:root {
  --bg: #f3f2ef;
  --ink: #171512;
  --line: #171512;
  --nav-gap: 2.5rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-weight: 400;
}

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

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 3rem;
}

.logo {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  font-size: 1rem;
}

.main-nav a.current { text-decoration: underline; text-underline-offset: 6px; }

.icon-link { display: flex; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 80vh;
}

.hero-media {
  overflow: hidden;
}

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

.hero-content {
  padding: 4rem 5rem 4rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 3rem 0;
}

/* ---------- Accordion ---------- */
.accordion {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.accordion-item { border-bottom: 1px solid var(--line); }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  font-family: inherit;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::before { width: 16px; height: 1.5px; }
.accordion-icon::after { width: 1.5px; height: 16px; transition: transform 0.25s ease; }

.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.95rem;
  color: #4a4842;
}

.accordion-panel p { margin: 0 0 1.1rem 0; }

.sub-links {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
}

.sub-links li + li { margin-top: 0.9rem; }

.sub-links a {
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.sub-links a:hover,
.sub-links a:focus-visible { border-color: var(--ink); }

/* ---------- Inner pages (Discography, Scores, About, Contact...) ---------- */
.page-hero {
  padding: 4rem 4.5rem 3rem 4.5rem;
  border-bottom: 1px solid var(--line);
}

.page-back {
  display: inline-block;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--ink);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
}

.page-body {
  max-width: 640px;
  padding: 3rem 4.5rem 5rem 4.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2c2a26;
}

.page-body p { margin: 0 0 1.4rem 0; }

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.entry-list li {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.entry-list .entry-title { font-size: 1.1rem; }
.entry-list .entry-meta { font-size: 0.9rem; color: #6b6862; }

/* ---------- Discography ---------- */
.release-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem 3rem;
  max-width: none;
  padding: 3rem 4.5rem 5rem 4.5rem;
}

.release-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.9rem 0;
}

.release-artist {
  font-style: italic;
  font-weight: 500;
  margin: 0 0 0.4rem 0;
}

.release-role {
  font-style: italic;
  color: #4a4842;
  margin: 0 0 1.2rem 0;
  font-size: 0.95rem;
}

.bandcamp-embed {
  width: 100%;
  max-width: 350px;
}

.bandcamp-embed iframe { width: 100%; border: 0; display: block; }

.bandcamp-embed-placeholder {
  width: 100%;
  max-width: 350px;
  min-height: 120px;
  border: 1px dashed #b6b2a8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #8a877f;
}

@media (max-width: 900px) {
  .release-grid { grid-template-columns: 1fr; padding: 2rem 1.75rem 3rem 1.75rem; gap: 2.5rem; }
}

/* ---------- Collaboration page (Bach on the beat, etc.) ---------- */
.collab {
  position: relative;
  padding: 4.5rem 4.5rem 5rem 4.5rem;
  overflow: hidden;
}

.collab-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

.collab-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.collab-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.9rem 0;
}

.collab-subtitle {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.4rem 0;
}

.collab-divider {
  width: 140px;
  height: 1px;
  background: var(--line);
  margin: 0 auto 3rem auto;
}

.collab-text {
  font-size: 1.02rem;
  line-height: 1.75;
  text-align: justify;
}

.collab-text p { margin: 0 0 1.6rem 0; }

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 2.5rem;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .collab { padding: 3rem 1.75rem 3.5rem 1.75rem; }
  .collab-text { text-align: left; }
}

/* ---------- Music Videos ---------- */
.video-rows {
  padding: 3rem 4.5rem 5rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.video-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.video-row-text { padding-right: 1rem; }

.video-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.9rem 0;
}

.video-title .video-title-sub {
  font-weight: 400;
  text-transform: none;
  font-size: 1rem;
  letter-spacing: normal;
}

.video-director {
  font-size: 0.92rem;
  margin: 0 0 1rem 0;
  color: #4a4842;
}

.video-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2c2a26;
  margin: 0;
}

.video-row-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-row-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .video-rows { padding: 2rem 1.75rem 3rem 1.75rem; gap: 3rem; }
  .video-row { grid-template-columns: 1fr; }
  .video-row-media { order: -1; }
}

/* ---------- Live & Demos (SoundCloud) ---------- */
.soundcloud-embeds {
  padding: 1rem 4.5rem 5rem 4.5rem;
  max-width: 780px;
}

.soundcloud-embed { margin-bottom: 2.8rem; }
.soundcloud-embed iframe { display: block; }

.sc-credit {
  font-size: 0.78rem;
  color: #9a978f;
  margin-top: 0.4rem;
  font-family: 'Jost', sans-serif;
}

.sc-credit a { color: #9a978f; text-decoration: none; }
.sc-credit a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .soundcloud-embeds { padding: 1rem 1.75rem 3rem 1.75rem; }
}

/* ---------- Synthesis x Expressive E ---------- */
.synth-hero {
  padding: 4rem 4.5rem 2.5rem 4.5rem;
  border-bottom: 1px solid var(--line);
}

.synth-hero .page-back { margin-bottom: 1.5rem; }

.synth-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1.6rem 0;
}

.synth-hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  max-width: 62ch;
}

/* Gallery: main player + filmstrip of thumbnails */
.video-gallery {
  padding: 4rem 4.5rem 5.5rem 4.5rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.video-main-wrap {
  position: relative;
  width: 100%;
}

.video-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-main.is-vertical {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 0 auto;
}

.video-main iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumbs {
  display: flex;
  flex-direction: column;
  max-height: 420px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 1.1rem 0.25rem 1.1rem 1.1rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.video-thumb:hover { background: rgba(23,21,18,0.04); }

.video-thumb:focus { outline: none; }
.video-thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.video-thumb::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ink);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.video-thumb.is-active::before { transform: scaleY(1); }

.caption-title {
  display: block;
  font-size: 0.95rem;
  line-height: 1.4;
}

.video-thumb.is-active .caption-title { font-weight: 500; }

.caption-sub {
  display: block;
  font-size: 0.8rem;
  color: #8a877f;
  margin-top: 0.2rem;
}



@media (max-width: 900px) {
  .synth-hero { padding: 2.5rem 1.75rem 2rem 1.75rem; }
  .video-gallery { grid-template-columns: 1fr; padding: 2.5rem 1.75rem 3rem 1.75rem; }
  .video-thumbs { max-height: 260px; }
}

/* ---------- Scores (Chamber Music / Orchestral Works) ---------- */
.score-section {
  padding: 3rem 4.5rem 3.5rem 4.5rem;
}

.score-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  margin: 0 0 2.2rem 0;
}

.score-heading .score-dash {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  flex-shrink: 0;
}

.score-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.score-list li {
  font-size: 1.1rem;
  padding: 0.55rem 0;
}

.page-next {
  border-top: 1px solid var(--line);
  padding: 2.5rem 4.5rem 3.5rem 4.5rem;
  display: flex;
  justify-content: center;
}

.page-next a {
  font-size: 1.05rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.3rem;
}

@media (max-width: 900px) {
  .score-section { padding: 2.2rem 1.75rem 2.5rem 1.75rem; }
  .page-next { padding: 2rem 1.75rem 3rem 1.75rem; }
}

/* ---------- Score PDF viewer (Orchestral Works) ---------- */
.score-viewer {
  padding: 3.5rem 4.5rem 5.5rem 4.5rem;
  display: grid;
  grid-template-columns: 2.7fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.score-viewer-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
}

.score-viewer-sub {
  font-size: 0.95rem;
  color: #6b6862;
  margin: 0 0 1.4rem 0;
}

.score-frame {
  position: relative;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 210 / 297;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.score-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.score-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
  padding: 0.9rem 1.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

.score-download:hover { background: var(--ink); color: #f3f2ef; }

.score-nav-list {
  display: flex;
  flex-direction: column;
  max-height: 560px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.score-nav-item {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 1.1rem 0.25rem 1.1rem 1.1rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.15s ease;
}

.score-nav-item:hover { background: rgba(23,21,18,0.04); }
.score-nav-item:focus { outline: none; }
.score-nav-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.score-nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ink);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.score-nav-item.is-active::before { transform: scaleY(1); }
.score-nav-item.is-active { font-weight: 500; }

.score-nav-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.score-nav-sub {
  display: block;
  font-size: 0.82rem;
  color: #9a978f;
  margin-top: 0.3rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .score-viewer { grid-template-columns: 1fr; padding: 2.5rem 1.75rem 3rem 1.75rem; }
  .score-frame { max-width: 100%; }
}

/* ---------- About ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 84px);
}

.about-media {
  position: relative;
  background: #e4e1d9;
  overflow: hidden;
}

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

.about-media .photo-placeholder {
  position: absolute;
  inset: 1.5rem;
  border: 1px dashed #b6b2a8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #8a877f;
  text-align: center;
  padding: 1rem;
}

.about-content {
  padding: 3.5rem 5rem 4rem 4.5rem;
}

.about-lang-toggle {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: #b6b2a8;
  padding: 0.15rem 0.1rem;
}

.lang-btn.is-active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.lang-sep { color: #b6b2a8; }

.about-text[hidden] { display: none; }

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1.4rem 0;
  color: #2c2a26;
}

.about-text strong { font-weight: 600; }

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; min-height: 0; }
  .about-media { min-height: 320px; }
  .about-content { padding: 2.5rem 1.75rem 3rem 1.75rem; }
}

/* ---------- Contact ---------- */
.contact-main {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 3rem 4.5rem;
}

.contact-panel { max-width: 420px; }

.contact-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a877f;
  margin: 0 0 0.6rem 0;
}

.contact-email {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 400;
  margin: 0 0 2.2rem 0;
  word-break: break-word;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.contact-btn:hover { background: var(--ink); color: #f3f2ef; }

.contact-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: #6b6862;
  border-bottom: 1px solid transparent;
  padding: 0.2rem 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-copy:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 900px) {
  .contact-main { padding: 2.5rem 1.75rem; min-height: 60vh; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header { padding: 1.25rem 1.5rem; flex-wrap: wrap; gap: 1rem; }
  .main-nav { gap: 1.5rem; font-size: 0.95rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 55vh; }
  .hero-content { padding: 2.5rem 1.75rem; }
  .page-hero { padding: 2.5rem 1.75rem 2rem 1.75rem; }
  .page-body { padding: 2rem 1.75rem 3rem 1.75rem; }
  .entry-list li { padding: 1.1rem 1.75rem; }
}
