/* ==========================================================================
   Samuel Zink – Website
   Zwei Modi: [data-mode="video"] (dunkel, Film) / [data-mode="photo"] (hell, Editorial)
   ========================================================================== */

@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 76px;
}

/* -------- Modus: VIDEO (dunkel) -------- */
:root, [data-mode="video"] {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --bg-3: #1b1b1e;
  --ink: #f3f1ec;
  --muted: rgba(243, 241, 236, .58);
  --line: rgba(255, 255, 255, .12);
  --accent: #ff5533;
  --display: var(--sans);
  --display-weight: 700;
  --display-track: -.045em;
  --glass-bg: linear-gradient(140deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 55%, rgba(255,255,255,.08));
  --glass-border: rgba(255, 255, 255, .22);
  --glass-hi: rgba(255, 255, 255, .55);
  --glass-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7), 0 2px 6px -2px rgba(0, 0, 0, .5);
  --glass-ink: #fff;
  --panel-bg: rgba(20, 20, 23, .72);
  --overlay: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.05) 35%, rgba(11,11,12,.15) 60%, rgba(11,11,12,.92) 100%);
  --logo-filter: brightness(0) invert(1);
  color-scheme: dark;
}

/* -------- Modus: FOTO (hell) -------- */
[data-mode="photo"] {
  --bg: #f7f5f0;
  --bg-2: #efebe3;
  --bg-3: #e7e1d6;
  --ink: #2e2a25;
  --muted: #857c70;
  --line: rgba(46, 42, 37, .12);
  --accent: #b07d4f;
  --display: var(--serif);
  --display-weight: 400;
  --display-track: -.02em;
  --glass-bg: linear-gradient(140deg, rgba(255,255,255,.78), rgba(255,255,255,.42) 55%, rgba(255,255,255,.62));
  --glass-border: rgba(255, 255, 255, .95);
  --glass-hi: rgba(255, 255, 255, 1);
  --glass-shadow: 0 12px 30px -14px rgba(120, 100, 75, .45), 0 2px 6px -2px rgba(120, 100, 75, .2);
  --glass-ink: #2e2a25;
  --panel-bg: rgba(250, 248, 244, .78);
  --overlay: linear-gradient(180deg, rgba(247,245,240,.55) 0%, rgba(247,245,240,0) 22%, rgba(247,245,240,0) 45%, rgba(247,245,240,.7) 78%, rgba(247,245,240,.97) 100%);
  --logo-filter: brightness(0) invert(.35) sepia(.25);
  color-scheme: light;
}

/* -------- Basis -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .01s;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: #fff; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; padding: 8px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
[data-mode="video"] .eyebrow::before { box-shadow: 0 0 12px var(--accent); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .25; } }
.eyebrow.center { display: flex; justify-content: center; }

.display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: .92;
  margin: 0;
}
.display em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
[data-mode="photo"] .display em { color: var(--accent); }

/* ==========================================================================
   LIQUID GLASS
   ========================================================================== */
.glass {
  --mx: 50%; --my: 50%;
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  color: var(--glass-ink);
  box-shadow:
    inset 0 1px 0 0 var(--glass-hi),
    inset 0 -1px 1px 0 rgba(255,255,255,.12),
    inset 0 0 18px -6px rgba(255,255,255,.35),
    var(--glass-shadow);
  overflow: hidden;
}
/* Spiegelung oben */
.glass::after {
  content: ""; position: absolute; inset: 1px 1px 50% 1px; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0));
  pointer-events: none;
}
/* Licht, das der Maus folgt */
.glass::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: radial-gradient(140px circle at var(--mx) var(--my), rgba(255,255,255,.42), rgba(255,255,255,0) 65%);
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.glass:hover::before { opacity: 1; }
[data-mode="photo"] .glass::before { background: radial-gradient(140px circle at var(--mx) var(--my), rgba(255,255,255,.95), rgba(255,255,255,0) 65%); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--spring), box-shadow .3s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--spring); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: scale(.96) translateY(1px); transition-duration: .12s; }
.btn-lg { height: 58px; padding: 0 28px 0 30px; font-size: 16px; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-play .play-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); margin-left: -12px;
}
.btn-play .play-dot svg { width: 12px; height: 12px; fill: currentColor; stroke: none; transform: translateX(1px); }
.btn-play:hover .play-dot svg { transform: translateX(1px) scale(1.15); }

.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }

/* ==========================================================================
   NAVIGATION + SWITCH
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), transparent);
  opacity: 0; transition: opacity .4s;
}
.nav.scrolled::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: -.04em;
  background: var(--ink); color: var(--bg);
  transition: background .6s, color .6s, border-radius .6s var(--ease);
}
[data-mode="photo"] .brand-mark { border-radius: 50%; font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: 0; }
.brand-logo img { height: 30px; width: auto; display: block; }
.brand-logo .on-light, [data-mode="photo"] .brand-logo .on-dark { display: none; }
[data-mode="photo"] .brand-logo .on-light { display: block; }
[data-mode="video"] .brand-logo img { filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.brand-logo { display: block; transition: transform .6s var(--spring); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.btn-contact { justify-self: end; }

.switch {
  --w: 116px;
  position: relative; display: flex; padding: 5px; border-radius: 999px; gap: 0;
}
.switch-btn {
  position: relative; z-index: 2;
  width: var(--w); height: 40px; border: 0; background: none; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--glass-ink); opacity: .6;
  transition: opacity .4s, color .4s;
}
.switch-btn svg { width: 18px; height: 18px; }
.switch-btn[aria-checked="true"] { opacity: 1; }
[data-mode="video"] .switch-btn[aria-checked="true"] { color: #0b0b0c; }
.switch-thumb {
  position: absolute; z-index: 1; top: 5px; left: 5px;
  width: var(--w); height: 40px; border-radius: 999px;
  background: linear-gradient(180deg, #fff, #ecebe8);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.08), inset 0 1px 0 #fff, 0 4px 14px -4px rgba(0,0,0,.45);
  transition: transform .7s var(--spring), width .7s var(--spring);
}
[data-mode="photo"] .switch-thumb {
  transform: translateX(var(--w));
  background: linear-gradient(180deg, #fffdf9, #f1ece4);
  box-shadow: inset 0 -2px 4px rgba(120,100,75,.12), inset 0 1px 0 #fff, 0 6px 16px -6px rgba(120,100,75,.55);
}
.switch.stretch .switch-thumb { animation: stretch .7s var(--ease); }
@keyframes stretch { 40% { transform: translateX(calc(var(--to, 0) * .5)) scaleX(1.35) scaleY(.88); } }

/* ==========================================================================
   VORHANG (Übergang zwischen den Modi)
   ========================================================================== */
.curtain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  clip-path: circle(0% at 50% 38px);
  display: grid; place-items: center;
}
.curtain-label {
  font-family: var(--serif); font-style: italic; font-size: clamp(48px, 9vw, 140px);
  opacity: 0; transform: translateY(20px);
}

/* Filmkorn */
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  transition: opacity .6s;
}
[data-mode="video"] .grain { opacity: .07; animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,-2%)} 80%{transform:translate(5%,4%)} 100%{transform:translate(0,0)} }

/* Kapitel-Anzeige unten links */
.chapter-hud {
  position: fixed; right: calc(var(--gutter) * .5); top: 50%; z-index: 45;
  writing-mode: vertical-rl; translate: 0 -50%;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease);
  pointer-events: none; mix-blend-mode: difference; color: #fff;
}
.chapter-hud.on { opacity: 1; transform: none; }
.hud-line { width: 1px; height: 40px; background: currentColor; transform-origin: top; }
[data-mode="photo"] .chapter-hud { mix-blend-mode: normal; color: var(--ink); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; will-change: transform, border-radius; }
.hero-media > img, .hero-media > video, .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-slide { opacity: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.hero-slide.on { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--overlay); pointer-events: none; }
.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 0 var(--gutter) clamp(40px, 7vh, 80px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
}
.hero-title {
  font-size: clamp(64px, 14.5vw, 260px);
  text-transform: none;
}
[data-mode="video"] .hero-title { text-transform: uppercase; font-size: clamp(56px, 13vw, 230px); }
[data-mode="photo"] .hero-title { font-size: clamp(56px, 10.5vw, 190px); line-height: .95; }
.line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.line > span { display: inline-block; will-change: transform; }
.hero-title .line:nth-child(2) { padding-left: clamp(0px, 9vw, 160px); }
[data-mode="video"] .hero-title .line:nth-child(2) > span { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.02em; }
.hero-side { max-width: 360px; display: grid; gap: 22px; padding-bottom: 12px; }
.hero-side p { margin: 0; color: var(--muted); font-size: 16px; }
[data-mode="video"] .hero-side p { color: rgba(255,255,255,.75); }
[data-mode="photo"] .hero-side p { color: var(--ink); }
[data-mode="photo"] .hero-kicker { color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-kicker { position: absolute; top: calc(var(--nav-h) + 24px); left: var(--gutter); z-index: 2; }
.timecode {
  position: absolute; top: calc(var(--nav-h) + 24px); right: var(--gutter); z-index: 2;
  font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; color: rgba(255,255,255,.8);
  display: flex; gap: 10px; align-items: center;
}
.timecode i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: rec 1.6s steps(1) infinite; }
.hero-dots { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2; display: grid; gap: 10px; }
.hero-dots span { width: 2px; height: 28px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.hero-dots span i { position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: top; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--line);
}
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   INTRO-TEXT
   ========================================================================== */
.intro { padding: clamp(110px, 18vh, 220px) var(--gutter); max-width: 1500px; margin: 0 auto; }
.intro-text {
  font-family: var(--display); font-weight: 500; letter-spacing: -.03em; line-height: 1.08;
  font-size: clamp(30px, 4.6vw, 76px); margin: 0;
}
[data-mode="photo"] .intro-text { font-weight: 400; letter-spacing: -.01em; line-height: 1.1; }
.intro-text .w { opacity: .14; transition: none; }

/* ==========================================================================
   KAPITEL – gemeinsam
   ========================================================================== */
.chapter { position: relative; }
.ch-stage { position: relative; height: 100svh; overflow: hidden; }
.ch-media {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(14% 16% 14% 16% round 28px);
  will-change: clip-path;
}
.ch-media img, .ch-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.ch-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); }
[data-mode="photo"] .ch-media::after { background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.28)); }
.ch-head {
  position: absolute; inset: auto var(--gutter) clamp(36px, 7vh, 72px) var(--gutter); z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; color: #fff;
}
.ch-no { font: 600 13px/1 var(--sans); letter-spacing: .2em; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.ch-no::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .6; }
.ch-title { font-size: clamp(44px, 8vw, 140px); max-width: 14ch; text-wrap: balance; }
[data-mode="video"] .ch-title { text-transform: uppercase; font-size: clamp(40px, 7vw, 124px); }
.ch-body {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 110px); align-items: end;
  padding: clamp(70px, 12vh, 140px) var(--gutter) clamp(40px, 6vh, 70px);
  max-width: 1600px; margin: 0 auto;
}
.ch-service { max-width: 30ch; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.35; letter-spacing: -.015em; margin: 0; }
[data-mode="photo"] .ch-service { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 36px); line-height: 1.2; letter-spacing: 0; }
.ch-label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ch-cta { justify-self: end; }
@media (max-width: 900px) { .ch-cta { justify-self: start; } }

/* ==========================================================================
   VIDEO – Projektschiene
   ========================================================================== */
.rail-wrap { position: relative; padding: 0 0 clamp(90px, 14vh, 170px); }
.rail-head { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--gutter) 22px; max-width: 1600px; margin: 0 auto; }
.rail-count { color: var(--muted); font-size: 14px; }
.rail-ctrl { display: flex; gap: 8px; }
.rail {
  display: flex; gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px max(var(--gutter), calc((100vw - 1600px) / 2 + var(--gutter))) 30px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1600px) / 2 + var(--gutter)));
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging .card { pointer-events: none; }
.card {
  flex: 0 0 clamp(270px, 34vw, 520px); scroll-snap-align: start;
  text-align: left; background: none; border: 0; padding: 0; color: inherit;
  perspective: 900px;
}
.card-media {
  position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--bg-3);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 0 0 1px var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.9); }
.card:hover .card-media img { transform: scale(1.1); filter: saturate(1.1); }
.card:hover .card-media { box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.card-play {
  position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  display: grid; place-items: center; transform: scale(.6); opacity: 0;
  transition: transform .6s var(--spring), opacity .4s;
}
.card-play svg { width: 22px; height: 22px; fill: #fff; stroke: none; transform: translateX(2px); }
.card-play.is-link svg { fill: none; stroke: #fff; transform: none; }
.card:hover .card-play, .card:focus-visible .card-play { transform: none; opacity: 1; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px 0; }
.card-title { font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.card-year { color: var(--muted); font-size: 14px; white-space: nowrap; }
.card-badge { position: absolute; left: 14px; top: 14px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* ==========================================================================
   FOTO – Galerie
   ========================================================================== */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.4vw, 22px);
  padding: 0 var(--gutter) clamp(100px, 16vh, 190px); max-width: 1600px; margin: 0 auto;
}
.g-item {
  position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-3); cursor: zoom-in;
  border: 0; padding: 0;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); will-change: transform; transition: filter .6s; }
.g-item:hover img { filter: brightness(1.05) saturate(1.05); }
.g-item::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); border-radius: inherit; pointer-events: none; }
/* Editoriales Raster */
.g-item:nth-child(6n+1) { grid-column: 1 / span 7; aspect-ratio: 4/5; }
.g-item:nth-child(6n+2) { grid-column: 8 / span 5; aspect-ratio: 4/5; margin-top: 18vh; }
.g-item:nth-child(6n+3) { grid-column: 2 / span 4; aspect-ratio: 3/4; margin-top: -8vh; }
.g-item:nth-child(6n+4) { grid-column: 6 / span 7; aspect-ratio: 3/2; align-self: center; }
.g-item:nth-child(6n+5) { grid-column: 1 / span 6; aspect-ratio: 3/2; }
.g-item:nth-child(6n+6) { grid-column: 7 / span 5; aspect-ratio: 4/5; margin-top: 10vh; }
.gallery-caption { grid-column: 1 / -1; color: var(--muted); font-size: 14px; font-style: italic; font-family: var(--serif); font-size: 20px; margin-top: 10px; }

/* ==========================================================================
   KUNDEN / ÜBER MICH / CTA / FOOTER
   ========================================================================== */
.clients { padding: clamp(70px, 12vh, 130px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: clamp(40px, 6vw, 90px); width: max-content; animation: marquee 38s linear infinite; padding-top: 18px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: clamp(46px, 5vw, 70px); width: auto; filter: var(--logo-filter); opacity: .7; transition: opacity .3s; }
.marquee img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

.about { padding: clamp(110px, 18vh, 210px) var(--gutter); max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.about-media { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--bg-3); box-shadow: 0 40px 80px -40px rgba(0,0,0,.55), 0 0 0 1px var(--line); }
[data-mode="photo"] .about-media { box-shadow: 0 40px 80px -40px rgba(120,100,75,.5); }
.about-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.about-badge { position: absolute; left: 16px; bottom: 16px; margin: 0; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.about-title { font-size: clamp(38px, 4.4vw, 76px); margin-bottom: clamp(26px, 4vh, 44px); text-wrap: balance; }
.about-body p { max-width: 62ch; }
.about-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.btn svg.li { fill: currentColor; stroke: none; width: 17px; height: 17px; }
.btn:hover svg.li { transform: none; }
.about-body p:first-child { font-size: clamp(20px, 1.8vw, 27px); line-height: 1.4; }
.about-body p { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; margin: 0 0 22px; letter-spacing: -.01em; }
.about-body p:first-child { color: var(--ink); }
.about-body p + p { color: var(--muted); }

.cta { text-align: center; padding: clamp(110px, 20vh, 240px) var(--gutter); position: relative; overflow: hidden; }
.cta-title { font-size: clamp(56px, 11vw, 200px); }
[data-mode="video"] .cta-title span { text-transform: uppercase; }
.cta-sub { max-width: 560px; margin: 34px auto 40px; color: var(--muted); font-size: 18px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: min(900px, 120vw); aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%);
  filter: blur(40px); opacity: .55;
}

.footer { padding: 0 var(--gutter) 40px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-big {
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track);
  font-size: clamp(60px, 16.5vw, 300px); line-height: .9; white-space: nowrap; text-align: center;
  padding: 50px 0 40px; color: transparent; -webkit-text-stroke: 1px var(--line);
}
[data-mode="video"] .footer-big { text-transform: uppercase; font-size: clamp(50px, 14.2vw, 260px); }
.footer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.footer-row strong { color: var(--ink); }
.footer-logo { display: block; margin-bottom: 14px; }
.footer-logo img { height: 34px; width: auto; }
.footer-logo .on-light, [data-mode="photo"] .footer-logo .on-dark { display: none; }
[data-mode="photo"] .footer-logo .on-light { display: block; }
.footer a { text-decoration: none; color: var(--ink); }
.footer a:hover, .link-btn:hover { color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.footer-row > div:last-child { text-align: right; }

/* ==========================================================================
   KONTAKT-PANEL
   ========================================================================== */
.contact { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.contact.open { visibility: visible; }
.contact-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .5s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
[data-mode="photo"] .contact-backdrop { background: rgba(247,245,240,.4); }
.contact.open .contact-backdrop { opacity: 1; }
.glass-panel {
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 40px 80px -30px rgba(0,0,0,.6);
}
.contact-panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(620px, calc(100vw - 24px));
  border-radius: 28px; padding: clamp(20px, 3.2vh, 36px) clamp(22px, 2.6vw, 40px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  transform: translateX(calc(100% + 40px)) scale(.98); transition: transform .8s var(--ease);
}
.contact.open .contact-panel { transform: none; }
.contact-panel > .icon-btn { position: absolute; top: 20px; right: 20px; }
.contact-panel .eyebrow { margin-bottom: 8px; }
.contact-title { font-size: clamp(34px, 5.2vh, 56px); margin: 0 0 4px; }
.contact-sub { margin: 0; font-size: 15px; }
.form { display: grid; gap: clamp(8px, 1.3vh, 12px); margin-top: clamp(14px, 2.4vh, 24px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-width: 0;
  font: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line); border-radius: 12px; padding: clamp(8px, 1.2vh, 11px) 13px; outline: none; resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: #e5484d; }
.chips { border: 0; padding: 0; margin: 2px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips legend { float: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-right: 6px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: all .3s var(--ease); }
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; font-size: 12px; line-height: 1.45; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 2px; }
.btn-submit { height: 50px; padding: 0 24px 0 26px; }
.btn-submit[disabled] { opacity: .6; pointer-events: none; }
.form-status { margin: 0; font-size: 14px; flex: 1 1 200px; }
@media (max-height: 720px) {
  .contact-title { font-size: 32px; }
  .contact-sub { font-size: 14px; }
  .form { gap: 7px; margin-top: 12px; }
  .field input, .field textarea { padding: 7px 12px; }
  .btn-submit { height: 44px; }
}
.form-status.ok { color: #3fb950; }
.form-status.err { color: #e5484d; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 95; visibility: hidden; display: grid; place-items: center; padding: 24px; }
.lightbox.open { visibility: visible; }
.lightbox-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; transition: opacity .5s; }
.lightbox.open .lightbox-backdrop { opacity: 1; }
.lightbox-inner { position: relative; width: min(1200px, 100%); max-height: calc(100svh - 48px); overflow-y: auto; opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .5s, transform .7s var(--ease); scrollbar-width: none; }
.lightbox.open .lightbox-inner { opacity: 1; transform: none; }
.lb-close { position: absolute; top: 20px; right: 20px; z-index: 3; }
.lb-player { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #000; }
.lb-player img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.lb-player iframe, .lb-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.lb-consent { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; padding: 20px; color: #fff; }
.lb-consent small { max-width: 440px; opacity: .8; font-size: 12px; }
.lb-consent small a { color: #fff; }
.lb-info { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 4px 10px; }
.lb-info h3 { margin: 0 0 6px; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; line-height: 1; }
.lb-info p { margin: 0 0 12px; color: var(--muted); }
.lb-note { font-size: 13px; border-left: 2px solid var(--accent); padding-left: 12px; }
.lb-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lb-photo { display: grid; place-items: center; height: calc(100svh - 48px); }
.lb-photo img { max-height: calc(100svh - 120px); width: auto; border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.4); }
.lb-nav { position: fixed; top: 50%; z-index: 3; transform: translateY(-50%); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-count { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); letter-spacing: .1em; }

/* ==========================================================================
   UNTERSEITEN (Impressum, Datenschutz)
   ========================================================================== */
.legal { max-width: 820px; margin: 0 auto; padding: calc(var(--nav-h) + 80px) var(--gutter) 120px; }
.legal h1 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 50px; }
.legal h2 { font-size: 22px; margin: 44px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .brand-name { display: none; }
  .switch { --w: 92px; }
  .switch-btn { height: 36px; font-size: 13px; gap: 6px; }
  .switch-thumb { height: 36px; }
  .btn-contact { height: 42px; padding: 0 16px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-dots, .timecode { display: none; }
  .ch-body, .about { grid-template-columns: 1fr; }
  .about-media { max-height: 72svh; width: 100%; max-width: 520px; }
  .lb-info { grid-template-columns: 1fr; gap: 0; }
  .g-item:nth-child(n) { grid-column: span 12; margin-top: 0; aspect-ratio: 4/5; }
  .g-item:nth-child(3n+2), .g-item:nth-child(3n+3) { grid-column: span 6; aspect-ratio: 3/4; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-row > div:last-child { text-align: left; }
  .ch-media { clip-path: inset(10% 6% 10% 6% round 20px); }
  .chapter-hud { display: none; }
}
@media (max-width: 560px) {
  .btn-contact span { display: none; }
  .btn-contact { width: 42px; padding: 0; }
  .switch-btn svg { display: none; }
  .switch { --w: 74px; }
  .form-row { gap: 8px; }
  .contact-panel { top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); }
  .card { flex-basis: 82vw; }
  .lb-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .ch-media { clip-path: none; }
  .intro-text .w { opacity: 1; }
  .g-item img { transform: none; }
}
