@font-face {
  font-family: "Gascogne Serial Light";
  src:
    url("../fonts/GascogneSerial-Light-Regular.woff") format("woff"),
    url("../fonts/Gascogne-Serial-Light Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #000000;
  color: #b3b3b3;
  font-family: Roboto, Helvetica, sans-serif;
  min-height: 100vh;
}

:root {
  /* Fingertip of images/ui/2026cursor-link.svg: viewBox point (12.44, 0) inside 53×59.02, drawn at 32×32. */
  --CURSOR_LINK_HOTSPOT_X: 8;
  --CURSOR_LINK_HOTSPOT_Y: 0;
  /* Mix the favorite-heart fill 15% toward white. The cursor SVG applies the same amount. */
  --LIKE_HEART_LIGHTEN: 15%;
  --cursor-link: pointer;
}

@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url("../images/ui/2026cursor-arrow.svg") 5 0, default;
  }

  :root {
    --cursor-link: url("../images/ui/2026cursor-link.svg") var(--CURSOR_LINK_HOTSPOT_X) var(--CURSOR_LINK_HOTSPOT_Y), pointer;
  }

  a,
  button,
  summary,
  label,
  [role="button"] {
    cursor: var(--cursor-link, pointer);
  }

  /* Embedded players keep the standard cursor, not the link hand. */
  iframe {
    cursor: url("../images/ui/2026cursor-arrow.svg") 5 0, default;
  }
}

/* Index: permanently light gray (dark mode disabled). */
body.index-page {
  --index-bg: #ececf0;
  --index-fg: #4a4a52;
  --index-fg-strong: #12121a;
  --index-muted: #7a7a86;
  --input-color: #1c1c24;
  --reading-font-size: clamp(0.6rem, 1.8vw, 1.65rem);
  --corner-size: clamp(44px, 4.8vw, 4.4rem);
  --corner-logo-h: calc(var(--corner-size) * 0.78835);
  --logo-nudge: 0px;
  background: var(--index-bg);
  color: var(--index-fg);
  scrollbar-width: none;
}

/* The native bar would shrink the viewport and shift the fixed logo left. */
html:has(body.index-page) {
  scrollbar-width: none;
}

html:has(body.index-page)::-webkit-scrollbar,
body.index-page::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.index-scroll-indicator {
  position: fixed;
  top: 0;
  right: 2px;
  width: 3px;
  border-radius: 999px;
  background: var(--index-fg, #4a4a52);
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  transition: opacity 0.45s ease;
}

.index-scroll-indicator.is-visible {
  opacity: 0.35;
}

/* Full-bleed idle background video: replaces only the page background. */
.index-idle-video {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease;
  background: transparent;
}

.index-idle-video.is-visible {
  opacity: 1;
}

/* Screensaver: text turns white. Backgrounds, sizes and emoji stay as they are. */
body.index-page.is-idle-screensaver .project-list,
body.index-page.is-idle-screensaver .project-list *,
body.index-page.is-idle-screensaver .fixed-copyright,
body.index-page.is-idle-screensaver .fixed-copyright *,
body.index-page.is-idle-screensaver .fixed-admin-link {
  color: #ffffff !important;
}

/* About text uses the same idle white as the homepage list. The portrait is not restyled. */
body.about-page.is-idle-screensaver .about-bio,
body.about-page.is-idle-screensaver .about-bio *,
body.about-page.is-idle-screensaver .project-back-link,
body.about-page.is-idle-screensaver .project-back-link * {
  color: #ffffff !important;
}

.index-idle-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-width: 177.78dvh;
  min-height: 100vh;
  min-height: 100dvh;
  border: 0;
  transform: translate(-50%, -50%);
}

/* Touch: fill the large viewport edge to edge (status bar / browser chrome). */
@media (hover: none), (pointer: coarse) {
  .index-idle-video {
    inset: 0;
    height: 100vh;
    height: 100lvh;
  }

  .index-idle-video iframe {
    width: max(100vw, 177.78vh, 177.78lvh);
    height: max(100vh, 100lvh, 56.25vw);
    min-width: 0;
    min-height: 0;
  }
}

body.index-page > main {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .index-idle-video {
    display: none;
  }
}

main {
  padding: 24px 20px 40px 20px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project,
.meta {
  font-size: clamp(1.2rem, 3.6vw, 3.3rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.meta {
  margin-top: 0px;
  font-family: "Gascogne Serial Light", Times, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
  text-transform: none;
}

/* Remove default link styling so links look like raw text */
a {
  color: inherit;
  text-decoration: none;
}

.project {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
  padding: 0;
  transition: all 0s ease;
}

/* Favorite rows: pointer becomes a heart; the type label still follows the cursor. */
a.project[data-favorite="true"]:hover {
  cursor: url("../images/index-favorite-heart-cursor.svg") 16 14, pointer;
}

/* Cursor-follow badge: TYPE label; top-right of cursor (above + slightly right). */
.project-type-badge {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(12px, calc(-100% - 10px));
  font-family: Times, "Times New Roman", serif;
  /* Cursor label remains half the size of the main index typography. */
  font-size: var(--reading-font-size);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
  color: var(--index-fg, #b3b3b3);
  background: var(--index-bg, #000000);
  padding: 0.18em 0.32em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
}

.project-type-badge.is-visible {
  visibility: visible;
  opacity: 1;
}

/* Touch preview uses the class. :hover only where the device can really hover,
   so a tap does not leave the row highlighted after coming back. */
.project.is-touch-hover {
  color: var(--hover-text);
  background-color: var(--hover-bg);
  font-weight: 300;
}

@media (hover: hover) and (pointer: fine) {
  .project:hover {
    color: var(--hover-text);
    background-color: var(--hover-bg);
    font-weight: 300;
  }
}

@media (hover: none), (pointer: coarse) {
  .project-type-badge {
    display: none !important;
  }
}

/* ---------------------------------
Basic swap project
--------------------------------- */

.project--swap {
  display: block;
  width: 100%;
}

.project--swap .label-default {
  display: inline-block;
}

.project--swap .label-hover {
  display: none;
}

.project--swap:hover .label-default {
  display: none;
}

.project--swap:hover .label-hover {
  display: inline-block;
}

/* ---------------------------------
Ticker mode
--------------------------------- */

.project--ticker {
  position: relative;
  overflow: hidden;
}

.project--ticker .label-default {
  display: inline-block;
}

.project--ticker .ticker {
  display: none;
  white-space: nowrap;
}

.project--ticker:hover .label-default {
  display: none;
}

.project--ticker:hover .ticker {
  display: block;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-move 10s linear infinite;
}

@keyframes ticker-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* ---------------------------------
Meta swap (ABOUT / CONTACT)
--------------------------------- */

.meta--swap .label-hover {
  display: none;
}

.meta--swap:is(:hover, .is-touch-hover) .label-default {
  display: none;
}

.meta--swap:is(:hover, .is-touch-hover) .label-hover {
  display: inline;
  font-weight: 400;
  color: var(--index-fg-strong, #ffffff);
}

.meta--about-page {
  cursor: var(--cursor-link, pointer);
}

.meta--about-page:is(:hover, .is-touch-hover) .about-hover-bio {
  color: #00e676;
}

.meta--about-page:is(:hover, .is-touch-hover) .about-hover-lectures {
  color: #facc15;
}

.meta--about-page:is(:hover, .is-touch-hover) .about-hover-clients {
  color: #3b82f6;
}

.meta--about-page.is-about-fan:is(:hover, .is-touch-hover) .about-hover-links,
.meta--about-page.is-about-fan > .about-hover-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1em;
  row-gap: 0;
  align-items: baseline;
  width: max-content;
  max-width: 100%;
  white-space: normal;
  pointer-events: none;
}

.meta--about-page.is-about-fan:is(:hover, .is-touch-hover) .about-hover-links a {
  text-decoration: none;
  pointer-events: auto;
  cursor: var(--cursor-link, pointer);
  white-space: nowrap;
  margin-left: 0;
}


/* Forces Clients onto the next line. Earlier items may still wrap as whole words. */
.meta--about-page.is-about-fan .about-fan-break {
  flex-basis: 100%;
  width: 100%;
  height: 0;
}

/* Phone only: the extra break sits before Agencies. Desktop and tablet keep the Clients break. */
.meta--about-page.is-about-fan .about-fan-break--mobile {
  display: none;
}

/* Skill filter: lives in the index speech bubble. Opacity only, so rows do not move. */
.skill-filter {
  transition: none;
}

.skill-filter-item {
  transition: none;
}

.skill-filter-word {
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: var(--cursor-link, pointer);
  text-decoration: none;
  transition: none;
}

/* Same underline as .about-bio-section-list a:hover — hover-capable pointers only. */
@media (hover: hover) and (pointer: fine) {
  .skill-filter-word:hover,
  .skill-filter-word:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.12em;
    outline: none;
  }
}

.skill-filter-comma {
  transition: none;
}

.skill-filter-item.is-dim {
  opacity: 0.25;
}

a.project.is-filter-dim,
a.project.is-filter-dim:hover,
a.project.is-filter-dim.is-touch-hover {
  opacity: 0.2;
  pointer-events: none;
  cursor: default;
  color: inherit;
  background-color: transparent;
  font-weight: inherit;
  transition: none;
}

a.project.is-filter-dim[data-favorite="true"]:hover {
  cursor: default;
}

.project--inline-swap.is-filter-dim:hover .label-hover,
.project--inline-swap.is-filter-dim.is-touch-hover .label-hover {
  visibility: hidden;
}

.project--inline-swap.is-filter-dim:hover .label-default,
.project--inline-swap.is-filter-dim.is-touch-hover .label-default {
  visibility: visible;
}

.project--inline-swap.is-filter-dim:hover .side-default,
.project--inline-swap.is-filter-dim.is-touch-hover .side-default {
  display: inline;
}

.project--inline-swap.is-filter-dim:hover .side-hover,
.project--inline-swap.is-filter-dim.is-touch-hover .side-hover {
  display: none;
}

/* FOLLOW: Instagram pink, Vimeo purple, LinkedIn blue — one line (nowrap).
   Margins stay on while the line is hidden, so the stacked hitbox reaches LinkedIn. */
.meta--follow > .follow-hover-links {
  white-space: nowrap;
  width: max-content;
  pointer-events: none;
}

.meta--follow .follow-hover-vimeo,
.meta--follow .follow-hover-linkedin {
  margin-left: 1em;
}

.meta--follow:is(:hover, .is-touch-hover) .follow-hover-instagram,
.meta--follow:is(:hover, .is-touch-hover) .follow-hover-vimeo,
.meta--follow:is(:hover, .is-touch-hover) .follow-hover-linkedin {
  text-decoration: none;
  pointer-events: auto;
  cursor: var(--cursor-link, pointer);
}

.meta--follow:is(:hover, .is-touch-hover) .follow-hover-instagram {
  color: #ec4899;
}

.meta--follow:is(:hover, .is-touch-hover) .follow-hover-vimeo {
  color: #a855f7;
}

.meta--follow:is(:hover, .is-touch-hover) .follow-hover-linkedin {
  color: #3b82f6;
}

/* Same underline as .skill-filter-word. Color stays the resting color. */
@media (hover: hover) and (pointer: fine) {
  .meta--follow:is(:hover, .is-touch-hover) .follow-hover-links a:hover,
  .meta--about-page.is-about-fan:is(:hover, .is-touch-hover) .about-hover-links a:hover {
    text-decoration: underline;
    text-underline-offset: 0.12em;
    outline: none;
  }

  /* Gaps in the open Follow line: same link cursor as the open About fan.
     Hits the row because .follow-hover-links uses pointer-events: none. */
  .meta--follow:is(:hover, .is-touch-hover) {
    cursor: var(--cursor-link, pointer);
  }

  .meta--email:is(:hover, .is-touch-hover) .label-hover {
    text-decoration: underline;
    text-underline-offset: 0.12em;
    outline: none;
  }
}

a.meta--swap[href^="mailto:"] {
  cursor: var(--cursor-link, pointer);
}

/* FOLLOW row default cursor (between the two links / on the "FOLLOW" label) */
.meta--follow {
  cursor: default;
}

/* Touch: a swipe or a touch beside the word must not open these rows.
   The class is set only after a tap on the word. */
@media (hover: none), (pointer: coarse) {
  .meta--swap:not(.is-touch-hover):hover .label-default {
    display: inline;
  }

  .meta--swap:not(.is-touch-hover):hover .label-hover {
    display: none;
  }

  .meta--follow:not(.is-touch-hover):hover > .label-default,
  .meta--email:not(.is-touch-hover):hover > .label-default,
  .meta--about-page:not(.is-touch-hover):hover > .label-default {
    display: inline;
    visibility: visible;
  }

  .meta--follow:not(.is-touch-hover):hover > .label-hover,
  .meta--email:not(.is-touch-hover):hover > .label-hover,
  .meta--about-page.is-about-fan:not(.is-touch-hover):hover > .label-hover {
    display: block;
    height: 0;
    margin-top: 0;
    overflow: hidden;
    visibility: hidden;
  }

  .meta--about-page.is-about-fan:not(.is-touch-hover):hover > .label-hover {
    display: flex;
  }

  .meta--about-page:not(.is-touch-hover):hover .about-hover-bio,
  .meta--about-page:not(.is-touch-hover):hover .about-hover-lectures,
  .meta--about-page:not(.is-touch-hover):hover .about-hover-clients {
    color: inherit;
  }

  /* The fan's open rule is stronger than the reset above. Without this, a touch
     hover collapses About before the tap, the page jumps, and the tap hits Email. */
  .meta--about-page.is-about-fan:not(.is-touch-hover):hover > .label-default {
    display: inline;
    visibility: visible;
  }

  .meta--about-page.is-about-fan:not(.is-touch-hover):hover > .label-hover {
    width: max-content !important;
    max-width: none !important;
    height: 0;
    margin-top: 0;
    overflow: hidden;
    visibility: hidden;
  }

  body.index-page:not(.about-page):not(.impressum-page) .meta.meta--about-page.is-about-fan:not(.is-touch-hover):hover {
    align-self: flex-start;
    width: max-content;
    max-width: none;
  }

  .meta--follow.is-touch-hover a.is-fold-hold,
  .meta--about-page.is-about-fan.is-touch-hover a.is-fold-hold,
  .meta--email.is-touch-hover > .label-hover.is-fold-hold {
    text-decoration: underline;
    text-underline-offset: 0.12em;
  }
}

/* A second click closes the row even while the pointer is still on it. */
.meta--follow.is-meta-hold:hover > .label-default,
.meta--email.is-meta-hold:hover > .label-default,
.meta--about-page.is-about-fan.is-meta-hold:hover > .label-default {
  display: inline;
  visibility: visible;
}

.meta--follow.is-meta-hold:hover > .label-hover,
.meta--email.is-meta-hold:hover > .label-hover,
.meta--about-page.is-about-fan.is-meta-hold:hover > .label-hover {
  display: block;
  width: max-content !important;
  max-width: none !important;
  height: 0;
  margin-top: 0;
  overflow: hidden;
  visibility: hidden;
}

.meta--about-page.is-about-fan.is-meta-hold:hover > .label-hover {
  display: flex;
}

/* ---------------------------------
Project number / category label
--------------------------------- */

.project-number {
  font-size: 0.5em;
  margin-right: 0;
  opacity: 1;
}

/* ---------------------------------
Inline swap project system
Used for all rendered project rows
--------------------------------- */

.project--inline-swap {
  display: inline-block;
}

.project--inline-swap .project-number,
.meta--follow .project-number,
.meta--email .project-number,
.meta--about-page .project-number {
  font-size: 0.5em;
  margin-right: 0.4em;
  opacity: 0.8;
  font-family: Times, "Times New Roman", serif;
  font-weight: 300;
}

/* Advance of the number column above (0.5em Times plus its 0.4em gap), in the shared list font.
   The hover line stays in the flow at height 0, so the box is as wide as the longer
   text and only as tall as the resting word. On hover it slides up onto that word. */
.meta--follow,
.meta--email,
.meta--about-page {
  --title-column-offset: 1.4251em;
  padding-left: var(--title-column-offset);
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
}

/* Later rows sit above the previous row's font overflow, so a tap cannot hit the neighbour. */
.meta--follow { z-index: 1; }
.meta--email { z-index: 2; }
.meta--about-page { z-index: 3; }

.meta--follow > .label-hover,
.meta--email > .label-hover,
.meta--about-page > .label-hover {
  display: block;
  width: max-content;
  height: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.meta--about-page.is-about-fan > .label-hover {
  display: flex;
  white-space: normal;
  max-width: none;
}

.meta--follow:is(:hover, .is-touch-hover) > .label-default,
.meta--email:is(:hover, .is-touch-hover) > .label-default,
.meta--about-page:is(:hover, .is-touch-hover) > .label-default {
  visibility: hidden;
}

.meta--follow:is(:hover, .is-touch-hover) > .label-hover,
.meta--email:is(:hover, .is-touch-hover) > .label-hover {
  height: auto;
  margin-top: -0.9em;
  overflow: visible;
  visibility: visible;
}

/* About's fan is several lines. A negative margin would pull Bio onto the Email row.
   The word drops out, the fan starts on the About row and grows downward, full list width. */
.meta--about-page.is-about-fan:is(:hover, .is-touch-hover) {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}

.meta--about-page.is-about-fan:is(:hover, .is-touch-hover) > .label-default {
  display: none;
}

.meta--about-page.is-about-fan:is(:hover, .is-touch-hover) > .label-hover {
  /* Beats the measured line width, so the open fan wraps across the list again. */
  width: 100% !important;
  max-width: none !important;
  height: auto;
  margin-top: 0;
  overflow: visible;
  visibility: visible;
}

/* Desktop: pointer is still over the full-width row, but past the widest link.
   Hides the fan only. Does not set a width. */
@media (hover: hover) and (pointer: fine) {
  .meta--about-page.is-about-fan.is-about-pointer-out:hover > .label-default {
    display: inline;
    visibility: visible;
  }

  .meta--about-page.is-about-fan.is-about-pointer-out:hover > .label-hover {
    height: 0;
    margin-top: 0;
    overflow: hidden;
    visibility: hidden;
  }
}

/* Number column, outside the line so the words stay where they are. */
.meta--follow > .meta-number,
.meta--email > .meta-number,
.meta--about-page > .meta-number {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  pointer-events: auto;
}

.meta--follow > .meta-number::before,
.meta--email > .meta-number::before,
.meta--about-page > .meta-number::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0.9em;
  vertical-align: top;
}

/* Fine pointers only. Touch keeps "/ / /", with no fade. */
@media (hover: hover) and (pointer: fine) {
  .meta--follow:is(:hover, :focus-within) .side-default,
  .meta--email:is(:hover, :focus-within) .side-default,
  .meta--about-page:is(:hover, :focus-within) .side-default {
    display: none;
  }

  .meta--follow:is(:hover, :focus-within) .side-hover,
  .meta--email:is(:hover, :focus-within) .side-hover,
  .meta--about-page:is(:hover, :focus-within) .side-hover {
    display: inline;
  }
}

/* Stack both labels (default + hover) on top of each other so the hover-part
   is always as wide as the LONGER of the two — that defines a stable hitbox
   regardless of whether the project is hovered or not. */
.project-hover-part {
  display: inline-grid;
  grid-template-areas: "stack";
  vertical-align: top;
  height: 0.9em;
  font-family: Times, "Times New Roman", serif;
  font-style: normal;
  font-weight: 300;
  text-transform: none;
}

.project-hover-part .brand-text,
.project-hover-part > .label-hover {
  font-style: var(--project-title-style, normal);
  font-weight: var(--project-title-weight, 400);
  line-height: inherit;
  letter-spacing: 0;
}

/* Typografie-Test: nur Projektnamen und ihre Hover-Titel variieren. */
.project-font--times .project-hover-part {
  font-family: Times, "Times New Roman", serif;
}

.project-font--helvetica .project-hover-part {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.project-font--courier .project-hover-part {
  font-family: "Courier New", Courier, monospace;
}

.project-font--georgia .project-hover-part {
  font-family: Georgia, "Times New Roman", serif;
}

.project-font--baskerville .project-hover-part {
  font-family: Baskerville, Palatino, "Palatino Linotype", serif;
}

.project-font--didot .project-hover-part {
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
}

.project-font--typewriter .project-hover-part {
  font-family: "American Typewriter", "Courier New", monospace;
}

.project-font--avenir .project-hover-part {
  font-family: "Avenir Next", Avenir, Helvetica, sans-serif;
}

.project-font--optima .project-hover-part {
  font-family: Optima, Candara, sans-serif;
}

.project-font--script .project-hover-part {
  font-family: "Brush Script MT", "Segoe Script", cursive;
}

.project-font--arial-italic .project-hover-part {
  font-family: Arial, Helvetica, sans-serif;
}

.project-font--arial-bold .project-hover-part {
  font-family: Arial, Helvetica, sans-serif;
}

.project-font--garamond .project-hover-part {
  font-family: Garamond, "Adobe Garamond Pro", "Times New Roman", serif;
}

.project-font--franklin .project-hover-part {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.project-font--consolas .project-hover-part {
  font-family: Consolas, Monaco, "Courier New", monospace;
}

.project-font--copperplate .project-hover-part {
  font-family: Copperplate, "Copperplate Gothic Light", fantasy;
}

.project-font--comic .project-hover-part {
  font-family: "Comic Sans MS", cursive;
}

.project-font--rockwell .project-hover-part {
  font-family: Rockwell, "Rockwell Nova", "Courier New", serif;
}

.project-font--rockwell .project-hover-part .brand-text,
.project-font--rockwell .project-hover-part > .label-hover {
  position: relative;
  top: -0.07em;
}

.project-font--arial-narrow .project-hover-part {
  font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
}

.project-font--palatino .project-hover-part {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", serif;
}

.project-font--impact .project-hover-part {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

.project-font--impact-thin .project-hover-part {
  font-family: "Helvetica Neue Condensed", "Arial Narrow", Impact, sans-serif;
}

.project-font--bodoni .project-hover-part {
  font-family: "Bodoni MT", "Bodoni 72", Didot, "Times New Roman", serif;
}

.project-font--book-antiqua .project-hover-part {
  font-family: "Book Antiqua", Palatino, "Palatino Linotype", serif;
}

.project-font--rin .project-hover-part {
  font-family: Arial, Helvetica, sans-serif;
}

.project-hover-part > .label-default,
.project-hover-part > .label-hover {
  grid-area: stack;
  justify-self: start;
}

.project-hover-part .label-hover {
  visibility: hidden;
}

/* Avoid painting the full anchor row; highlight comes from .label-hover::before */
.project--inline-swap.is-touch-hover {
  background-color: transparent;
}

.project--inline-swap.is-touch-hover .project-hover-part {
  position: relative;
  color: var(--hover-text);
  font-weight: 300;
}

/* Hover background only behind the visible hover title (word width), not the
   full hitbox (grid width = max of default vs hover). */
.project--inline-swap.is-touch-hover .label-hover {
  visibility: visible;
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.project--inline-swap.is-touch-hover .label-hover::before {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  top: -0.04em;
  bottom: 0;
  background: var(--hover-bg);
  z-index: -1;
  pointer-events: none;
}

.project--inline-swap.is-touch-hover .label-default {
  visibility: hidden;
}

/* Left: Indexzahl ↔ Jahr (gleiche Stelle, gleiche Größe wie .project-number) */
.project-side-label .side-hover {
  display: none;
}

.project--inline-swap.is-touch-hover .side-default {
  display: none;
}

.project--inline-swap.is-touch-hover .side-hover {
  display: inline;
}

.project--inline-swap.is-touch-hover:not([data-has-year="1"]) .side-default {
  display: inline;
}

.project--inline-swap.is-touch-hover:not([data-has-year="1"]) .side-hover {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .project--inline-swap:hover {
    background-color: transparent;
  }

  .project--inline-swap:hover .project-hover-part {
    position: relative;
    color: var(--hover-text);
    font-weight: 300;
  }

  .project--inline-swap:hover .label-hover {
    visibility: visible;
    position: relative;
    display: inline-block;
    isolation: isolate;
  }

  .project--inline-swap:hover .label-hover::before {
    content: "";
    position: absolute;
    left: -0.06em;
    right: -0.06em;
    top: -0.04em;
    bottom: 0;
    background: var(--hover-bg);
    z-index: -1;
    pointer-events: none;
  }

  .project--inline-swap:hover .label-default {
    visibility: hidden;
  }

  .project--inline-swap:hover .side-default {
    display: none;
  }

  .project--inline-swap:hover .side-hover {
    display: inline;
  }

  .project--inline-swap:not([data-has-year="1"]):hover .side-default {
    display: inline;
  }

  .project--inline-swap:not([data-has-year="1"]):hover .side-hover {
    display: none !important;
  }
}

/* ---------------------------------
Extra empty space under the list
--------------------------------- */

.page-bottom-space {
  /* Keep the existing bottom gap below "ASK ME ANYTHING" even after adding
     one extra meta row (FOLLOW). Subtract one row height (clamp at 0.9 lh)
     plus the project-list flex gap. */
  height: calc(15vh - clamp(1.08rem, 3.24vw, 2.97rem) - 8px);
}

/* ---------------------------------
Newsletter
--------------------------------- */

.meta--newsletter .label-hover,
.meta--about .label-hover {
  display: none;
}

.meta--newsletter:hover .label-default,
.meta--newsletter.is-confirming .label-default,
.meta--about:hover .label-default,
.meta--about.is-confirming .label-default {
  display: none;
}

.meta--newsletter:hover .label-hover,
.meta--newsletter.is-confirming .label-hover,
.meta--about:hover .label-hover,
.meta--about.is-confirming .label-hover {
  display: inline;
  color: var(--index-fg-strong, #ffffff);
  font-weight: 400;
}

.newsletter-submit {
  margin-left: 3ch;
}

/* Keep form on the same baseline as the NEWSLETTER label */
.newsletter-form {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  padding: 0;
  line-height: 0.9;
  vertical-align: baseline;
}

.newsletter-input {
  background: transparent;
  border: none;
  outline: none;
  /* Color is driven by --input-color so different rows can tint the typed
     text differently (ABOUT uses yellow, NEWSLETTER stays white). */
  color: var(--input-color, #ffffff);
  font: inherit;
  line-height: 0.9;
  letter-spacing: inherit;
  text-transform: none;
  width: 12ch; /* start width */
  min-width: 12ch;
  max-width: 70vw;
  /* Tight 0.9em height so the row doesn't grow on hover and push the
     rows below. Glyph descenders (@, g, j) may get slightly clipped,
     which is the accepted trade-off. */
  height: 0.9em;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
  appearance: none;
  -webkit-appearance: none;
}

/* Contenteditable variant (used by the ABOUT row). Flows as natural inline
   text inside the form so the submit arrow stays right after the last
   word and wraps onto a new line together with the text when the question
   gets too long. */
.newsletter-input--chat {
  display: inline;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  padding: 0;
  margin: 0;
  outline: none;
  cursor: text;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.newsletter-input--chat:empty::before {
  content: attr(data-placeholder);
  color: var(--index-muted, #777777);
  pointer-events: none;
}

/* Emoji mouse cursors for the ASK ME ANYTHING and NEWSLETTER rows. Inline
   SVG with an emoji glyph – the operating system renders it in its native
   emoji font. Fallback to `text` so a contenteditable still signals input
   if the emoji cursor ever fails to load (older browsers). */
.meta--about,
.meta--about .newsletter-input--chat,
.meta--about .newsletter-submit {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text x="0" y="26" font-size="26">💬</text></svg>') 6 6, text;
}

.meta--newsletter,
.meta--newsletter .newsletter-input--chat,
.meta--newsletter .newsletter-submit {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text x="0" y="26" font-size="26">💌</text></svg>') 6 6, text;
}

/* In the ABOUT and NEWSLETTER rows the pseudo-elements swap roles:
   ::before becomes a fake blinking caret sitting IN FRONT of the
   placeholder, and ::after carries the placeholder text. The caret color
   matches the row's valid-input color (yellow for ASK ME ANYTHING, the
   valid-email green for NEWSLETTER). As soon as the user clicks into the
   field we also hide the native caret while the field is empty so only
   the fake caret keeps blinking; the moment the first character is
   typed, `:empty` no longer matches and the native caret returns. */

.meta--about .newsletter-input--chat:empty::before,
.meta--newsletter .newsletter-input--chat:empty::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.8em;
  margin-right: 0.15em;
  vertical-align: -0.05em;
  animation: prompt-caret-blink 1s steps(1, end) infinite;
  pointer-events: none;
  color: transparent;
}

.meta--about .newsletter-input--chat:empty::before {
  background: #facc15;
}

.meta--newsletter .newsletter-input--chat:empty::before {
  background: #00e676;
}

.meta--about .newsletter-input--chat:empty:focus,
.meta--newsletter .newsletter-input--chat:empty:focus {
  caret-color: transparent;
}

.meta--about .newsletter-input--chat:empty::after,
.meta--newsletter .newsletter-input--chat:empty::after {
  content: attr(data-placeholder);
  color: var(--index-muted, #777777);
  pointer-events: none;
}

@keyframes prompt-caret-blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.newsletter-input::placeholder {
  color: var(--index-muted, #777777);
  opacity: 1;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.newsletter-input.is-valid-email {
  color: #00e676;
}

.newsletter-input.is-confirmation {
  color: var(--confirmation-color, #3b82f6);
  caret-color: transparent;
  cursor: default;
  user-select: none;
}

/* Hide the submit arrow while the confirmation message is visible */
.newsletter-form:has(.newsletter-input.is-confirmation) .newsletter-submit {
  visibility: hidden;
}

.newsletter-submit {
  background: transparent;
  border: none;
  outline: none;
  color: var(--input-color, #ffffff);
  font-family: Times, "Times New Roman", serif;
  font-size: inherit;
  font-style: normal;
  font-weight: 400;
  line-height: 0.9;
  text-transform: none;
  padding: 0;
  margin: 0;
  cursor: var(--cursor-link, pointer);
  vertical-align: baseline;
}

/* ---------------------------------
Project page base
--------------------------------- */

/* 100vh on iOS is the large viewport (toolbar hidden). min-height: 100vh on body
   then wins over a smaller height and makes the project page scroll by exactly
   that toolbar gap. Size the page to the visible viewport instead. */
html:has(body.project-page) {
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
}

.project-page {
  margin: 0;
  width: 100vw;
  min-height: 0;
  height: 100svh;
  height: 100dvh;
  max-height: 100svh;
  max-height: 100dvh;
  position: relative;
  overflow: hidden;
  background-color: #d9d9d9;
}

/* Zalando example page */
.project-page--zalando {
  color: #ff6a00;
}

/* Zalando Lounge: 4:3-Vimeo schmaler, damit es optisch nicht größer als 16:9-Videos wirkt */
.project-page--zalando .project-video-frame {
  width: 64vw;
  max-width: 1024px;
}

/* One size for all four corner controls on project pages. Each element keeps a
   fixed factor of it, so the desktop proportions hold at every window width. */
html:has(body.project-page),
body.project-page {
  touch-action: none;
}

body.project-page .project-info-panel__inner {
  touch-action: pan-y;
}

body.project-page {
  --corner-size: clamp(44px, 4.8vw, 4.4rem);
  --corner-logo-h: calc(var(--corner-size) * 0.78835);
  --corner-scissors-h: calc(var(--corner-size) * 0.63);
  --logo-nudge: 0px;
}

:root {
  --icon-hover-opacity: 0.7;
  --icon-hover-duration: 140ms;
}

/* Back arrow in index-page typography style */
.project-back-link {
  position: absolute;
  top: 24px;
  left: 20px;
  color: inherit;
  text-decoration: none;
  font-size: 0;
  line-height: 1;
  z-index: 10;
}

/* About: stay in the corner while the page scrolls, same top as the logo. */
body.about-page .project-back-link {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 9999;
}

.icon-svg--back,
.icon-svg--credits {
  display: block;
  overflow: visible;
}

.icon-svg--back {
  height: calc(var(--corner-size, clamp(44px, 4.8vw, 4.4rem)) * 0.639);
  width: auto;
  margin-left: calc(var(--corner-size, clamp(44px, 4.8vw, 4.4rem)) * 0.1);
}

.icon-svg--credits {
  height: calc(var(--corner-size, clamp(44px, 4.8vw, 4.4rem)) * 0.5256);
  width: auto;
  margin-bottom: calc(var(--corner-size, clamp(44px, 4.8vw, 4.4rem)) * 0.2);
}

.icon-out {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  overflow: visible;
}

/* Project page toolbar: corner controls (back / skills / credits) */
.project-toolbar {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  color: inherit;
}

.project-toolbar .project-back-link,
.project-toolbar .project-toggle {
  pointer-events: auto;
}

.project-toolbar .project-back-link,
.project-toolbar .project-toggle {
  color: var(--icons-color, inherit);
}

.project-toggle {
  position: absolute;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--corner-size, clamp(44px, 4.8vw, 4.4rem));
  font-style: normal;
  font-weight: 400;
  line-height: 0.9;
  cursor: var(--cursor-link, pointer);
  opacity: 1;
  display: flex;
  align-items: flex-end;
}

.project-toggle[hidden] {
  display: none;
}

.project-toggle--top-right {
  top: 24px;
  right: 20px;
  justify-content: flex-end;
}

.project-toggle--bottom-left {
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  left: 20px;
  justify-content: flex-start;
}

.project-toggle--bottom-right {
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  right: 20px;
  justify-content: flex-end;
}

/* Scissors: bottom edge level with the credits lines, same stroke as the glyphs. */
.project-toggle-icon {
  display: block;
  height: var(--corner-scissors-h);
  width: auto;
  aspect-ratio: 84 / 100;
  margin: 0 0 calc(var(--corner-size) * 0.2) calc(var(--corner-size) * 0.06);
  overflow: visible;
}

.project-back-link,
.project-toggle,
.fixed-shop {
  transition: opacity var(--icon-hover-duration) ease;
}

.project-toggle:focus-visible {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .project-back-link:hover,
  .project-toggle:hover,
  .project-toggle:focus-visible,
  .fixed-shop:hover {
    opacity: var(--icon-hover-opacity);
  }
}

/* Active = slightly transparent (inverted from earlier draft). */
.project-toggle[aria-pressed="true"],
.project-toggle[aria-pressed="true"]:hover,
.project-toggle[aria-pressed="true"]:focus-visible {
  opacity: 0.4;
}

.project-info-panel {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 8vh 6vw;
  box-sizing: border-box;
  /* Text may differ from icon accent (e.g. McCafé yellow text / black icons). */
  color: var(--project-info-color, var(--project-accent, inherit));
}

.project-info-panel--skills,
.project-info-panel--credits {
  color: var(--panel-text-color, var(--project-info-color, var(--project-accent, inherit)));
}

body.project-page[data-panel-shadow="1"] .project-info-panel__inner {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Favorite badge stays empty until FAVORITE_BADGE_ENABLED is turned on. */
.project-favorite-badge {
  display: none;
}

html.favorite-badge-enabled .project-favorite-badge {
  display: block;
  position: fixed;
  top: 0;
  right: 20px;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.project-info-panel.is-open {
  display: flex;
}

.project-info-panel__inner {
  max-width: min(52rem, 88vw);
  max-height: 84svh;
  max-height: min(84svh, 100dvh);
  overflow: auto;
  text-align: left;
  font-family: "Gascogne Serial Light", Times, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3.6vw, 3.3rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: none;
  color: inherit;
  white-space: pre-line;
  pointer-events: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}

.project-info-panel__inner::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Skills: same column width as credits. Shares the visible-height cap, so a long list scrolls. */
.project-info-panel--skills .project-info-panel__inner {
  max-width: min(65rem, 92vw);
}

/* Credits: the block is centered like skills; the lines share one left edge.
   Gascogne Serial Light ships only weight 300. Roles use that real face.
   Names ask for 700; the browser thickens them because no bolder file exists. */
.project-info-panel--credits .project-info-panel__inner {
  width: max-content;
  max-width: min(65rem, 92vw);
  font-weight: 300;
  font-synthesis: none;
  text-align: left;
}

.project-info-panel--credits .project-info-panel__inner strong {
  font-weight: 700;
  font-synthesis: weight;
}

.project-info-panel__inner strong {
  font-weight: 700;
}

/* Center area for video or other content */
.project-stage {
  width: 100vw;
  height: 100svh;
  height: 100dvh;
  box-sizing: border-box;
  padding: 24px 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  container-name: stage;
}

/* Placeholder box if needed later */
.project-video-placeholder {
  width: 70vw;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  color: inherit;
  font-size: 1rem;
  text-transform: uppercase;
}

/* Video frame. --frame-wide is the limit for formats wider than 1.6, including
   the 16:9 placeholder when no media is stored. --frame-tall is the Zalando
   limit, used when the stored width/height is at or below --frame-ratio-max.
   The vw widths below are that wide limit for a frame without a stored ratio. */
.project-video-frame {
  --frame-wide-size: 75cqw;
  --frame-wide-cap: 1200px;
  --frame-tall-size: 64cqw;
  --frame-tall-cap: 1024px;
  --frame-wide: min(var(--frame-wide-size), var(--frame-wide-cap));
  --frame-tall: min(var(--frame-tall-size), var(--frame-tall-cap));
  --frame-ratio-max: 1.6;
  width: 75vw;
  max-width: 1200px;
  position: relative;
  /* Video is always the front-most layer on project pages. */
  z-index: 3;
}

/* Tap area: at least 44 × 44 px on touch screens, visible icon stays in its corner. */
@media (pointer: coarse), (max-width: 1099px) {
  .project-back-link,
  .project-toggle,
  body.project-page .fixed-shop {
    min-width: 44px;
    min-height: 44px;
  }
  body.project-page .fixed-shop {
    align-items: flex-start;
    justify-content: flex-end;
  }
}

@media (max-width: 1099px) {
  .project-video-frame {
    width: 88vw;
  }
  .project-page--zalando .project-video-frame {
    width: 80vw;
  }
}

@media (max-width: 699px) {
  .project-video-frame,
  .project-page--zalando .project-video-frame {
    width: 94vw;
  }
}

/* Stored ratio. Formats at or below 1.6 use --frame-tall. Wider formats, and the
   placeholder without a stored ratio, keep --frame-wide. Height still stays
   inside the padded stage. Container queries follow the stage. */
.project-video-frame[data-ratio] {
  --frame-is-tall: clamp(0, calc(1 - sign(calc(var(--media-w) / var(--media-h) - var(--frame-ratio-max)))), 1);
  --frame-limit: calc(var(--frame-is-tall) * var(--frame-tall-size) + (1 - var(--frame-is-tall)) * var(--frame-wide-size));
  --frame-limit-cap: calc(var(--frame-is-tall) * var(--frame-tall-cap) + (1 - var(--frame-is-tall)) * var(--frame-wide-cap));
  width: min(var(--frame-limit), var(--frame-limit-cap), calc(100cqh * var(--media-w) / var(--media-h)));
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--media-w) / var(--media-h);
}
.project-page--zalando .project-video-frame[data-ratio] {
  width: min(64cqw, 1024px, calc(100cqh * var(--media-w) / var(--media-h)));
}
@container stage (max-width: 1099px) {
  .project-video-frame {
    --frame-wide-size: 88cqw;
    --frame-wide-cap: 1200px;
    --frame-tall-size: 80cqw;
    --frame-tall-cap: 1024px;
    --frame-wide: min(var(--frame-wide-size), var(--frame-wide-cap));
    --frame-tall: min(var(--frame-tall-size), var(--frame-tall-cap));
  }
  .project-page--zalando .project-video-frame[data-ratio] {
    width: min(80cqw, 1024px, calc(100cqh * var(--media-w) / var(--media-h)));
  }
}
@container stage (max-width: 699px) {
  .project-video-frame {
    --frame-wide-size: 94cqw;
    --frame-wide-cap: 1200px;
    --frame-tall-size: 94cqw;
    --frame-tall-cap: 1200px;
    --frame-wide: min(var(--frame-wide-size), var(--frame-wide-cap));
    --frame-tall: min(var(--frame-tall-size), var(--frame-tall-cap));
  }
  .project-video-frame[data-ratio],
  .project-page--zalando .project-video-frame[data-ratio] {
    width: min(94cqw, 1200px, calc(100cqh * var(--media-w) / var(--media-h)));
  }
}
.project-video-frame[data-ratio] > iframe,
.project-video-frame[data-ratio] > video,
.project-video-frame[data-ratio] > img,
.project-video-frame[data-ratio] > a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.project-video-frame[data-ratio] a > iframe,
.project-video-frame[data-ratio] a > video,
.project-video-frame[data-ratio] a > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.project-video-frame[data-ratio] video,
.project-video-frame[data-ratio] img {
  object-fit: contain;
  background: transparent;
}

/* In edit mode the video-frame becomes a locked, click-through placeholder so
   images and texts BEHIND it stay editable. The iframe is hidden (Vimeo would
   otherwise intercept clicks) and the box is shown as a dashed outline with
   a "VIDEO" label in the center.
   z-index: video drops below .project-scatter so cutouts are visible on top of
   the dashed frame (otherwise scatter z-index 1 stays under the video box). */
body.scatter-editing .project-video-frame {
  z-index: 0;
  pointer-events: none;
  outline: 1px dashed currentColor;
  outline-offset: 0;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
body.scatter-editing .project-video-frame > * {
  visibility: hidden;
}
body.scatter-editing .project-video-frame::after {
  content: attr(data-editor-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px/1 Roboto, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: currentColor;
  pointer-events: none;
}

/* Scattered cutout layer (behind the centered video, above the page bg).
   Each direct child (img) is absolutely positioned with inline top/left/
   width/transform so images can be placed freely from the markup.
   Parent z-index: 1 + stacking context: no img z-index can paint above
   .project-video-frame (z-index: 3). */
.project-scatter {
  position: absolute;
  inset: 0;
  height: 100svh;
  height: 100dvh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
/* Desktop uses data-behind-video; tablet/phone layouts may override it per class
   (js/collage-relayout.js sets .collage-behind / .collage-front). */
.project-scatter [data-behind-video="true"]:not(.collage-front) {
  z-index: -1;
}
.project-scatter .collage-behind {
  z-index: -1 !important;
}
body:not(.scatter-editing) .collage-hidden {
  display: none !important;
}
.project-scatter img,
.project-scatter video {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.project-scatter video {
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* ---------------------------------
Scatter editor (dev only, enabled via ?edit=1)
--------------------------------- */

/* Only scatter images/videos receive pointer events in edit mode — the
   .project-scatter container stays pointer-events: none so it doesn't
   swallow clicks on the back arrow.
   Stacking in edit mode: behind-elements (1) < video (2) < images (4).
   Scatter stays z-index:auto so one element can paint under the video. */
body.scatter-editing .project-scatter {
  z-index: auto;
}
body.scatter-editing .project-video-frame {
  z-index: 2;
}
body.scatter-editing .project-scatter img.scatter-editable,
body.scatter-editing .project-scatter video.scatter-editable {
  z-index: 4;
}
body.scatter-editing .project-scatter [data-behind-video="true"]:not(.collage-front),
body.scatter-editing .project-scatter .collage-behind {
  z-index: 1 !important;
}
/* Disabled on the current device: visible in the editor, locked, absent on the public page. */
body.scatter-editing .collage-hidden {
  opacity: 0.25;
}
body.scatter-editing .project-scatter img.scatter-editable,
body.scatter-editing .project-scatter video.scatter-editable {
  pointer-events: auto;
}
body.scatter-editing .project-scatter img.scatter-editable.collage-hidden,
body.scatter-editing .project-scatter video.scatter-editable.collage-hidden {
  opacity: 0.25;
  pointer-events: none;
  cursor: default;
}

.scatter-editable {
  touch-action: none;
}

.scatter-active {
  outline: 1px dashed #ffffff;
  outline-offset: 3px;
}

body.scatter-editing {
  --scatter-accent: #ff9fd0;
}

#scatter-editor-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  box-sizing: border-box;
  width: 391px;
  max-width: min(391px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  font-family: Roboto, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: #ececf0;
  background: #1b1b25;
  padding: 14px;
  border: 1px solid #2c2c38;
  border-radius: 21px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#scatter-editor-panel *,
#scatter-editor-panel *::before,
#scatter-editor-panel *::after {
  box-sizing: border-box;
}

#scatter-editor-panel.is-collapsed #scatter-editor-body {
  display: none;
}

#scatter-editor-panel .scatter-editor-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#scatter-editor-panel .scatter-editor-drag {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  cursor: grab;
  user-select: none;
}

#scatter-editor-panel .scatter-editor-title {
  font-weight: 500;
  font-size: 16px;
  color: #ececf0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#scatter-editor-panel .scatter-editor-grip {
  width: 14px;
  height: 14px;
  flex: none;
  background:
    radial-gradient(circle, #9a9aa6 1.3px, transparent 1.5px) 0 0 / 6px 6px;
  opacity: 0.9;
}

#scatter-panel-collapse {
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 9px;
  border: 1px solid #3a3a48;
  background: transparent;
  position: relative;
}

#scatter-panel-collapse::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 17px;
  border-top: 1.6px solid #c4c4ce;
}

#scatter-editor-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

#scatter-editor-panel .scatter-section-label {
  margin: 0;
  font-size: 14px;
  color: #9a9aa6;
}

#scatter-editor-panel .scatter-editor-hint {
  margin: 0;
  color: #9a9aa6;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#scatter-editor-panel .scatter-editor-hint[hidden] {
  display: none;
}

#scatter-editor-panel button {
  appearance: none;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: var(--cursor-link, pointer);
}

#scatter-editor-panel button:disabled,
#scatter-editor-panel button:disabled:hover {
  opacity: 0.4;
  cursor: default;
}

#scatter-editor-panel .scatter-editor-status {
  min-height: 16px;
  margin: 0;
  font-size: 13px;
  color: #9a9aa6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#scatter-device-tools {
  display: flex;
  gap: 2px;
  background: #12121a;
  border: 1px solid #2c2c38;
  border-radius: 12px;
  padding: 3px;
}

#scatter-device-tools button {
  flex: 1;
  min-width: 0;
  height: 37px;
  padding: 0 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #c4c4ce;
  font-size: 15px;
}

#scatter-device-tools button[aria-pressed="true"] {
  background: var(--scatter-accent);
  color: #12121a;
  font-weight: 500;
}

#scatter-pin-tools {
  display: flex;
  min-width: 0;
}

.scatter-pin-pair {
  display: flex;
  gap: 18px;
  min-width: 0;
}

.scatter-pin-square-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.scatter-pin-square {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: #12121a;
  border: 1px solid #2c2c38;
}

.scatter-pin-square button {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: #3a3a48;
}

.scatter-pin-square button.pin-top,
.scatter-pin-square button.pin-bottom {
  left: 14px;
  right: 14px;
  height: 12px;
}

.scatter-pin-square button.pin-top { top: 5px; }
.scatter-pin-square button.pin-bottom { bottom: 5px; }

.scatter-pin-square button.pin-left,
.scatter-pin-square button.pin-right {
  top: 14px;
  bottom: 14px;
  width: 12px;
}

.scatter-pin-square button.pin-left { left: 5px; }
.scatter-pin-square button.pin-right { right: 5px; }

.scatter-pin-square button:hover:not(:disabled),
.scatter-pin-square button[aria-pressed="true"] {
  background: var(--scatter-accent);
}

.scatter-anchor-square button.anchor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.scatter-anchor-square button.anchor-dot[data-anchor-name="top-left"] { left: 16px; top: 16px; }
.scatter-anchor-square button.anchor-dot[data-anchor-name="top-center"] { left: 42px; top: 16px; }
.scatter-anchor-square button.anchor-dot[data-anchor-name="top-right"] { left: 68px; top: 16px; }
.scatter-anchor-square button.anchor-dot[data-anchor-name="mid-left"] { left: 16px; top: 42px; }
.scatter-anchor-square button.anchor-dot[data-anchor-name="center"] { left: 42px; top: 42px; }
.scatter-anchor-square button.anchor-dot[data-anchor-name="mid-right"] { left: 68px; top: 42px; }
.scatter-anchor-square button.anchor-dot[data-anchor-name="bottom-left"] { left: 16px; top: 68px; }
.scatter-anchor-square button.anchor-dot[data-anchor-name="bottom-center"] { left: 42px; top: 68px; }
.scatter-anchor-square button.anchor-dot[data-anchor-name="bottom-right"] { left: 68px; top: 68px; }

.scatter-anchor-free {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 159, 208, 0.38);
}

.scatter-anchor-free.is-on {
  color: var(--scatter-accent);
}

body.scatter-editing .scatter-pin-mark {
  position: absolute;
  z-index: 10000;
  width: 14px;
  height: 14px;
  margin: 3px 0 0 3px;
  pointer-events: auto;
  cursor: grab;
  background: var(--scatter-accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

#scatter-layout-state {
  margin: -4px 0 0;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.3;
  color: #9a9aa6;
}

#scatter-device-preview {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.62);
}

#scatter-device-preview[hidden] {
  display: none;
}

#scatter-device-frame {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  transform-origin: top left;
  outline: none;
}

.scatter-frame-slot {
  position: relative;
  flex: none;
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.92);
}

.scatter-frame-slot[hidden] {
  display: none;
}

#scatter-copy-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

#scatter-copy-layout[hidden] {
  display: none;
}

#scatter-copy-layout .scatter-copy-actions {
  display: flex;
  gap: 6px;
  min-width: 0;
}

#scatter-copy-layout button {
  height: 37px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #3a3a48;
  background: transparent;
  color: #c4c4ce;
  font-size: 14px;
  white-space: nowrap;
}

#scatter-copy-layout button:hover {
  border-color: #ececf0;
  color: #ececf0;
}

#scatter-editor-panel .scatter-selected-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

#scatter-editor-panel .scatter-selected-line .scatter-section-label {
  flex: none;
}

#scatter-selected-name {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: #ececf0;
}

#scatter-editor-panel section[aria-label="Images"] {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  flex: 1 1 auto;
}

#scatter-images {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 230px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: #6e6e7a transparent;
}

#scatter-images::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

#scatter-images::-webkit-scrollbar-track {
  background: transparent;
}

#scatter-images::-webkit-scrollbar-thumb {
  background: #6e6e7a;
  border-radius: 999px;
}

.scatter-image-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  min-width: 0;
  padding: 5px 7px;
  border-radius: 8px;
  cursor: var(--cursor-link, pointer);
}

.scatter-image-row.is-locked {
  cursor: default;
}

.scatter-image-row.is-selected {
  background: #12121a;
  box-shadow: inset 0 0 0 1px var(--scatter-accent);
}

.scatter-image-row img,
.scatter-image-row video {
  width: 32px;
  height: 32px;
  object-fit: cover;
  flex: none;
  border-radius: 6px;
  background: #2c2c38;
}

.scatter-image-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: #ececf0;
  text-align: left;
}

#scatter-editor-panel button.scatter-switch {
  width: 39px;
  height: 23px;
  flex: none;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #2c2c38;
  position: relative;
}

#scatter-editor-panel button.scatter-switch::after,
#scatter-editor-panel .scatter-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #9a9aa6;
}

#scatter-editor-panel button.scatter-switch[aria-pressed="true"] {
  background: var(--scatter-accent);
  opacity: 1;
}

#scatter-editor-panel button.scatter-switch[aria-pressed="true"]::after,
#scatter-editor-panel button[aria-pressed="true"] > .scatter-switch::after {
  left: 18px;
  background: #12121a;
}

#scatter-editor-panel button.scatter-switch:hover {
  background: #2c2c38;
}

#scatter-editor-panel button.scatter-switch[aria-pressed="true"]:hover {
  background: var(--scatter-accent);
}

#scatter-preview-host {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
}

#scatter-preview-host[hidden] {
  display: none;
}

.scatter-preview-iframe {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  transform-origin: top left;
  background: #000;
  outline: none;
}

#scatter-editor-panel[hidden] {
  display: none;
}

body.scatter-device-preview #scatter-device-frame .project-stage {
  width: 100%;
  height: 100%;
}

body.scatter-device-preview #scatter-device-frame .project-scatter {
  height: 100%;
}

body.scatter-device-preview {
  --corner-size: var(--scatter-preview-icon, 44px);
}

#scatter-element-tools {
  --scatter-tool-height: 44px;
  --scatter-tool-pad-y: 5px;
  --scatter-tool-pad-x: 7px;
  --scatter-tool-font: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  min-width: 0;
}

#scatter-element-tools button {
  min-width: 0;
  height: var(--scatter-tool-height);
  padding: var(--scatter-tool-pad-y) var(--scatter-tool-pad-x);
  border-radius: 9px;
  border: 1px solid #3a3a48;
  background: transparent;
  color: #c4c4ce;
  font-size: var(--scatter-tool-font);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#scatter-element-tools button:hover:not(:disabled) {
  border-color: #ececf0;
  color: #ececf0;
}

#scatter-behind-video[aria-pressed="true"] {
  border-color: var(--scatter-accent);
  background: var(--scatter-accent);
  color: #12121a;
  font-weight: 500;
}

#scatter-element-tools #scatter-enabled {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

#scatter-element-tools #scatter-enabled[aria-pressed="true"] {
  border-color: var(--scatter-accent);
  background: var(--scatter-accent);
  color: #12121a;
  font-weight: 500;
}

#scatter-element-tools #scatter-enabled[aria-pressed="true"]:hover:not(:disabled) {
  border-color: var(--scatter-accent);
  background: var(--scatter-accent);
  color: #12121a;
}

#scatter-editor-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

#scatter-editor-save {
  flex: 1;
  min-width: 0;
  height: 41px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--scatter-accent);
  background: var(--scatter-accent);
  color: #12121a;
  font-size: 16px;
  font-weight: 500;
}

#scatter-editor-save:hover {
  filter: brightness(1.05);
}

#scatter-editor-reset,
#scatter-editor-center,
#scatter-editor-copy {
  flex: none;
  height: 37px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #3a3a48;
  background: transparent;
  color: #c4c4ce;
  font-size: 14px;
}

#scatter-editor-reset:hover,
#scatter-editor-center:hover,
#scatter-editor-copy:hover {
  border-color: #ececf0;
  color: #ececf0;
}

#scatter-shortcuts-toggle {
  align-self: flex-start;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #9a9aa6;
  font-size: 14px;
}

#scatter-shortcuts-toggle:hover {
  color: #ececf0;
}

.fixed-top-branding {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.fixed-shop {
  display: flex;
  align-items: center;
  gap: 14px;

  text-decoration: none;
  color: var(--index-fg, #b3b3b3);

  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: var(--cursor-link, pointer);
}

.fixed-admin-link {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a8a92;
  text-decoration: none;
  line-height: 1;
  padding: 2px 0 0;
}

.fixed-admin-link:hover {
  color: #c4a000;
}

.fixed-shop-text {
  font-size: clamp(1.6rem, 4.8vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ~25% smaller than previous 74px; same size/position on index and project pages. */
.fixed-shop-logo {
  height: 55.5px;
  width: auto;
  display: block;
}

/* Index and text pages: white SVG → black on light gray, same box as project pages. */
body.index-page .fixed-shop-logo {
  filter: invert(1);
  height: var(--corner-logo-h);
  width: calc(var(--corner-logo-h) * 58.67 / 64);
}

/* Project pages: logo uses the Icons color when one is set, otherwise the accent or body color. */
body.project-page .fixed-shop {
  color: var(--icons-color, var(--project-accent, inherit));
  cursor: var(--cursor-link, pointer);
}

body.project-page .fixed-shop-logo {
  height: var(--corner-logo-h);
  width: calc(var(--corner-logo-h) * 58.67 / 64);
  background-color: currentColor;
  -webkit-mask: url("../images/2026_LOGO_web.svg") center / contain no-repeat;
  mask: url("../images/2026_LOGO_web.svg") center / contain no-repeat;
}

.fixed-shop:hover {
  color: var(--index-fg-strong, #ffffff);
}

@media (hover: hover) and (pointer: fine) {
  body.project-page .fixed-shop:hover {
    color: var(--icons-color, var(--project-accent, inherit));
    opacity: var(--icon-hover-opacity);
  }
}

body.project-page .fixed-shop[aria-pressed="true"],
body.project-page .fixed-shop[aria-pressed="true"]:hover,
body.index-page:not(.about-page):not(.impressum-page) .fixed-shop[aria-pressed="true"],
body.index-page:not(.about-page):not(.impressum-page) .fixed-shop[aria-pressed="true"]:hover {
  opacity: 0.4;
}

body.project-page .fixed-shop.is-speech-empty,
body.project-page .fixed-shop.is-speech-empty[aria-pressed="true"] {
  opacity: 1;
  cursor: var(--cursor-link, pointer);
}

@media (hover: hover) and (pointer: fine) {
  body.project-page .fixed-shop.is-speech-empty:hover {
    opacity: var(--icon-hover-opacity);
    cursor: var(--cursor-link, pointer);
  }
}

body.project-page .fixed-shop.is-opacity-reset:not([aria-pressed="true"]),
body.project-page .fixed-shop.is-opacity-reset:not([aria-pressed="true"]):hover {
  opacity: 1;
}

/* Touch: lift only the logo so its visible center matches the back arrow. */
@media (hover: none), (pointer: coarse) {
  body.index-page,
  body.project-page {
    --logo-nudge: calc(var(--corner-size) * -0.148445);
  }

  body.index-page .fixed-shop,
  body.project-page .fixed-shop {
    transform: translateY(var(--logo-nudge));
  }
}

/*
 * Speech bubble. One SVG path draws the rounded body and the tail.
 * The tail sits on the top edge, short and nearly vertical, toward the logo.
 * Size follows the text: --speech-pad on every side, no extra width.
 */
.project-notes-bubble {
  position: fixed;
  top: calc(18px + var(--logo-nudge, 0px) + 1.5 * var(--corner-logo-h, 55.5px) + var(--speech-tail-height, 14px) / 2);
  right: 20px;
  z-index: 9998;
  display: none;
  width: max-content;
  max-width: var(--speech-max-width, min(calc(100vw - 2.5rem), max(38vw, 20rem)));
  color: var(--speech-bubble-color, var(--project-info-color, var(--project-accent, inherit)));
  pointer-events: none;
  transform-origin: var(--speech-origin-x, calc(100% - 25px)) var(--speech-origin-y, -14px);
}

.project-notes-bubble.is-open,
.project-notes-bubble.is-closing {
  display: block;
}

.project-notes-bubble.is-opening {
  animation-name: speech-bubble-open;
  animation-duration: var(--speech-open-duration, 0.7s);
  animation-timing-function: linear;
  animation-fill-mode: both;
}

.project-notes-bubble.is-closing {
  animation-name: speech-bubble-close;
  animation-duration: var(--speech-close-duration, 0.6s);
  animation-timing-function: linear;
  animation-fill-mode: both;
}

.project-notes-bubble.is-index-bubble {
  color: #000000;
}

.project-notes-bubble__inner {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: var(--speech-pad, 16px);
  background: none;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  font-family: "Gascogne Serial Light", Times, "Times New Roman", serif;
  font-size: var(--speech-font-size, clamp(1.05rem, 2.6vw, 2rem));
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: left;
  text-align-last: auto;
  text-transform: none;
  color: inherit;
  white-space: normal;
  text-shadow: none;
  pointer-events: auto;
}

.speech-text {
  position: relative;
  z-index: 1;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  text-shadow: none;
  white-space: pre-line;
}

.speech-text--index-intro {
  white-space: normal;
}

.is-index-bubble strong {
  font-weight: 700;
}

.is-index-bubble em {
  font-style: italic;
}

.speech-outline {
  position: absolute;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.is-index-bubble .skill-filter {
  display: inline;
  width: auto;
  max-width: none;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.is-index-bubble .skill-filter-item {
  display: inline;
}

.is-index-bubble .skill-filter-word {
  display: inline;
  vertical-align: baseline;
}

.is-index-bubble .skill-filter-comma,
.is-index-bubble .skill-filter-period {
  color: var(--index-fg, #4a4a52);
}

/* ---------------------------------
Visitor counter + copyright footer (bottom-right)
--------------------------------- */
.fixed-copyright {
  position: fixed;
  right: 20px;
  bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 2em;
  font-family: Times, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.6rem, 1.8vw, 1.65rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--index-fg, #b3b3b3);
  user-select: none;
  z-index: 5;
}

.cookie-control {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  text-transform: none;
}

.cookie-control-prompt,
.cookie-control-privacy {
  display: none;
  align-items: baseline;
  gap: 0.75em;
}

.cookie-control[data-state="unset"] .cookie-control-prompt {
  display: inline-flex;
}

.cookie-control[data-state="decided"] .cookie-control-privacy {
  display: inline;
}

.cookie-control-prompt button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: var(--cursor-link, pointer);
  text-decoration: none;
}

.cookie-control-prompt button:hover,
.cookie-control-prompt button:focus-visible,
.cookie-control-privacy:hover,
.cookie-control-privacy:focus-visible {
  color: var(--index-fg-strong, #ffffff);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  outline: none;
}

.visitor-counter-wrap {
  display: inline-grid;
  grid-template-areas: "counter";
  cursor: var(--cursor-link, pointer);
}

.visitor-counter-wrap > .footer-established,
.visitor-counter-wrap > .visitor-counter {
  grid-area: counter;
  justify-self: start;
}

.footer-established,
.visitor-counter {
  white-space: nowrap;
  font-style: normal;
  text-transform: none;
}

.visitor-counter {
  visibility: hidden;
}

.visitor-counter-wrap:hover .visitor-counter,
.visitor-counter-wrap.is-visitor-open .visitor-counter {
  visibility: visible;
}

.visitor-counter-wrap:hover .footer-established,
.visitor-counter-wrap.is-visitor-open .footer-established {
  visibility: hidden;
}

#visitor-count {
  font-weight: 700;
}

.fixed-copyright-link {
  display: inline-grid;
  grid-template-areas: "imprint-link";
  color: inherit;
  text-decoration: none;
}

.fixed-copyright-link > .label-default,
.fixed-copyright-link > .label-hover {
  grid-area: imprint-link;
  justify-self: end;
}

.fixed-copyright-arrow {
  display: inline-block;
  margin-left: 0.05em;
  font-family: Times, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
}

.fixed-copyright-arrow .icon-out {
  margin-left: 0;
}

/* Phone and tablet: text pages use the same side margins. Desktop padding stays. */
@media (max-aspect-ratio: 1.2) {
  /* Back-arrow ink meets the scissors' left edge and the logo's top edge.
     Factors are the stroke's visible inset inside the icon box, as a share of
     --corner-size. Logo, scissors and credits are not moved. */
  body.project-page .project-back-link {
    top: calc(18px - var(--corner-size) * 0.07377);
  }

  body.project-page .icon-svg--back {
    margin-left: calc(var(--corner-size) * -0.10022);
  }

  /* Skills and credits text stays between the top icons and the bottom icons. */
  body.project-page .project-info-panel--skills,
  body.project-page .project-info-panel--credits {
    top: calc(18px + var(--corner-logo-h));
    bottom: calc(max(24px, env(safe-area-inset-bottom, 0px) + 8px) + var(--corner-size) * 0.83);
    padding-top: 0;
    padding-bottom: 0;
  }

  body.project-page .project-info-panel--skills .project-info-panel__inner,
  body.project-page .project-info-panel--credits .project-info-panel__inner {
    max-height: 100%;
    min-height: 0;
  }

  /* Index list only: 20% larger, spacing stays in proportion. */
  body.index-page:not(.about-page):not(.impressum-page) .project,
  body.index-page:not(.about-page):not(.impressum-page) .meta {
    font-size: calc(clamp(1.2rem, 3.6vw, 3.3rem) * 1.2);
    /* Grow evenly up to 44px, but never past half the gap, so neighbours do not overlap. */
    --tap-pad: max(0px, min(4.8px, calc((44px - 0.9em) / 2)));
    padding-top: var(--tap-pad);
    padding-bottom: var(--tap-pad);
    margin-top: calc(var(--tap-pad) * -1);
    margin-bottom: calc(var(--tap-pad) * -1);
  }

  body.index-page:not(.about-page):not(.impressum-page) .project-list {
    gap: 9.6px;
  }

  body.index-page:not(.about-page):not(.impressum-page) .page-bottom-space {
    /* svh stays put when the browser toolbar shows or hides. 15vh does not. */
    height: calc(15svh - 1.2 * clamp(1.08rem, 3.24vw, 2.97rem) - 9.6px);
  }

  /* Titles stay on one line and may pass the screen edge. The page does not scroll sideways. */
  html:has(body.index-page:not(.about-page):not(.impressum-page)),
  body.index-page:not(.about-page):not(.impressum-page) {
    overflow-x: clip;
  }

  body.index-page:not(.about-page):not(.impressum-page) .project,
  body.index-page:not(.about-page):not(.impressum-page) .meta {
    align-self: flex-start;
    width: max-content;
    max-width: none;
  }

  body.index-page:not(.about-page):not(.impressum-page) .meta--follow,
  body.index-page:not(.about-page):not(.impressum-page) .meta--email,
  body.index-page:not(.about-page):not(.impressum-page) .meta--about-page {
    padding-left: 0;
    margin-left: var(--title-column-offset);
  }

  body.index-page:not(.about-page):not(.impressum-page) .meta--follow > .meta-number,
  body.index-page:not(.about-page):not(.impressum-page) .meta--email > .meta-number,
  body.index-page:not(.about-page):not(.impressum-page) .meta--about-page > .meta-number {
    left: calc(-1 * var(--title-column-offset));
    top: var(--tap-pad);
  }

  body.index-page:not(.about-page):not(.impressum-page) .meta.meta--about-page.is-about-fan:is(:hover, .is-touch-hover) {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  body.index-page:not(.about-page):not(.impressum-page) .project,
  body.index-page:not(.about-page):not(.impressum-page) .project-hover-part,
  body.index-page:not(.about-page):not(.impressum-page) .project .label-default,
  body.index-page:not(.about-page):not(.impressum-page) .project .label-hover,
  body.index-page:not(.about-page):not(.impressum-page) .project .brand-text {
    white-space: nowrap;
  }

  body.index-page:not(.about-page):not(.impressum-page) .fixed-copyright {
    display: none;
  }

  body.index-page:not(.about-page):not(.impressum-page) .fixed-admin-link {
    display: none;
  }

  body.index-page:not(.about-page):not(.impressum-page) .list-footer-gap {
    display: block;
    height: calc(clamp(1.2rem, 3.6vw, 3.3rem) * 1.2 * 0.9);
    pointer-events: none;
  }

  body.index-page:not(.about-page):not(.impressum-page) .meta--list-footer {
    display: inline-block;
  }

  body.about-page .about-content {
    padding-right: calc(20px + clamp(1.65rem, 4.9vw, 4.5rem));
  }

  body.about-page .about-bio {
    min-width: 0;
  }

  body.about-page .about-bio-section--compact .about-bio-section-list p,
  body.about-page .about-bio-timeline-row > span:first-child {
    white-space: normal;
  }

  body.impressum-page .impressum-wrap {
    max-width: none;
    padding-right: calc(20px + clamp(1.65rem, 4.9vw, 4.5rem));
  }

  body.impressum-page .impressum-content {
    max-width: none;
  }
}

/* Phone (layout class). Bottom matches Safari, where the home-indicator inset stays 0 (16px). */
@media (max-aspect-ratio: 0.65) {
  /* FOLLOW_LINK_GAP_MOBILE is half of the desktop 1em. FOLLOW_RIGHT_MARGIN_MIN
     keeps the LinkedIn arrow inside the screen; both gaps shrink together, never past 0.5em. */
  .meta--follow .follow-hover-vimeo,
  .meta--follow .follow-hover-linkedin {
    --follow-link-gap-mobile: 0.5em;
    --follow-right-margin-min: 8px;
    margin-left: min(
      var(--follow-link-gap-mobile),
      max(0px, calc((100vw - var(--follow-right-margin-min) - 20px - 14.9668em) / 2))
    );
  }

  body.about-page .about-content {
    row-gap: 0;
  }

  body.about-page .about-portrait-placeholder {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    justify-self: stretch;
    /* Same 2em as .about-bio-section, in the phone text size (18px). */
    font-size: 18px;
    margin-top: 2em;
  }

  body.index-page .meta--about-page.is-about-fan .about-fan-break:not(.about-fan-break--mobile) {
    display: none;
  }

  body.index-page .meta--about-page.is-about-fan .about-fan-break--mobile {
    display: block;
  }

  /* Same column as Privacy: the phone indent from 7667b14 is gone. */
  body.about-page .about-content {
    padding-left: calc(20px + clamp(1.65rem, 4.9vw, 4.5rem));
    padding-right: calc(20px + clamp(1.65rem, 4.9vw, 4.5rem));
  }

  /* Arrow scrolls away with the page, same as Privacy. The logo stays fixed. */
  body.about-page .project-back-link {
    position: absolute;
    top: 24px;
  }

  /* The footer follows the text. A fixed footer sat on top of the page. */
  body.about-page .fixed-copyright {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-end;
    margin-top: 8px;
    z-index: 1;
  }

  body.index-page:not(.about-page):not(.impressum-page) .fixed-copyright {
    bottom: 16px;
  }

  body.about-page,
  body.impressum-page {
    --page-body: clamp(0.6rem, 1.8vw, 1.65rem);
  }

  body.about-page .about-content {
    padding-top: 110px;
  }

  body.about-page .about-bio,
  body.impressum-page .impressum-title,
  body.impressum-page .impressum-content {
    font-size: 18px;
  }

  body.about-page .about-bio .about-bio-section-heading,
  body.impressum-page .impressum-title,
  body.impressum-page .impressum-subhead {
    -webkit-text-stroke: calc(0.4px * 18 / var(--page-body));
  }

  body.impressum-page .impressum-title {
    margin-bottom: calc(28px * 18 / var(--page-body));
  }

  body.impressum-page .impressum-wrap > aside {
    font-size: calc(16px * 18 / var(--page-body));
    margin-bottom: calc(32px * 18 / var(--page-body));
  }
}

/* Phone portrait: the words stay put; the tap area grows upward to at least 44px. */
@media (max-width: 1099px) and (orientation: portrait) {
  .cookie-control[data-state="decided"] .cookie-control-privacy {
    display: inline-block;
  }
  .fixed-copyright .cookie-control-privacy,
  .fixed-copyright .visitor-counter-wrap,
  .fixed-copyright .fixed-copyright-link {
    padding-top: max(0px, calc(44px - 1em));
    margin-top: min(0px, calc(1em - 44px));
  }
}

.fixed-copyright .label-hover {
  display: inline-block;
  visibility: hidden;
  text-transform: none;
}

.fixed-copyright-link:hover .label-default {
  visibility: hidden;
}

.fixed-copyright-link:hover .label-hover {
  visibility: visible;
  font-weight: 400;
  color: var(--index-fg, #b3b3b3);
  background-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Phone and tablet list copies of the footer. Hidden on desktop. */
.list-footer-gap,
.meta--list-footer {
  display: none;
}

.meta--privacy.is-touch-hover .label-hover,
.meta--imprint.is-touch-hover .label-hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.meta--established .meta-established-count {
  display: none;
}

.meta--established.is-visitor-open .meta-established-label {
  display: none;
}

.meta--established.is-visitor-open .meta-established-count {
  display: inline;
}

/* Show emoji markers after brand names on every index row. */
.project .brand-emoji {
  display: inline;
  margin-left: 0.22em;
}

/* Touch only. Desktop keeps the locked project page and document scrolling. */
@media (hover: none), (pointer: coarse) {
  /* One visible screen. The document can rubber-band, but nothing overflows,
     so the scroll range stays 0 and the browser toolbar does not collapse. */
  html:has(body.project-page) {
    position: static;
    inset: auto;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior-x: none;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  body.project-page {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: visible;
    touch-action: pan-y;
  }

  body.project-page .project-stage {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }

  body.project-page .project-scatter {
    width: 100%;
    height: 100%;
    max-height: 100%;
  }

  body.project-page .fixed-top-branding,
  body.project-page .project-back-link,
  body.project-page .project-toggle,
  body.project-page .project-info-panel,
  body.project-page .project-info-panel--credits.is-in-frame,
  body.project-page .project-notes-bubble {
    position: absolute;
  }

  body.project-page .project-info-panel--skills,
  body.project-page .project-info-panel--credits {
    bottom: calc(max(24px, env(safe-area-inset-bottom, 0px) + 8px) + var(--corner-size) * 0.83);
  }

  /* Main, about, imprint and privacy scroll the document itself. */
  html:has(body.index-page),
  body.index-page {
    height: auto;
    min-height: 100lvh;
    overflow-x: clip;
    overflow-y: visible;
    overscroll-behavior-y: auto;
  }

  body.index-page > main {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.index-page:not(.about-page):not(.impressum-page) > main {
    padding-top: max(24px, env(safe-area-inset-top, 0px));
    padding-bottom: 0;
  }

  body.index-page:not(.about-page):not(.impressum-page) .list-footer-gap,
  body.index-page:not(.about-page):not(.impressum-page) .meta--list-footer {
    display: none;
  }

  body.index-page:not(.about-page):not(.impressum-page) .fixed-copyright,
  body.about-page .fixed-copyright {
    display: flex;
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-end;
    margin-top: 8px;
    padding: 0 20px max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 1;
    font-size: calc(clamp(1.2rem, 3.6vw, 3.3rem) * 0.5);
  }

  body.about-page .about-content {
    padding-top: calc(220px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body.impressum-page .impressum-wrap {
    padding-top: calc(110px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  body.index-page .fixed-top-branding {
    top: max(18px, env(safe-area-inset-top, 0px));
  }

  body.impressum-page .fixed-copyright {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }
}

@media (hover: none) and (max-aspect-ratio: 1.2),
       (pointer: coarse) and (max-aspect-ratio: 1.2) {
  body.index-page:not(.about-page):not(.impressum-page) .fixed-copyright,
  body.about-page .fixed-copyright {
    margin-top: 9.6px;
    /* Same size as the index number (#217), which is half the list row. */
    font-size: calc(clamp(1.2rem, 3.6vw, 3.3rem) * 1.2 * 0.5);
  }
}

@media (hover: none) and (max-aspect-ratio: 0.65),
       (pointer: coarse) and (max-aspect-ratio: 0.65) {
  body.about-page .about-content {
    padding-top: calc(110px + env(safe-area-inset-top, 0px));
  }
}

/* Credits sit in the main-media rectangle. Skills and type "none" stay full-page. */
body.project-page .project-info-panel--credits.is-in-frame {
  position: fixed;
  inset: auto;
  top: var(--credits-frame-top);
  left: var(--credits-frame-left);
  right: auto;
  bottom: auto;
  width: var(--credits-frame-w);
  height: var(--credits-frame-h);
  padding: var(--credits-frame-pad);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  --credits-fit-scale: 1;
}

body.project-page .project-info-panel--credits.is-in-frame .project-info-panel__inner {
  width: max-content;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  min-height: 0;
  font-size: calc(clamp(1.2rem, 3.6vw, 3.3rem) * var(--credits-fit-scale, 1));
  line-height: 1.05;
}

@media (hover: none), (pointer: coarse) {
  body.project-page .project-info-panel--credits.is-in-frame {
    position: absolute;
  }
}

@media (hover: none) and (min-aspect-ratio: 1.2001),
       (pointer: coarse) and (min-aspect-ratio: 1.2001) {
  body.index-page:not(.about-page):not(.impressum-page) .page-bottom-space {
    height: calc(15svh - clamp(1.08rem, 3.24vw, 2.97rem) - 8px);
  }
}

/* Project pages use the same fixed back arrow as About. */
body.project-page .project-back-link {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 9999;
}

body.project-page .icon-svg--back {
  margin-left: calc(var(--corner-size, clamp(44px, 4.8vw, 4.4rem)) * 0.1);
}

/* Chrome on iPhone/iPad only. The class is set from About while the category
   scroll runs. Heights stay at the first-paint pixel value, so the toolbar
   cannot resize the page mid-scroll. */
html.is-chrome-ios.is-about-scroll-lock:has(body.about-page),
html.is-chrome-ios.is-about-scroll-lock body.about-page {
  min-height: var(--about-lock-h);
}

html.is-chrome-ios.is-about-scroll-lock body.about-page .index-idle-video {
  height: var(--about-lock-h);
}

html.is-chrome-ios.is-about-scroll-lock body.about-page .index-idle-video iframe {
  width: max(100vw, calc(var(--about-lock-h) * 1.7778));
  height: max(var(--about-lock-h), 56.25vw);
  min-width: 0;
  min-height: 0;
}

