/* arnolietha.ch: night ground, snow type, the logo's orange. One family: Satoshi. */

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi-variable-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #0d0e10;
  --night-2: #16181b;
  --night-3: #24272b;
  --snow: #f5f5f2;
  --snow-muted: #b4b8bd;
  --white: #ffffff;
  --ink: #0d0e10;
  --ink-muted: #4a4f55;
  --orange: #e4572e;
  --orange-deep: #b8401b;

  --font: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 0.95rem + 1.2vw, 2rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.6rem, 0.6rem + 8.6vw, 9.5rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --section: clamp(96px, 11vw, 192px);
  --header-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100svh;
  background: var(--night);
  color: var(--snow);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  scrollbar-color: var(--night-3) var(--night);
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
::selection { background: var(--orange); color: var(--night); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
input, textarea { caret-color: var(--orange); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--margin); top: -100px; z-index: 100;
  background: var(--orange); color: var(--night); padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display, h2.display {
  font-size: var(--step-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.head {
  font-size: var(--step-head);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.lead { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.small { font-size: var(--step-small); }
p { max-width: 62ch; text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.section { padding-block: var(--section); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--orange); color: var(--night);
  font-weight: 800; font-style: italic; font-size: 1.0625rem; letter-spacing: -0.005em;
  text-decoration: none; border: 0; border-radius: 0;
  transition: transform 0.2s var(--ease-out);
}
.btn:hover { background: var(--snow); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--night { background: var(--night); color: var(--snow); }
.btn--night:hover { background: var(--night-3); }
.btn--night:focus-visible { outline-color: var(--night); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link {
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange);
}
.link:hover { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--margin);
  background: var(--night);
}
.site-header__logo { display: flex; align-items: center; gap: 14px; color: var(--snow); text-decoration: none; }
.site-header__logo .monogram { width: 44px; height: auto; color: var(--orange); }
.site-header__logo .wordmark { width: 150px; height: auto; }
.home .site-header__logo .wordmark { display: none; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.site-nav ul { display: flex; gap: clamp(16px, 2vw, 32px); }
.site-nav ul a {
  text-decoration: none; font-weight: 700; padding-block: 8px;
  position: relative;
}
.site-nav ul a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current]::after { transform: scaleX(1); }
.site-nav .btn { min-height: 44px; padding: 0 20px; }
.menu-toggle {
  display: none; min-height: 44px; padding: 0 16px;
  background: transparent; border: 2px solid var(--snow); border-radius: 0;
  font-weight: 800; font-style: italic;
}
.menu-toggle:hover { background: var(--snow); color: var(--night); }

.menu {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0 var(--margin) 32px; border: 0;
  background: var(--night); color: var(--snow);
}
.menu::backdrop { background: var(--night); }
.menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu__top .monogram { width: 44px; color: var(--orange); }
.menu ul { margin-top: 32px; display: grid; gap: 4px; }
.menu ul a {
  display: block; padding-block: 6px; text-decoration: none;
  font-size: var(--step-display); font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05;
}
.menu ul a:hover { color: var(--orange); }
.menu__foot { margin-top: 40px; display: grid; gap: 20px; }

@media (max-width: 920px) {
  .site-nav ul, .site-nav .btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
}

/* ---------- Hero: the name pinned, the sprint passes beneath ---------- */
.hero { position: relative; }
.js .hero { height: 240svh; }
@media (prefers-reduced-motion: reduce) {
  .js .hero { height: auto; }
  .hero__stage { position: relative; top: 0; }
  .hero__frame:not(:first-child) { display: none; }
}
.hero__stage {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: 0 var(--margin) clamp(20px, 3.5svh, 36px);
}
.hero__title {
  position: absolute; z-index: 3;
  top: clamp(12px, 3svh, 40px); left: 50%;
  width: min(84vw, 1280px);
  transform: translateX(-50%);
  color: var(--orange);
  line-height: 0;
}
.hero__title .wordmark { width: 100%; height: auto; }
.hero__photos {
  grid-column: 4 / 10; grid-row: 1 / 3;
  justify-self: center; align-self: end;
  position: relative;
  height: calc(100% - clamp(56px, 10svh, 110px));
  aspect-ratio: 2 / 3;
  background: var(--night-2);
  overflow: hidden;
}
.hero__frame {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.hero__frame.is-active, .hero__frame:first-child { opacity: 1; }
.js .hero__frame:first-child:not(.is-active) { opacity: 0; }
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-out);
}
.hero__frame.is-active img { transform: none; }
.hero__frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 18px 14px;
  background: linear-gradient(to top, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0)); /* taste-skill-ignore: neutral scrim under a caption on a photo */
  color: var(--white); font-weight: 700; font-size: var(--step-small);
}
.hero__intro {
  grid-column: 1 / 4; grid-row: 2;
  align-self: end; z-index: 2;
  font-weight: 700; max-width: 27ch;
}
.hero__side {
  grid-column: 9 / 13; grid-row: 2;
  align-self: end; justify-self: end; z-index: 2;
  display: grid; justify-items: end; gap: 18px; text-align: right;
}
.clock {
  font-size: var(--step-head); font-weight: 900; font-style: italic;
  line-height: 0.9; letter-spacing: -0.02em; color: var(--snow);
  font-variant-numeric: tabular-nums;
}
.clock__label { font-size: var(--step-small); color: var(--snow-muted); max-width: 30ch; }
.hero__stage { grid-template-rows: 1fr auto; }
@media (min-width: 921px) { .hero__side .btn { display: none; } }

@media (max-width: 1023px), (max-aspect-ratio: 4/5) {
  .hero__stage {
    display: flex; flex-direction: column; align-items: stretch;
    padding-top: calc((100vw - 2 * var(--margin)) * 0.0714 + 12px);
    min-height: 0;
  }
  .hero__title { top: 12px; width: calc(100vw - 2 * var(--margin)); }
  .hero__photos {
    align-self: center;
    margin-top: calc((100vw - 2 * var(--margin)) * -0.036);
    height: auto; width: auto; max-width: 100%;
    flex: 1 1 auto; min-height: 0;
  }
  .hero__side {
    display: grid; grid-template-columns: auto 1fr; align-items: center;
    justify-items: start; justify-self: stretch; align-self: stretch; text-align: left; gap: 4px 14px; width: 100%; margin-top: 14px;
  }
  .hero__side .btn { grid-column: 1 / -1; margin-top: 10px; }
  .hero__intro { order: 2; align-self: flex-start; margin-top: 12px; font-weight: 600; font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
  .hero__side { order: 3; }
  .hero__side .btn { justify-self: start; }
  .clock__more { display: none; }
  .clock__label { max-width: 24ch; }
}

/* ---------- Siegen ---------- */
.motto { row-gap: clamp(28px, 3vw, 48px); align-items: start; }
.motto__title { grid-column: 1 / 9; }
.motto__quote { grid-column: 1 / 8; }
.motto__quote p { font-size: var(--step-lead); font-weight: 800; font-style: italic; line-height: 1.3; max-width: 26ch; }
.motto__text { grid-column: 1 / 7; display: grid; gap: 1em; }
.motto__olympia { color: var(--snow); }
.motto__olympia strong { color: var(--orange); }
.motto__portrait { grid-column: 9 / 13; grid-row: 1 / 4; margin-top: clamp(24px, 6vw, 96px); }
.motto__wide { grid-column: 3 / 11; margin-top: clamp(32px, 6vw, 96px); }
.motto__square { grid-column: 11 / 13; align-self: end; }
.motto figure img { width: 100%; object-fit: cover; }
.motto__portrait img { aspect-ratio: 4 / 5; }
.motto__wide img { aspect-ratio: 16 / 10; }
.motto__square img { aspect-ratio: 1; }
.caption { margin-top: 10px; font-size: var(--step-small); color: var(--snow-muted); }

@media (max-width: 767px) {
  .motto__title, .motto__quote, .motto__text { grid-column: 1 / -1; }
  .motto__portrait { grid-column: 4 / -1; grid-row: auto; margin-top: 8px; }
  .motto__wide { grid-column: 1 / 11; margin-top: 8px; }
  .motto__square { grid-column: 7 / -1; }
}

/* ---------- Resultate: a results board, rank first ---------- */
.results { background: var(--white); color: var(--ink); }
.results ::selection { background: var(--ink); color: var(--white); }
.results :focus-visible { outline-color: var(--ink); }
.results__head { align-items: end; row-gap: clamp(24px, 3vw, 40px); }
.results__title { grid-column: 1 / 9; }
.results__intro { grid-column: 1 / 8; }
.results__photo { grid-column: 9 / 13; grid-row: 1 / 4; align-self: start; overflow: hidden; }
.results__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.results__photo .caption { color: var(--ink-muted); }

/* The filter is the scoreboard: three real counts, press one to filter */
.tally {
  grid-column: 1 / 9; position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f1f0ec; margin-top: 8px;
}
.tally__marker {
  position: absolute; left: 0; bottom: 0; z-index: 2; height: 6px; width: calc(100% / 3);
  background: var(--orange);
  transform: translateX(calc(var(--at, 0) * 100%));
  transition: transform 0.45s var(--ease-out);
}
.tally button {
  position: relative; z-index: 1;
  display: grid; justify-items: start; gap: 6px;
  padding: clamp(14px, 1.8vw, 24px) clamp(14px, 1.8vw, 24px) clamp(14px, 1.6vw, 20px);
  background: transparent; border: 0; border-radius: 0; color: var(--ink); text-align: left;
}
.tally button[aria-pressed='true'] { color: var(--white); background: var(--ink); }
.tally__n {
  font-size: var(--step-head); font-weight: 900; font-style: italic; line-height: 0.9; letter-spacing: -0.02em;
  transition: transform 0.25s var(--ease-out);
}
.tally__label { font-weight: 700; font-size: var(--step-small); }
.tally button:hover .tally__n { transform: translateY(-3px); }
.tally button:active .tally__n { transform: translateY(1px) scale(0.97); }
.tally button[aria-pressed='true'] .tally__n { color: var(--orange); }

.seasons { margin-top: clamp(56px, 7vw, 112px); display: grid; gap: clamp(48px, 6vw, 96px); }
.season {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: start;
}
.season.is-empty { display: none; }
.season__head {
  grid-column: 1 / 4;
  position: sticky; top: calc(var(--header-h) + 24px);
  display: grid; gap: 6px;
}
.season__year { font-size: var(--step-head); font-weight: 900; font-style: italic; line-height: 0.9; letter-spacing: -0.02em; }
.season__class { font-weight: 700; }
.season__tally { color: var(--ink-muted); font-size: var(--step-small); }
.season__note {
  justify-self: start; margin-top: 6px; padding: 6px 10px;
  background: var(--orange); color: var(--ink); font-weight: 800; font-style: italic; font-size: var(--step-small);
}
.season__list { grid-column: 4 / 13; display: grid; gap: 6px; }

.result {
  display: grid; grid-template-columns: clamp(48px, 4.4vw, 64px) 1fr; align-items: center;
  column-gap: clamp(14px, 1.6vw, 24px);
  padding: 6px clamp(6px, 0.8vw, 12px) 6px 6px;
  transition: transform 0.25s var(--ease-out);
}
.result::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: #f1f0ec;
  opacity: 0; transition: opacity 0.2s var(--ease-out);
}
.result { position: relative; isolation: isolate; }
.result:hover::before { opacity: 1; }
.result:hover { transform: translateX(4px); }
.result__rank {
  display: grid; place-items: center; aspect-ratio: 1;
  font-size: var(--step-lead); font-weight: 900; font-style: italic; letter-spacing: -0.02em;
  background: transparent; color: var(--ink-muted);
  box-sizing: border-box;
  transition: transform 0.3s var(--ease-out);
}
.result:hover .result__rank { transform: scale(1.08) rotate(-4deg); }
.r1 .result__rank { background: var(--orange); color: var(--ink); }
.r2 .result__rank { background: var(--ink); color: var(--white); }
.r4 .result__rank { background: #f1f0ec; }
.result__text { font-size: var(--step-lead); line-height: 1.2; }
.result__event { font-weight: 700; }
.result__meta { color: var(--ink-muted); font-weight: 400; }
.result--todo .result__rank { background: transparent; color: var(--orange-deep); }
.result--todo .result__event { color: var(--orange-deep); }
.result.is-hidden { display: none; }
.result.is-entering { animation: row-in 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 899px) {
  .results__title, .results__intro, .tally { grid-column: 1 / -1; }
  .results__photo { grid-column: 5 / -1; grid-row: auto; }
  .season__head {
    grid-column: 1 / -1; z-index: 2;
    top: var(--header-h); padding: 14px 0 12px; background: var(--white);
    grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px;
  }
  .season__year { grid-row: 1 / 3; }
  .season__note { grid-column: 1 / -1; margin-top: 4px; }
  .season__list { grid-column: 1 / -1; margin-top: 8px; }
  .result { grid-template-columns: 44px 1fr; }
  .result__rank { font-size: 1.25rem; }
  .result__text { font-size: var(--step-body); }
  .result__meta { display: block; font-size: var(--step-small); }
}
@media (max-width: 520px) {
  .tally__label { font-size: 0.8125rem; }
  .tally button { padding: 12px 10px; }
}

/* ---------- Impressionen ---------- */
.gallery__head { align-items: end; row-gap: 24px; }
.gallery__title { grid-column: 1 / 9; }
.gallery__intro { grid-column: 9 / 13; }
.curtain { position: relative; margin-top: clamp(48px, 6vw, 96px); }
.curtain__item {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
  overflow: hidden; margin: 0;
  background: var(--night-2);
}
.curtain__item img { width: 100%; height: 100%; object-fit: cover; }
.curtain__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 96px var(--margin) clamp(20px, 3vw, 36px);
  background: linear-gradient(to top, rgb(0 0 0 / 0.6), rgb(0 0 0 / 0)); /* taste-skill-ignore: neutral scrim under a caption on a photo */
  color: var(--white); font-weight: 700; font-size: var(--step-lead);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .curtain__item img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
  }
}
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }

.strip {
  display: grid; gap: var(--gutter);
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr));
  grid-auto-rows: clamp(140px, 15vw, 220px);
  grid-auto-flow: dense;
  margin-top: var(--section);
}
.strip button {
  padding: 0; border: 0; background: var(--night-2); overflow: hidden; border-radius: 0;
}
.strip button.tall { grid-row: span 2; }
.strip button.wide { grid-column: span 2; grid-row: span 2; }
.strip img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out), opacity 0.3s;
}
.strip button:hover img { transform: scale(1.04); }
.strip button:active img { opacity: 0.8; }
.strip__title { margin-top: var(--section); }

@media (max-width: 767px) {
  .gallery__title, .gallery__intro { grid-column: 1 / -1; }
  .strip button.wide { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Photo viewer ---------- */
.viewer {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgb(8 9 10 / 0.97); color: var(--snow);
}
.viewer::backdrop { background: rgb(8 9 10 / 0.9); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--margin); gap: 16px; }
.viewer figure { display: grid; place-items: center; min-height: 0; padding: 0 var(--margin); margin: 0; }
.viewer img { max-height: 100%; max-width: 100%; object-fit: contain; }
.viewer__nav { display: flex; justify-content: center; gap: 12px; padding: 16px; }
.viewer button {
  min-height: 48px; padding: 0 18px; border: 2px solid var(--snow); border-radius: 0;
  background: transparent; font-weight: 800; font-style: italic;
}
.viewer button:hover { background: var(--snow); color: var(--night); }

/* ---------- Über mich ---------- */
.about { background: var(--night-2); }
.about__grid { row-gap: 32px; align-items: start; }
.about__photo { grid-column: 1 / 6; grid-row: 1 / 5; position: sticky; top: calc(var(--header-h) + 24px); }
.about__photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.about__title { grid-column: 7 / 13; }
.about__text { grid-column: 7 / 13; display: grid; gap: 1em; }
.facts {
  grid-column: 7 / 13;
  display: grid; grid-template-columns: max-content 1fr; gap: 14px 28px;
  margin-top: 8px;
}
.facts dt { color: var(--snow-muted); font-size: var(--step-small); padding-top: 0.35em; }
.facts dd { font-size: var(--step-lead); font-weight: 500; line-height: 1.25; }
.goals { grid-column: 7 / 13; margin-top: clamp(24px, 4vw, 56px); display: grid; gap: 16px; }
.placeholder-text { color: var(--orange); font-weight: 700; }

@media (max-width: 767px) {
  .about__photo { grid-column: 1 / 10; grid-row: auto; position: static; }
  .about__title, .about__text, .facts, .goals { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
}

/* ---------- Freunde ---------- */
.friends__title { grid-column: 1 / -1; }
.quote {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  margin-top: clamp(48px, 7vw, 112px); align-items: start;
}
.quote__photo { grid-column: 1 / 4; max-width: 260px; }
.quote__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quote blockquote { grid-column: 5 / 12; }
.quote blockquote p { font-size: var(--step-body); font-weight: 500; line-height: 1.6; max-width: 58ch; }
.quote blockquote p::before { content: '«'; color: var(--orange); }
.quote blockquote p::after { content: '»'; color: var(--orange); }
.quote figcaption { margin-top: 20px; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--snow-muted); font-size: var(--step-small); }
.quote--right .quote__photo { grid-column: 10 / 13; grid-row: 1; justify-self: end; }
.quote--right blockquote { grid-column: 2 / 9; grid-row: 1; }

@media (max-width: 767px) {
  .quote__photo, .quote--right .quote__photo { grid-column: 1 / 7; grid-row: auto; }
  .quote--right .quote__photo { grid-column: 7 / -1; }
  .quote blockquote, .quote--right blockquote { grid-column: 1 / -1; grid-row: auto; margin-top: 20px; }
}

/* ---------- Sponsoren: the sponsor wall, logos on white plates ---------- */
.band {
  position: relative; overflow: hidden;
  background: var(--orange); color: var(--ink);
  height: clamp(120px, 26vh, 240px);
  display: flex; align-items: center;
}
.band__track {
  display: flex; flex: none; white-space: nowrap;
  animation: band 52s linear infinite;
}
.band.is-paused .band__track, .band:hover .band__track { animation-play-state: paused; }
.band__track span {
  display: inline-flex; align-items: center;
  font-size: var(--step-display); font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1;
}
.band__track span::after {
  content: ''; display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%;
  background: var(--ink); margin: 0 0.45em;
}
@keyframes band { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band__track { animation: none; } }
.band__pause {
  position: absolute; right: var(--margin); bottom: 10px;
  min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 0;
  background: var(--orange); color: var(--ink); font-weight: 800; font-style: italic; font-size: var(--step-small);
}
.band__pause:hover { background: var(--ink); color: var(--orange); }
.band__pause:focus-visible { outline-color: var(--ink); }

.sponsors__head { row-gap: clamp(20px, 3vw, 36px); align-items: end; }
.sponsors__title { grid-column: 1 / 8; }
.sponsors__intro { grid-column: 1 / 7; }
.sponsors__photo { grid-column: 8 / 13; grid-row: 1 / 3; overflow: hidden; }
.sponsors__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }

.plates { display: grid; gap: clamp(20px, 2.4vw, 32px) var(--gutter); }
.plates--main { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 112px); }
.plates--partner { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); }
.plates--gear { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.plate { display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--snow); }
.plate__logo {
  display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 12px;
  background: var(--white); overflow: hidden;
  transition: transform 0.35s var(--ease-out);
}
.plates--partner .plate__logo { aspect-ratio: 3 / 2; }
.plates--gear .plate__logo { aspect-ratio: 1; margin-bottom: 8px; }
.plate--wide .plate__logo { aspect-ratio: 3 / 1; }
.plate__logo img {
  width: auto; height: auto; max-width: 72%; max-height: 62%; object-fit: contain;
  transition: transform 0.45s var(--ease-out);
}
.plates--main .plate__logo img { max-height: 70%; max-width: 46%; }
.plates--gear .plate__logo img { max-width: 84%; max-height: 64%; }
.plate__name { font-size: var(--step-lead); font-weight: 800; font-style: italic; line-height: 1.1; }
.plate__place { color: var(--snow-muted); }
.plate__url { font-size: var(--step-small); color: var(--snow-muted); display: inline-flex; gap: 6px; }
.plate__url::after { content: '→'; color: var(--orange); transition: transform 0.25s var(--ease-out); }
.plates--gear .plate__url { font-size: 0.8125rem; overflow-wrap: anywhere; }
.plates--gear .plate__url::after { display: none; }
.plate:hover .plate__logo { transform: translateY(-6px); }
.plate:hover .plate__logo img { transform: scale(1.06); }
.plate:hover .plate__url { color: var(--snow); }
.plate:hover .plate__url::after { transform: translateX(4px); }
.plate:active .plate__logo { transform: translateY(-2px) scale(0.99); }

.tier { margin-top: clamp(64px, 8vw, 128px); }
.tier h3 { margin-bottom: clamp(24px, 3vw, 40px); }
.ambassador { display: grid; gap: 16px; align-content: start; }
.ambassador .plate { max-width: 420px; }
.partners { margin-top: clamp(64px, 8vw, 128px); row-gap: 56px; }
.partners .ambassador:first-child { grid-column: 1 / 6; }
.partners .ambassador:last-child { grid-column: 7 / 13; }
.credit {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(24px, 3vw, 48px);
  margin-top: clamp(72px, 9vw, 144px);
}
.credit__label { font-size: var(--step-lead); font-weight: 800; font-style: italic; }
.credit__link { display: inline-flex; align-items: center; gap: 20px; text-decoration: none; }
.credit__link img { width: clamp(160px, 16vw, 230px); height: auto; transition: transform 0.35s var(--ease-out); }
.credit__link:hover img { transform: translateY(-3px); }
.credit__link:hover .plate__url { color: var(--snow); }
.credit__link:hover .plate__url::after { transform: translateX(4px); }

@media (max-width: 1023px) {
  .plates--gear { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plates--partner .plate__url { display: none; }
}
@media (max-width: 767px) {
  .sponsors__title, .sponsors__intro { grid-column: 1 / -1; }
  .sponsors__photo { grid-column: 4 / -1; grid-row: auto; }
  .plates--main { grid-template-columns: 1fr 1fr; }
  .plates--partner { grid-template-columns: 1fr 1fr; }
  .plates--gear { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plates--gear .plate__url { display: none; }
  .partners .ambassador:first-child, .partners .ambassador:last-child { grid-column: 1 / -1; }
}

/* ---------- Gönner werden: the orange field ---------- */
.support { background: var(--orange); color: var(--ink); }
.support ::selection { background: var(--ink); color: var(--orange); }
.support :focus-visible { outline-color: var(--ink); }
.support__title { grid-column: 1 / -1; }
.support__text { grid-column: 1 / 6; display: grid; gap: 1em; align-content: start; margin-top: clamp(32px, 4vw, 56px); }
.support__offer { font-size: var(--step-lead); font-weight: 800; font-style: italic; line-height: 1.3; }
.support__form { grid-column: 7 / 13; margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 767px) {
  .support__text, .support__form { grid-column: 1 / -1; }
}

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; }
.field .opt { font-weight: 400; }
.field input[type='text'], .field input[type='email'], .field input[type='number'], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: rgb(255 255 255 / 0.9); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; background: var(--white); }
.field [aria-invalid='true'] { border-color: #5a0f00; border-width: 3px; padding: 11px 13px; }
.field__hint { font-size: var(--step-small); }
.field__error { font-weight: 700; font-size: var(--step-small); color: #3a0a00; }
fieldset.field { border: 0; padding: 0; }
.choices { display: grid; gap: 8px; margin-top: 6px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: block; padding: 12px 16px 12px 48px; min-height: 48px;
  border: 2px solid var(--ink); background: transparent; font-weight: 600;
  position: relative;
}
.choice span::before {
  content: ''; position: absolute; left: 14px; top: 50%; translate: 0 -50%;
  width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white);
}
.choice input:checked + span { background: var(--ink); color: var(--white); }
.choice input:checked + span::before { background: var(--orange); border: 5px solid var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.choice span:hover { background: rgb(13 14 16 / 0.08); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot, off screen */
.form__status { padding: 16px 18px; background: var(--ink); color: var(--white); font-weight: 600; }
.form__done { padding: clamp(24px, 3vw, 40px); background: var(--ink); color: var(--white); display: grid; gap: 12px; }
.form__done:focus { outline: 3px solid var(--ink); outline-offset: 4px; }
.form__done .head { color: var(--orange); }

@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); padding-top: var(--section); overflow: hidden; }
.site-footer__lead { font-size: var(--step-lead); font-weight: 500; }
.site-footer__mail {
  display: block; margin-top: 12px;
  font-size: clamp(var(--step-head), calc((100vw - 2 * var(--margin)) / 10.4), 9.5rem);
  font-weight: 900; font-style: italic; letter-spacing: -0.035em; line-height: 1;
  text-decoration: none; overflow-wrap: anywhere;
}
.site-footer__mail:hover { color: var(--orange); }
.site-footer__cols { margin-top: clamp(56px, 7vw, 112px); row-gap: 32px; }
.site-footer__cols > div { grid-column: span 3; }
.site-footer__cols h2 { font-size: var(--step-small); font-weight: 700; color: var(--snow-muted); margin-bottom: 10px; }
.site-footer__cols ul { display: grid; gap: 6px; }
.site-footer__cols a { text-decoration: none; font-weight: 700; }
.site-footer__cols a:hover { color: var(--orange); text-decoration: underline; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 96px); font-size: var(--step-small); color: var(--snow-muted);
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__legal a { text-decoration: none; }
.site-footer__legal a:hover { color: var(--snow); text-decoration: underline; }
.site-footer__mark { margin-top: clamp(32px, 4vw, 56px); color: var(--night-3); line-height: 0; margin-bottom: -1.2%; }
.site-footer__mark .wordmark { width: 100%; height: auto; }
@media (max-width: 767px) {
  .site-footer__cols > div { grid-column: span 6; }
}

/* ---------- Text pages (Impressum, Datenschutz, 404) ---------- */
.page { padding-block: clamp(56px, 8vw, 128px) var(--section); }
.page__title { margin-bottom: clamp(32px, 5vw, 72px); }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-lead); font-weight: 800; font-style: italic; margin-top: 2em; margin-bottom: 0.4em; line-height: 1.2; }
.prose p, .prose ul { margin-bottom: 1em; }
.prose ul { padding-left: 1.2em; }
.prose a:not(.btn) { color: var(--snow); text-decoration-color: var(--orange); }
.prose a:not(.btn):hover { color: var(--orange); }
.notfound__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Entrance motion (only with JS, never hides content without it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
  .js .reveal.d1 { transition-delay: 0.08s; }
  .js .reveal.d2 { transition-delay: 0.16s; }
  .js .reveal.d3 { transition-delay: 0.24s; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__frame, .hero__frame img, .strip img { transition: none; }
  .hero__frame img { transform: none; }
}

/* Focal points of the hero photos (landscape originals cropped to 2:3) */
.hero__frame--night img { object-position: 60% 50%; }
.hero__frame--descent img { object-position: 24% 50%; }
.hero__frame--finish img { object-position: 66% 50%; }
.btn--line { background: transparent; color: var(--snow); border: 2px solid var(--snow); }
.btn--line:hover { background: var(--snow); color: var(--night); }

/* ---------- Hero: sprint stages under the clock ---------- */
.stages { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; font-size: var(--step-small); font-weight: 700; }
.stages li { color: var(--snow-muted); position: relative; padding-bottom: 6px; transition: color 0s; }
.stages li::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out);
}
.stages li.is-done { color: var(--snow); }
.stages li.is-active { color: var(--orange); }
.stages li.is-active::after, .stages li.is-done::after { transform: scaleX(1); }
.hero__frame figcaption { transform: translateY(10px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out); }
.hero__frame.is-active figcaption, .hero__frame:first-child figcaption { transform: none; opacity: 1; transition-delay: 0.15s; }
.js .hero__frame:first-child:not(.is-active) figcaption { opacity: 0; }
@media (max-width: 1023px), (max-aspect-ratio: 4/5) {
  .stages { grid-column: 1 / -1; justify-content: flex-start; margin-bottom: 4px; }
}

/* ---------- Motion: one easing family, transform and opacity only ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero load: ARNO arrives from the left, LIETHA from the right, the photo rises */
  .js .hero__title .wordmark path { transform-box: fill-box; }
  .js .hero__title .wordmark > g > g:last-child path { animation: from-left 1.1s var(--ease-out) both 0.1s; }
  .js .hero__title .wordmark > g > g:first-child path { animation: from-right 1.1s var(--ease-out) both 0.22s; }
  .js .hero__photos { animation: rise 1.1s var(--ease-out) both 0.05s; }
  .js .hero__intro, .js .hero__side { animation: rise 0.9s var(--ease-out) both 0.45s; }
  @keyframes from-left { from { opacity: 0; transform: translateX(-8%); } }
  @keyframes from-right { from { opacity: 0; transform: translateX(8%); } }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }

  /* Display headings: each word rises out of its own line box */
  .js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.06em 0; margin-right: -0.08em; }
  .js .split .w__i { display: inline-block; transform: translateY(108%); transition: transform 0.95s var(--ease-out); transition-delay: calc(var(--wi, 0) * 70ms); }
  .js .split.is-in .w__i { transform: none; }

  /* Buttons: lift on hover, press on click */
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(1px) scale(0.97); transition-duration: 0.08s; }

  /* Footer e-mail: underline draws in */
  .site-footer__mail { position: relative; display: inline-block; }
  .site-footer__mail::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -0.06em; height: 0.06em; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out);
  }
  .site-footer__mail:hover::after, .site-footer__mail:focus-visible::after { transform: scaleX(1); }

  /* Choice tiles: the dot springs in */
  .choice input:checked + span::before { animation: pop 0.35s var(--ease-spring); }
  @keyframes pop { from { transform: scale(0.4); } }

  /* Success panel */
  .form__done:not([hidden]) { animation: rise 0.6s var(--ease-out) both; }

  /* Viewer: the picture settles in */
  .viewer[open] figure img { animation: settle 0.45s var(--ease-out); }
  .viewer img.is-swapping { opacity: 0; transform: scale(0.985); }
  .viewer img { transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out); }
  @keyframes settle { from { opacity: 0; transform: scale(0.97); } }
}

/* Gallery: the caption slides up on hover and focus */
.strip button { position: relative; }
.strip__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px;
  background: linear-gradient(to top, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0)); /* taste-skill-ignore: neutral scrim under a caption on a photo */
  color: var(--white); font-weight: 700; font-size: var(--step-small); text-align: left; line-height: 1.3;
  transform: translateY(100%); opacity: 0; transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.strip button:hover .strip__cap, .strip button:focus-visible .strip__cap { transform: none; opacity: 1; }

/* Sending: a spinner inside the button */
.btn .spinner {
  display: inline-block; width: 16px; height: 16px; margin-left: 10px; border-radius: 50%;
  border: 3px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
