/* Dual palette: Primary Blue (purity) + Primary Red (dynamism) */
:root {
  --classical: #66aaff;
  --classical-deep: #0057ff;
  --classical-ink: #0033cc;

  --jazz: #990000;
  --jazz-deep: #1a0003;
  --jazz-red: #ff0000;
  --jazz-red-light: #ff4444;

  --bridge: #cc0077;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --header-h: 4.5rem;
  --grid-size: 9px;
}

@font-face {
  font-family: "Bravura";
  src: url("https://cdn.jsdelivr.net/npm/bravura-font@1.393/font/bravura.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--jazz-deep);
  color: var(--classical-ink);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  background: rgba(14, 6, 8, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.logo:hover {
  color: var(--jazz-red-light);
}

.nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--jazz-red-light);
}

.vol-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vol-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.vol-btn:hover {
  color: #ffffff;
}

.vol-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.vol-btn.muted .vol-waves {
  display: none;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.vol-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), calc(var(--grid-size) * 10) calc(var(--grid-size) * 10), calc(var(--grid-size) * 10) calc(var(--grid-size) * 10);
  animation: gridPaperJitter 5.6s steps(14, end) infinite;
}

.hero__notes {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.note-box {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--grid-size);
  height: var(--grid-size);
  background: rgba(255, 255, 255, 0.18);
  color: #000000;
  font-family: var(--font-body);
  font-size: 4px;
  font-weight: 600;
  letter-spacing: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  will-change: transform;
}

.note-box--active {
  background: rgba(255, 215, 0, 0.9);
}

.hero__symbols {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero__symbol {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--grid-size);
  height: var(--grid-size);
  overflow: hidden;
  background: #ffffff;
  border: none;
  box-sizing: border-box;
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

.hero__symbol--note1,
.hero__symbol--rest {
  background: #ffffff;
  border: none;
  box-shadow: none;
}

.hero__symbol-glyph {
  display: block;
  font-family: "Bravura", serif;
  line-height: 1;
  text-align: center;
  color: #000000;
  transform-origin: center center;
}

.hero__symbol--note64 .hero__symbol-glyph {
  font-size: 7px;
  transform: translate(2px, 7px);
}

.hero__symbol--note32 .hero__symbol-glyph {
  font-size: 8px;
  transform: translate(2px, 7px);
}

.hero__symbol--note16 .hero__symbol-glyph {
  font-size: 9px;
  transform: translate(2px, 6px);
}

.hero__symbol--note8 .hero__symbol-glyph {
  font-size: 10px;
  transform: translate(2px, 6px);
}

.hero__symbol--note4 .hero__symbol-glyph {
  font-size: 11px;
  transform: translate(2px, 5px);
}

.hero__symbol--note2 .hero__symbol-glyph {
  font-size: 11px;
  transform: translate(2px, 5px);
}

.hero__symbol--note1 .hero__symbol-glyph {
  font-size: 13px;
  transform: translate(0, 6px);
}

.hero__symbol--rest .hero__symbol-glyph {
  font-size: 17px;
  transform: translate(0, 0);
}

.hero__symbol--dblflat .hero__symbol-glyph {
  font-size: 14px;
  transform: translate(-1px, 0);
}

.hero__symbol--flat .hero__symbol-glyph {
  font-size: 17px;
  transform: translate(0, 0);
}

.hero__symbol--natural .hero__symbol-glyph {
  font-size: 17px;
  transform: translate(0, 0);
}

.hero__symbol--sharp .hero__symbol-glyph {
  font-size: 17px;
  transform: translate(0, 0);
}

.hero__symbol--dblsharp .hero__symbol-glyph {
  font-size: 15px;
  transform: translate(0, 0);
}

.hero__classical,
.hero__jazz {
  position: absolute;
  inset: 0;
}

.hero__classical {
  background: linear-gradient(
    160deg,
    #99ccff 0%,
    var(--classical-deep) 55%,
    #003dcc 100%
  );
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
  z-index: 1;
}

.hero__jazz {
  background: linear-gradient(
    145deg,
    var(--jazz-deep) 0%,
    #660000 40%,
    var(--jazz-red) 100%
  );
  z-index: 0;
}

.hero__texture {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.hero__texture--classical {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(0, 51, 204, 0.08) 39px,
      rgba(0, 51, 204, 0.08) 40px
    ),
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

.hero__texture--jazz {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 0, 0, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 60% 70%, rgba(255, 0, 0, 0.2) 0%, transparent 50%),
    repeating-radial-gradient(
      circle at 80% 40%,
      transparent 0,
      transparent 3px,
      rgba(255, 0, 0, 0.08) 3px,
      rgba(255, 0, 0, 0.08) 4px
    );
}

.hero__bridge {
  position: absolute;
  top: 0;
  left: 38%;
  width: 12%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 87, 255, 0) 0%,
    rgba(0, 87, 255, 0.7) 40%,
    rgba(255, 0, 0, 0.85) 50%,
    rgba(255, 0, 0, 0.7) 60%,
    rgba(255, 0, 0, 0) 100%
  );
  mix-blend-mode: normal;
  opacity: 0.75;
}

.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2.5rem) 1.5rem 5rem;
}

.hero__intro {
  width: 100%;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 16px rgba(0,0,0,0.55), 0 0 40px rgba(0,0,0,0.3);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.9s ease 0.1s both;
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.06em;
  padding-right: 0;
  padding-bottom: 0.08em;
  transform: translateX(-0.08em);
  background: linear-gradient(
    95deg,
    #cc1133 0%,
    #ee3355 30%,
    #ffffff 50%,
    #2255dd 70%,
    #0033bb 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0;
  animation: fadeUp 0.9s ease 0.25s both;
}

.hero__quotes {
  width: min(100%, 44rem);
  padding: 0;
  background: transparent;
  margin-top: 3rem;
  animation: fadeUp 0.9s ease 0.4s both;
}

.hero__quote {
  margin: 0;
  text-align: center;
}

.hero__quote + .hero__quote {
  margin-top: 1.35rem;
}

.hero__quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
}

.hero__quote-cite {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 16px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.4);
}

.placeholder-section {
  min-height: 60vh;
  padding: 6rem 2rem;
  text-align: center;
  background: var(--jazz-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.placeholder-section:nth-child(even) {
  background: var(--jazz);
}

#bio,
#awards,
#talks {
  background: linear-gradient(
    165deg,
    #7a1818 0%,
    #c42424 48%,
    #e04545 100%
  );
  border-top-color: rgba(255, 60, 60, 0.22);
}

#works,
#books {
  background: linear-gradient(
    165deg,
    #2a6fd4 0%,
    #4d8fff 50%,
    #72a8ff 100%
  );
  border-top-color: rgba(0, 87, 255, 0.25);
}

.placeholder-section h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.placeholder-section p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.bio-section {
  text-align: left;
  color: #f5f5f5;
}

.bio-section .bio-section-title,
.awards-section .bio-section-title,
.works-section .bio-section-title,
.books-section .bio-section-title,
.talks-section .bio-section-title {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.awards-section,
.works-section,
.books-section,
.talks-section {
  text-align: left;
}

.books-section .bio-cv-line,
.talks-section .bio-cv-line {
  margin: 0 0 1.3em;
  max-width: 68rem;
}

.talks-section .works-video {
  margin: 1rem auto 1.3em;
  max-width: min(100%, 720px);
}

.awards-photo {
  margin: 1.25rem auto 0;
  max-width: min(100%, 720px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.awards-photo__img {
  display: block;
  width: 100%;
  height: auto;
}

.works-list > .bio-cv-title:not(:first-child) {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.works-list .bio-cv-line {
  margin: 0 0 1.3em;
}

.works-list .bio-cv-line:last-child {
  margin-bottom: 0;
}

.works-video {
  position: relative;
  margin: 1rem auto 1.3em;
  max-width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.works-video__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.works-poster {
  margin: 1rem auto 1.3em;
  max-width: min(100%, 480px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.works-poster.works-photo {
  max-width: min(100%, 720px);
}

.works-list .works-poster + .bio-cv-line,
.works-list .works-video + .bio-cv-line {
  margin-top: 0;
}

.works-poster__img {
  display: block;
  width: 100%;
  height: auto;
}

.bio-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.bio-left {
  max-width: 44rem;
}

.bio-section .bio-name {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.bio-subname {
  margin-top: 0.35rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.12rem;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.15vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.22);
  -webkit-font-smoothing: antialiased;
}

.bio-photo {
  position: relative;
  margin: 0 auto;
  width: min(100%, 420px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.bio-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-roles {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.2rem;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.15vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.22);
  -webkit-font-smoothing: antialiased;
}

.bio-role-single-line {
  white-space: nowrap;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.bio-right {
  padding-top: clamp(10rem, 14vw, 11.8rem);
}

.bio-contact {
  font-style: normal;
  font-family: "Madefor-Text", "Wix Madefor Text", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.15vw, 1.15rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.55);
  -webkit-font-smoothing: antialiased;
}

.bio-socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.bio-socials a,
.bio-socials__link {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.bio-socials__link.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.bio-quote {
  margin-top: 2.6rem;
  max-width: 68rem;
  font-family: "Madefor-Text", "Wix Madefor Text", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.15vw, 1.15rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.55);
  -webkit-font-smoothing: antialiased;
}

.bio-history {
  margin-top: 1.1rem;
  max-width: 68rem;
  font-family: "Madefor-Text", "Wix Madefor Text", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.15vw, 1.15rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.55);
  -webkit-font-smoothing: antialiased;
}

.bio-cv {
  margin-top: 1.25rem;
  max-width: 68rem;
}

.bio-cv-title {
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
  font-family: "Madefor-Text", "Wix Madefor Text", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.15vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.55);
  -webkit-font-smoothing: antialiased;
}

.bio-cv-line {
  margin: 0.08rem 0;
  font-family: "Madefor-Text", "Wix Madefor Text", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.15vw, 1.15rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.55);
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridPaperJitter {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(0.4px, -0.5px, 0); }
  50% { transform: translate3d(-0.5px, 0.3px, 0); }
  75% { transform: translate3d(0.3px, 0.5px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (max-width: 768px) {
  .hero__classical {
    clip-path: polygon(0 0, 100% 0, 100% 38%, 0 52%);
  }

  .hero__bridge {
    display: none;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav a {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .bio-top {
    grid-template-columns: 1fr;
  }

  .bio-right {
    padding-top: 0.4rem;
  }

  .bio-photo {
    width: min(100%, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero::before {
    animation: none;
  }
}
