:root {
  --bg: #f4f4f4;
  --ink: #22282b;
  --ink-rgb: 34, 40, 43;
  --muted: rgba(34, 40, 43, .66);
  --sand: #f2f0e9;
  --line: #ddd7d4;
  --panel: #e7e7e4;          /* empty video frames */
  --intro: #a59c93;          /* the warm block under the headline */
  --intro-rgb: 165, 156, 147;
  --intro-name: #22282b;     /* "luka" inside that block */

  --gutter: clamp(16px, 3.5vw, 48px);
  --section: clamp(80px, 12vw, 180px);
  --fs: clamp(17px, .9rem + .45vw, 22px);
  --fs-big: clamp(28px, 1rem + 3vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs)/1.22 "Hanken Grotesk", system-ui, sans-serif;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
svg { color: var(--ink); overflow: visible; }
h2, h3 { font-size: var(--fs); font-weight: 700; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter);
  font-size: 15px; font-weight: 500;
}
.logo { font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; letter-spacing: -.02em; }
.nav { display: flex; gap: clamp(14px, 2vw, 24px); }
.nav a { transition: opacity .2s; }
.nav a:hover { opacity: .55; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- video popup ---------- */
.video-modal {
  width: min(92vw, 1100px); max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; background: none; overflow: visible;
}
.video-modal[open] { animation: modal-in .35s cubic-bezier(.2, .7, .2, 1); }
.video-modal::backdrop { background: rgba(20, 24, 26, .82); backdrop-filter: blur(6px); }
.video-modal video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #0b0b0b; }
.modal-close {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  padding: 8px 14px; border: 0; border-radius: 999px;
  font: 500 14px/1 "Hanken Grotesk", system-ui, sans-serif; text-transform: lowercase;
  color: var(--ink); background: var(--bg); cursor: pointer;
}
.modal-close::after { content: " ✕"; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.header-tools { justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang { position: relative; }

/* background-sound toggle: little equalizer, moving while sound plays */
.ambient-toggle {
  display: flex; align-items: flex-end; gap: 2px; height: 14px;
  padding: 8px; margin: -8px; box-sizing: content-box;
  color: inherit; background: none; border: 0; cursor: pointer;
}
.ambient-toggle .bar { width: 2px; height: 25%; border-radius: 1px; background: currentColor; transition: height .4s, opacity .3s; }
.ambient-toggle[aria-pressed="false"] .bar { opacity: .45; }
.ambient-toggle.is-playing .bar { animation: eq .9s ease-in-out infinite alternate; }
.ambient-toggle.is-playing .bar:nth-child(2) { animation-duration: 1.2s; animation-delay: -.5s; }
.ambient-toggle.is-playing .bar:nth-child(3) { animation-duration: .8s; animation-delay: -.2s; }
.ambient-toggle.is-playing .bar:nth-child(4) { animation-duration: 1.05s; animation-delay: -.7s; }
.ambient-toggle:hover .bar { opacity: .6; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.lang-btn {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  text-transform: lowercase; display: flex; gap: 4px; align-items: center;
}
.lang-btn::after { content: "▾"; font-size: .7em; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  list-style: none; min-width: 120px; padding: 6px;
  background: var(--ink); color: var(--bg); border-radius: 10px;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
}
.lang.open .lang-menu { opacity: 1; pointer-events: auto; transform: none; }
.lang-menu button {
  display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px;
  font: inherit; color: inherit; text-align: left; text-transform: lowercase;
  background: none; cursor: pointer;
}
.lang-menu button:hover,
.lang-menu button[aria-current="true"] { background: rgba(255, 255, 255, .12); }

.nav-reel, .menu-btn, .intro-reel { display: none; }

/* ---------- phone: hamburger menu, no background sound, showreel only as popup ---------- */
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .ambient-toggle, .reel { display: none; }
  .header-tools { margin-right: 52px; }

  .menu-btn {
    position: fixed; top: 12px; right: var(--gutter); z-index: 31;
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 10px rgba(0, 0, 0, .14); cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .3s, opacity .2s; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 30;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
    padding: 0 var(--gutter); background: var(--bg);
    font-size: clamp(34px, 11vw, 48px); font-weight: 500; letter-spacing: -.025em;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav > * { transform: translateY(14px); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
  .menu-open .nav > * { transform: none; }
  .menu-open .nav > :nth-child(2) { transition-delay: .04s; }
  .menu-open .nav > :nth-child(3) { transition-delay: .08s; }
  .menu-open .nav > :nth-child(4) { transition-delay: .12s; }
  .menu-open .nav > :nth-child(5) { transition-delay: .16s; }
  .nav-reel {
    display: inline-flex; align-items: center; gap: .35em; margin-top: .4em; padding: 0;
    font: inherit; font-size: .62em; color: var(--ink); text-transform: lowercase; background: none; border: 0; cursor: pointer;
  }
  .nav-reel::before { content: ""; border-left: .62em solid currentColor; border-block: .38em solid transparent; }
}

/* ---------- hero ---------- */
/* the section is taller than the screen: the info row scrolls away, the headline stays where it is
   (sticky at its own starting spot, set from main.js) until the intro block pushes it up */
.hero { position: relative; height: 150vh; overflow: clip; }
.hero-stage { position: relative; z-index: 1; height: 100%; padding: clamp(96px, 11vw, 140px) var(--gutter) 0; }

/* a soft, warm light like a low sun, drifting very slowly behind the headline (transform/opacity only, so it stays smooth) */
.hero-sun {
  position: absolute; top: -26vmax; right: -18vmax; width: 78vmax; height: 78vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 160, .7) 0%, rgba(255, 230, 188, .42) 22%, rgba(255, 240, 214, .18) 44%, rgba(244, 244, 244, 0) 68%);
  pointer-events: none; will-change: transform;
  animation: sun-drift 34s ease-in-out infinite alternate;
}
.hero-sun::after {
  content: ""; position: absolute; inset: 30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 225, .9) 0%, rgba(255, 235, 200, 0) 70%);
  animation: sun-breathe 9s ease-in-out infinite alternate;
}
@keyframes sun-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-16vw, 9vh, 0) scale(1.1); }
  100% { transform: translate3d(-6vw, -3vh, 0) scale(.94); }
}
@keyframes sun-breathe { from { opacity: .55; } to { opacity: 1; } }

/* depth: the light falls off into the warm intro colour below (like sky into ground),
   and a barely visible film grain takes the flatness off the grey */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--intro-rgb), 0) 52%, rgba(var(--intro-rgb), .22) 72%, rgba(var(--intro-rgb), .7) 90%, var(--intro) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* every letter casts a soft shadow away from the sun; it drifts in step with the sun */
.hero-title .letter { position: relative; }
.hero-title .letter::before {
  content: attr(data-ch); position: absolute; left: 0; top: 0; z-index: -1;
  color: #6b5a45; opacity: .3; filter: blur(.03em);
  transform: translate3d(-.07em, .06em, 0);
  animation: shadow-drift 34s ease-in-out var(--sync, 0s) infinite alternate;
  will-change: transform;
}
@keyframes shadow-drift {
  0% { transform: translate3d(-.07em, .06em, 0); }
  50% { transform: translate3d(-.025em, .035em, 0); }
  100% { transform: translate3d(-.05em, .07em, 0); }
}
.label, .section-label {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero-scroll {
  position: absolute; left: var(--gutter); top: calc(100svh - 56px);
  display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted);
}
.hero-scroll::before { content: ""; width: 48px; height: 1px; background: currentColor; transform-origin: left; animation: scroll-line 2.4s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes scroll-line { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 50.1% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

.hero-title {
  --p: 0; --k: calc(1 - var(--p)); --cx: 0; --cy: 0;
  position: sticky; top: var(--stick, 50vh);
  margin-top: clamp(140px, 30vh, 300px);
  font-weight: 600;
  font-size: calc(clamp(54px, 13.5vw, 220px) * var(--fit, 1));
  line-height: .88;
  letter-spacing: -.055em;
  perspective: 80vw;
  perspective-origin: 50% 50%;
  pointer-events: none;
}
.hero-title .line { display: block; white-space: nowrap; transform-style: preserve-3d; }
.hero-title .word { display: inline-block; white-space: nowrap; transform-style: preserve-3d; }
.hero-title.assemble .letter { transform: none; transition: transform 1.3s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 30ms); }
.hero-title.settled .letter { transform: none; will-change: auto; }
.letter {
  display: inline-block;
  will-change: transform;
  transform:
    translate3d(
      calc((var(--x) + var(--cx) * var(--d) * 2vw) * var(--k)),
      calc((var(--y) + var(--cy) * var(--d) * 20%) * var(--k)),
      calc(var(--z) * var(--k)))
    rotate(calc(var(--rz) * var(--k)));
}

/* ---------- intro + showreel ---------- */
/* coloured block like elena's photo: white text on top, the showreel fills the bottom */
.intro { background: var(--intro); color: #fff; padding: var(--section) var(--gutter) 0; }
/* the name stands out in dark, like elena's */
.intro b { color: var(--intro-name); font-weight: inherit; }
.intro .reel { margin: clamp(56px, 8vw, 110px) calc(var(--gutter) * -1) 0; width: auto; }
.big { font-size: var(--fs-big); font-weight: 500; line-height: 1.04; letter-spacing: -.03em; max-width: min(100%, 17em); }
.reveal .w { opacity: .16; }

.reel { position: relative; z-index: 6; width: 100%; aspect-ratio: 16 / 9; max-height: 100svh; background: var(--panel); overflow: hidden; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel.is-playing video { cursor: pointer; }
.reel-play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  border: 0; padding: 0; background: rgba(34, 40, 43, .18); cursor: pointer; transition: background .3s;
  font: 500 clamp(14px, 1.2vw, 17px)/1 "Hanken Grotesk", system-ui, sans-serif; color: #fff; text-transform: lowercase;
}
.reel-play::before {
  content: ""; width: clamp(72px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: #22282b center / 30% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M1 1 L9 6 L1 11 Z' fill='%23f4f4f4'/%3E%3C/svg%3E");
  background-position: 56% 50%; transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.reel-play span { padding: .55em 1em; border-radius: 999px; background: #22282b; }
.reel-play:hover { background: rgba(34, 40, 43, .08); }
.reel-play:hover::before { transform: scale(1.08); }
.reel.is-playing .reel-play { display: none; }
.reel:not(.is-playing) .reel-audio { display: none; }
.reel-audio { position: absolute; right: var(--gutter); bottom: var(--gutter); display: flex; align-items: center; gap: 8px; }
.reel-audio .vol { width: 110px; height: 32px; padding: 0 14px; box-sizing: content-box; border-radius: 999px; background-color: rgba(34, 40, 43, .88); }
.reel-sound {
  padding: 9px 16px; border: 0; border-radius: 999px;
  font: 500 14px/1 "Hanken Grotesk", system-ui, sans-serif; text-transform: lowercase;
  color: #fff; background: rgba(34, 40, 43, .88);
  cursor: pointer; transition: background .2s;
}
.reel-sound:hover { background: #22282b; }
.reel-sound::before { content: "♪ "; }

/* ---------- editorial sections: small sticky label on the left, content on the right ---------- */
.section {
  display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: var(--gutter);
  padding: var(--section) var(--gutter); border-top: 1px solid var(--line);
}
.section-label { position: sticky; top: 32px; align-self: start; display: flex; gap: 14px; padding-top: .55em; }
.section-label .idx { color: var(--ink); }
.section-title { font-size: var(--fs-big); font-weight: 500; letter-spacing: -.03em; line-height: 1.04; max-width: 16em; margin-bottom: clamp(32px, 5vw, 64px); }

/* über mich: first paragraph as a large lead, the rest in two calm columns */
.story-text { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em var(--gutter); }
.story-text p:first-child { grid-column: 1 / -1; font-size: var(--fs-big); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; max-width: 18em; margin-bottom: .6em; }
.story-text p:not(:first-child) { color: var(--muted); max-width: 30em; }

/* leistungen: numbered rows that open on click */
.services { list-style: none; border-top: 1px solid var(--ink); }
.service { border-bottom: 1px solid var(--line); }
.service-head {
  display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 12px; width: 100%;
  padding: clamp(16px, 2vw, 26px) 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  font: 500 clamp(26px, 3.4vw, 52px)/1.05 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: -.03em; text-transform: lowercase;
}
.service-num { font-size: 13px; letter-spacing: .1em; color: var(--muted); align-self: start; padding-top: .6em; }
.service-name { transition: transform .5s cubic-bezier(.2, .8, .2, 1), color .3s; }
.service-head:hover .service-name, .service.open .service-name { transform: translateX(14px); }
.service-plus { position: relative; width: 18px; height: 18px; justify-self: end; }
.service-plus::before, .service-plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.service-plus::after { transform: rotate(90deg); }
.service.open .service-plus::after { transform: rotate(0); }
.service-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, .8, .2, 1); }
.service-body > div { overflow: hidden; }
.service-body p { padding: 0 0 clamp(18px, 2vw, 28px) 68px; max-width: 36em; color: var(--muted); }
.service.open .service-body { grid-template-rows: 1fr; }
.services:hover .service:not(:hover) .service-name { color: rgba(var(--ink-rgb), .35); }

.process { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: clamp(40px, 6vw, 80px); color: var(--muted); }
.process b { display: block; color: var(--ink); font-weight: 600; margin-bottom: .3em; }

/* ausgewählte arbeiten */
.work { grid-template-rows: auto auto; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.work-item { display: grid; gap: 12px; }
.work-media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--panel); }
.work-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.work-item:hover .work-media video { transform: scale(1.04); }
.work-item.wide { grid-column: 1 / -1; }
.work-item.wide .work-media { aspect-ratio: 16 / 9; }
video.soft-loop { transition: opacity .45s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
video.soft-loop.loop-fade { opacity: 0; }
.work-cap { font-size: .85em; color: var(--muted); }
.work-cap b { color: var(--ink); font-weight: 600; margin-right: .4em; }
.work-all { grid-column: 2; justify-self: start; }
.work-grid, .work .work-all { grid-column: 2; }

/* underline that draws in on hover */
.text-link { position: relative; display: inline-flex; align-items: center; gap: .4em; font-weight: 500; }
.text-link::after { content: "→"; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.text-link::before { content: ""; position: absolute; left: 0; right: 1.2em; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.text-link:hover::before { transform: scaleX(1); transform-origin: left; }
.text-link:hover::after { transform: translateX(4px); }

/* volume slider (on top of videos, so always light on dark): a thin line that fills up to the level */
.vol { -webkit-appearance: none; appearance: none; margin: 0; cursor: pointer; --v: 50%; }
.vol::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #fff var(--v), rgba(255, 255, 255, .3) var(--v)); }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border: 0; border-radius: 50%; background: #fff; }
.vol::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.vol::-moz-range-progress { height: 3px; border-radius: 2px; background: #fff; }
.vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.vol:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- contact ---------- */
.contact .big { max-width: 20em; }
.mail-link {
  position: relative; display: inline-block; margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(30px, 5.4vw, 88px); font-weight: 500; letter-spacing: -.04em; line-height: 1; text-transform: none;
}
.mail-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 2px; background: currentColor; transform: scaleX(.18); transform-origin: left; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.mail-link:hover::after { transform: scaleX(1); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: clamp(56px, 8vw, 110px); }
.contact-details { display: grid; align-content: start; gap: .3em; }
.why-btn {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: .6em;
  padding: .5em 1.05em; border: 1px solid var(--ink); border-radius: 999px;
  font: inherit; color: var(--ink); text-transform: lowercase; background: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.why-btn::before { content: ""; border-left: .55em solid currentColor; border-block: .33em solid transparent; }
.why-btn:hover, .why-btn:focus-visible { background: var(--ink); color: var(--bg); }
/* contact form */
.contact-form { display: grid; gap: 18px; max-width: 28em; }
.contact-form h3 { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-form .hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 4px; font-size: .8em; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 6px 0 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font: 400 var(--fs)/1.3 "Hanken Grotesk", system-ui, sans-serif; color: var(--ink); text-transform: none;
  background: transparent; outline: none; resize: vertical; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
/* no browser look: iOS adds rounded boxes and shadows, Chrome autofill paints the field blue/yellow */
.field input, .field textarea, .send-btn { -webkit-appearance: none; appearance: none; box-shadow: none; }
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 9999s;
}
.form-note { font-size: .72em; color: var(--muted); }
.form-note a { border-bottom: 1px solid var(--line); }
.send-btn {
  justify-self: start; padding: .6em 1.5em; border: 1px solid var(--ink); border-radius: 999px;
  font: inherit; text-transform: lowercase; color: var(--bg); background: var(--ink); cursor: pointer; transition: opacity .2s;
}
.send-btn:hover { opacity: .85; }
.send-btn:disabled { opacity: .5; cursor: wait; }
.form-status { font-weight: 500; min-height: 1.3em; }
.contact-form.is-sent .field, .contact-form.is-sent .form-note, .contact-form.is-sent .send-btn { display: none; }

.signature { width: min(100%, 300px); height: auto; margin-top: clamp(40px, 6vw, 72px); opacity: .85; }
.signature.fade { transition-duration: 1.6s; }
.signature.fade.is-in { opacity: .85; }

/* ---------- footer: big wordmark ---------- */
.footer { padding: clamp(60px, 10vw, 140px) var(--gutter) 24px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-mark { font-size: clamp(96px, 34vw, 560px); font-weight: 600; letter-spacing: -.06em; line-height: .8; white-space: nowrap; margin-left: -.04em; }
.footer-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: clamp(24px, 4vw, 48px); font-size: 12px; color: var(--muted); }
.footer-row p:last-child { text-align: right; }

/* ---------- custom cursor (mouse only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor span {
  display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  transition: width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1), margin .35s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.cursor { mix-blend-mode: difference; }
.cursor.big span { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.cursor.gone span { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor video, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.has-cursor input[type="range"] { cursor: none; }

/* ---------- little "m" birds crossing the page ---------- */
.sky { position: fixed; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.sky-bird { position: absolute; left: 0; top: 0; color: var(--ink); will-change: transform; }
.sky-bird svg { display: block; width: 100%; height: auto; overflow: visible; }
.sky-bird path { fill: none; stroke: currentColor; stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- scroll-in ---------- */
.fade { opacity: 0; transform: translateY(30px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.fade.is-in { opacity: 1; transform: none; }
.rise { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.rise.is-in { opacity: 1; transform: none; }
.work-item.rise:nth-child(2) { transition-delay: .08s; }
.work-item.rise:nth-child(3) { transition-delay: .16s; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero { height: 130vh; height: 130svh; }
  .hero-stage { padding-top: 92px; }
  .hero-sun { top: -30vmax; right: -40vmax; width: 100vmax; height: 100vmax; }
  .hero-title .letter::before { animation: none; will-change: auto; }
  .hero-title { font-size: calc(clamp(52px, 17vw, 120px) * var(--fit, 1)); margin-top: 22vh; }

  .intro { padding-top: 72px; padding-bottom: 80px; }
  .intro-reel {
    display: inline-flex; align-items: center; gap: .55em; margin-top: 36px;
    padding: .7em 1.3em; border: 1px solid #fff; border-radius: 999px;
    font: 500 16px/1 "Hanken Grotesk", system-ui, sans-serif; text-transform: lowercase;
    color: #fff; background: none; cursor: pointer;
  }
  .intro-reel::before { content: ""; border-left: .62em solid currentColor; border-block: .38em solid transparent; }

  .section { grid-template-columns: 1fr; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
  .section-label { position: static; }
  .story-text { grid-template-columns: 1fr; }
  .service-head { grid-template-columns: 34px 1fr 20px; font-size: 26px; }
  .service-body p { padding-left: 46px; }
  .process { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid, .work .work-all { grid-column: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-row p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .letter { transform: none; }
  .reveal .w { opacity: 1; }
  .fade, .rise { opacity: 1; transform: none; }
}

/* ---------- legal pages (impressum, datenschutz) ---------- */
.legal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter); font-size: 15px; font-weight: 500;
}
.legal-lang { display: flex; gap: 10px; }
.legal-lang button {
  font: inherit; color: var(--muted); background: none; border: 0; padding: 2px 4px; cursor: pointer; text-transform: lowercase;
}
.legal-lang button[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal {
  max-width: 40em; margin: 0 auto; padding: clamp(40px, 8vw, 100px) var(--gutter) clamp(60px, 10vw, 140px);
  text-transform: none; font-size: clamp(16px, .85rem + .3vw, 19px); line-height: 1.5;
}
.legal h1 { font-size: var(--fs-big); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; text-transform: lowercase; margin-bottom: .8em; }
.legal h2 { font-size: 1em; font-weight: 700; margin: 2.2em 0 .5em; }
.legal p + p { margin-top: .8em; }
.legal a { border-bottom: 1px solid var(--line); }
.legal a:hover { border-color: var(--ink); }
.legal-lead { font-size: 1.15em; color: var(--ink); }
.legal-date { margin-top: 3em; color: var(--muted); font-size: .9em; }
.legal-back { margin-top: 2em; }
.todo { background: #ffe9a8; color: #22282b; padding: 0 .2em; border-radius: 3px; }

/* ---------- referenzen ---------- */
.refs { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(60px, 10vw, 120px); }
.refs h1 { font-size: var(--fs-big); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; }
.refs-lead { color: var(--muted); margin: .6em 0 clamp(32px, 5vw, 64px); max-width: 34em; font-size: .9em; }
.refs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px); }
.ref { margin: 0; }
.ref.wide { grid-column: 1 / -1; }
.ref video { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--panel); }
.ref-media { position: relative; }
.ref-media video { cursor: pointer; }
/* sound pill: speaker with a line through it while muted, with waves once loud */
.ref-audio { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; }
/* the slider shows on hover, and stays while the sound is on */
.ref-audio .vol {
  width: 80px; height: 30px; padding: 0 12px; box-sizing: content-box; border-radius: 999px; background-color: rgba(34, 40, 43, .72);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.ref-media:hover .vol, .ref-media.loud .vol, .ref-audio .vol:focus-visible { opacity: 1; pointer-events: auto; }
.ref-sound {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px;
  border: 0; border-radius: 999px; background: rgba(34, 40, 43, .72); color: #fff; cursor: pointer;
  font: 500 13px/1 "Hanken Grotesk", system-ui, sans-serif; text-transform: lowercase;
  transition: background .2s, opacity .3s;
}
.ref-sound::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='black'/%3E%3Cpath d='M17 9l5 6M22 9l-5 6'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='black'/%3E%3Cpath d='M17 9l5 6M22 9l-5 6'/%3E%3C/svg%3E");
}
.ref-media.loud .ref-sound { background: #22282b; }
.ref-media.loud .ref-sound::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='black'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='black'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
}
.ref-sound:hover { background: rgba(34, 40, 43, .9); }
.ref figcaption { margin-top: 12px; font-size: .9em; color: var(--muted); }
.ref figcaption b { color: var(--ink); font-weight: 700; margin-right: .4em; }
.ref-cta {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  grid-column: 1 / -1; min-height: clamp(200px, 24vw, 340px);
  padding: clamp(24px, 4vw, 48px); border-radius: 4px; background: var(--sand);
  font-size: var(--fs-big); font-weight: 500; letter-spacing: -.025em; line-height: 1.05;
}
.ref-cta-link { font-size: .45em; font-weight: 500; letter-spacing: -.01em; transition: transform .3s; }
.ref-cta:hover .ref-cta-link { transform: translateX(6px); }
.refs .legal-back { margin-top: clamp(40px, 6vw, 80px); }
.refs .legal-back a { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .refs-grid { grid-template-columns: 1fr; }
  .ref-cta { aspect-ratio: auto; min-height: 220px; }
}
