/* String Medic — layout: narrow editorial column, photo-led sections, one shared header/footer */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #161a17;
  --muted: #41463f;
  --line: #d3d0c6;
  --accent: #844124;      /* String Medic logo brown */
  --deep: #2b3a31;        /* ebony-green */
  --on-deep: #f1efe8;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151816; --surface: #1d211e; --ink: #ecebe5; --muted: #c3c6bd;
    --line: #313630; --accent: #d9926c; --deep: #0f1210; --on-deep: #ecebe5;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-weight: 500; font-size: 1.09rem; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; max-width: 65ch; }
.eyebrow {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
section { padding-block: clamp(3rem, 8vw, 6rem); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.brand-text span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding-block: .25rem; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; padding: .4rem .8rem; cursor: pointer; }
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
         background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding-block: .7rem; border-bottom: 1px solid var(--line); }
}

/* Notice banner (for holidays / closures) */
.notice { background: var(--accent); color: #fff; text-align: center; padding: .6rem 1rem; font-weight: 500; font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: var(--radius); border: 1.5px solid var(--ink);
  color: var(--ink); background: transparent; cursor: pointer; font-family: inherit;
}
.btn.primary { background: var(--ink); color: var(--bg); }
.btn:hover { opacity: .85; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .copy { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--muted); }
.hero figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--line); }
.hero figure img { width: 100%; height: 100%; object-fit: cover; }
.instruments { display: flex; flex-wrap: wrap; gap: .4rem .5rem; padding: 0; margin: 0; list-style: none; }
.instruments li { font-size: .85rem; border: 1px solid var(--line); border-radius: 99px; padding: .2rem .75rem; color: var(--muted); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero figure { aspect-ratio: 4 / 3; } }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Service grid */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .7rem; }
.service:nth-child(even) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--line); }
.service ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 1.6rem 0; border-left: 0; }
}

/* Deep band */
.band { background: var(--deep); color: var(--on-deep); }
.band .eyebrow { color: var(--accent); }
.band p { color: color-mix(in srgb, var(--on-deep) 80%, transparent); }
.band .btn { border-color: var(--on-deep); color: var(--on-deep); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.quotes figure { margin: 0; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.quotes blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; }
.quotes figcaption { font-size: .9rem; color: var(--muted); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* Page header */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.page-head .wrap { display: flex; flex-direction: column; gap: .8rem; }
.page-head p { color: var(--muted); font-size: 1.1rem; }

/* Gallery */
.project { display: flex; flex-direction: column; gap: 1.2rem; }
.project + .project { margin-top: 4rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem; }
.gallery button { padding: 0; border: 0; background: var(--line); border-radius: 4px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(10,12,11,.92); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50; }
.lightbox img { max-height: 88vh; max-width: 92vw; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 1.6rem; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-grid > * { min-width: 0; }
.details dl { margin: 0; display: grid; gap: 1.2rem; }
.details dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.details dd { margin: .2rem 0 0; font-size: 1.1rem; }
.details dd a { color: var(--ink); }
.tip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .95rem; }
form { display: flex; flex-direction: column; gap: 1rem; }
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; font-size: .95rem; }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .75rem .85rem; width: 100%;
}
textarea { min-height: 9rem; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { font-weight: 500; }
@media (max-width: 820px) { .contact-grid, .row { grid-template-columns: 1fr; } }

/* Shop */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 2rem; }
.product { display: flex; flex-direction: column; gap: .7rem; }
.product figure { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.product figure img { width: 100%; height: 100%; object-fit: cover; }
.product .price { font-weight: 600; font-variant-numeric: tabular-nums; }
.product .sold { color: var(--muted); text-decoration: line-through; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer strong { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.site-footer a { color: var(--ink); }
.site-footer .small { grid-column: 1 / -1; font-size: .82rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Photo strip (Services) */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.5rem; }
.strip figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .strip { grid-template-columns: 1fr 1fr; } .strip figure:last-child { display: none; } }

/* Photo banners: photo moves slower than the page (always dark photo, so fixed light text) */
.parallax { position: relative; overflow: hidden; isolation: isolate; min-height: 72vh;
            display: flex; align-items: center; padding-block: 5rem; color: #fff; }
.parallax.short { min-height: 52vh; }
.parallax > img { position: absolute; left: 0; top: -30vh; width: 100%; height: calc(100% + 60vh);
                  object-fit: cover; z-index: -2; will-change: transform; }
.parallax::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,12,11,.86) 0%, rgba(10,12,11,.62) 55%, rgba(10,12,11,.35) 100%); }
.parallax .wrap { width: 100%; }
.parallax h1, .parallax h2, .parallax h3 { color: #fff; }
.parallax p { color: rgba(255,255,255,.88); }
.parallax .eyebrow, .parallax .step { color: #f2b48f; }
.parallax .btn { border-color: #fff; color: #fff; }

/* About story: photo stays put and changes as you scroll */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.story > * { min-width: 0; }
.story-media { position: sticky; top: 6rem; height: min(calc(100vh - 8rem), 44rem);
               border-radius: var(--radius); overflow: hidden; background: var(--line); }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                   opacity: 0; transform: scale(1.08); transition: opacity .9s ease, transform 1.8s cubic-bezier(.2,.7,.2,1); }
.story-media img.active { opacity: 1; transform: none; }
.story-step { min-height: 75vh; display: flex; flex-direction: column; justify-content: center; gap: .9rem;
              opacity: .3; transition: opacity .6s ease; }
.story-step.active { opacity: 1; }
.story-step:last-child { min-height: 60vh; }
.year { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--accent); font-style: italic; }
@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-media { top: 4.6rem; height: 42vh; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
  .story-step { min-height: 62vh; }
}

/* Scroll animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.product figure img { transition: transform .4s; }
.product:hover figure img { transform: scale(1.03); }
.badge { align-self: flex-start; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
         padding: .2rem .6rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.badge.sold { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.how > div { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.how .step { font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1; }
@media (max-width: 720px) { .how { grid-template-columns: 1fr; } }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .parallax > img { top: 0; height: 100%; transform: none !important; }
  .story-step { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
