/* =========================================================
   STUDIO — the interactive one.
   Deep green, ivory and copper. Built around the listening
   section: a chord comparison and a playable keyboard.

   No images, no web fonts, no libraries.

   TO CHANGE THE LOOK, EDIT THE VALUES BELOW.
   ========================================================= */

:root {
  /* Colours */
  --ink:        #0f1714;   /* deep green-black — page background */
  --ink-2:      #16211d;   /* raised panels */
  --ink-3:      #223029;   /* borders and hairlines */
  --ivory:      #f2ede3;   /* main text */
  --ivory-soft: #a9b0a8;   /* secondary text */
  --copper:     #d5946a;   /* accent */
  --copper-dim: #b0764f;   /* accent, darker */

  /* Type */
  --font-head: "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --gap: 1.5rem;
  --section-space: clamp(4rem, 9vw, 7rem);
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
a { color: var(--copper); }

.link {
  text-decoration: none;
  border-bottom: 1px solid rgba(213,148,106,0.45);
  transition: border-color 0.25s ease;
}
.link:hover { border-color: var(--copper); }

.muted { color: var(--ivory-soft); font-size: 0.92rem; }
.center { text-align: center; }
.big { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.5; }

a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.skip { position: absolute; left: -9999px; background: var(--copper); color: var(--ink); padding: 0.75rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

.wrap { width: min(1140px, 90%); margin-inline: auto; }
.wrap.narrow { width: min(740px, 90%); }

/* ---------- header ---------- */

.site-header { padding: 1.4rem 0; border-bottom: 1px solid var(--ink-3); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap); justify-content: space-between; }
.brand { text-decoration: none; color: var(--ivory); display: block; }
.brand-name { display: block; font-family: var(--font-head); font-size: 1.4rem; }
.brand-sub { display: block; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-header nav a { color: var(--ivory-soft); text-decoration: none; font-size: 0.9rem; }
.site-header nav a:hover { color: var(--ivory); }
.header-phone {
  color: var(--ink); background: var(--copper);
  padding: 0.55rem 1.2rem; border-radius: 999px;
  text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 0.95rem;
}
.header-phone:hover { background: #e5a87f; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: radial-gradient(90% 70% at 15% 0%, rgba(213,148,106,0.12), transparent 60%), var(--ink);
}
.eyebrow { font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--copper); margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--copper); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 50ch; color: var(--ivory-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; padding: 0.9rem 1.8rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--copper); color: var(--ink); }
.btn-primary:hover { background: #e5a87f; }
.btn-ghost { border-color: var(--ink-3); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }

/* =========================================================
   THE LISTENING SECTION
   ========================================================= */

.listen {
  padding: var(--section-space) 0;
  background: var(--ink-2);
  border-block: 1px solid var(--ink-3);
  text-align: center;
}
.listen-intro { max-width: 56ch; margin-inline: auto; color: var(--ivory-soft); }

.compare {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 2.5rem auto 0;
}
@media (min-width: 620px) { .compare { grid-template-columns: 1fr 1fr; } }

.compare-btn {
  font: inherit;
  cursor: pointer;
  padding: 1.6rem 1.25rem;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.compare-btn:hover { border-color: var(--copper); transform: translateY(-2px); }
.compare-btn-good { border-color: rgba(213,148,106,0.5); }

.compare-label { display: block; font-family: var(--font-head); font-size: 1.35rem; }
.compare-sub { display: block; font-size: 0.85rem; color: var(--ivory-soft); margin-top: 0.35rem; }

/* A soft pulse while a chord is ringing. */
.compare-btn.is-ringing { background: var(--ink-3); border-color: var(--copper); }
@media (prefers-reduced-motion: reduce) {
  .compare-btn:hover { transform: none; }
}

.listen-note { margin-top: 1.5rem; font-size: 0.92rem; color: var(--ivory-soft); min-height: 1.5em; }

/* ---------- playable keyboard ---------- */

.keyboard-block { margin-top: 3rem; }
.keyboard-caption { font-size: 0.92rem; color: var(--ivory-soft); }

.keyboard {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 620px;
  margin: 1.25rem auto 0;
  height: clamp(130px, 26vw, 180px);
  user-select: none;
  touch-action: manipulation;
}

.key {
  font: inherit;
  cursor: pointer;
  padding: 0;
  border-radius: 0 0 5px 5px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.08s ease;
}
.key span { font-size: 0.7rem; opacity: 0.5; padding-bottom: 0.6rem; text-transform: uppercase; }

.key-white {
  flex: 1 1 0;
  background: #efeae0;
  border: 1px solid #b9b3a6;
  border-top: none;
  color: #4a463d;
  z-index: 1;
}
.key-white.is-down, .key-white:active { background: var(--copper); }

.key-black {
  width: 0;
  height: 62%;
  background: #171d1a;
  border: 1px solid #000;
  border-top: none;
  color: var(--ivory-soft);
  z-index: 2;
  margin-inline: -2.6%;
  flex: 0 0 5.2%;
  position: relative;
}
.key-black.is-down, .key-black:active { background: var(--copper-dim); }
.key-black span { opacity: 0.6; }

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section { padding: var(--section-space) 0; }
.section-alt { background: var(--ink-2); }

.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.section-alt .card { background: var(--ink); }
.card h3 { color: var(--copper); }
.card p { margin: 0; color: var(--ivory-soft); }

.quote {
  margin: 0;
  background: var(--ink);
  border: 1px solid var(--ink-3);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.quote p { font-family: var(--font-head); font-size: 1.15rem; }
.quote cite { font-style: normal; font-size: 0.85rem; color: var(--ivory-soft); }

.faq dt { font-family: var(--font-head); font-size: 1.2rem; margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px solid var(--ink-3); }
.faq dd { margin: 0.4rem 0 0; color: var(--ivory-soft); }

/* ---------- gallery ---------- */

.gallery { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.shot { margin: 0; }
.shot-ph {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  border: 1px dashed var(--ink-3); border-radius: var(--radius);
  color: var(--ivory-soft); font-size: 0.82rem; background: var(--ink);
}
.section-alt .shot-ph { background: var(--ink-2); }
.shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block; }
.shot figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--ivory-soft); }

/* ---------- form ---------- */

.form { margin-top: 1.75rem; }
.field { margin-bottom: 1.2rem; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; color: var(--ivory-soft); }
.optional { font-weight: 400; }
input, textarea {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; font-size: 1rem;
  color: var(--ivory); background: var(--ink);
  border: 1px solid var(--ink-3); border-radius: var(--radius);
}
.section-alt input, .section-alt textarea { background: var(--ink); }
input::placeholder, textarea::placeholder { color: #8b9189; }
input:focus, textarea:focus { border-color: var(--copper); }
textarea { resize: vertical; }
.form-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--ivory-soft); }

/* ---------- keys motif + footer ---------- */

.keys {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 24px);
  background-color: var(--copper);
  opacity: 0.85;
}
.site-footer { background: var(--ink-2); color: var(--ivory-soft); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--gap); justify-content: space-between; padding: 2.75rem 0; }
.site-footer p { margin: 0 0 0.4rem; }
.footer-name { font-family: var(--font-head); font-size: 1.25rem; color: var(--ivory); }

/* ---------- sticky call bar (phones only) ---------- */

.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 1px solid var(--ink-3);
  }
  .callbar a { padding: 1rem 0.5rem; text-align: center; font-weight: 700; text-decoration: none; font-size: 0.95rem; }
  .callbar-call { background: var(--copper); color: var(--ink); }
  .callbar-book { background: var(--ink-2); color: var(--ivory); }
  body { padding-bottom: 3.6rem; }
}

/* ---------- scroll reveal ---------- */

.js-reveal .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- trust strip ---------- */
.trust {
  background: var(--ink-2);
  border-block: 1px solid var(--ink-3);
  padding: 1.2rem 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 3rem;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ivory-soft);
}
.trust-item strong { color: var(--copper); font-family: var(--font-head); }
