/*
Theme Name: Benjamin
Theme URI: https://benjamindioszegi.com
Author: Benjamin Dioszegi
Author URI: https://benjamindioszegi.com
Description: A premium, 100% independent dark pianist portfolio theme for Benjámin Diószegi built on the solid architecture of Twenty Ten with custom ACF dynamic integration.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: benjamin
Update URI: false
Tags: portfolio, music, dark, one-page, acf
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ink: #f8fafc;
  --ink-dim: #94a3b8;
  --paper: #030712;
  --paper-dim: #080c18;
  --gray: #40E0D0;
  --gray-light: #40E0D0;
  --hairline: rgba(64, 224, 208, 0.15);
  --max: 100%;
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* paper grain texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  background: rgba(64, 224, 208, 0.08);
  border: 1px solid var(--hairline);
  padding: 0.35rem 0.95rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 6vw;
  position: relative;
  z-index: 2;
}

/* ============================================================
   MOVEMENT DIVIDER
   ============================================================ */
.movement-divider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.5rem 0 0;
}
.movement-divider .line { flex: 1; height: 1px; background: var(--hairline); max-width: 220px; }
.movement-divider .mark {
  width: 7px; height: 7px;
  border: 1px solid var(--ink);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ============================================================
   NAV / HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s ease;
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}
.brand-logo { height: 50px; width: auto; display: block; }
.navlinks {
  display: flex;
  gap: 2.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.navlinks a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink-dim);
  transition: color 0.3s ease;
}
.navlinks a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gray-light);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.navlinks a:hover, .navlinks a.active { color: var(--gray-light); }
.navlinks a.active::after, .navlinks a:hover::after { width: 100%; left: 0; }
.navtoggle { display: none; }

@media (max-width: 760px) {
  .navlinks {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--hairline);
    transition: max-height 0.35s ease;
  }
  .navlinks.open { max-height: 400px; }
  .navlinks a { padding: 1rem 6vw; border-top: 1px solid var(--hairline); }
  .navtoggle {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: none; border: 1px solid var(--gray-light);
    color: var(--gray-light);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--ink);
  overflow: hidden;
  background: radial-gradient(circle at 30% 50%, rgba(64, 224, 208, 0.08) 0%, rgba(0, 0, 255, 0.04) 50%, transparent 100%), var(--paper-dim);
}
.hero-img {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) brightness(0.35) contrast(1.1);
  transform: scaleX(-1);
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper-dim) 0%, var(--paper-dim) 25%, rgba(8, 12, 24, 0.95) 40%, rgba(8, 12, 24, 0) 55%);
  z-index: 1;
  pointer-events: none;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scrollDownLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 6vw;
  width: 100%;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .eyebrow { color: var(--gray); display: flex; align-items: center; gap: 0.6rem; }
.hero .eyebrow .dash { width: 24px; height: 1px; background: var(--gray-light); display: inline-block; }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 9vw, 7.5rem);
  margin-top: 0.7rem;
  color: var(--ink);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: italic; font-weight: 300; color: #ffffff; }
.hero-sub {
  max-width: 36ch;
  margin-top: 1.4rem;
  font-size: 1.04rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-dim);
  border-left: 1px solid var(--gray-light);
  padding-left: 1.1rem;
}
.hero-meta {
  display: flex;
  gap: 2.6rem;
  margin-top: 2.6rem;
  flex-wrap: wrap;
}
.hero-meta div {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.hero-meta strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-top: 0.35rem;
}
.scroll-cue {
  position: absolute;
  right: 6vw; bottom: 2.6rem;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  display: flex; align-items: center; gap: 0.6rem;
  animation: fadeIn 1.5s ease 1s both;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 38px;
  background: var(--gray-light);
  animation: scrollDownLine 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: 5rem 0 5rem;
  position: relative;
  z-index: 2;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-style: italic;
  font-weight: 300;
}
.section-head .lede {
  font-weight: 300;
  color: var(--ink-dim);
  line-height: 1.65;
  max-width: 44ch;
}
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; margin-bottom: 3rem; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 460px 1.3fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.figure .img-wrapper {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/5;
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.figure:hover img { transform: scale(1.04); }
.figure .cap {
  display: flex; justify-content: space-between;
  margin-top: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.about-text p {
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-dim);
  margin-bottom: 1.6rem;
  font-size: 1.08rem;
  max-width: 72ch;
}
.about-text p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.2rem;
  float: left;
  line-height: 0.8;
  padding-right: 0.6rem;
  padding-top: 0.15rem;
  font-weight: 400;
  color: var(--gray-light);
}
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.profile-card {
  background: var(--paper-dim);
  border: 1px solid var(--hairline);
  padding: 1.5rem;
  border-radius: 4px;
}
.profile-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
}
.profile-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.85rem;
}
.profile-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}
.profile-list li:last-child { border-bottom: none; padding-bottom: 0; }
.profile-list .label { color: var(--ink-dim); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; text-transform: uppercase; }
.profile-list .val { color: var(--ink); font-weight: 400; text-align: right; max-width: 180px; }
.about-focus-card {
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gray-light);
  padding: 2rem;
  border-radius: 4px;
}
.about-focus-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.focus-item { margin-bottom: 1.2rem; }
.focus-item:last-child { margin-bottom: 0; }
.focus-item h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 0.3rem;
}
.focus-item p { font-size: 0.88rem; color: var(--ink-dim); line-height: 1.5; }

@media (max-width: 1200px) {
  .about-layout { grid-template-columns: 340px 1fr; gap: 3.5rem; }
  .about-focus-card { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-sidebar { max-width: 460px; margin: 0 auto; width: 100%; }
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.quote-section {
  padding: 0;
  text-align: center;
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.quote-content {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 3.5rem 2rem 1.75rem;
  border-top: 1px solid rgba(64, 224, 208, 0.2);
  border-bottom: 1px solid rgba(64, 224, 208, 0.2);
}
.quote-content .quote-icon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem;
  line-height: 1;
  color: var(--gray-light);
  opacity: 0.5;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}
.quote-content blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 auto 2rem;
  font-weight: 300;
  position: relative;
  z-index: 2;
}
.quote-content blockquote em { font-style: italic; font-weight: 400; color: #ffffff; }
.quote-content cite {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  position: relative;
  z-index: 2;
}
.desktop-only { display: none; }
@media (min-width: 769px) { .desktop-only { display: inline; } }

/* ============================================================
   REPERTOIRE
   ============================================================ */
.rep-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: start;
}
.rep-content-col { display: flex; flex-direction: column; }
.rep-portrait-col { position: sticky; top: 120px; align-self: start; }
.rep-portrait {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  display: block;
  border: 1px solid var(--hairline);
  filter: grayscale(20%) contrast(1.05);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(64, 224, 208, 0.08);
  transition: filter 0.4s ease;
}
.rep-portrait:hover { filter: grayscale(0%) contrast(1.1); }
.rep-portrait-caption {
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gray-light);
  text-transform: uppercase;
  text-align: center;
}
.rep-list { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
.rep-item {
  padding: 2.5rem 2rem;
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  align-items: start;
}
.rep-item:hover {
  transform: translateX(6px);
  border-color: rgba(64, 224, 208, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  background: rgba(12, 18, 36, 0.85);
}
.rep-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gray-light);
  display: block;
  line-height: 1;
  grid-row: 1 / 3;
  grid-column: 1;
  padding-top: 0.2rem;
  transition: all 0.4s ease;
  min-width: 3.5rem;
}
.rep-item:hover .num { color: #ffffff; text-shadow: 0 0 12px rgba(64, 224, 208, 0.8); transform: scale(1.05); }
.rep-item h3 { font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 400; color: var(--ink); grid-column: 2; grid-row: 1; }
.rep-item p { font-weight: 300; color: var(--ink-dim); line-height: 1.75; font-size: 0.95rem; grid-column: 2; grid-row: 2; }

@media (max-width: 1100px) {
  .rep-layout { grid-template-columns: 1fr; gap: 3rem; }
  .rep-portrait-col { position: static; display: flex; justify-content: center; }
  .rep-portrait { height: 400px; width: 340px; }
  .rep-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rep-item:hover { transform: none; box-shadow: none; }
  .rep-portrait { width: 100%; height: 300px; }
}

/* ============================================================
   EVENTS
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
@media (max-width: 850px) { .events-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.events-column {
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 2.5rem 2.2rem;
}
.events-col-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--gray-light);
  border-bottom: 1px solid rgba(64, 224, 208, 0.2);
  padding-bottom: 0.6rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.event-indicator { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.event-indicator.upcoming { background: #40E0D0; box-shadow: 0 0 8px #40E0D0; }
.event-indicator.past { background: #94a3b8; }
.events-list { display: flex; flex-direction: column; gap: 1.5rem; }
.event-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.event-card:hover { border-color: rgba(64, 224, 208, 0.4); transform: translateX(4px); }
.event-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gray-light);
  font-weight: 600;
  min-width: 85px;
  padding-right: 1rem;
  border-right: 1px solid var(--hairline);
  text-transform: uppercase;
}
.event-details h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.event-details p { font-size: 0.88rem; color: var(--ink-dim); font-weight: 300; }

/* ============================================================
   VIDEOS / LISTEN
   ============================================================ */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 820px) { .videos { grid-template-columns: 1fr; } }
.video-card .frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.video-card iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.5s ease;
}
.video-card:hover iframe { filter: grayscale(0) contrast(1); }
.video-card .cap {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ============================================================
   REPERTOIRE PREVIEW & MODAL
   ============================================================ */
.rep-headings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .rep-headings-grid { grid-template-columns: 1fr; } }
.rep-heading-card {
  padding: 1.8rem;
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: border-color 0.3s ease;
}
.rep-heading-card:hover { border-color: var(--gray-light); }
.rep-heading-card .num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 2rem; color: var(--gray-light); min-width: 2.5rem; }
.rep-heading-card h3 { font-size: 1.25rem; font-weight: 400; color: var(--ink); }

.rep-preview-box {
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 2.5rem 3rem;
  margin-top: 2rem;
}
.rep-preview-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--gray-light);
  border-bottom: 1px solid rgba(64, 224, 208, 0.2);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}
.rep-preview-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  list-style: none;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
@media (max-width: 768px) { .rep-preview-list { grid-template-columns: 1fr; } }
.rep-preview-list li { position: relative; padding-left: 1.2rem; line-height: 1.5; }
.rep-preview-list li::before { content: "•"; position: absolute; left: 0; color: var(--gray-light); }
.rep-modal-trigger-wrapper { margin-top: 2.5rem; text-align: center; }
.rep-modal-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--gray-light);
  border: 1px solid var(--gray-light);
  padding: 0.85rem 2.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.rep-modal-btn:hover { background: #ffffff; border-color: #ffffff; color: var(--paper); box-shadow: 0 0 20px rgba(64, 224, 208, 0.4); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-container {
  background: #080c18;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  max-width: 950px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.modal-header {
  padding: 1.8rem 2.2rem;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 7, 18, 0.6);
}
.modal-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--ink); }
.modal-close { background: none; border: none; color: var(--ink-dim); font-size: 2rem; cursor: pointer; line-height: 1; transition: color 0.2s ease; }
.modal-close:hover { color: var(--gray-light); }
.modal-body { padding: 2.2rem; overflow-y: auto; flex: 1; }
.modal-tabs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1rem;
}
.modal-tab-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-dim);
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.modal-tab-btn:hover, .modal-tab-btn.active { background: rgba(64, 224, 208, 0.12); border-color: var(--gray-light); color: var(--gray-light); }
.rep-composer-group {
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid var(--hairline);
  padding: 2.5rem 3rem;
  border-radius: 6px;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rep-composer-group:hover { border-color: rgba(64, 224, 208, 0.3); box-shadow: 0 15px 35px rgba(64, 224, 208, 0.05); }
.rep-composer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.8rem;
  color: var(--gray-light);
  display: inline-block;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 0.4rem;
}
.rep-works-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 4rem;
  list-style: none;
  padding: 0;
}
.rep-works-list li {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-dim);
  position: relative;
  padding-left: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.rep-works-list li::before { content: "—"; position: absolute; left: 0; color: var(--gray-light); opacity: 0.6; }
.rep-works-list li:hover { color: var(--ink); transform: translateX(4px); }
@media (max-width: 820px) {
  .rep-works-list { grid-template-columns: 1fr; gap: 1.2rem; }
  .rep-composer-group { padding: 2rem 1.8rem; }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-container { max-width: 680px; margin: 0 auto; text-align: left; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-light); }
.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(8, 12, 24, 0.8);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.85rem 1.1rem;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gray-light); box-shadow: 0 0 10px rgba(64, 224, 208, 0.15); }
.btn-submit {
  align-self: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--gray-light);
  border: 1px solid var(--gray-light);
  padding: 0.9rem 2.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
}
.btn-submit:hover { background: #ffffff; border-color: #ffffff; color: var(--paper); box-shadow: 0 0 20px rgba(64, 224, 208, 0.4); }
.form-status {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  background: rgba(64, 224, 208, 0.1);
  border: 1px solid var(--hairline);
  color: var(--gray-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-align: center;
}

/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
footer {
  background: var(--paper-dim);
  color: var(--ink-dim);
  padding: 4rem 0 1.5rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}
.contact-block { text-align: center; max-width: 1000px; margin: 0 auto; padding-bottom: 5rem; }
.contact-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}
.contact-block h2 em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; color: #ffffff; }
.contact-divider { width: 150px; height: 1px; background: var(--hairline); margin: 0 auto 3.5rem; position: relative; }
.contact-divider::after {
  content: "";
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(64, 224, 208, 0.8);
  box-shadow: 0 0 8px rgba(64, 224, 208, 0.8);
}
.foot-bottom {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0.6;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   KEYBOARD SCROLL PROGRESS BAR
   ============================================================ */
.keyboard-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 15px;
  z-index: 90;
  box-shadow: 0 -2px 0 #000000;
}
.keyboard-bar svg { display: block; width: 100%; height: 100%; }
.kb-overlay { position: absolute; inset: 0; width: 0%; overflow: hidden; }
.kb-overlay svg { width: 100vw; height: 100%; }
@media (max-width: 600px) { .keyboard-bar { height: 11px; } }

/* ============================================================
   BACKGROUND OVERLAYS
   ============================================================ */
.hero-bg-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('assets/images/bg-2.png') no-repeat right center / contain;
  opacity: 0.04;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}
.about-bg-overlay, .repertoire-bg-overlay, .complete-rep-bg-overlay, .recognition-bg-overlay, .education-bg-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('assets/images/bg-1.png') repeat center / 890px;
  opacity: 0.1;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   SOUND TOGGLE
   ============================================================ */
.sound-toggle {
  position: fixed;
  left: 6vw; bottom: 28px;
  z-index: 100;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gray-light);
  padding: 0.45rem 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.sound-toggle:hover { background: var(--gray-light); color: var(--paper); border-color: var(--gray-light); }
.sound-toggle svg { width: 13px; height: 13px; stroke: currentColor; fill: none; transition: transform 0.3s ease; }
.sound-toggle.muted svg .wave { display: none; }
@media (max-width: 600px) { .sound-toggle { bottom: 22px; left: 4vw; padding: 0.35rem 0.7rem; } }
