:root {
  --red: #e3062c;
  --black: #0a0a0a;
  --paper: #f3f2ee;
  --muted: #a8a8a8;
  --progress: 0;
  --home-header-height: 94px;
  color-scheme: dark;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: white;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: 0.8rem 1rem;
  background: white;
  color: black;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: 190px 1fr auto 140px;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 3rem);
  color: #111;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

body.content-mode .site-header {
  color: #111;
  background: rgba(243, 242, 238, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(12px);
}

.home-body .site-header {
  min-height: var(--home-header-height);
  grid-template-columns: minmax(190px, 280px) 1fr auto 140px;
  padding-block: 0.55rem;
}

body.content-mode .timeline-label {
  color: rgba(17, 17, 17, 0.62);
}

body.content-mode .timeline-label i {
  background: rgba(17, 17, 17, 0.2);
}

body.content-mode .header-cta {
  color: #111;
}

.site-header a {
  pointer-events: auto;
}

.home-body .timeline-label {
  color: rgba(17, 17, 17, 0.62);
}

.home-body .timeline-label i {
  background: rgba(17, 17, 17, 0.2);
}

.home-body .header-cta {
  color: #111;
}

.brand {
  width: 154px;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.brand img {
  width: 100%;
}

.brand-scroll {
  display: flex;
  align-items: center;
  width: auto;
  min-width: 178px;
  height: 78px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  text-decoration: none;
}

.brand-scroll img {
  position: absolute;
  width: 450px;
  max-width: none;
  height: auto;
}

.brand-wordmark {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
}

.brand-wordmark {
  width: 177px;
  height: 60px;
}

.brand-wordmark img {
  left: -141px;
  top: -63px;
}

.timeline-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-label i {
  width: clamp(18px, 3vw, 48px);
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.header-cta {
  justify-self: end;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
  padding: 0.5rem 0;
}

.site-menu {
  position: relative;
  pointer-events: auto;
}

.site-menu summary {
  position: relative;
  z-index: 32;
  padding: 0.5rem 0;
  color: inherit;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu summary::after {
  content: "+";
  display: inline-block;
  margin-left: 0.55rem;
  color: var(--red);
  font-size: 1rem;
}

.site-menu[open] summary {
  color: var(--red);
}

.site-menu[open] summary::after {
  content: "×";
  color: var(--red);
}

.site-menu nav {
  position: absolute;
  z-index: 30;
  top: calc(100% + 1.5rem);
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: min(440px, calc(100vw - 2rem));
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--red);
  color: white;
  box-shadow: -2rem 0 6rem rgba(0, 0, 0, 0.35);
}

.site-menu nav > a {
  padding: 0.75rem 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.site-menu nav > a:hover,
.site-menu nav > a:focus-visible {
  color: #111;
}

.menu-internal {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.menu-internal span {
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-internal a {
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.menu-internal a:hover,
.menu-internal a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.scroll-story {
  position: relative;
  height: 2400vh;
  background: #090909;
}

.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  isolation: isolate;
  overflow: hidden;
  background: #0b0b0b;
}

.home-body .stage {
  top: var(--home-header-height);
  height: calc(100svh - var(--home-header-height));
  min-height: 526px;
}

.ambient {
  position: absolute;
  inset: -5%;
  z-index: -3;
  overflow: hidden;
  background: #070707;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.35), rgba(5, 5, 5, 0.62) 42%, rgba(5, 5, 5, 0.62) 58%, rgba(5, 5, 5, 0.35)),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.48), rgba(5, 5, 5, 0.08) 35%, rgba(5, 5, 5, 0.58));
}

.ambient img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(42px) saturate(0.72) brightness(0.72);
  transform: scale(1.1);
}

.film-window {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.film-window::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 24%, transparent 67%, rgba(0, 0, 0, 0.48));
  pointer-events: none;
}

.film-window img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.sequence-loader {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1rem;
  background: #0a0a0a;
  text-align: center;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.sequence-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.sequence-loader span {
  width: 38px;
  height: 38px;
  margin: auto;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: loader-spin 800ms linear infinite;
}

.sequence-loader p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

.film-grain {
  position: absolute;
  inset: -40%;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  animation: grain 0.3s steps(2) infinite;
  mix-blend-mode: soft-light;
}

@keyframes grain {
  0% { transform: translate3d(-2%, 1%, 0); }
  25% { transform: translate3d(2%, -1%, 0); }
  50% { transform: translate3d(1%, 2%, 0); }
  75% { transform: translate3d(-1%, -2%, 0); }
  100% { transform: translate3d(2%, 1%, 0); }
}

.stage-meta {
  position: absolute;
  z-index: 4;
  left: clamp(1rem, 3vw, 3rem);
  bottom: clamp(1.2rem, 3vw, 2.4rem);
  display: flex;
  gap: 1rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-meta::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--red);
}

.story-copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: min(27vw, 390px);
  opacity: var(--copy-opacity, 0);
  transform: translateY(calc(-50% + 18px));
  transition: opacity 180ms linear, transform 260ms ease-out;
  pointer-events: none;
  text-wrap: balance;
}

.story-copy.is-visible {
  transform: translateY(-50%);
}

.copy-left {
  left: clamp(1.5rem, 5vw, 6.5rem);
  text-align: left;
}

.copy-right {
  right: clamp(1.5rem, 5vw, 6.5rem);
  text-align: right;
}

.story-copy p,
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--red);
  font-size: clamp(0.74rem, 0.9vw, 0.9rem);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-copy h1,
.story-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.1vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.72);
}

.typewriter-visual {
  white-space: pre-wrap;
}

.type-char {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 90ms linear, filter 140ms ease-out;
}

.type-char.is-typed {
  opacity: 1;
  filter: none;
}

.scroll-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.2rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 220ms ease;
}

.scroll-hint b {
  color: var(--red);
  font-size: 1.2rem;
  animation: nudge 1.5s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

.progress-track {
  position: absolute;
  z-index: 4;
  right: clamp(0.75rem, 1.5vw, 1.5rem);
  top: 86px;
  bottom: 28px;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.progress-track > #progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleY(var(--progress));
  transform-origin: top;
}

.content {
  position: relative;
  z-index: 5;
  background: var(--paper);
  color: #111;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 5vw, 6rem);
}

.content-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) 2fr;
  column-gap: 4vw;
  max-width: 1440px;
  margin: 0 auto clamp(6rem, 12vw, 12rem);
}

.content-intro .eyebrow {
  grid-row: 1 / span 2;
  padding-top: 0.75rem;
}

.content h2 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.lead {
  max-width: 890px;
  margin: 3rem 0 0;
  font-size: clamp(1.4rem, 2.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid #181818;
}

.mission-grid article {
  min-height: 340px;
  padding: 1.4rem clamp(1.2rem, 2vw, 2.4rem) 2.4rem 0;
  border-bottom: 1px solid #181818;
}

.mission-grid article + article {
  padding-left: clamp(1.2rem, 2vw, 2.4rem);
  border-left: 1px solid #181818;
}

.mission-grid span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
}

.mission-grid h3 {
  margin: 5rem 0 1.25rem;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.mission-grid p {
  max-width: 31ch;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.join {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) 1.4fr 0.7fr;
  gap: 4vw;
  align-items: end;
  max-width: 1440px;
  margin: clamp(8rem, 15vw, 15rem) auto 0;
}

.join h2 {
  font-size: clamp(3.2rem, 6.5vw, 7rem);
}

.join > div {
  padding-bottom: 0.4rem;
}

.join > div p {
  margin: 0 0 2rem;
  font-size: 1.08rem;
  line-height: 1.45;
}

.join a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 800;
  text-decoration: none;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
}

.join a:hover,
.join a:focus-visible {
  color: var(--red);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: end;
  min-height: 240px;
  padding: 3rem clamp(1.25rem, 5vw, 6rem);
  background: var(--red);
  color: white;
}

footer img {
  width: min(420px, 80vw);
  padding: 0.8rem 1.15rem;
  background: white;
}

footer p {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer a {
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: #111;
}

/* Interior pages */

.page-body {
  color-scheme: light;
  background: var(--paper);
  color: #111;
}

.page-body .site-header {
  color: #111;
  background: rgba(243, 242, 238, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(12px);
}

.page-body .timeline-label {
  color: rgba(17, 17, 17, 0.62);
}

.page-body .timeline-label i {
  background: rgba(17, 17, 17, 0.2);
}

.page-body .header-cta {
  color: #111;
}

.page-main {
  padding-top: 72px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: calc(100svh - 72px);
  border-bottom: 1px solid #111;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(4rem, 8vw, 9rem) clamp(1.25rem, 5vw, 6rem);
}

.page-kicker {
  margin: 0 0 1.5rem;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero h1,
.guide-hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  text-wrap: balance;
}

.page-deck {
  max-width: 720px;
  margin: 3rem 0 0;
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.page-hero-media {
  min-height: 60svh;
  overflow: hidden;
  background: #171717;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-section {
  padding: clamp(5rem, 10vw, 11rem) clamp(1.25rem, 5vw, 6rem);
  border-bottom: 1px solid #111;
}

.page-section-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.section-title-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) 1.45fr;
  gap: 4vw;
  align-items: start;
}

.section-title-row h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.prose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  max-width: 1080px;
  margin: clamp(4rem, 7vw, 7rem) 0 0 auto;
}

.prose-grid p,
.large-prose {
  margin: 0;
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  line-height: 1.5;
}

.quote-band {
  padding: clamp(5rem, 11vw, 12rem) clamp(1.25rem, 5vw, 6rem);
  background: var(--red);
  color: white;
}

.quote-band blockquote {
  max-width: 1320px;
  margin: 0 auto;
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.quote-band cite {
  display: block;
  margin-top: 2rem;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-list {
  max-width: 1100px;
  margin: clamp(4rem, 8vw, 8rem) 0 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid #111;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #111;
}

.timeline-list strong {
  color: var(--red);
  font-size: 1rem;
}

.timeline-list p {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.4;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
}

.source-list a {
  color: #111;
  font-weight: 750;
  text-underline-offset: 0.25em;
}

.action-link {
  display: inline-flex;
  justify-content: space-between;
  gap: 3rem;
  min-width: min(100%, 360px);
  margin-top: 3rem;
  padding: 1rem 0;
  color: #111;
  font-weight: 850;
  text-decoration: none;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
}

.action-link:hover,
.action-link:focus-visible {
  color: var(--red);
}

.page-footer {
  background: #111;
}

/* Style guide */

.guide-hero {
  display: grid;
  align-content: end;
  min-height: 76svh;
  padding: clamp(6rem, 12vw, 12rem) clamp(1.25rem, 5vw, 6rem) clamp(4rem, 7vw, 7rem);
  background: #111;
  color: white;
}

.guide-hero h1 {
  max-width: 11ch;
}

.guide-hero .page-deck {
  max-width: 760px;
}

.guide-section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5vw, 6rem);
  border-bottom: 1px solid #111;
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) 1.45fr;
  gap: 5vw;
  max-width: 1440px;
  margin: 0 auto;
}

.guide-grid > h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.guide-content > p:first-child {
  margin-top: 0;
}

.guide-content p,
.guide-content li {
  max-width: 780px;
  font-size: 1.08rem;
  line-height: 1.55;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  background: #111;
  list-style: none;
}

.principle-list li {
  min-height: 220px;
  margin: 0;
  padding: 1.4rem;
  background: var(--paper);
}

.principle-list strong {
  display: block;
  margin-bottom: 4rem;
  color: var(--red);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 1rem;
}

.swatch-color {
  aspect-ratio: 1;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: var(--swatch);
}

.swatch strong,
.swatch span {
  display: block;
}

.swatch span {
  margin-top: 0.25rem;
  color: #656565;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.type-specimen {
  margin: 2rem 0 0;
  padding: 2rem 0;
  border-top: 1px solid #111;
}

.type-specimen.display {
  font-size: clamp(3.2rem, 8vw, 8.5rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.type-specimen.editorial {
  max-width: 24ch;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.component-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.button-primary,
.button-secondary {
  display: inline-block;
  padding: 1rem 1.35rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid #111;
}

.button-primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.button-secondary {
  background: transparent;
  color: #111;
}

/* Kling prompt sheet */

.prompt-hero {
  min-height: 64svh;
}

.prompt-list {
  display: grid;
  gap: 1px;
  background: #111;
  border: 1px solid #111;
}

.prompt-card {
  padding: clamp(1.4rem, 3vw, 3rem);
  background: var(--paper);
}

.prompt-card-header {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.prompt-card-header > span {
  color: var(--red);
  font-weight: 850;
}

.prompt-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.prompt-files {
  margin: 0.8rem 0 0;
  color: #5b5b5b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  line-height: 1.5;
}

.prompt-card pre {
  max-width: 1100px;
  margin: 2rem 0 0 80px;
  padding: 1.25rem;
  overflow-x: auto;
  white-space: pre-wrap;
  background: #111;
  color: white;
  font: 0.93rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.copy-button {
  padding: 0.75rem 1rem;
  background: transparent;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #111;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .home-body .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .timeline-label {
    display: none;
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero-media {
    order: -1;
    height: 64svh;
  }

  .section-title-row,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .prose-grid {
    margin-left: 0;
  }

  .principle-list {
    grid-template-columns: 1fr;
  }

  .palette {
    grid-template-columns: repeat(3, 1fr);
  }

  .story-copy {
    top: auto;
    right: auto;
    bottom: 5.5rem;
    left: 1.25rem;
    width: min(86vw, 600px);
    padding: 1.25rem;
    text-align: left;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    transform: translateY(16px);
  }

  .story-copy.is-visible {
    transform: none;
  }

  .story-copy h1,
  .story-copy h2 {
    font-size: clamp(2.1rem, 8vw, 4rem);
  }

  .stage-meta {
    display: none;
  }

  .content-intro,
  .join {
    grid-template-columns: 1fr;
  }

  .content-intro .eyebrow {
    grid-row: auto;
  }

  .join {
    align-items: start;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-grid article {
    min-height: 260px;
  }

  .mission-grid article + article {
    padding-left: 0;
    border-left: 0;
  }

  .mission-grid h3 {
    margin-top: 3.5rem;
  }
}

@media (max-width: 620px) {
  :root {
    --home-header-height: 72px;
  }

  .site-header {
    min-height: 62px;
    padding: 0.55rem 0.8rem;
  }

  .brand {
    width: 130px;
  }

  .brand-scroll {
    min-width: 144px;
    width: auto;
    height: 58px;
  }

  .brand-scroll img {
    width: 366px;
  }

  .brand-wordmark {
    width: 143px;
    height: 49px;
  }

  .brand-wordmark img {
    left: -115px;
    top: -51px;
  }

  .header-cta {
    display: none;
  }

  .site-menu nav > a {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .film-window {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    transform: none;
    box-shadow: none;
  }

  .ambient {
    display: none;
  }

  .film-window::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.22), transparent 38%, rgba(0, 0, 0, 0.58));
  }

  .film-window img {
    object-fit: cover;
    object-position: center 34%;
  }

  .progress-track {
    top: 70px;
    right: 0.5rem;
  }

  .scroll-hint {
    bottom: 0.8rem;
  }

  .content {
    padding-top: 5rem;
  }

  .content-intro {
    margin-bottom: 6rem;
  }

  .lead {
    margin-top: 2rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .page-main {
    padding-top: 62px;
  }

  .page-hero {
    min-height: auto;
  }

  .page-hero-copy {
    min-height: 62svh;
  }

  .page-hero-media {
    height: 60svh;
  }

  .page-hero h1,
  .guide-hero h1 {
    font-size: clamp(3.4rem, 18vw, 6rem);
  }

  .prose-grid,
  .palette {
    grid-template-columns: 1fr;
  }

  .timeline-list li {
    grid-template-columns: 72px 1fr;
    gap: 1rem;
  }

  .prompt-card-header {
    grid-template-columns: 50px 1fr;
  }

  .copy-button {
    grid-column: 2;
    justify-self: start;
  }

  .prompt-card pre {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Compact navigation keeps the red wordmark dominant above the film. */
.brand {
  transform-origin: left center;
  transition: transform 220ms ease;
}

.brand:hover,
.brand:focus-visible {
  transform: scale(1.05);
}

.header-cta,
.site-menu summary,
.site-menu nav > a,
.menu-internal a {
  transition: color 180ms ease, transform 180ms ease;
}

.site-header .header-cta:hover,
.site-header .header-cta:focus-visible,
.site-menu:not([open]) summary:hover,
.site-menu:not([open]) summary:focus-visible {
  color: var(--red);
}

.site-menu[open] summary:hover,
.site-menu[open] summary:focus-visible {
  color: var(--black);
}

.site-menu nav > a:hover,
.site-menu nav > a:focus-visible,
.menu-internal a:hover,
.menu-internal a:focus-visible {
  transform: translateX(5px);
}

.site-header a:focus-visible,
.site-menu summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .brand:hover,
  .brand:focus-visible,
  .site-menu nav > a:hover,
  .site-menu nav > a:focus-visible,
  .menu-internal a:hover,
  .menu-internal a:focus-visible,
  .header-cta,
  .site-menu summary,
  .site-menu nav > a,
  .menu-internal a {
    transition: none;
    transform: none;
  }
}

@media (max-width: 620px) {
  .site-menu nav {
    right: 0;
    max-height: calc(100dvh - 100px);
  }
}


/* Chapter labels follow the film's vertical progress rail. */
.home-body .site-header {
  grid-template-columns: 1fr auto 140px;
}

.home-body .progress-track {
  top: calc(var(--home-header-height) + 30px);
  bottom: 40px;
}

.progress-milestones {
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-milestones li {
  position: absolute;
  top: var(--milestone);
  right: 13px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(0.55rem, 0.8vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px #000;
  transition: color 180ms ease;
}

.progress-milestones li::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aaa;
  transform: translateY(-50%);
}

.progress-milestones li.is-reached { color: white; }
.progress-milestones li.is-reached::after { background: var(--red); }
.progress-milestones li.is-current { color: white; font-weight: 900; }

@media (max-width: 620px) {
  .home-body .site-header { grid-template-columns: 1fr auto; }
  .progress-milestones li { right: 11px; letter-spacing: 0.03em; }
  .progress-milestones li::after { right: -14px; }
}

.progress-milestones button {
  display: block;
  min-height: 44px;
  padding: 10px 18px 10px 8px;
  margin-right: -18px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-shadow: inherit;
  cursor: pointer;
  transform-origin: right center;
  transition: transform 180ms ease, color 180ms ease;
}

.progress-milestones li::after { pointer-events: none; }

.progress-milestones button:hover,
.progress-milestones button:focus-visible {
  color: white;
  transform: scale(1.1);
}

.progress-milestones button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .progress-milestones button { transition: none; }
  .progress-milestones button:hover,
  .progress-milestones button:focus-visible { transform: none; }
}

html.intro-playing,
html.intro-playing body { overflow: hidden; }
html { scrollbar-gutter: stable; }

#intro-frame { z-index: 1; object-fit: contain; object-position: center; }
#intro-frame[hidden], .intro-skip[hidden] { display: none; }
.intro-playing .story-copy,
.intro-playing .stage-meta,
.intro-playing .progress-track,
.intro-playing .scroll-hint { visibility: hidden; }

.intro-skip {
  position: absolute;
  z-index: 9;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 2px;
  background: rgba(0,0,0,0.4);
  color: white;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.intro-skip:hover, .intro-skip:focus-visible { background: var(--red); }

/* Scale the source image from a complete small view to the scroll film's cover size. */
.intro-playing #intro-frame {
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--intro-scale, 0.2));
  transform-origin: center center;
  will-change: transform;
}
.intro-playing #sequence-frame { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .intro-playing #intro-frame { transform: translate(-50%, -50%); }
}

/* White canvas behind the complete, uncropped intro. */
html.intro-playing,
html.intro-playing body,
.intro-playing .scroll-story,
.intro-playing .stage { background: white; }
.intro-playing .sequence-loader { background: white; color: #111; }
.intro-playing .sequence-loader > span,
.intro-playing .sequence-loader > p { display: none; }

.intro-progress {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: clamp(120px, 20vw, 240px);
  height: 3px;
  transform: translate(-50%, -50%);
  background: rgba(160, 160, 160, 0.35);
  pointer-events: none;
}
.intro-progress[hidden] { display: none; }
.intro-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(var(--intro-progress, 0));
  transform-origin: left;
}
.intro-playing .intro-skip {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.25);
  color: #111;
}
.intro-playing .intro-skip:hover,
.intro-playing .intro-skip:focus-visible { background: var(--red); color: white; }

/* The scroll film fills the stage after the intro has finished. */
.home-body .film-window img {
  object-fit: cover;
  object-position: center;
}
.home-body .film-window {
  background: #0b0b0b;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.intro-playing .film-window { background: white; }
.home-body .film-window::before { display: none; }

/* Presentation entry: a clean white screen, followed by the film and navigation. */
.presentation-start { display: none; }
.presentation-ready, .presentation-ready body { overflow: hidden; background: white; }
.presentation-ready .presentation-start {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: white;
}
.presentation-start button {
  padding: 0.9rem 2.8rem;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: white;
  color: var(--red);
  font: inherit;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.presentation-start button:hover { background: var(--red); color: white; }
.presentation-start button:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
.presentation-ready .site-header,
.intro-playing:not(.presentation-started) .site-header { visibility: hidden; }
.presentation-started .home-body .site-header > * {
  animation: presentation-menu-in 1.2s ease both;
}
.presentation-started .home-body .site-header > :nth-child(2) { animation-delay: 0.35s; }
.presentation-started .home-body .site-header > :nth-child(3) { animation-delay: 0.7s; }
@keyframes presentation-menu-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .presentation-started .home-body .site-header > * { animation: none; }
  .presentation-start button { transition: none; }
}

/* Original red wordmark, including e.V., without the illustration. */
.site-header .brand {
  display: block;
  width: 240px;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.site-header .brand-wordmark {
  width: 240px;
  height: 62px;
  position: relative;
  overflow: hidden;
}
.site-header .brand-wordmark img {
  position: absolute;
  width: 450px;
  max-width: none;
  height: auto;
  left: -141px;
  top: -62px;
}
.page-body .site-header { grid-template-columns: 240px 1fr auto 140px; }
.home-body .content { background: white; }
.home-body .stage-meta,
.home-body .progress-track { opacity: var(--film-ui-opacity, 1); }
.home-body .scroll-story { height: 1600vh; background: white; }
@media (max-width: 980px) {
  .page-body .site-header { grid-template-columns: 1fr auto auto; }
}
@media (max-width: 620px) {
  .site-header .brand { width: 180px; }
  .site-header .brand-wordmark { width: 180px; height: 46.5px; }
  .site-header .brand-wordmark img { width: 337.5px; left: -105.75px; top: -46.5px; }
}

.internal-back { position: relative; display: block; margin-top: 100px; padding: 14px 3vw; background: var(--red); color: white; font-size: 13px; }

/* Wo läuft's? */

.spielplan-filter { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 32px; }

.filter-chip { border: 1px solid #111; background: transparent; color: #111; padding: 10px 20px; font-weight: 750; font-size: 13px; letter-spacing: 0.02em; cursor: pointer; }

.filter-chip[aria-pressed="true"] { background: #111; color: white; }

.filter-chip:hover { border-color: var(--red); }

.spielplan-list, .venue-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 8px; }

.match-card, .venue-card { border: 1px solid #111; padding: 24px; }

.match-card time { display: block; color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; margin-bottom: 12px; }

.match-league { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #656565; margin-bottom: 10px; }

.match-card h3, .venue-card h3 { margin: 0 0 10px; font-size: 1.35rem; letter-spacing: -0.02em; }

.match-card p, .venue-card p { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.5; }

.venue-card a { display: inline-block; margin-top: 6px; margin-right: 16px; font-weight: 750; text-underline-offset: 0.25em; }

.venue-tag { color: var(--red); font-weight: 750; }

.venue-index { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px; background: var(--red); color: white; font-size: 12px; font-weight: 800; border-radius: 50%; }

.venue-map { position: relative; width: 100%; height: 60vh; min-height: 360px; margin: 32px 0; border: 1px solid #111; background: var(--paper); }

.venue-map.venue-map-offline svg { width: 100%; height: 100%; display: block; }

.venue-map-river { fill: none; stroke: #656565; stroke-width: 1.4; }

.venue-map-caption { position: absolute; left: 12px; bottom: 12px; margin: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #656565; background: var(--paper); padding: 4px 8px; }

.venue-pin { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; border: 2px solid white; background: var(--red); color: white; font-weight: 800; font-size: 13px; cursor: pointer; box-shadow: 0 0 0 1px #111; }

.venue-pin:hover, .venue-pin:focus-visible { background: #111; }

.page-body .empty-state { border: 1px dashed #b6b5b0; padding: 32px; color: #63615d; line-height: 1.6; grid-column: 1 / -1; }

@media (max-width: 720px) {
  .venue-map { height: 50vh; }
}

/* Presse */

.presskit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 8px; }

.presskit-card { border: 1px solid #111; padding: 20px; display: flex; flex-direction: column; }

.presskit-preview { height: 160px; display: flex; align-items: center; justify-content: center; background: white; border: 1px solid #ddd; margin-bottom: 16px; padding: 12px; }

.presskit-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

.presskit-card h3 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -0.01em; }

.presskit-card p { margin: 0 0 12px; font-size: 0.85rem; color: #63615d; line-height: 1.5; }

.presskit-card a { margin-top: auto; font-weight: 750; text-underline-offset: 0.25em; }
