/* ---------- Tokens ---------- */
:root{
  --cream:#F6F1E4;
  --cream-2:#EFE8D6;
  --paper-line:#DDD3B8;
  --navy:#16213E;
  --navy-soft:#26325A;
  --blue:#2E86D8;
  --green:#7CB93B;
  --green-deep:#5C9A29;
  --violet:#6E3FA3;
  --white:#FFFFFF;
  --ink-70: rgba(22,33,62,.7);
  --ink-50: rgba(22,33,62,.5);
  --radius-sm: 6px;
  --radius-lg: 22px;
  --shadow-photo: 0 18px 40px rgba(22,33,62,.18);
  --maxw: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--cream);
  color:var(--navy);
  font-family:"Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size:17px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }

h1,h2,h3,h4{
  font-family:"Instrument Serif", Georgia, serif;
  font-weight:400;
  color:var(--navy);
  margin:0 0 .4em;
  letter-spacing:.2px;
}
h1{ font-size:clamp(2.6rem, 6vw, 4.6rem); line-height:1.02; }
h2{ font-size:clamp(2rem, 4vw, 2.9rem); line-height:1.08; }
h3{ font-size:1.5rem; line-height:1.2; }
p{ margin:0 0 1em; max-width:62ch; }
.lede{ font-size:1.2rem; color:var(--ink-70); max-width:52ch; }

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ---------- Staff-line motif (used instead of generic dividers) ---------- */
.staff{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:100%;
  max-width:180px;
}
.staff span{ display:block; height:2px; background:var(--paper-line); border-radius:2px; }
.staff span:nth-child(2){ background:var(--green); width:70%; }
.staff span:nth-child(4){ background:var(--violet); width:85%; }

.staff-rule{
  height:2px;
  background:repeating-linear-gradient(90deg, var(--paper-line) 0 10px, transparent 10px 16px);
  margin:0 0 3px;
}
.staff-block{ margin:64px 0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:"Public Sans", sans-serif;
  font-weight:600;
  font-size:.98rem;
  padding:13px 26px;
  border-radius:999px;
  border:2px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--green); color:var(--navy); }
.btn-primary:hover{ background:var(--green-deep); }
.btn-outline-light{ border-color:rgba(255,255,255,.55); color:var(--white); }
.btn-outline-light:hover{ background:rgba(255,255,255,.12); }
.btn-outline-dark{ border-color:var(--navy); color:var(--navy); }
.btn-outline-dark:hover{ background:var(--navy); color:var(--white); }
.btn-violet{ background:var(--violet); color:var(--white); }
.btn-violet:hover{ background:#5c3486; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,241,228,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--paper-line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:14px; padding-bottom:14px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ height:46px; width:auto; }
.brand-name{ font-family:"Instrument Serif", serif; font-size:1.5rem; color:var(--navy); }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:40px; height:40px; flex-direction:column;
  align-items:center; justify-content:center; gap:5px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--navy); border-radius:2px; }

.main-nav{ display:flex; align-items:center; gap:34px; }
.main-nav ul{ display:flex; gap:30px; list-style:none; margin:0; padding:0; }
.main-nav a{
  text-decoration:none; color:var(--navy); font-weight:600; font-size:.98rem;
  padding:6px 2px; border-bottom:2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ border-bottom-color:var(--green); }

@media (max-width: 860px){
  .nav-toggle{ display:flex; }
  .main-nav{
    position:absolute; top:100%; left:0; right:0;
    background:var(--cream); border-bottom:1px solid var(--paper-line);
    flex-direction:column; align-items:flex-start; gap:0;
    max-height:0; overflow:hidden; transition:max-height .25s ease;
  }
  .main-nav.open{ max-height:420px; }
  .main-nav ul{ flex-direction:column; width:100%; gap:0; padding:10px 32px 6px; }
  .main-nav ul li{ width:100%; border-bottom:1px solid var(--paper-line); }
  .main-nav ul a{ display:block; padding:14px 0; }
  .main-nav .nav-cta{ margin:16px 32px 22px; }
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy);
  color:rgba(255,255,255,.85);
  padding:64px 0 28px;
  margin-top:120px;
}
.site-footer a{ text-decoration:none; color:rgba(255,255,255,.85); }
.site-footer a:hover{ color:var(--green); }
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:42px; background:var(--white); border-radius:6px; padding:4px 8px; }
.footer-brand span{ font-family:"Instrument Serif", serif; font-size:1.4rem; color:var(--white); }
.footer-col h4{ font-family:"Public Sans", sans-serif; font-weight:700; font-size:.85rem; text-transform:none; color:rgba(255,255,255,.55); margin-bottom:14px; letter-spacing:.3px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top:22px; font-size:.88rem; color:rgba(255,255,255,.55);
}
@media (max-width: 720px){
  .footer-grid{ grid-template-columns:1fr; gap:30px; }
}

/* ---------- Page hero shared ---------- */
.page-hero{
  padding:70px 0 56px;
  border-bottom:1px solid var(--paper-line);
}
.page-hero .staff{ margin-bottom:22px; }

/* ---------- Utility sections ---------- */
section{ padding:96px 0; }
.section-tight{ padding:64px 0; }
.bg-navy{ background:var(--navy); color:var(--white); }
.bg-navy h2, .bg-navy h3{ color:var(--white); }
.bg-navy p{ color:rgba(255,255,255,.78); }
.bg-cream-2{ background:var(--cream-2); }

.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
@media (max-width:860px){ .grid-2{ grid-template-columns:1fr; gap:34px; } }

.photo-frame{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-photo);
}
.photo-frame img{ width:100%; height:100%; object-fit:cover; }

/* Homepage instrument lineup: true masonry (CSS columns), not a grid.
   Each column stacks its own items independently, so a short photo
   doesn't leave a forced gap just because a neighboring column has a
   taller one — and every photo shows at its own natural, uncropped
   aspect ratio. */
.lineup-masonry{
  column-count:3;
  column-gap:28px;
}
.lineup-masonry .photo-frame{
  break-inside:avoid;
  margin-bottom:28px;
}
.lineup-masonry .photo-frame img{
  width:100%;
  height:auto;
  display:block;
  object-fit:initial;
}
@media (max-width:860px){ .lineup-masonry{ column-count:2; } }
@media (max-width:520px){ .lineup-masonry{ column-count:1; } }

/* Product/instrument shots elsewhere on the site: show the whole
   instrument, never crop it, inside a fixed frame with a neutral fill. */
.instrument-photo{
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
  display:flex;
  align-items:center;
  justify-content:center;
}
.instrument-photo img{ width:100%; height:100%; object-fit:contain; object-position:center; }

/* Same "never crop the subject" rule, for product shots that appear
   inside the gallery's masonry grid (whose cells have mismatched aspect
   ratios by design). Documentary/people photos generally keep the
   cover-crop look, except where a photo's important content (faces,
   raised hands) fills nearly the whole frame with no safe crop margin
   at any screen size — those use .no-crop instead. */
.gallery-grid img.instrument-shot,
.gallery-grid img.no-crop{
  object-fit:contain;
  background:var(--cream-2);
  padding:14px;
}

/* ---------- Responsive multi-column utility grids ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.grid-5{ display:grid; grid-template-columns:repeat(5,1fr); gap:20px; }
.grid-6{ display:grid; grid-template-columns:repeat(6,1fr); gap:20px; }
@media (max-width:860px){
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-5{ grid-template-columns:repeat(2,1fr); }
  .grid-6{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:520px){
  .grid-3, .grid-4, .grid-5{ grid-template-columns:1fr; }
  .grid-6{ grid-template-columns:repeat(2,1fr); }
}



/* ---------- Founders (About page) ---------- */
.founders-grid{ align-items:start; }
.founder-card .photo-frame img{ height:auto; display:block; }
.founder-card h3{ font-size:2rem; margin:26px 0 2px; }
.founder-role{ font-weight:700; font-size:.95rem; color:var(--violet); margin:0 0 14px; }

/* ---------- Gallery: natural-aspect photo wall (no cropping) ---------- */
.gallery-masonry{
  column-count:3;
  column-gap:16px;
  margin-top:16px;
}
.gallery-masonry figure{
  margin:0 0 16px;
  break-inside:avoid;
  overflow:hidden;
  border-radius:var(--radius-sm);
}
.gallery-masonry img{
  width:100%;
  height:auto;
  display:block;
  transition:transform .4s ease;
}
.gallery-masonry a:hover img{ transform:scale(1.04); }
@media (max-width:900px){ .gallery-masonry{ column-count:2; } }
@media (max-width:520px){ .gallery-masonry{ column-count:1; } }
