:root{
  --black:#0a0a0a; --dark:#1a1a1a; --gray-900:#262626; --gray-800:#333333;
  --gray-700:#4d4d4d; --gray-600:#666666; --gray-500:#808080; --gray-400:#999999;
  --gray-300:#b3b3b3; --gray-200:#cccccc; --gray-100:#e5e5e5; --gray-50:#f5f5f5;
  --off-white:#fafafa; --white:#ffffff;
  --border:#e0e0e0; --border-light:rgba(255,255,255,0.1);
  --text-primary:#0a0a0a; --text-secondary:#666666; --text-tertiary:#999999;
  --text-inverse:#ffffff; --text-inverse-secondary:rgba(255,255,255,0.7);
  --text-inverse-tertiary:rgba(255,255,255,0.4);
  --positive:#10b981; --negative:#ef4444;
}
*{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-font-smoothing:antialiased;scroll-behavior:smooth}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.6;color:var(--text-primary);background:var(--white)}
h1,h2,h3{line-height:1.1}
p{line-height:1.7;margin-bottom:1.25rem}
p:last-child{margin-bottom:0}
/* ---------- NAV ---------- */
nav{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(255,255,255,0.95);backdrop-filter:blur(20px);border-bottom:1px solid var(--border)}
nav .nav-inner{max-width:1400px;margin:0 auto;padding:1rem 3rem;display:flex;justify-content:space-between;align-items:center}
nav .logo{display:flex;align-items:center;gap:.75rem}
nav .logo img{width:24px;height:24px}
nav .logo-text{font-weight:600;font-size:.875rem;letter-spacing:.05em;text-transform:uppercase}
nav .nav-links{display:flex;gap:2rem}
nav .nav-links a{font-size:.75rem;color:var(--text-secondary);text-decoration:none;letter-spacing:.03em;transition:color .2s}
nav .nav-links a:hover{color:var(--text-primary)}
@media(max-width:768px){nav .nav-inner{padding:1rem 1.25rem}nav .nav-links{display:none}}
/* ---------- HERO ---------- */
.hero{min-height:92vh;background:var(--black);color:var(--text-inverse);display:flex;flex-direction:column;justify-content:center;padding:8rem 3rem 6rem}
.hero-inner{max-width:1200px;width:100%;margin:0 auto}
.hero-label{font-size:.75rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--text-inverse-tertiary);margin-bottom:1.5rem}
.hero h1{font-size:clamp(2.5rem,7vw,5rem);font-weight:600;letter-spacing:-0.04em;line-height:1.05;margin-bottom:1.5rem}
.hero .subtitle{font-size:1.25rem;font-weight:300;color:var(--text-inverse-secondary);max-width:680px;line-height:1.7;margin-bottom:2.5rem}
.hero-divider{width:100%;max-width:1200px;height:1px;background:var(--border-light);margin:3rem auto 2rem}
.hero-meta{display:flex;gap:4rem;max-width:1200px;margin:0 auto;width:100%}
.hero-meta .meta-item{display:flex;flex-direction:column;gap:.4rem}
.hero-meta .meta-label{font-size:.75rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase;color:var(--text-inverse-tertiary)}
.hero-meta .meta-value{font-size:1rem;color:var(--text-inverse-secondary)}
@media(max-width:768px){.hero{padding:6rem 1.25rem 4rem}.hero-meta{flex-direction:column;gap:1.5rem}}
/* ---------- SECTIONS ---------- */
.content-section{padding:6rem 3rem}
.content-section.alt{background:var(--off-white)}
.content-section.dark{background:var(--black);color:var(--text-inverse)}
.section-inner{max-width:1200px;margin:0 auto}
.section-label{font-size:.6875rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-tertiary);margin-bottom:1.25rem}
.dark .section-label{color:var(--text-inverse-tertiary)}
.content-section h2{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:600;letter-spacing:-0.02em;margin-bottom:1rem}
.dark h2{color:var(--text-inverse)}
.lead{font-size:1.125rem;font-weight:300;color:var(--text-secondary);max-width:760px;margin-bottom:2rem}
.dark .lead{color:var(--text-inverse-secondary)}
@media(max-width:768px){.content-section{padding:4rem 1.25rem}}
/* ---------- BUTTONS / CHIPS ---------- */
.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:inherit;font-size:.8125rem;font-weight:500;letter-spacing:.02em;padding:.6rem 1.1rem;border-radius:999px;border:1px solid var(--black);background:var(--black);color:var(--white);cursor:pointer;transition:all .15s}
.btn:hover{background:var(--gray-700);border-color:var(--gray-700)}
.btn.ghost{background:transparent;color:var(--text-primary)}
.btn.ghost:hover{background:var(--black);color:var(--white)}
.btn.small{padding:.4rem .85rem;font-size:.75rem}
.btn.light{background:var(--white);color:var(--black);border-color:var(--white)}
.btn.light:hover{background:var(--gray-200);border-color:var(--gray-200)}
.btn:disabled{opacity:.4;cursor:default}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.5rem 0 2rem}
.chip{font-size:.75rem;font-weight:500;padding:.4rem .9rem;border-radius:999px;border:1px solid var(--border);background:var(--white);color:var(--text-secondary);cursor:pointer;transition:all .15s}
.chip:hover{border-color:var(--black);color:var(--text-primary)}
.chip.active{background:var(--black);color:var(--white);border-color:var(--black)}
.dark .chip{background:transparent;color:var(--text-inverse-secondary);border-color:var(--border-light)}
.dark .chip.active{background:var(--white);color:var(--black);border-color:var(--white)}
/* ---------- LIBRARY GRID ---------- */
.instr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:1.25rem;margin-top:1.5rem}
.instr-card{border:1px solid var(--border);border-radius:14px;background:var(--white);padding:1.25rem;cursor:pointer;transition:all .18s;display:flex;flex-direction:column;gap:.6rem;text-align:left}
.instr-card:hover{border-color:var(--black);box-shadow:0 12px 28px -18px rgba(0,0,0,.35);transform:translateY(-2px)}
.instr-card .card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}
.instr-card h3{font-size:1rem;font-weight:600;letter-spacing:-0.01em}
.tag{font-size:.625rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-tertiary);white-space:nowrap}
.instr-card .blurb{font-size:.8125rem;line-height:1.55;color:var(--text-secondary);flex:1}
.card-actions{display:flex;gap:.5rem;margin-top:.25rem}
.card-actions .btn{flex:1;justify-content:center}
.fam-head{margin-top:2.5rem;display:flex;align-items:baseline;gap:1rem}
.fam-head:first-of-type{margin-top:0}
.fam-head h3{font-size:.8125rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-primary)}
.fam-head .fam-note{font-size:.75rem;color:var(--text-tertiary)}
/* ---------- RANGE BAR ---------- */
.range-wrap{display:flex;flex-direction:column;gap:.35rem}
.range-track{position:relative;height:8px;border-radius:4px;background:var(--gray-100);width:100%}
.range-fill{position:absolute;top:0;height:100%;border-radius:4px;background:var(--gray-700)}
.range-labels{display:flex;justify-content:space-between;font-size:.625rem;color:var(--text-tertiary)}
/* ---------- DEEP DIVE ---------- */
.dd-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.5rem}
.dd-head h3{font-size:1.5rem;font-weight:600;letter-spacing:-0.01em}
.dd-panel{border:1px solid var(--border);border-radius:16px;background:var(--white);padding:2rem;margin-bottom:1.5rem}
.dd-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:2.5rem;align-items:start}
@media(max-width:900px){.dd-grid{grid-template-columns:1fr}}
.dd-facts{list-style:none}
.dd-facts li{display:flex;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid var(--border);font-size:.875rem}
.dd-facts li span:first-child{color:var(--text-tertiary);text-transform:uppercase;font-size:.625rem;font-weight:600;letter-spacing:.08em;padding-top:.2rem}
.dd-facts li span:last-child{text-align:right;font-weight:500}
.tip-list{list-style:none}
.tip-list li{font-size:.875rem;line-height:1.6;padding:.6rem 0 .6rem 1.4rem;position:relative;border-bottom:1px solid var(--border)}
.tip-list li:last-child{border-bottom:none}
.tip-list li::before{content:'→';position:absolute;left:0;color:var(--text-tertiary)}
.callout{font-size:1rem;line-height:1.6;padding:1.25rem 1.5rem;border-left:3px solid var(--black);background:var(--off-white);border-radius:0 10px 10px 0;margin:1.5rem 0}
.dark .callout{background:var(--dark);border-color:var(--gray-600);color:var(--text-inverse-secondary)}
/* ---------- HARMONICA DIAGRAM ---------- */
.harp{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;margin:1.5rem 0 .75rem}
.harp-col{display:flex;flex-direction:column;gap:6px}
.hole{border-radius:8px;padding:.6rem .2rem;text-align:center;cursor:pointer;font-size:.72rem;font-weight:600;transition:all .12s;user-select:none}
.hole .hn{display:block;font-size:.56rem;font-weight:400;opacity:.65}
.hole.blow{background:var(--black);color:var(--white)}
.hole.draw{background:var(--white);color:var(--black);border:1px solid var(--gray-300)}
.hole:hover{transform:scale(1.07)}
.hole.active{outline:2px solid var(--black);outline-offset:1px}
.hole-num{font-size:.625rem;color:var(--text-tertiary);text-align:center;font-weight:500}
.harp-legend{display:flex;gap:1.5rem;font-size:.75rem;color:var(--text-secondary);margin-bottom:.5rem}
.harp-legend .sw{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:.4rem;vertical-align:-1px}
.harp-legend .sw.b{background:var(--black)}
.harp-legend .sw.d{background:var(--white);border:1px solid var(--gray-300)}
/* ---------- GUITAR STRINGS ---------- */
.strings{display:flex;justify-content:space-between;gap:8px;margin:1.5rem 0;max-width:560px}
.string-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:.6rem;cursor:pointer}
.string-line{width:100%;max-width:44px;border-radius:999px;background:var(--gray-100);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;height:190px;position:relative;transition:all .12s}
.string-line::after{content:'';position:absolute;left:50%;top:12px;bottom:12px;border-left:3px solid var(--gray-300);border-radius:2px}
.string-col:hover .string-line{border-color:var(--black)}
.string-col.active .string-line{border-color:var(--black);background:var(--white)}
.string-note{font-size:.8125rem;font-weight:600}
.string-sub{font-size:.625rem;color:var(--text-tertiary)}
/* ---------- TUNER PADS ---------- */
.pads{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}
.pad{font-family:inherit;min-width:3.4rem;padding:.9rem .5rem;border-radius:12px;border:1px solid var(--border);background:var(--white);cursor:pointer;text-align:center;transition:all .12s}
.pad .pn{display:block;font-size:1rem;font-weight:600}
.pad .pf{display:block;font-size:.625rem;color:var(--text-tertiary);margin-top:.15rem}
.pad:hover{border-color:var(--black)}
.pad.playing{background:var(--black);color:var(--white);border-color:var(--black)}
.pad.playing .pf{color:var(--text-inverse-tertiary)}
/* ---------- TUNER GAUGE ---------- */
.tuner-stage{display:grid;grid-template-columns:280px 1fr;gap:2.5rem;align-items:center;margin-top:1rem}
@media(max-width:768px){.tuner-stage{grid-template-columns:1fr}}
.gauge{position:relative;width:280px;height:150px;overflow:hidden}
.gauge-dial{width:280px;height:280px;border-radius:50%;border:1px solid var(--border-light);border-bottom-color:transparent;border-left-color:transparent;border-right-color:transparent;position:relative}
.gauge-ticks{position:absolute;inset:0}
.gauge-tick{position:absolute;left:50%;top:50%;width:2px;height:10px;background:var(--gray-600);transform-origin:0 0}
.needle{position:absolute;left:50%;top:50%;width:3px;height:126px;background:var(--white);transform-origin:50% 100%;transform:translate(-50%,-100%) rotate(0deg);transition:transform .08s linear;border-radius:2px}
.needle-hub{position:absolute;left:50%;top:50%;width:14px;height:14px;border-radius:50%;background:var(--white);transform:translate(-50%,-50%)}
.tuner-readout{display:flex;flex-direction:column;gap:.75rem}
.tuner-note{font-size:4.5rem;font-weight:300;letter-spacing:-0.03em;line-height:1}
.tuner-note small{font-size:1.5rem;color:var(--text-inverse-secondary)}
.tuner-hz{font-size:.875rem;color:var(--text-inverse-secondary)}
.tune-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--gray-600);margin-right:.5rem;transition:background .1s}
.tune-dot.in{background:var(--positive)}
.tuner-status{font-size:.8125rem;color:var(--text-inverse-tertiary);min-height:1.2em}
/* ---------- DUET LAB ---------- */
.slots{display:grid;grid-template-columns:1fr auto 1fr;gap:1.25rem;align-items:stretch;margin:1.5rem 0}
.slot{border:1px solid var(--border);border-radius:14px;background:var(--white);padding:1.25rem;display:flex;flex-direction:column;gap:.75rem}
.slot select{font-family:inherit;font-size:.9375rem;padding:.65rem .75rem;border:1px solid var(--border);border-radius:10px;background:var(--white);width:100%}
.slot-head{font-size:.625rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-tertiary)}
.slot-name{font-size:1.125rem;font-weight:600}
.slot-role{font-size:.75rem;color:var(--text-secondary)}
.duet-mid{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.5rem}
.duet-x{font-size:1.5rem;font-weight:300;color:var(--text-tertiary)}
@media(max-width:768px){.slots{grid-template-columns:1fr}.duet-mid{flex-direction:row}}
.advice{border:1px solid var(--border);border-radius:16px;background:var(--white);padding:2rem;margin-top:1.5rem}
.advice-title{font-size:1.25rem;font-weight:600;margin-bottom:.5rem}
.advice-kicker{font-size:.625rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-tertiary);margin-bottom:1.75rem}
.advice-block{padding:1.25rem 0;border-top:1px solid var(--border)}
.advice-block h4{font-size:.6875rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-tertiary);margin-bottom:.6rem}
.advice-block p,.advice-block li{font-size:.9375rem;line-height:1.65;color:var(--text-primary)}
.advice-block ul{list-style:none}
.advice-block li{padding:.35rem 0 .35rem 1.3rem;position:relative}
.advice-block li::before{content:'→';position:absolute;left:0;color:var(--text-tertiary)}
.advice-cols{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
@media(max-width:768px){.advice-cols{grid-template-columns:1fr}}
.pair-range{margin:.75rem 0 0}
.pair-range .instrument-label{display:flex;justify-content:space-between;font-size:.6875rem;color:var(--text-secondary);margin-top:.4rem}
/* ---------- FINAL / FOOTER ---------- */
.final{background:var(--black);color:var(--text-inverse);text-align:center;padding:7rem 3rem}
.final h2{font-size:clamp(2rem,5vw,3.5rem);font-weight:600;letter-spacing:-0.03em;margin-bottom:1.5rem}
.final p{font-size:1.125rem;color:var(--text-inverse-secondary);max-width:680px;margin:0 auto 2.5rem}
footer{background:var(--black);color:var(--text-inverse-tertiary);padding:2.5rem;text-align:center;font-size:.75rem;letter-spacing:.05em;border-top:1px solid var(--border-light)}
.scroll-indicator{position:fixed;bottom:2rem;right:2rem;width:40px;height:40px;border:1px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--white);cursor:pointer;transition:all .2s;z-index:50}
.scroll-indicator:hover{background:var(--black);border-color:var(--black)}
.scroll-indicator:hover svg{stroke:var(--white)}
.scroll-indicator svg{width:16px;height:16px;stroke:var(--black);transition:stroke .2s}
/* ---------- IMAGES & OUTLINES ---------- */
.instr-card .card-img{width:100%;height:150px;object-fit:cover;border-radius:9px;background:var(--gray-100);display:block;margin-bottom:.25rem}
.dd-figure{margin:0 0 1.5rem}
.dd-figure img{width:100%;height:280px;object-fit:cover;border-radius:12px;background:var(--gray-100);display:block}
.dd-figure figcaption{font-size:.75rem;color:var(--text-tertiary);margin-top:.5rem}
.outline-wrap{border:1px solid var(--border);border-radius:12px;background:var(--off-white);padding:1.25rem;margin-bottom:1.5rem}
.outline-wrap svg{width:100%;height:auto;display:block}
.outline-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem;flex-wrap:wrap}
.outline-head h4{font-size:.6875rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-tertiary)}
.outline-cap{font-size:.75rem;color:var(--text-tertiary);margin-top:.75rem;line-height:1.5}
svg .tap{cursor:pointer;transition:opacity .12s}
svg .tap:hover{opacity:.7}
svg g.tap.active rect,svg g.tap.active circle{fill:#0a0a0a}
svg g.tap.active text{fill:#ffffff}
svg text{font-family:'Inter',sans-serif;user-select:none}
svg .tap.dark.active rect{fill:#4d4d4d}

.hidden{display:none!important}/* ================= CHORDMESH SITE LAYER ================= */

/* Self-hosted Inter (variable, latin) */
@font-face{
  font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;
  src:url('../assets/fonts/inter-var.woff2') format('woff2');
}

/* Brand accent — used sparingly: active states, links, tuner needle */
:root{
  --accent:#b45309;
  --accent-soft:rgba(180,83,9,.10);
}

body{padding-top:0} /* folio hero sits under transparent nav; app pages pad via main */

/* ---------- SITE NAV ---------- */
nav .nav-inner{padding:.9rem 3rem;gap:2rem}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--text-primary)}
.brand .mark{width:22px;height:22px;display:block}
.brand .wordmark{font-weight:700;letter-spacing:.14em;font-size:.8125rem;text-transform:uppercase}
.nav-links{display:flex;gap:1.75rem;align-items:center}
.nav-links a{color:var(--text-secondary);text-decoration:none;font-size:.875rem;font-weight:500;padding:.25rem 0;border-bottom:2px solid transparent;transition:color .15s}
.nav-links a:hover{color:var(--text-primary)}
.nav-links a.active{color:var(--text-primary);border-bottom-color:var(--accent)}
@media (max-width:720px){nav .nav-inner{padding:.9rem 1.25rem}.nav-links{gap:1rem}.nav-links a{font-size:.8125rem}}

/* ---------- PAGE SHELL ---------- */
main{display:block}
.page{padding-top:76px}
.page-head{max-width:1100px;margin:0 auto;padding:4.5rem 3rem 3rem}
.page-head .kicker{font-size:.75rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);margin-bottom:1rem}
.page-head h1{font-size:clamp(2rem,4.5vw,3rem);font-weight:700;letter-spacing:-.02em;margin-bottom:1rem}
.page-head .lead{font-size:1.0625rem;color:var(--text-secondary);max-width:46rem}
.content-section{padding:3.5rem 0 4.5rem}
.section-inner{max-width:1100px}

/* ---------- FOCUS & A11Y ---------- */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.chip:focus-visible,.btn:focus-visible,.pad:focus-visible{outline-offset:3px}

/* ---------- HOMEPAGE ---------- */
.site-hero{min-height:78vh;padding-top:9rem}
.site-hero .hero-label{color:rgba(255,255,255,.55)}
.site-hero h1{font-size:clamp(2.6rem,6vw,4.5rem);font-weight:700;letter-spacing:-.03em;max-width:20ch}
.hero-ctas{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:2rem}
.hero-ctas .btn{padding:.9rem 1.6rem;font-size:.9375rem}
.btn.light.solid{background:var(--white);color:var(--black);border:1px solid var(--white)}
.btn.light.solid:hover{background:var(--gray-200)}
.btn.light.ghost{background:transparent;color:var(--white);border:1px solid rgba(255,255,255,.35)}
.btn.light.ghost:hover{border-color:var(--white)}

.home-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;max-width:1100px;margin:0 auto;padding:0 3rem}
.home-strip figure{margin:0}
.home-strip img{width:100%;height:220px;object-fit:cover;border-radius:14px;display:block;filter:grayscale(1);transition:transform .25s}
.home-strip figure:hover img{transform:translateY(-4px)}
.home-strip figcaption{font-size:.8125rem;color:var(--text-tertiary);margin-top:.5rem}
@media (max-width:900px){.home-strip{grid-template-columns:repeat(2,1fr);padding:0 1.25rem}}
@media (max-width:520px){.home-strip{grid-template-columns:1fr 1fr;gap:.75rem}.home-strip img{height:140px}}

.pillars{max-width:1100px;margin:0 auto;padding:4.5rem 3rem;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.pillar{background:var(--white);border-radius:16px;box-shadow:var(--shadow-lifted-card,var(--shadow-lifted));overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:inherit;transition:transform .2s}
.pillar:hover{transform:translateY(-4px)}
.pillar img{width:100%;height:200px;object-fit:cover;display:block}
.pillar-body{padding:1.5rem 1.5rem 1.75rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.pillar-kicker{font-size:.6875rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}
.pillar h3{font-size:1.25rem;font-weight:700}
.pillar p{font-size:.9375rem;color:var(--text-secondary);line-height:1.6}
.pillar .open{margin-top:auto;padding-top:1rem;font-weight:600;font-size:.875rem;color:var(--text-primary)}
@media (max-width:900px){.pillars{grid-template-columns:1fr;padding:3rem 1.25rem}}

.how{max-width:1100px;margin:0 auto;padding:0 3rem 4.5rem}
.how h2{font-size:clamp(1.6rem,3vw,2.25rem);font-weight:700;letter-spacing:-.02em;margin-bottom:2rem}
.how-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.step .num{font-size:.75rem;font-weight:700;letter-spacing:.14em;color:var(--accent);margin-bottom:.6rem}
.step h4{font-size:1rem;font-weight:600;margin-bottom:.4rem}
.step p{font-size:.875rem;color:var(--text-secondary);line-height:1.6}
.step{border-top:2px solid var(--black);padding-top:1rem}
@media (max-width:900px){.how{padding:0 1.25rem 3rem}.how-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.how-grid{grid-template-columns:1fr}}

.preview{max-width:1100px;margin:0 auto;padding:0 3rem 4.5rem}
.preview h2{font-size:clamp(1.6rem,3vw,2.25rem);font-weight:700;letter-spacing:-.02em;margin-bottom:.75rem}
.preview .sub{color:var(--text-secondary);font-size:1rem;margin-bottom:2rem}
.preview .instr-grid{padding:0}
.preview .link-all{display:inline-block;margin-top:1.5rem;font-weight:600;color:var(--text-primary);text-decoration:none;border-bottom:2px solid var(--accent);padding-bottom:.2rem}
@media (max-width:900px){.preview{padding:0 1.25rem 3rem}}

.cta-band{background:var(--black);color:var(--white);padding:5rem 3rem;text-align:center}
.cta-band h2{font-size:clamp(1.8rem,3.5vw,2.5rem);font-weight:700;letter-spacing:-.02em;margin-bottom:.75rem}
.cta-band p{color:rgba(255,255,255,.65);max-width:38rem;margin:0 auto 2rem}
.cta-band .hero-ctas{justify-content:center}
@media (max-width:720px){.cta-band{padding:3.5rem 1.25rem}}

/* ---------- FOOTER ---------- */
footer.site{background:var(--black);color:rgba(255,255,255,.55);padding:3rem 3rem 2.5rem;border-top:1px solid rgba(255,255,255,.08)}
footer.site .foot-inner{max-width:1100px;margin:0 auto;display:flex;justify-content:space-between;gap:2rem;flex-wrap:wrap}
footer.site .brand{color:var(--white)}
footer.site .brand .wordmark{color:var(--white)}
footer.site .foot-tag{font-size:.8125rem;max-width:22rem;margin-top:.75rem;line-height:1.6}
footer.site .foot-col{font-size:.8125rem}
footer.site .foot-col strong{display:block;color:var(--white);font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;margin-bottom:.75rem}
footer.site .foot-col a{display:block;color:rgba(255,255,255,.55);text-decoration:none;margin-bottom:.4rem}
footer.site .foot-col a:hover{color:var(--white)}
footer.site .fine{max-width:1100px;margin:2rem auto 0;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.08);font-size:.75rem}
@media (max-width:720px){footer.site{padding:2.5rem 1.25rem}}

/* ---------- TUNER PAGE (dark full page) ---------- */
.page-dark{background:var(--black);color:var(--white);min-height:calc(100vh - 76px)}
.page-dark .page-head .lead{color:rgba(255,255,255,.65)}
.page-dark nav{background:rgba(10,10,10,.9);border-bottom:1px solid var(--border-light)}
.page-dark .brand,.page-dark .nav-links a{color:rgba(255,255,255,.75)}
.page-dark .brand,.page-dark .nav-links a.active,.page-dark .nav-links a:hover{color:var(--white)}

/* learn page: keep panel below sticky nav on jump */
#dd-panel{scroll-margin-top:90px}

/* ---------- HOMEPAGE EXTRAS ---------- */
.pillars-section{max-width:1100px;margin:0 auto;padding:4.5rem 3rem 0}
.pillars-section{display:block}
.home-h2{font-size:clamp(1.6rem,3vw,2.25rem);font-weight:700;letter-spacing:-.02em;margin:0 0 .75rem}
.home-lead{color:var(--text-secondary);margin-bottom:2rem;max-width:44rem}
.pillars-section .pillars{padding:2rem 0 0}
.pillars-section{padding:4.5rem 3rem 0}
@media (max-width:900px){.pillars-section{padding:3rem 1.25rem 0}}
.preview .p-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}
.p-card{background:var(--white);border-radius:14px;box-shadow:var(--shadow-lifted-card,var(--shadow-lifted));overflow:hidden;text-decoration:none;color:inherit;display:block;transition:transform .2s}
.p-card:hover{transform:translateY(-4px)}
.p-card img{width:100%;height:180px;object-fit:cover;display:block}
.p-card-body{padding:1rem 1.1rem}
.p-card-body h4{font-size:.9375rem;font-weight:600}
.p-card-body span{font-size:.75rem;color:var(--text-tertiary)}
@media (max-width:900px){.preview .p-grid{grid-template-columns:repeat(2,1fr)}}

/* ---------- tuning guide + mini tuner ---------- */
.tune-guide{margin-top:2.25rem;border-top:1px solid var(--border-light);padding-top:1.75rem}
.tune-guide .tg-h{font-size:.6875rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-tertiary);margin:0 0 .75rem}
.tune-guide .tg-intro{font-size:.9375rem;line-height:1.7;margin:0 0 .25rem}
.tune-guide .tg-pads{margin:1rem 0 1.25rem}
.tune-steps{list-style:none;counter-reset:ts;margin:0;padding:0}
.tune-steps li{counter-increment:ts;position:relative;padding-left:2.4rem;margin-bottom:.65rem;font-size:.9375rem;line-height:1.65}
.tune-steps li::before{content:counter(ts,decimal-leading-zero);position:absolute;left:0;top:.15rem;font-size:.6875rem;font-weight:600;color:var(--accent);letter-spacing:.05em}
.mini-tuner{margin-top:1.25rem;background:#0a0a0a;border-radius:12px;padding:1.25rem 1.5rem;display:flex;gap:1.5rem;align-items:center;flex-wrap:wrap}
.mt-gauge{flex:0 0 auto}
.mt-dial{position:relative;width:104px;height:104px;border-radius:50%;background:#161616;border:1px solid #2a2a2a}
.mt-needle{position:absolute;left:50%;top:50%;width:2px;height:38px;background:#ffffff;transform-origin:50% 100%;transform:translate(-50%,-100%) rotate(0deg);transition:transform .06s linear;border-radius:2px}
.mt-hub{position:absolute;left:50%;top:50%;width:10px;height:10px;border-radius:50%;background:#ffffff;transform:translate(-50%,-50%)}
.mt-tick{position:absolute;left:50%;top:50%;width:2px;height:9px;background:#555555;margin-left:-1px}
.mt-readout{flex:1;min-width:200px}
.mt-note{font-size:1.75rem;font-weight:600;letter-spacing:-.02em;color:#ffffff;line-height:1.1}
.mt-note small{font-size:.875rem;font-weight:400;color:#999999}
.mt-line{display:flex;align-items:center;gap:.5rem;margin:.5rem 0 .25rem}
.mt-dot{width:9px;height:9px;border-radius:50%;border:1.5px solid #999999;flex:0 0 auto}
.mt-dot.in{background:#ffffff;border-color:#ffffff}
.mt-cents{font-size:.9375rem;color:#bbbbbb}
.mt-hz{font-size:.75rem;color:#777777;min-height:1rem}
.mt-btns{display:flex;gap:.5rem;margin-top:.75rem}
.mt-status{font-size:.8125rem;color:#bbbbbb;margin-top:.5rem;min-height:1.1rem}
.mini-tuner.big .mt-dial{width:180px;height:180px}
.mini-tuner.big .mt-needle{height:66px}
.mini-tuner.big .mt-note{font-size:2.5rem}
.content-section.dark .mini-tuner{background:#161616;border:1px solid #2a2a2a}
.tuner-blurb{font-size:.9375rem;line-height:1.7;color:var(--text-inverse-secondary);margin:1rem 0 0;max-width:60ch}

/* ===== Jam Room ===== */
.section-lead{font-size:1rem;line-height:1.7;color:var(--text-inverse-secondary);max-width:64ch;margin:.5rem 0 1.75rem}
.metro-wrap{display:flex;flex-direction:column;gap:1.25rem}
.metro-tempo{font-size:4.5rem;font-weight:700;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.metro-tempo small{font-size:1rem;font-weight:500;color:var(--text-inverse-tertiary);margin-left:.4rem;letter-spacing:.08em}
.metro-dots{display:flex;gap:.6rem}
.m-dot{width:14px;height:14px;border-radius:50%;background:#2c2c2c;border:1px solid #3a3a3a;transition:transform .08s,background .08s}
.m-dot.on{background:#ffffff;transform:scale(1.35)}
.metro-controls{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:center}
.metro-controls label,.transport label{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--text-inverse-secondary)}
.metro-controls input[type=range],.transport input[type=range]{width:140px;accent-color:#fff}
.check-label{display:flex;align-items:center;gap:.45rem;font-size:.875rem;color:var(--text-inverse-secondary)}
.transport{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin:1.25rem 0}
.range-val{font-variant-numeric:tabular-nums;color:#fff;font-weight:600}
.now-chord{font-size:.875rem;color:var(--text-inverse-secondary)}
.now-chord strong{color:#fff;font-size:1.05rem}
.chip.mini{padding:.25rem .6rem;font-size:.6875rem}
.seq{display:flex;flex-direction:column;gap:4px;margin-top:1rem}
.seq-row{display:grid;grid-template-columns:4.6rem repeat(16,1fr);gap:4px;align-items:center}
.seq-label{min-width:0}
.seq-label .chip{width:100%;justify-content:center;padding:.3rem .2rem;font-size:.625rem;letter-spacing:.02em}
.step-btn{aspect-ratio:1;border-radius:5px;background:#1f1f1f;border:1px solid #2e2e2e;cursor:pointer;transition:background .1s}
.step-btn:hover{border-color:#555}
.step-btn.on{background:#fff;border-color:#fff}
.step-btn.playing{outline:2px solid #fff;outline-offset:1px}
.kit-pads{display:grid;grid-template-columns:repeat(8,1fr);gap:.6rem}
.kit-pad{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;aspect-ratio:1.15;border-radius:10px;background:#1c1c1c;border:1px solid #2e2e2e;color:#e5e5e5;cursor:pointer;transition:transform .07s,background .07s}
.kit-pad:hover{background:#242424}
.kit-pad.hit{background:#fff;color:#0a0a0a;transform:scale(.96)}
.kp-key{font-size:.625rem;letter-spacing:.1em;opacity:.55;font-weight:600}
.kp-name{font-size:.8125rem;font-weight:600}
.studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;align-items:start}
.studio-card{background:#1c1c1c;border:1px solid #2a2a2a;border-radius:12px;padding:1.5rem}
.studio-card h3{margin:0 0 .9rem;font-size:1.05rem}
.idea-title{font-size:1.6rem;font-weight:700;letter-spacing:-.02em;margin-bottom:.6rem}
.idea-line{margin:.35rem 0;font-size:.9375rem;line-height:1.6}
.idea-prog{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:1rem 0}
.idea-prog-name{font-size:.75rem;color:var(--text-inverse-tertiary);margin-right:.25rem}
.btn-row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.btn-row input[type=text]{flex:1;min-width:10rem;background:#111;border:1px solid #333;border-radius:8px;color:#fff;padding:.55rem .75rem;font-size:.875rem}
.ai-panel{margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid #2a2a2a;display:flex;flex-direction:column;gap:.6rem}
.ai-row{display:flex;gap:.6rem}
.ai-row select,.ai-row input{background:#111;border:1px solid #333;border-radius:8px;color:#fff;padding:.55rem .75rem;font-size:.875rem;flex:1;min-width:0}
.ai-status{font-size:.8125rem;color:var(--text-inverse-tertiary);min-height:1.2em}
.lyrics-out{white-space:pre-wrap;font-family:inherit;font-size:.9375rem;line-height:1.8;color:#e5e5e5;background:#111;border:1px solid #2a2a2a;border-radius:10px;padding:1.25rem;margin-top:1rem;min-height:8rem;max-height:26rem;overflow:auto}
.ideas-pad{margin-top:2.5rem;padding-top:2rem;border-top:1px solid #2a2a2a}
.ideas-pad textarea{width:100%;background:#111;border:1px solid #333;border-radius:10px;color:#fff;padding:.85rem 1rem;font-family:inherit;font-size:.9375rem;line-height:1.7;resize:vertical}
.ideas-pad input[type=text]{flex:1;background:#111;border:1px solid #333;border-radius:8px;color:#fff;padding:.55rem .75rem;font-size:.875rem}
.ideas-list{margin-top:1.25rem;display:flex;flex-direction:column;gap:.75rem}
.idea-item{background:#1c1c1c;border:1px solid #2a2a2a;border-radius:10px;padding:1rem}
.idea-item-head{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.4rem}
.idea-item-text{font-size:.875rem;line-height:1.6;color:var(--text-inverse-secondary)}
.idea-actions{display:flex;gap:.5rem;margin-top:.7rem}
.muted{color:var(--text-inverse-tertiary)}
.rec-wrap{display:flex;flex-wrap:wrap;gap:1.1rem;align-items:center;margin:1.25rem 0 .75rem}
.rec-time{font-variant-numeric:tabular-nums;font-size:1.25rem;font-weight:600;color:#fff}
.rec-status{font-size:.875rem;color:var(--text-inverse-tertiary);min-height:1.3em}
.rec-result{margin-top:1.25rem;display:flex;flex-direction:column;gap:.9rem;max-width:34rem}
.rec-result audio{width:100%}
@media (max-width:860px){
  .studio-grid{grid-template-columns:1fr}
  .kit-pads{grid-template-columns:repeat(4,1fr)}
  .seq-row{grid-template-columns:3.4rem repeat(16,1fr)}
  .metro-tempo{font-size:3.2rem}
}

/* ---------- MESH HERO (home) ---------- */
.site-hero{position:relative;overflow:hidden;min-height:92vh}
.site-hero .hero-inner,.site-hero .hero-divider,.site-hero .hero-meta{position:relative;z-index:2}
#mesh-canvas{position:absolute;inset:0;z-index:1;display:block;pointer-events:none}
.hero-hint{margin:1.1rem 0 0;font-size:.8125rem;color:rgba(255,255,255,.45);letter-spacing:.01em}
.btn.strum svg{flex:none}
