@font-face {
  font-family: Figtree;
  src: url(assets/fonts/figtree.woff2) format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* Farben stammen von den Covern: Wand, Druckerschwarz, Untertitelgelb */
:root {
  --wall: #edeae7;
  --wall-shade: #ddd8d4;
  --ink: #231f20;
  --ink-soft: #66605f;
  --night: #000;
  --on-night: #f4f1ee;
  --on-night-soft: #96908d;
  --sub: #f3e73b;
  --gutter: clamp(16px, 4vw, 64px);
  --cap: clamp(38px, 6.2vw, 112px);
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 500 17px/1.5 Figtree, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--wall);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, canvas, svg { display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--sub); outline-offset: 4px; box-shadow: 0 0 0 5px #000; }
section[id]:focus { outline: none; box-shadow: none; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 20; left: 16px; top: -80px; padding: 10px 16px; background: #000; color: var(--sub); }
.skip:focus { top: 16px; }

/* Putzwand: Korn plus schräg einfallendes Licht wie auf den Covern */
.stage, .statement, .reel, .name, .end, .foot {
  background:
    url(assets/grain.webp),
    var(--wall);
}
.stage {
  background-image:
    url(assets/grain.webp),
    linear-gradient(205deg, #fbf9f7 0%, transparent 42%, transparent 64%, var(--wall-shade) 100%);
}

/* Filmuntertitel */
.sub {
  font: italic 700 clamp(17px, 1.75vw, 30px)/1.3 Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--sub);
  text-align: center;
  text-wrap: balance;
  text-shadow:
    -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000,
    0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000, 0 0 10px rgb(0 0 0 / .35);
}

/* Kopfzeile */
.nav {
  position: fixed; z-index: 10; inset: 0 0 auto;
  height: var(--nav-h); padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--ink);
  font-size: 16px; font-weight: 600;
  pointer-events: none;
}
.nav.dark { color: #fff; text-shadow: 0 0 14px rgb(0 0 0 / .75), 0 0 3px rgb(0 0 0 / .5); }
.nav.solid { background: url(assets/grain.webp), var(--wall); }
.nav > * { pointer-events: auto; }
.nav a { text-decoration: none; }
.nav nav { display: flex; gap: clamp(18px, 2.400vw, 36px); }
.nav nav a:hover, .lang:hover, .nav-home:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-home { justify-self: start; opacity: 0; transition: opacity .2s; }
.nav.past .nav-home { opacity: 1; }
.lang { justify-self: end; padding: 12px 0; }
.lang b { font-weight: 600; opacity: .6; margin-left: 6px; }
.lang b.on { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Filmschnitt beim Springen über das Menü */
.cut { position: fixed; z-index: 15; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .16s linear; will-change: opacity; }
.cut.on { opacity: 1; }

/* Film */
.film { height: 820vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#gl { will-change: transform; position: absolute; inset: 0; width: 100%; height: 100%; }
.fallback { position: absolute; left: var(--rx); top: var(--ry); width: var(--rw); height: var(--rh); object-fit: cover; }
.cap { font-size: var(--cap); font-weight: 600; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.cap-tl { position: absolute; left: calc(var(--rx) - .04em); bottom: calc(100% - var(--ry) + .17em); }
.cap-br { position: absolute; right: calc(100% - var(--rx) - var(--rw)); top: calc(var(--ry) + var(--rh) + .12em); }
.cap-end { font-size: var(--cap-end, var(--cap)); }
.stage[data-phase="hero"] .cap-end, .stage[data-phase="film"] .cap,
.stage[data-phase="end"] .cap-hero, .stage:not([data-phase="hero"]) .sound { visibility: hidden; }
.sound {
  position: absolute; left: var(--rx); top: calc(var(--ry) + var(--rh) + 1.1em);
  padding: 12px 22px; border-radius: 99px; background: var(--ink); color: var(--wall); font-weight: 600;
}
.sound:hover { background: #000; color: var(--sub); }
.film-sub { position: absolute; left: 6vw; right: 6vw; bottom: calc(100% - var(--ry) - var(--rh) + max(22px, var(--rh) * .085)); pointer-events: none; }
.film-sub { max-width: 34em; margin-inline: auto; }
.play-big {
  position: absolute; left: calc(var(--rx) + var(--rw) / 2); top: calc(var(--ry) + var(--rh) / 2);
  width: clamp(72px, 8vw, 120px); aspect-ratio: 1; margin: calc(clamp(72px, 8vw, 120px) / -2) 0 0 calc(clamp(72px, 8vw, 120px) / -2);
  border-radius: 50%; background: rgb(0 0 0 / .72); color: var(--sub); display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.play-big:hover { transform: scale(1.08); }
.play-big svg { width: 40%; fill: currentColor; }
.stage:not([data-phase="end"]) .play-big { visibility: hidden; }
.i-pause, .is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }

/* Aussage */
.statement { padding: clamp(140px, 24vh, 280px) var(--gutter) clamp(80px, 14vh, 170px); }
.statement p {
  max-width: 17ch; margin-inline: auto;
  font-size: clamp(40px, 7.600vw, 132px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance;
}

/* Standbilder */
.reel { padding: calc(var(--nav-h) + 32px) 0 clamp(120px, 18vh, 220px); }
.reel-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 var(--gutter) clamp(28px, 5vh, 56px); }
.reel-head h2, .end-links h2 { font-size: clamp(28px, 3.200vw, 52px); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.reel-nav { display: flex; gap: 6px; }
.reel-nav button { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; }
.reel-nav button:hover { background: var(--ink); color: var(--sub); }
.reel-nav button:disabled { opacity: .25; pointer-events: none; }
.reel-nav svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 2.500; stroke-linecap: round; stroke-linejoin: round; }
.track {
  display: flex; gap: clamp(20px, 3.500vw, 64px); padding: 6px var(--gutter) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track li { flex: none; width: min(86vw, 1060px, 112svh); scroll-snap-align: start; }
.kader { display: block; width: 100%; text-align: left; }
.kader-by, .kader-title { display: block; font-size: clamp(17px, 1.900vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.kader-by { margin-bottom: .36em; }
.kader-title { margin-top: .32em; text-align: right; }
.kader-img { display: block; position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 1800 / 1012; }
.kader-img img { width: 100%; height: 100%; object-fit: cover; }
.kader-img::after { content: ""; position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: var(--sub); transform: scaleX(var(--prog, 0)); transform-origin: left; }
.kader-icon {
  position: absolute; inset: 0; margin: auto; width: clamp(60px, 6vw, 88px); aspect-ratio: 1; height: fit-content; border-radius: 50%;
  background: rgb(0 0 0 / .72); color: var(--sub); display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.kader-icon svg { width: 40%; fill: currentColor; }
.kader:hover .kader-icon, .kader:focus-visible .kader-icon, .kader.is-playing .kader-icon { opacity: 1; }
@media (hover: none) { .kader-icon { opacity: 1; } }
.kader-label { text-align: center; color: var(--ink-soft); font-size: 15px; margin-top: 4px; }

/* Über Nico: Standbilder im harten Schnitt */
.name { height: 340vh; position: relative; overflow: clip; }
.name-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--nav-h) + 8px) var(--gutter) 40px;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 6vw, 110px);
}
.shots { position: relative; justify-self: center; height: min(78svh, 860px); aspect-ratio: 4 / 5; background: var(--ink); overflow: hidden; }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.shots img.on { visibility: visible; }
.name-text { display: grid; }
.step { grid-area: 1 / 1; align-self: center; opacity: 0; font-size: clamp(28px, 3.700vw, 62px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; max-width: 17ch; text-wrap: pretty; }
p.step { font-size: clamp(24px, 3.100vw, 52px); line-height: 1.12; letter-spacing: -.026em; max-width: 19ch; }
.step.on { opacity: 1; }

/* Abspann */
.credits { position: relative; background: var(--night); color: var(--on-night); padding: clamp(140px, 24vh, 260px) var(--gutter) clamp(120px, 20vh, 220px); }
.roll { margin-bottom: clamp(56px, 9vh, 104px); }
.roll h3 { text-align: center; font-size: clamp(44px, 6.200vw, 108px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-bottom: .36em; font-variant-numeric: tabular-nums; }
.row, .roles > div { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 2vw, 32px); }
.row { width: 100%; padding: 5px 0; font-size: clamp(17px, 1.700vw, 26px); line-height: 1.25; letter-spacing: -.012em; text-align: left; }
.row-with { text-align: right; color: var(--on-night-soft); font-weight: 500; }
.row-title { font-weight: 600; }
.row:hover .row-title, .row:focus-visible .row-title, .row.is-playing .row-title { color: var(--sub); font-style: italic; font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.row:hover .row-with, .row.is-playing .row-with { color: var(--on-night); }
.roles { padding-top: clamp(40px, 8vh, 100px); font-size: clamp(17px, 1.700vw, 26px); line-height: 1.3; }
.roles > div { padding: 12px 0; }
.roles dt { text-align: right; color: var(--on-night-soft); }
.roles dd { font-weight: 600; }
.roles a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.roles a:hover { color: var(--sub); }
.peek { position: fixed; z-index: 5; left: var(--gutter); top: 0; width: min(240px, 17vw); height: auto; aspect-ratio: 1; pointer-events: none; opacity: 0; }
.peek.on { opacity: 1; }
@media (hover: none), (max-width: 900px) { .peek { display: none; } }

/* Ende */
.end {
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: clamp(32px, 7vw, 130px);
  padding: clamp(110px, 16vh, 190px) var(--gutter) clamp(80px, 12vh, 140px);
}
.end-frame .cap { font-size: clamp(30px, 4.200vw, 76px); margin-bottom: .17em; }
.still { position: relative; width: min(40vw, 620px, 60svh); }
.still img { width: 100%; height: auto; }
.still .sub { position: absolute; inset: auto 0 6%; font-size: clamp(17px, 1.500vw, 26px); }
.end-links h2 { margin-bottom: .5em; }
.end-links li { border-top: 1px solid rgb(35 31 32 / .22); }
.end-links li:last-child { border-bottom: 1px solid rgb(35 31 32 / .22); }
.end-links a { display: block; padding: .55em 0; font-size: clamp(22px, 2.500vw, 42px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; text-decoration: none; }
.end-links a:hover, .end-links a:focus-visible { background: var(--ink); color: var(--sub); box-shadow: -14px 0 var(--ink), 14px 0 var(--ink); }
.foot { padding: 0 var(--gutter) 96px; color: var(--ink-soft); font-size: 15px; }

/* Läuft gerade: als Musikuntertitel */
.now { position: fixed; z-index: 9; left: var(--gutter); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px 18px; width: max-content; max-width: calc(100vw - 32px); padding: 6px 18px; background: #000; }
.now-sub { font-size: clamp(15px, 1.200vw, 19px); min-height: 34px; text-shadow: none; }
.now-sub:hover { text-decoration: underline; text-underline-offset: 4px; }
.now-link { font: 500 14px/1.3 Figtree, sans-serif; color: #cfcac7; white-space: nowrap; text-underline-offset: 4px; }
.now-link:hover { color: #fff; }
@media (max-width: 760px) { .now { flex-direction: column; left: 50%; transform: translateX(-50%); } }
body:has(.now:not([hidden])) .film-sub { bottom: calc(100% - var(--ry) - var(--rh) + max(84px, var(--rh) * .1)); }
body:has(.now:not([hidden])) .stage:not([data-phase="film"]) .film-sub { bottom: calc(100% - var(--ry) - var(--rh) + max(22px, var(--rh) * .085)); }

@media (max-width: 760px) {
  :root { --cap: clamp(48px, 15vw, 96px); --cap-end: clamp(24px, 7.200vw, 52px); --nav-h: 56px; }
  .nav { grid-template-columns: 1fr auto; font-size: 15px; }
  .nav nav { grid-row: 1; grid-column: 1; gap: 16px; }
  .nav-home { display: none; }
  .lang span { display: none; }
  .film { height: 700vh; }
  .sound { left: 0; right: 0; margin-inline: auto; width: max-content; top: auto; bottom: 26px; }
  .reel-nav { display: none; }
  .name { height: 360vh; }
  .name-stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 20px; padding-bottom: 84px; }
  .shots { height: min(54svh, 540px, (100vw - 2 * var(--gutter)) * 1.25); }
  .reel { padding-bottom: 72px; }
  .name-text { min-height: 172px; }
  .step, p.step { max-width: none; }
  .row-with { font-size: .9em; padding-top: .08em; }
  .end { grid-template-columns: 1fr; }
  .still { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .play-big, .kader-icon { transition: none; }
}
