/* ------------------------------------------------------------
   Kim Müller — Klavierbaumeister
   Elegant, ruhig, in mattem Schwarz und Gold — inspiriert von der
   zeitlosen Lackoberfläche eines Konzertflügels.
------------------------------------------------------------- */

:root {
  --black: #0c0c0d;
  --black-soft: #141416;
  --ivory: #f7f4ee;
  --ivory-dim: #cfc9bc;
  --gold: #c9a04e;
  --gold-bright: #e3c07a;
  --line: rgba(201, 160, 78, 0.28);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --radius: 14px;
  --radius-sm: 7px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, blockquote {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 0.4em;
  color: var(--ivory);
}

p { margin: 0 0 1em; color: var(--ivory-dim); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 0.9em;
}
.eyebrow.center { text-align: center; }

h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h2.center { text-align: center; margin-bottom: 0.6em; }

.section h2 + p.eyebrow { margin-top: 0; }

/* subtle film-grain overlay for texture, like lacquer under light */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.035;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--gold), var(--gold-bright));
  z-index: 60;
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(12,12,13,0.92), rgba(12,12,13,0));
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25em;
}

.nav { display: flex; gap: 2.4rem; }
.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}
.nav a:hover { color: var(--gold-bright); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 1.5rem 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201,160,78,0.09), transparent 60%),
    linear-gradient(180deg, #0c0c0d 0%, #101012 55%, #0c0c0d 100%);
  overflow: hidden;
}

.hero-content { max-width: 640px; margin: 0 auto; will-change: transform, opacity; }

.hero .eyebrow { justify-content: center; text-align: center; }

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.15em;
}

.hero-role {
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.82rem;
  color: var(--gold-bright);
  margin-bottom: 1.8rem;
}

.hero-rule {
  width: 64px;
  height: 1px;
  margin: 0 auto 1.8rem;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ivory-dim);
  margin-bottom: 2.4rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2.6rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.btn:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(201, 160, 78, 0.45);
}

.btn-outline { background: transparent; }

/* scroll cue: replaces the old hard-edged key-strip divider between hero and content */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  opacity: 0.8;
  transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease);
}
.scroll-cue:hover { opacity: 1; border-color: var(--gold); }
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(11px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; opacity: 1; }
}

/* piano-key divider */
.key-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  height: 46px;
  opacity: 0.9;
}
.key-strip span {
  flex: 1;
  border-left: 1px solid rgba(247,244,238,0.08);
  background: linear-gradient(to bottom, rgba(247,244,238,0.03), transparent);
}
.key-strip span:first-child { border-left: none; }
.key-strip.small { position: static; height: 26px; max-width: 360px; margin: 1.6rem auto; opacity: 0.5; }

/* ---------- Sections ---------- */
.section { padding: 7rem 1.5rem; position: relative; }
.section.alt {
  background: linear-gradient(180deg,
    var(--black) 0,
    var(--black-soft) 260px,
    var(--black-soft) calc(100% - 260px),
    var(--black) 100%);
}
.section.alt + .section.alt { background: var(--black-soft); border-top: 1px solid var(--line); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-content { max-width: 760px; }

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.stats {
  display: flex;
  gap: 2.6rem;
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold-bright);
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-top: 0.3em;
}

/* ---------- Services ---------- */
.services-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service {
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.6rem 2.2rem;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.section.alt .service { background: var(--black); }
.service:hover { background: #17171a; transform: translateY(-4px); border-color: var(--gold); }
.service-icon {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.service h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}
.service p { margin: 0; font-size: 0.92rem; }

/* ---------- Instrumente ---------- */
.page-intro { max-width: 760px; }

.instruments-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.instrument-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-soft);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.section.alt .instrument-card { background: var(--black); }
.instrument-card:hover { transform: translateY(-4px); border-color: var(--gold); }

.instrument-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(12, 12, 13, 0.75);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6rem;
}

.instrument-photo {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(201, 160, 78, 0.1), transparent 70%);
  color: var(--gold);
}
.instrument-photo-icon { font-size: 2.4rem; }
.instrument-photo-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ivory-dim);
}

.instrument-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.instrument-info h3 { font-size: 1.3rem; margin: 0; }

.instrument-meta { list-style: none; margin: 0; padding: 0; }
.instrument-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ivory-dim);
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.instrument-meta li:first-child { border-top: none; padding-top: 0; }
.instrument-meta .label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
  align-self: center;
}

.instrument-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold-bright);
  margin-top: auto;
}

.instrument-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-style: italic;
  font-size: 0.92rem;
}

/* ---------- Quote ---------- */
.quote-section { text-align: center; padding: 6rem 1.5rem; }
.quote-section blockquote {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic;
  max-width: 760px;
  margin: 0 auto;
  color: var(--ivory);
}
.quote-attr {
  margin-top: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--gold);
}

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.3em;
}
.contact-list a { color: var(--ivory); transition: color 0.4s var(--ease); }
.contact-list a:hover { color: var(--gold-bright); }

.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.form-row input, .form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.6rem 0.1rem;
  resize: vertical;
  transition: border-color 0.4s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.form-note {
  font-size: 0.85rem;
  color: var(--gold-bright);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black-soft);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-copy {
  font-size: 0.78rem;
  color: var(--ivory-dim);
  margin: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .instruments-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--black-soft);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .instruments-grid { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; row-gap: 1.4rem; }
}
