.home-document { background: #1c251e; }

.home-page {
  --masthead: 4.65rem;
  --note-paper: #1c251e;
  --note-ink: #dfcfb1;
  --note-muted: #beb79e;
  --film-height: 100vh;
  --film-ui-inset: 0px;
  color-scheme: dark;
  background: var(--note-paper);
  color: var(--note-ink);
}
@supports (height: 100lvh) {
  .home-page {
    --film-height: 100lvh;
    --film-ui-inset: calc(100lvh - 100svh);
  }
}
.home-page .site-header { position: sticky; z-index: 4; top: 0; margin-bottom: calc(-1 * var(--masthead)); background: linear-gradient(180deg, rgb(11 18 14 / .84), rgb(11 18 14 / .52) 58%, transparent); border: 0; color: var(--note-ink); text-shadow: 0 1px 9px #10170d, 0 2px 20px #10170d; }
.home-page .wordmark img { border-radius: 0; outline: 0; }
.home-page .wordmark, .home-page .site-nav a { color: var(--note-ink); }
.home-page #inhalt, .story-chapter { scroll-margin-top: var(--masthead); }
.film-story { background: var(--note-paper); }
.film-window { display: block; position: relative; height: max(32rem, calc(100vh - var(--masthead))); height: max(32rem, calc(100svh - var(--masthead))); margin: 0; overflow: hidden; }
.film-stage { height: 100%; position: relative; background: #252d22; overflow: hidden; }
.film-stage img, .film-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-stage [hidden] { display: none; }
.film-stage img { object-position: 65% center; }
.film-stage video { object-position: 50% center; transition: object-position .32s ease-in-out; }
.film-stage img[src$="waldweg-poster.webp"], .film-stage video[data-film-scene="0"] { object-position: 86% center; }
.film-caption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.film-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.film-steps a { padding-block: .5rem; color: #c6b89b; font-size: .84rem; text-decoration: none; }
.film-steps a[aria-current="step"], .film-steps a:hover { color: #cf9769; text-decoration: underline; text-underline-offset: .35em; }
.film-steps a:focus-visible { outline: 2px solid #cf9769; outline-offset: 4px; }
.story-chapter { padding: 2rem var(--gutter) 4.5rem; }
.chapter-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 65% center; margin-bottom: 2rem; }
.chapter-copy { max-width: 34rem; margin-inline: auto; }
.journal-line { margin-bottom: 1.4rem; color: var(--note-muted); font-size: .78rem; letter-spacing: .04em; }
.chapter-copy h2 { margin-bottom: 1.55rem; font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -.055em; }
.chapter-copy em { font-weight: inherit; color: #cf9769; }
.chapter-copy p:not(.journal-line) { margin-bottom: 1rem; font-size: 1.02rem; line-height: 1.8; text-wrap: pretty; }
.chapter-link { display: inline-flex; gap: 1.2rem; margin-top: .8rem; padding-bottom: .3rem; border-bottom: 1px solid #8e7559; color: var(--note-ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.chapter-link:hover { border-color: currentColor; }
/* Activate the film only after real metadata arrives. Errors restore the document. */
.film-story[data-film-ready="true"] { display: grid; grid-template-columns: minmax(0, 1fr); }
.film-story[data-film-ready="true"] .film-window,
.film-story[data-film-ready="true"] .story-notes { grid-area: 1 / 1; min-width: 0; }
.film-story[data-film-ready="true"] .film-window { display: block; position: sticky; top: 0; align-self: start; z-index: 1; height: var(--film-height); overflow: hidden; }
.film-story[data-film-ready="true"] .film-stage { height: 100%; }
.film-story[data-film-ready="true"] .film-steps,
.film-story[data-film-ready="true"] .film-intro,
.film-story[data-film-ready="true"] .film-scroll-hint { margin-bottom: var(--film-ui-inset); }
.film-story[data-film-ready="true"] .story-chapter { scroll-margin-top: 0; }
/* Only the lower image dissolves into the exact selection surface. */
.film-story .film-window::before { content: ""; position: absolute; z-index: 1; inset: 35% 0 0; background: linear-gradient(180deg, transparent, var(--note-paper) 100%); opacity: var(--film-exit, 0); pointer-events: none; }
.film-story .film-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(25deg, rgb(15 20 14 / .83), rgb(15 20 14 / .3) 48%, transparent 78%); pointer-events: none; }
.film-story .film-steps { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 1.25rem; margin: 0; }
.film-scroll-hint { display: none; position: absolute; z-index: 2; right: var(--gutter); bottom: 1.65rem; color: #e1ceb0; font-size: .84rem; text-shadow: 0 1px 8px #10170d; }
@media (min-width: 43rem) {
  .film-story[data-film-ready="true"][data-film-chapter="0"] .film-scroll-hint { display: block; }
}
.film-intro { transition: opacity .2s ease; }
.film-story[data-film-ready="true"]:not([data-film-chapter="0"]) .film-intro:not(:focus-within) { opacity: 0; pointer-events: none; }
.film-story .film-intro { display: block; position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 8rem; max-width: 36rem; color: #dfcfb1; text-shadow: 0 2px 18px rgb(13 20 11 / .65); }
.film-intro .kicker { color: #cda37b; }
.film-intro h1 { margin-block: .7rem 1rem; font: 500 clamp(2.5rem, 5.5vw, 5rem)/1.03 var(--serif); letter-spacing: -.04em; color: #dfcfb1; }
.film-intro h1 em { color: #cf9769; }
.film-intro p { max-width: 30rem; margin-block: 0 1rem; font-size: 1rem; line-height: 1.6; }
.film-intro .chapter-link { color: #dfcfb1; border-color: #ae825c; margin-top: .1rem; }
.film-story[data-film-ready="true"] .story-notes { pointer-events: none; }
.film-story[data-film-ready="true"] .story-chapter { height: 85vh; height: 85svh; min-height: 0; padding: 0; }
.film-story[data-film-ready="true"] .story-chapter:first-child { height: 72vh; height: 72svh; }
/* The final section includes the viewport of runway needed to release sticky. */
.film-story[data-film-ready="true"] .story-chapter:last-child { height: 180vh; height: 180svh; }
.film-story[data-film-ready="true"] .story-chapter > * { display: none; }
.home-page .site-footer { background: var(--note-paper); color: var(--note-ink); border: 0; }
@media (min-width: 54rem) {
  .film-story:not([data-film-ready="true"]) .story-chapter { max-width: 75rem; margin-inline: auto; padding-top: 3rem; }
}
@media (max-width: 40rem) {
  .home-page .header-inner { flex-wrap: wrap; gap: .25rem; padding-block: .75rem .35rem; }
  .home-page .site-nav { width: 100%; justify-content: space-between; }
  .home-page .site-nav a { padding-block: .4rem; font-size: .86rem; }
  .home-page { --masthead: 5.6rem; }
  .film-steps { gap: .35rem 1.2rem; }
  .film-story .film-intro { bottom: 7.5rem; max-width: 28rem; }
  .film-intro h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .film-intro p { font-size: .9rem; line-height: 1.5; }
  .film-stage img[src$="waldweg-poster.webp"], .film-stage video[data-film-scene="0"] { object-position: 94% center; }
  .film-stage video[data-film-scene="2"] { object-position: 68% center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film-story[data-film-ready="true"] { display: block; }
  .film-story[data-film-ready="true"] .film-window { display: block; position: relative; top: auto; height: max(32rem, calc(100vh - var(--masthead))); height: max(32rem, calc(100svh - var(--masthead))); }
  .film-story[data-film-ready="true"] .film-steps,
  .film-story[data-film-ready="true"] .film-intro,
  .film-story[data-film-ready="true"] .film-scroll-hint { margin-bottom: 0; }
  .film-intro, .film-stage video { transition: none; }
  .film-story[data-film-ready="true"] .story-chapter, .film-story[data-film-ready="true"] .story-chapter:first-child, .film-story[data-film-ready="true"] .story-chapter:last-child { height: auto; min-height: 0; padding: 2rem var(--gutter) 4.5rem; scroll-margin-top: var(--masthead); }
  .film-story[data-film-ready="true"] .story-chapter > * { display: block; }
  .film-story[data-film-ready="true"] .story-notes { pointer-events: auto; }
}



