/* Liam Sorg – Portfolio
   Layout: helle Website mit eigenen Seiten. Start = Leinwand + Name, Arbeiten = Typo-Index
   mit Vorschau, Kategorie = Projektkarten, Projekt = Galerie oder Film mit Standbildern.
   Bewusst nur ein (helles) Theme. */
:root {
  --paper: #ffffff;   /* Grund */
  --paper-2: #f2f2ef; /* Flächen hinter Bildern */
  --ink: #121211;     /* Text */
  --mute: #6a6a64;    /* Nebentext */
  --line: #e2e2dd;    /* Haarlinien */
  --tally: #c03c17;   /* Akzent: Tally-Licht der Kamera */
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --gap: clamp(12px, 1.6vw, 20px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

/* Seitenwechsel: kurze Überblendung, die Kopfzeile bleibt stehen */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 80px; }
body {
  margin: 0;
  padding-inline: var(--gutter);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin-inline: auto; }
.mono {
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tbd { color: var(--tally); border-bottom: 1px dashed currentColor; }

/* ---------- Kopfzeile und Menü ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  view-transition-name: site-top;
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { padding-block: 6px; color: inherit; font-family: var(--display, inherit); font-weight: 700; font-stretch: 75%; font-size: 1.125rem; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; }
.top-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav a { position: relative; padding-block: 6px; color: var(--mute); text-decoration: none; transition: color .2s; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--tally);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.lang { display: flex; gap: 2px; padding-left: clamp(12px, 2vw, 24px); border-left: 1px solid var(--line); }
.lang a { padding: 2px 4px; color: var(--mute); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--ink); }
.lang a:hover { color: var(--tally); }
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.menu-icon { position: relative; width: 16px; height: 8px; }
.menu-icon span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 6.5px; }
.menu-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.menu-btn[aria-expanded="true"] .menu-icon span:first-child { top: 3.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:last-child { top: 3.25px; transform: rotate(-45deg); }
@media (max-width: 719px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .lang { padding-left: 0; border-left: 0; }
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 92px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: var(--paper);
}
.menu-nav { display: grid; gap: 4px; }
.menu-link {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 750;
  font-size: clamp(3rem, 15vw, 5.5rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  animation: rise .5s var(--ease) both;
}
.menu-link:nth-child(2) { animation-delay: .04s; }
.menu-link:nth-child(3) { animation-delay: .08s; }
.menu-link:nth-child(4) { animation-delay: .12s; }
.menu-link[aria-current="page"] { color: var(--tally); }
.menu-foot { margin: 0; color: var(--mute); }
.menu-foot a { text-decoration: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Buttons: Füllung von unten, rollende Beschriftung, gleitender Pfeil, leicht magnetisch ---------- */
.btn {
  --mx: 0px;
  --my: 0px;
  --s: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transform: translate(var(--mx), var(--my)) scale(var(--s));
  transition: transform .45s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tally);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { border-color: var(--tally); color: #fff; }
.btn:active { --s: .96; }
.btn.is-magnet { transition: transform .15s linear, color .35s var(--ease), border-color .35s; }
.btn-label { position: relative; display: inline-block; height: 1.5em; overflow: hidden; }
.btn-label > span { display: block; transition: transform .45s var(--ease); }
.btn-label > span::after { content: attr(data-text); display: block; }
.btn:hover .btn-label > span, .btn:focus-visible .btn-label > span { transform: translateY(-50%); }
.btn-arrow { position: relative; display: inline-block; width: 1.1em; height: 1.5em; overflow: hidden; }
.btn-arrow span { position: absolute; left: 0; top: 0; transition: transform .45s var(--ease); }
.btn-arrow span:last-child { transform: translateX(-130%); }
.btn:hover .btn-arrow span:first-child { transform: translateX(130%); }
.btn:hover .btn-arrow span:last-child { transform: translateX(0); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--line { background: transparent; border-color: rgb(255 255 255 / .8); color: #fff; }
.btn--line::before { background: #fff; }
.btn--line:hover { border-color: #fff; color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Cursor: schwarzer Punkt, über Karten und Bildern ein Kreis mit Beschriftung (nur Maus) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cursor.is-visible { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
.cursor-dot {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / .55);
  transition: transform .3s var(--ease), opacity .2s;
}
.cursor.is-link .cursor-dot { transform: scale(2.2); }
.cursor.is-click .cursor-dot { transform: scale(.7); }
.cursor-label {
  position: absolute;
  left: -42px;
  top: -42px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.cursor.is-label .cursor-label { transform: scale(1); }
.cursor.is-label .cursor-dot { opacity: 0; transform: scale(.5); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Start: Showreel im Kamerasucher ---------- */
.is-home .top {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  margin: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: color .3s;
}
.is-home.on-dark .top { color: #fff; }
.is-home.on-dark .nav a, .is-home.on-dark .lang a { color: rgb(255 255 255 / .72); }
.is-home.on-dark .nav a:hover, .is-home.on-dark .lang a:hover, .is-home.on-dark .lang a[aria-current="true"] { color: #fff; }
.is-home.on-dark .nav a::after { background: #fff; }
.is-home.on-dark .lang { border-left-color: rgb(255 255 255 / .3); }
.menu-open .is-home .top { color: var(--ink); }
.menu-open .is-home .lang a { color: var(--mute); }
.menu-open .is-home .lang a[aria-current="true"] { color: var(--ink); }

.reel {
  position: relative;
  isolation: isolate;
  display: grid;
  margin-inline: calc(var(--gutter) * -1);
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #0e0e0d;
  color: #fff;
}
.reel-media { position: absolute; inset: 0; z-index: -2; }
.reel-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.reel-clip.is-active { opacity: 1; }
img.reel-clip.is-active { animation: kenburns 9s linear both; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.14); } }
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(0 0 0 / .66), rgb(0 0 0 / 0) 58%),
    linear-gradient(to right, rgb(0 0 0 / .38), rgb(0 0 0 / 0) 55%),
    linear-gradient(to bottom, rgb(0 0 0 / .32), rgb(0 0 0 / 0) 22%);
}
/* Sucher: Ecken, REC, Timecode */
.vf { position: absolute; inset: calc(env(safe-area-inset-top, 0px) + 72px) clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px); pointer-events: none; }
.vf-c { position: absolute; width: clamp(18px, 2.4vw, 30px); height: clamp(18px, 2.4vw, 30px); border: 0 solid rgb(255 255 255 / .85); }
.vf-c.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-c.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-c.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-c.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf-rec, .vf-label, .vf-spec, .vf-tc { position: absolute; color: rgb(255 255 255 / .9); }
.vf-rec { top: 14px; left: clamp(28px, 3.4vw, 44px); display: flex; align-items: center; gap: 8px; }
.vf-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b1f; box-shadow: 0 0 10px #ff3b1f; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.vf-label { top: 14px; right: clamp(28px, 3.4vw, 44px); text-align: right; transition: opacity .3s; }
.vf-spec { top: 34px; right: clamp(28px, 3.4vw, 44px); color: rgb(255 255 255 / .6); }
.vf-tc { bottom: 14px; left: clamp(28px, 3.4vw, 44px); }
.vf-tc .tc { color: #fff; font-variant-numeric: tabular-nums; }
.reel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px clamp(32px, 5vw, 80px);
  padding: calc(env(safe-area-inset-top, 0px) + 120px) calc(var(--gutter) + clamp(16px, 3vw, 40px)) clamp(64px, 9vh, 96px);
}
.reel-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.reel-copy > * { animation: rise .8s var(--ease) both; }
.reel-copy > :nth-child(2) { animation-delay: .08s; }
.reel-copy > :nth-child(3) { animation-delay: .16s; }
.reel-copy > :nth-child(4) { animation-delay: .24s; }
.reel-eyebrow { margin: 0; color: rgb(255 255 255 / .8); }
.reel-name-title {
  margin: 0;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(4.5rem, 15vw, 14rem);
  line-height: .78;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.reel-tagline { margin: 0; max-width: 34ch; font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.35; color: rgb(255 255 255 / .92); text-wrap: balance; }
.reel-list { display: grid; gap: 2px; min-width: 220px; }
.reel-item {
  position: relative;
  display: grid;
  grid-template-columns: 3ch 1fr;
  align-items: baseline;
  gap: 10px;
  padding-block: 8px 10px;
  color: rgb(255 255 255 / .5);
  text-decoration: none;
  transition: color .3s;
}
.reel-no { font-size: .6875rem; }
.reel-name {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 700;
  font-size: clamp(1.375rem, 1.9vw, 1.875rem);
  line-height: 1;
  text-transform: uppercase;
  transition: transform .35s var(--ease);
}
.reel-item:hover, .reel-item.is-active { color: #fff; }
.reel-item:hover .reel-name { transform: translateX(6px); }
.reel-bar { position: absolute; left: calc(3ch + 10px); right: 0; bottom: 0; height: 1.5px; background: rgb(255 255 255 / .18); overflow: hidden; }
.reel-bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.reel-item.is-active .reel-bar::after { animation: progress var(--dur, 6.5s) linear forwards; }
.reel.is-paused .reel-item.is-active .reel-bar::after { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.reel-clients {
  position: absolute;
  right: clamp(28px, 3.4vw, 44px);
  bottom: calc(clamp(12px, 2vw, 24px) + 14px);
  margin: 0;
  color: rgb(255 255 255 / .9);
}
.reel-clients span { color: rgb(255 255 255 / .55); margin-right: 10px; }
@media (max-width: 899px) {
  .reel-inner { grid-template-columns: minmax(0, 1fr); align-content: end; padding-bottom: 72px; }
  .reel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 4px 14px; }
  .reel-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .reel-no { display: none; }
  .reel-name { font-size: 1.125rem; }
  .reel-bar { left: 0; }
  .reel-clients, .vf-spec { display: none; }
}
/* Handy hochkant: nur Name, Zeile darüber und Kategorien – kein Sucher-Rahmen, kein REC/Timecode, kein Untertitel, keine Buttons */
@media (max-width: 599px) {
  .vf-c, .vf-rec, .vf-tc, .reel-tagline, .reel-copy .ctas { display: none; }
  .reel-inner { gap: 22px; padding-bottom: 44px; }
  .reel-copy { gap: 12px; }
  .reel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .reel-item { padding-block: 7px 8px; }
  .reel-name { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vf-label { max-width: 52vw; }
}

/* ---------- Intro: geschlossene Blende dreht sich auf, Flug ins Objektiv, in der Öffnung die Startseite (vom Scrollen gesteuert, läuft einmal) ---------- */
.intro { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: #000; color: #fff; touch-action: none; overscroll-behavior: none; }
.intro.is-ready { background: none; }
.intro[hidden] { display: none; }
.intro-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.intro-hint { position: absolute; left: 50%; bottom: 40px; margin: 0; display: grid; justify-items: center; gap: 10px; transform: translateX(-50%); color: rgb(255 255 255 / .75); pointer-events: none; }
.intro-hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(#fff, transparent); transform-origin: top; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.intro-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgb(255 255 255 / .08); }
.intro-progress span { display: block; height: 100%; background: rgb(255 255 255 / .7); transform: scaleX(0); transform-origin: 0 50%; }
.intro-skip {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  padding: 8px 14px;
  border: 1px solid rgb(255 255 255 / .3);
  border-radius: 999px;
  background: rgb(0 0 0 / .35);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, opacity .3s;
}
.intro-skip:hover { border-color: #fff; }
.intro.is-leaving { opacity: 0; transition: opacity .35s ease; }
.top { transition: opacity .5s ease, color .3s; }
.intro-active .top { opacity: 0; pointer-events: none; }
@media (max-width: 599px) { .intro-hint { bottom: 92px; } .intro-skip { right: 50%; bottom: 32px; transform: translateX(50%); } }

/* ---------- Seitenkopf ---------- */
.page { padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.page-head { display: grid; gap: 14px; padding-bottom: clamp(28px, 4vw, 48px); }
.back { justify-self: start; color: var(--mute); text-decoration: none; transition: color .2s; }
.back:hover { color: var(--ink); }
.eyebrow { margin: 0; color: var(--mute); }
.meta { margin: 0; color: var(--mute); }
.page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(2.75rem, 10vw, 8.5rem);
  line-height: .85;
  text-transform: uppercase;
  text-wrap: balance;
  animation: rise .6s var(--ease) both;
}
.lede { margin: 0; max-width: 60ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }

/* ---------- Arbeiten: Index mit Vorschau ---------- */
.index-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.index-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 18px;
  padding-block: clamp(14px, 1.6vw, 22px);
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.index-group:last-child .index-row:last-child { border-bottom: 1px solid var(--line); }
.index-name {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 750;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: .95;
  text-transform: uppercase;
  transition: color .2s, transform .4s var(--ease);
}
.index-arrow { grid-row: 1; grid-column: 2; font-size: 1.75rem; line-height: 1; transition: transform .3s var(--ease), color .2s; }
.index-row:hover .index-name, .index-row.is-active .index-name { color: var(--tally); transform: translateX(10px); }
.index-row:hover .index-arrow, .index-row.is-active .index-arrow { color: var(--tally); transform: translateX(6px); }
.index-thumb { display: none; }
.index-preview {
  position: sticky;
  top: 92px;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  background: var(--paper-2);
}
.index-preview img, .index-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.index-preview video { opacity: 0; }
.index-preview.is-playing video { opacity: 1; }
.index-preview img.is-swapping { opacity: 0; }
.index-preview figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 859px) {
  .index-wrap { grid-template-columns: minmax(0, 1fr); }
  .index-preview { display: none; }
  .index-row { grid-template-columns: minmax(0, 1fr) 64px; gap: 16px; align-items: center; }
  .index-arrow { display: none; }
  .index-name { grid-column: 1; font-size: clamp(2rem, 9vw, 3rem); }
  .index-thumb { display: block; grid-column: 2; grid-row: 1; width: 64px; aspect-ratio: 4 / 5; object-fit: cover; }
  .index-row.is-active .index-name { color: inherit; transform: none; }
  .index-row:hover .index-name { color: var(--tally); transform: none; }
}

/* ---------- Kategorie: ruhiges Raster, alle Bilder gleich groß ---------- */
/* Spaltenzahl passt zur Anzahl (--cols aus build.py), damit keine Reihe halb leer bleibt */
.folio { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px); }
@media (max-width: 1099px) { .folio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .folio { grid-template-columns: minmax(0, 1fr); } }
.fo { display: grid; gap: 12px; text-decoration: none; }
.fo-media { position: relative; display: block; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.folio--film .fo-media { aspect-ratio: 16 / 9; }
.fo-media img, .fo-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fo-media img { transition: transform 1s var(--ease); }
a.fo:hover .fo-media img { transform: scale(1.03); }
video.preview { opacity: 0; transition: opacity .35s; }
.is-previewing video.preview { opacity: 1; }
.fo-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.fo-title { font-family: var(--display); font-stretch: 75%; font-weight: 650; font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.05; transition: color .2s; }
.fo-loc { color: var(--mute); text-align: right; }
a.fo:hover .fo-title { color: var(--tally); }
.soon { margin: clamp(40px, 5vw, 72px) 0 0; color: var(--mute); }

/* ---------- Projekt: Galerie in Reihen gleicher Höhe, Film ---------- */
.sheet { --h: clamp(220px, 26vw, 380px); display: flex; flex-wrap: wrap; gap: var(--gap); }
.sheet::after { content: ""; flex-grow: 1000000; }
.frame { margin: 0; flex: var(--r) 1 calc(var(--r) * var(--h)); min-width: 0; }
.frame-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; }
.frame-btn img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform .9s var(--ease); }
.frame-btn:hover img { transform: scale(1.025); }
@media (max-width: 599px) {
  .sheet { display: grid; grid-template-columns: minmax(0, 1fr); }
  .sheet::after { display: none; }
}

.player-frame { position: relative; width: 100%; aspect-ratio: var(--ar); max-height: 80vh; background: #000; overflow: hidden; }
.player-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.player-frame:hover > img { transform: scale(1.02); }
.player-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.player-frame.is-vertical { width: auto; height: min(82vh, 860px); max-height: none; margin-inline: auto; }
@media (max-width: 699px) { .player-frame.is-vertical { width: 100%; height: auto; max-height: none; } }
.big-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: linear-gradient(to top, rgb(0 0 0 / .28), transparent 45%);
  color: #fff;
  cursor: pointer;
}
.big-play-btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  width: clamp(72px, 9vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  transition: transform .35s var(--ease), background .2s;
}
.big-play-btn::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--ink);
  transition: border-color .2s;
}
.big-play-btn { transform: translate(var(--mx), var(--my)); }
.big-play:hover .big-play-btn { transform: translate(var(--mx), var(--my)) scale(1.08); background: var(--tally); }
.big-play:hover .big-play-btn::before { border-left-color: var(--paper); }
.big-play-label { text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.film-body { display: grid; gap: 12px; max-width: 62ch; padding-top: clamp(24px, 3vw, 40px); }
.film-lede { margin: 0; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.5; }
.stills-wrap { padding-top: clamp(40px, 5vw, 72px); }
.stills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 699px) { .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.still { display: block; padding: 0; border: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.still:hover img { transform: scale(1.04); }
.stills--vertical .still { aspect-ratio: 9 / 16; }

/* ---------- Weiter ---------- */
.next { display: grid; justify-items: end; gap: 6px; margin-top: clamp(80px, 10vw, 160px); padding-top: 20px; border-top: 1px solid var(--line); text-align: right; text-decoration: none; }
.next .mono { color: var(--mute); }
.next-name {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 750;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  transition: color .2s, transform .35s var(--ease);
}
.next:hover .next-name { color: var(--tally); transform: translateX(-6px); }

/* ---------- Über mich ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 859px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.about-text { display: grid; gap: 1em; align-content: start; max-width: 62ch; }
.about-text p { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; }
.services h2, .clients h2 { margin: 0 0 12px; color: var(--mute); font-weight: 400; }
.services ul, .clients ul { list-style: none; margin: 0; padding: 0; }
.services li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.svc { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 1.25rem; }
.services a { color: var(--mute); text-decoration: none; }
.services a:hover { color: var(--tally); }
.clients { margin-top: 40px; }
.clients ul { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 1.25rem; }
.talk {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: clamp(64px, 8vw, 120px);
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 750;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.talk span:last-child { transition: transform .35s var(--ease); }
.talk:hover { color: var(--tally); }
.talk:hover span:last-child { transform: translateX(8px); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.mail {
  display: inline-block;
  max-width: 100%;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 750;
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color .2s;
}
.mail:hover { color: var(--tally); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 20px; }
.copy { padding: 10px 16px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.copy.is-done { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.insta { color: var(--mute); text-decoration: none; }
.insta span { color: var(--ink); }
.insta:hover, .insta:hover span { color: var(--tally); }
.form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--paper-2); }
.form h2 { margin: 0; color: var(--mute); font-weight: 400; }
.field { display: grid; gap: 6px; }
.field label { color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.form-foot { display: grid; gap: 10px; justify-items: start; }
.hint { margin: 0; color: var(--mute); font-size: .875rem; }

/* ---------- Fußzeile ---------- */
.foot { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-top: 1px solid var(--line); }
.foot-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px));
  color: var(--mute);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--ink); }

/* ---------- Bildansicht ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 64px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px);
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } }
.close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: var(--gutter);
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.close:hover { border-color: var(--ink); }
.lb-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2vw, 24px); width: 100%; height: 100%; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lb-figure img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; transition: opacity .25s; }
.lb-figure img.is-loading { opacity: 0; }
.lb-cap { display: flex; gap: 20px; color: var(--mute); }
.lb-cap .n { color: var(--tally); font-variant-numeric: tabular-nums; }
.lb-nav {
  width: clamp(40px, 5vw, 56px);
  height: clamp(40px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
}
.lb-nav:hover { border-color: var(--ink); }
@media (max-width: 639px) {
  .lb-stage { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; justify-self: start; }
  .lb-next { grid-row: 2; justify-self: end; }
  .lb-figure img { max-height: calc(100vh - 210px); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
