/* Maple & Strings Co. home page: the scroll story (homepage preview 5, "Every Setting", chosen 2026-11-12).
   Loaded on the home page only, after site.css, and reads its tokens. The stage sticks to the viewport behind
   the words; client/home/scene.js draws it (built into /assets/js/home.js). */

/* the story starts under the see-through header, as the preview did */
.page-home .home-story { position: relative; margin-top: calc(-1 * var(--header-h)); background: var(--paper); }
.site-header .story-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

.stage { position: sticky; top: 0; width: 100%; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.stage-fallback {
  position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center;
  padding: 24px 24px 60px; margin: 0; color: var(--ink-faint); font-size: 13px; text-align: center;
}
.no-3d .stage-fallback { display: flex; }
.stage-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--paper) 96%, transparent) 0%,
    color-mix(in srgb, var(--paper) 84%, transparent) 30%,
    color-mix(in srgb, var(--paper) 35%, transparent) 46%,
    color-mix(in srgb, var(--paper) 0%, transparent) 60%);
}
.stage-note {
  position: absolute; right: 18px; bottom: 22px; z-index: 3; margin: 0; padding: 5px 8px;
  background: color-mix(in srgb, var(--paper) 90%, transparent); border-radius: 2px;
  color: var(--ink-faint); font-size: 11px; line-height: 1.3;
}

/* the read-out: which event the setting is */
.hud {
  position: absolute; right: 18px; top: calc(var(--header-h) + 18px); min-width: 11rem; padding: 12px 14px;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--ink-faint); font: 500 10.5px/1.3 var(--font-sans); letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
.hud.is-on { opacity: 1; }
.hud b { display: block; max-width: 15rem; margin-top: 6px; color: var(--ink); font: 500 22px/1.15 var(--font-serif); letter-spacing: 0; text-transform: none; }

/* the chapter dots */
.story-nav { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; z-index: 2; }
.story-dot { display: flex; align-items: center; gap: 8px; padding: 4px 0 4px 8px; color: var(--ink); text-decoration: none; }
.story-dot__label {
  padding: 5px 7px; background: color-mix(in srgb, var(--paper) 95%, transparent);
  font: 500 11px/1 var(--font-sans); letter-spacing: .04em; opacity: 0; transition: opacity .25s ease;
}
.story-dot__mark { width: 10px; height: 10px; border: 1.5px solid var(--ink); border-radius: 50%; transition: transform .25s ease, background .25s ease; }
.story-dot:hover .story-dot__label, .story-dot:focus-visible .story-dot__label, .story-dot.is-on .story-dot__label { opacity: 1; }
.story-dot.is-on .story-dot__mark { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }

/* the words, scrolling over the stage */
.beats { position: relative; margin-top: -100vh; margin-top: min(-100svh, -34rem); pointer-events: none; }
.beat { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: var(--header-h) max(var(--gutter), 5vw) 0; }
.card {
  width: 100%; max-width: 29rem; padding: 30px 30px 28px; pointer-events: auto;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 2px;
  box-shadow: 0 24px 60px rgba(43, 38, 34, .12);
}
.card .eyebrow { margin: 0; color: var(--accent-deep); }
.card h2 { margin: 14px 0 0; font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 500; line-height: 1.06; letter-spacing: -.005em; }
.card h2 em, .display em { color: var(--accent); font-style: italic; }
.card p { margin: 12px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.66; }
.card ul { list-style: none; margin: 14px 0 0; padding: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.card li { display: flex; gap: 10px; margin-top: 8px; }
.card li::before { content: ''; flex: none; width: 14px; height: 1px; margin-top: 11px; background: var(--accent); }
.card li b { display: block; color: var(--ink); font-weight: 500; }

.hero-copy { max-width: min(40rem, 46vw); pointer-events: auto; }
.hero-copy h1 { margin: 0; }
.hero-copy .eyebrow { display: block; margin: 0 0 22px; }
.display { display: block; margin: 0; color: var(--ink); font: 500 clamp(2.6rem, 5.4vw, 5.2rem)/1 var(--font-serif); letter-spacing: -.015em; }
.hero-copy__intro { max-width: 34rem; margin: 26px 0 30px; color: var(--ink); font-size: 18px; line-height: 1.65; }
.hero-copy__intro p { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.story-logo { display: block; width: 168px; height: auto; margin: 0 0 18px -6px; }
.story-place { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--ink-faint); font: 500 12.5px/1.3 var(--font-sans); letter-spacing: .08em; }
.story-place .icon { color: var(--accent); }
.story-team { max-width: 32rem; margin: 0 0 18px; color: var(--ink-soft); font: italic 500 19px/1.45 var(--font-serif); }
.hero-hint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 34px;
  color: var(--ink-faint); font: 500 11.5px/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
}
.hero-hint::before {
  content: ''; width: 8px; height: 8px; transform: rotate(45deg);
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }

/* each beat's words fade up as it arrives */
.js-story .beat .card, .js-story .beat .hero-copy { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.js-story .beat.is-on .card, .js-story .beat.is-on .hero-copy { opacity: 1; transform: none; }
.js-story .beat:not(.is-on) .card, .js-story .beat:not(.is-on) .hero-copy { pointer-events: none; }

/* a short laptop screen */
@media (max-height: 800px) and (min-width: 821px) {
  .story-logo { width: 118px; margin-bottom: 10px; }
  .hero-copy .display { font-size: clamp(2.4rem, 4.4vw, 4.3rem); }
  .hero-copy__intro { margin: 16px 0 20px; }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .story-place { margin-top: 16px; }
  .hero-hint { display: none; }
}

/* a phone or a narrow tablet: the words sit at the bottom, the setting above */
@media (max-width: 820px) {
  .beat { align-items: flex-end; padding: 0 16px 64px; }
  .beat-hero { align-items: flex-start; padding-top: calc(var(--header-h) + 3vh); }
  .card { max-width: none; padding: 22px; }
  .card h2 { font-size: 1.6rem; }
  .card p { font-size: 14.5px; }
  .hero-copy { max-width: none; }
  .hero-copy__intro { margin: 18px 0 22px; font-size: 16px; }
  .story-logo { width: 112px; margin-bottom: 10px; }
  .story-place { margin-top: 14px; }
  .story-team { margin-bottom: 12px; font-size: 17px; }
  .hero-hint { display: none; }
  #welcome .btn--ghost { display: none; }
  .stage-shade {
    opacity: 0; transition: opacity .5s ease;
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--paper) 97%, transparent) 0%,
      color-mix(in srgb, var(--paper) 84%, transparent) 50%,
      color-mix(in srgb, var(--paper) 0%, transparent) 76%);
  }
  .home-story.js-story:has(.beat-hero.is-on) .stage-shade { opacity: 1; }
  .story-nav, .hud { display: none; }
  .stage-note { right: 12px; bottom: 16px; font-size: 10px; }
}

/* ---------- about, under the story: the words, and the violin playing beside them ---------- */
.about-band__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-band__title { margin: 0 0 .25em; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); }
.about-band__story { max-width: 36em; margin-top: 1.25rem; color: var(--ink-soft); font-size: 1.1rem; }
.about-band__art { width: 100%; max-width: 320px; justify-self: center; order: -1; }
.about-band__text .link-arrow { margin-top: .9rem; }
@media (min-width: 900px) {
  .about-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
  .about-band__art { max-width: 520px; order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js-story .beat .card, .js-story .beat .hero-copy { transition: none; }
  .hero-hint::before { animation: none; }
}
