/* Product stories: static photographic depth, real examples, no full-screen effects. */
.story-page {
  --mastering-panel: #eeeae1;
  --mastering-panel-radius: 18px;
  --mastering-panel-shadow: inset 0 1px 0 #f8f5ed, 0 2px 3px rgb(51 50 43 / 10%);
  background: #eeeae1; color: #33322b;
}
.story-hero { position: relative; min-height: 100svh; overflow: hidden; background: #33322b; color: #f3efe6; }
.story-hero::before, .story-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.story-hero::before { background: url('/assets/images/release/kirin-white-stone-hero-v1.webp') center / cover; }
.story-hero::after { background: rgb(35 31 25 / 66%); }
.story-page--reference .story-hero::before { background-image: url('/assets/hero-hypha.jpg'); background-position: 62% center; }
.story-page--collaboration .story-hero::before { background-position: 35% center; }
.story-page--stage .story-hero::before { background-position: 70% center; }
.story-hero .entrance-content { z-index: 1; }
.story-wrap { width: min(1180px, calc(100% - 2 * var(--entrance-gutter))); margin: auto; }
.story-intro { padding: 100px 0 44px; max-width: 760px; }
.story-kicker { margin: 0 0 22px; font: 12px/1.5 var(--font-mono); color: #665128; letter-spacing: .14em; }
.story-page h2, .feature-collection h2, .hypha-reference-entry h2, .os-journey-entry h2 { font-family: 'Waldenburg', Georgia, serif; font-weight: 400; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.25; margin: 0 0 24px; overflow-wrap: normal; word-break: keep-all; }
.story-page p, .feature-collection p, .hypha-reference-entry p, .os-journey-entry p { line-height: 1.85; }
.story-intro > p:last-child { font-size: 18px; color: #4b4a43; }
.story-chapter { padding: 76px 0 100px; scroll-margin-top: calc(var(--header-h) + 24px); }
.story-chapter-head { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; margin-bottom: 44px; align-items: end; }
.story-chapter-head p { margin: 0 0 16px; color: #4b4a43; }
.story-chapter-head .story-kicker { color: #665128; }
.story-figure { margin: 0; padding: clamp(8px, 1.4vw, 18px); border: 0; border-radius: 22px; background: #eeeae1; box-shadow: inset 0 1px 0 #f8f5ed, 0 20px 42px rgb(66 55 36 / 12%), 0 2px 4px rgb(66 55 36 / 9%); }
.story-figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
.story-figure figcaption { padding: 16px 10px 4px; font-size: 13px; line-height: 1.65; color: #4b4a43; }
.story-page a:not(.site-logo):not(.site-nav a), .feature-collection a, .hypha-reference-entry a, .os-journey-entry a { color: #665128; text-underline-offset: 5px; }
.story-figure figcaption a { margin-left: 12px; }
.story-page .entrance-content a { color: #f3efe6 !important; }
.story-diagram { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: clamp(22px, 4vw, 60px); border: 0; border-radius: 22px; background: #eeeae1; box-shadow: inset 0 1px 0 #f8f5ed, 0 16px 32px rgb(66 55 36 / 10%); }
.story-diagram > div { min-width: 0; }
.story-diagram span { display: block; margin-bottom: 16px; font: 12px/1.6 var(--font-mono); color: #665128; }
.story-diagram h3 { font: 400 clamp(1.3rem, 2vw, 1.8rem)/1.4 'Waldenburg', Georgia, serif; margin: 0 0 14px; word-break: keep-all; }
.story-diagram p { color: #4b4a43; margin: 0; font-size: 15px; }
.story-note { margin: 24px 0 0; font-size: 14px; color: #4b4a43; }
.story-conditions { padding: 70px 0; max-width: 820px; }
.story-conditions summary { cursor: pointer; padding: 16px 0; font-size: 18px; }
.story-next { padding: 40px 0 90px; display: flex; gap: 24px 40px; flex-wrap: wrap; }
.story-next a { min-height: 44px; display: inline-flex; align-items: center; }
.feature-collection { padding-top: 80px; padding-bottom: 80px; }
.feature-collection h2, .os-journey-entry, .story-wrap { scroll-margin-top: calc(var(--header-h) + 24px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.feature-card { min-width: 0; }
.feature-card img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: center top; border: 1px solid #d2ccbf; border-radius: 16px; box-shadow: 0 12px 24px rgb(66 55 36 / 12%); }
.feature-card h3 { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.4 'Waldenburg', Georgia, serif; word-break: keep-all; margin: 26px 0 16px; }
.feature-card p { color: #4b4a43; font-size: 16px; }
.feature-card a { display: inline-flex; min-height: 44px; align-items: center; }
.hypha-reference-entry { padding-top: 90px; padding-bottom: 90px; }
.hypha-reference-entry__inner, .os-journey-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hypha-reference-entry__image, .os-journey-entry img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 20px 38px rgb(66 55 36 / 15%); }
.hypha-reference-entry a, .os-journey-entry a { display: inline-flex; min-height: 44px; align-items: center; }
.song-sheet-example { padding: clamp(24px, 5vw, 70px); background: #f6f2e9; border-radius: 22px; border: 1px solid #d2ccbf; box-shadow: 0 20px 42px rgb(66 55 36 / 12%); }
.song-sheet-example .sheet-title { font: 400 clamp(2rem, 4vw, 3rem)/1.3 'Waldenburg', Georgia, serif; margin-bottom: 30px; }
.sheet-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 25px 0; }
.sheet-bars div { border-left: 1px solid #b9b2a0; padding-left: 18px; }
.sheet-bars strong { display: block; color: #665128; font-family: var(--font-mono); margin-bottom: 20px; font-weight: 400; }
.story-page :is(a, summary):focus-visible, .feature-collection a:focus-visible, .hypha-reference-entry a:focus-visible { outline: 2px solid #665128; outline-offset: 5px; }
.story-page .story-figure .mastering-photo-open { position: relative; height: auto; border-radius: 10px; }
.story-page .story-figure .mastering-photo-open:focus-visible { outline: 2px solid #665128; outline-offset: 4px; }
.story-page .mastering-photo-loupe__bar p { font: 400 16px/1.6 var(--font-sans); margin: 0; }
@media (max-width: 760px) {
  .story-intro { padding-top: 64px; }
  .story-chapter { padding: 50px 0 64px; }
  .story-chapter-head, .feature-grid, .hypha-reference-entry__inner, .os-journey-entry { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .story-diagram { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .story-figure { border-radius: 16px; }
  .story-figure figcaption a { display: block; margin: 8px 0 0; }
  .feature-grid { gap: 48px; }
  .sheet-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .story-page .reveal { opacity: 1; transform: none; transition: none; animation: none; } }
