/* ============================================================
   Dennis Mätzig — Kameramann / DoP & Filmemacher
   Fixed dark cinematic theme by deliberate brand choice: a
   colour-grading suite is always a dark room, and every DoP
   portfolio in this space leans into that instead of fighting it.
   Orange/teal is the classic film colour-grade duo, used here as a
   two-colour hierarchy: orange marks anything actionable (buttons,
   links, active/hover states), teal marks structure (section labels,
   timeline, category tags for documentary/corporate work). Never
   mixed within the same element.
   ============================================================ */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/bricolage-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/spacemono-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/spacemono-bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/spacemono-italic.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  /* -- surfaces -- */
  --bg: #0b0c0d;
  --bg-elevated: #131417;
  --bg-soft: #18191c;
  --line: rgba(243, 241, 236, 0.1);
  --line-strong: rgba(243, 241, 236, 0.2);

  /* -- ink -- */
  --fg: #f3f1ec;
  --fg-muted: #a6a29a;
  --fg-dim: #67645d;

  /* -- the one accent -- */
  --accent: #ff5a2b;
  --accent-ink: #1a0800;
  --accent-soft: rgba(255, 90, 43, 0.14);
  --accent-line: rgba(255, 90, 43, 0.4);

  /* -- structural accent (labels, timeline, doc/corporate tags) -- */
  --teal: #17948a;
  --teal-line: rgba(23, 148, 138, 0.4);
  --teal-soft: rgba(23, 148, 138, 0.14);

  /* -- type -- */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SF Mono', monospace;

  /* -- shape system: pills for interactive controls, sharp everywhere else -- */
  --radius-sharp: 2px;
  --radius-pill: 999px;

  /* -- rhythm (VISUAL_DENSITY: 3 / art-gallery air) -- */
  --section-pad: clamp(5.5rem, 11vw, 8.5rem);
  --container-w: 1400px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 380;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* cross-fade between pages (see js/page-transitions.js) — scoped to a
   class rather than the bare element so a page that forgets to load the
   script never gets stuck invisible */
body.page-fade {
  opacity: 0;
  transition: opacity 0.32s var(--ease-out);
}

body.page-fade.is-visible {
  opacity: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

/* thin orange-to-teal grade line marking the jump into the next section */
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line) 35%, var(--teal-line) 65%, transparent);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section-head p {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--fg-muted);
  line-height: 1.6;
  /* no extra max-width here: .section-head (46rem) already bounds this —
     a tighter 38rem used to force an early wrap that split "Musik-Video."
     awkwardly across two lines */
}

/* film-grain, fixed + pointer-events-none per perf guardrail: never on a scrolling container */
.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons / pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s, color 0.3s;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.btn:disabled:active {
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: #ff7548;
  border-color: #ff7548;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pill-toggle {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.pill-toggle:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}

.pill-toggle[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(11, 12, 13, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--fg-muted);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.4s var(--ease-out);
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a:hover::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.icon-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--fg-muted);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.icon-link:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}

.nav-burger span {
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.nav-burger.is-open span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-burger.is-open span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}

.nav-mobile.is-open {
  transform: translateY(0);
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-mobile .icon-link {
  border-color: var(--line-strong);
}

.nav-mobile-foot {
  display: flex;
  gap: 0.9rem;
  margin-top: 3rem;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* color-grades the footage underneath (or stands alone as a plain
     gradient when the video is hidden, e.g. narrow viewports) */
  background: radial-gradient(60% 55% at 18% 20%, rgba(255, 90, 43, 0.26), transparent 60%),
    radial-gradient(55% 50% at 85% 78%, rgba(23, 148, 138, 0.22), transparent 60%),
    rgba(11, 12, 13, 0.22);
  animation: field-drift 22s ease-in-out infinite alternate;
}

@keyframes field-drift {
  from {
    background-position: 0% 0%, 0% 0%;
  }
  to {
    background-position: 6% 8%, -6% -8%;
  }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 90% at 50% 100%, rgba(0, 0, 0, 0) 40%, var(--bg) 100%),
    linear-gradient(90deg, rgba(3, 3, 4, 0.55) 0%, rgba(3, 3, 4, 0.15) 42%, transparent 62%);
}

.hero-iris {
  position: absolute;
  right: clamp(-4rem, 4vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 34vw, 520px);
  height: clamp(260px, 34vw, 520px);
  z-index: 0;
  opacity: 0.55;
}

.hero-iris-track {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.hero-iris svg {
  width: 100%;
  height: 100%;
  animation: iris-spin 60s linear infinite;
  transform-origin: 100px 100px;
}

@keyframes iris-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-iris .ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 0.6;
}

.hero-iris .ring-accent {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 0.9;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-iris .tick {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-name {
  font-size: clamp(3.4rem, 10.5vw, 8.4rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.hero-role {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--accent);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.hero-name .char {
  display: inline-block;
  will-change: transform;
}

/* ---------- clients strip ---------- */

.clients {
  padding-block: clamp(1.6rem, 3vw, 2.2rem);
  background-image:
    linear-gradient(90deg, transparent, var(--accent-line) 35%, var(--teal-line) 65%, transparent),
    linear-gradient(90deg, transparent, var(--accent-line) 35%, var(--teal-line) 65%, transparent);
  background-repeat: no-repeat;
  background-position: top, bottom;
  background-size: 100% 1px, 100% 1px;
}

.clients .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.clients-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
  flex-shrink: 0;
}

/* the row itself is exactly as wide as its (doubled) content — the mask
   fades the hard clip edges, overflow:hidden + nowrap is what keeps this
   to a single line instead of the old wrapped grid */
.clients-marquee {
  flex: 1 1 280px;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.clients-row {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  width: max-content;
  animation: clients-marquee 34s linear infinite;
}

.clients-marquee:hover .clients-row {
  animation-play-state: paused;
}

@keyframes clients-marquee {
  to {
    transform: translateX(-50%);
  }
}

.clients-row img {
  height: clamp(26px, 3.6vw, 34px);
  width: auto;
  flex-shrink: 0;
  opacity: 0.9;
  filter: grayscale(1);
  transition: opacity 0.3s var(--ease-out);
}

.clients-row img:hover {
  opacity: 1;
}

/* ---------- portfolio ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.work-card {
  position: relative;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}

.work-card--clickable {
  cursor: pointer;
}

.work-card--clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.work-card--feature {
  grid-column: span 4;
  aspect-ratio: 21 / 9;
}

.work-card--hidden {
  display: none;
}

.work-card-field {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-out);
}

.work-card:hover .work-card-field {
  transform: scale(1.045);
}

.work-card:hover {
  border-color: var(--line-strong);
}

/* per-category duotone treatments, all built from the same two hues */
.work-card[data-cat='dokumentation'] .work-card-field {
  background: linear-gradient(155deg, #0d1f1d 0%, #123330 45%, #0b0c0d 100%);
}

.work-card[data-cat='werbung'] .work-card-field {
  background: linear-gradient(155deg, #2a1108 0%, #401708 45%, #0b0c0d 100%);
}

.work-card[data-cat='musik-video'] .work-card-field {
  background: linear-gradient(140deg, #3a1206 0%, #123330 60%, #0b0c0d 100%);
}

.work-card[data-cat='corporate'] .work-card-field {
  background: linear-gradient(155deg, #17191c 0%, #202226 50%, #0b0c0d 100%);
}

.work-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-noise {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.work-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 3, 4, 0.85) 0%, rgba(3, 3, 4, 0.4) 38%, transparent 68%);
  pointer-events: none;
}

.work-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1rem, 2vw, 1.6rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.work-card-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  margin-bottom: 0.6rem;
}

/* category colour-coding: documentary/corporate read as teal (editorial),
   werbung/musik-video stay on the default orange (commercial energy) */
.work-card[data-cat='dokumentation'] .work-card-tag,
.work-card[data-cat='corporate'] .work-card-tag {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: var(--teal-line);
}

.work-card-title {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.work-card-client {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.work-card-view {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 34px;
  padding: 0 0.9rem 0 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(11, 12, 13, 0.55);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--fg);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.work-card-view svg {
  flex-shrink: 0;
}

.work-card:hover .work-card-view {
  opacity: 1;
  transform: translate(0, 0);
  border-color: var(--accent-line);
}

/* ---------- about ---------- */

.about-intro-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about-intro {
  max-width: 40rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.6;
  color: var(--fg);
  padding-top: 0.4rem;
}

.about-photo-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 2vw, 1.2rem);
}

.about-photo-frame {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 0 60px -20px var(--accent-soft), 0 0 60px -30px var(--teal-soft);
}

.about-photo-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.about-photo {
  display: block;
  width: 100%;
  object-fit: cover;
}

/* landscape action shot (over-the-shoulder camera monitor) */
.about-photo-frame--work .about-photo {
  aspect-ratio: 3 / 2;
}

/* near-square portrait crop */
.about-photo-frame--portrait .about-photo {
  aspect-ratio: 10 / 9;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 6vw, 5rem);
}

.about-block-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.timeline {
  position: relative;
  padding-left: 1.6rem;
  border-left: 1px solid var(--teal-line);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.9rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.68rem;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal);
}

.timeline-role {
  margin-top: 0.3rem;
  font-size: 1.02rem;
  color: var(--fg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.service-card {
  border: 1px solid var(--line);
  background: var(--teal-soft);
  padding: 1.1rem 1.2rem;
  transition: border-color 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}

.service-card:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal);
}

.service-name {
  margin-top: 0.4rem;
  font-size: 0.98rem;
  font-weight: 550;
}

.awards-list {
  display: flex;
  flex-direction: column;
}

.awards-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.awards-list li:first-child {
  padding-top: 0;
}

.awards-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.award-name {
  font-size: 1rem;
  font-weight: 560;
}

.award-for {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.award-meta {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 6vw, 5rem);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.contact-info-item {
  display: block;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.contact-info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-bottom: 0.35rem;
}

.contact-info-value {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 560;
  transition: color 0.3s var(--ease-out);
}

.contact-info-item:hover .contact-info-value {
  color: var(--accent);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.field input,
.field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius-sharp);
  transition: border-color 0.3s var(--ease-out);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-dim);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-error {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--accent);
}

/* honeypot: off-screen, not display:none — some spam bots skip fields
   hidden that way but still fill ones just moved out of the viewport */
.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */

.footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background-image: linear-gradient(90deg, transparent, var(--accent-line) 35%, var(--teal-line) 65%, transparent);
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100% 1px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  transition: color 0.3s var(--ease-out);
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-dim);
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

/* ---------- reveal utility (GSAP-driven, CSS sets the resting state) ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

/* pages without GSAP (projekt.php) toggle this class via IntersectionObserver
   instead; on pages that do have GSAP it's inert dead weight, since GSAP's
   inline styles always win over a class rule */
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* ---------- project detail page ---------- */

.pd-hero {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.pd-back {
  display: inline-block;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  transition: color 0.3s var(--ease-out);
}

.pd-back:hover {
  color: var(--accent);
}

.pd-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.pd-tag[data-cat='dokumentation'],
.pd-tag[data-cat='corporate'] {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: var(--teal-line);
}

.pd-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.05;
  /* no max-width: the outer .container (1400px) already bounds this —
     30ch used to cap it further, wrapping real titles like "Das
     Millionengeschäft des Vogelschmugglers" (42 chars) a line early */
}

.pd-meta {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  color: var(--fg-muted);
}

.pd-description {
  margin-top: 1.6rem;
  /* 46rem, not 42rem: the tighter cap left only ~30px of slack for lines
     like "Rolle: ... Reenactment-Szenen" — enough to fit in some browsers
     but not others, so minor font-rendering differences alone could push
     it onto a second line and split the compound word at its hyphen */
  max-width: 46rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--fg);
}

.pd-media {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.pd-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
}

.pd-video iframe,
.pd-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pd-video-facade {
  cursor: pointer;
}

.pd-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: filter 0.3s var(--ease-out);
}

.pd-video-facade:hover .pd-video-thumb {
  filter: brightness(0.5);
}

.pd-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.pd-video-play svg {
  transform: translateX(2px);
}

.pd-video-facade:hover .pd-video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ff7548;
}

.pd-video-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--fg-dim);
}

.pd-video-note a {
  color: var(--fg-muted);
  text-decoration: underline;
}

.pd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.5rem, 1.2vw, 0.9rem);
}

.pd-gallery a {
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: zoom-in;
}

.pd-gallery img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.pd-gallery a:hover img {
  transform: scale(1.04);
}

/* ---------- gallery lightbox (image-by-image viewer) ---------- */

.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-lightbox[hidden] {
  display: none;
}

.pd-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.94);
  backdrop-filter: blur(6px);
}

.pd-lightbox-stage {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1400px);
  max-height: 84vh;
}

.pd-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
}

.pd-lightbox-close,
.pd-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--fg);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.pd-lightbox-close:hover,
.pd-lightbox-nav:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.pd-lightbox-close {
  top: clamp(0.8rem, 3vw, 1.6rem);
  right: clamp(0.8rem, 3vw, 1.6rem);
}

.pd-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.pd-lightbox-prev {
  left: clamp(0.5rem, 2.5vw, 1.6rem);
}

.pd-lightbox-next {
  right: clamp(0.5rem, 2.5vw, 1.6rem);
}

.pd-lightbox-counter {
  position: absolute;
  bottom: clamp(0.8rem, 3vw, 1.6rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .pd-lightbox-nav {
    width: 38px;
    height: 38px;
  }
}

.pd-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 1.1rem 2.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.pd-cta-btn:hover {
  background: #ff7548;
  transform: translateY(-2px);
}

@media (max-width: 620px) {
  .pd-gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- legal stub pages ---------- */

.legal-page {
  min-height: 100dvh;
  padding: clamp(6rem, 10vw, 9rem) 0 4rem;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 640;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  color: var(--fg);
}

.legal-page p,
.legal-page li {
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 40rem;
}

.legal-page .placeholder {
  color: var(--accent);
}

.legal-page a.back {
  display: inline-block;
  margin-bottom: 3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .about-grid,
  .contact-grid,
  .about-intro-row {
    grid-template-columns: 1fr;
  }

  .about-photo-frame {
    max-width: 22rem;
  }

  .hero-iris {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions .icon-link {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .work-card,
  .work-card--feature {
    grid-column: span 4;
    aspect-ratio: 16 / 10;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

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

  .work-card,
  .work-card--feature {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .contact-info-list {
    margin-top: 1.4rem;
  }

  .clients .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-field {
    animation: none;
  }

  .hero-video {
    display: none;
  }

  /* the marquee's overflow:hidden + doubled logo list only make sense as
     a scrolling loop — without motion, show every logo once, in full,
     wrapped like a normal grid instead of clipped to one line */
  .clients-marquee {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .clients-row {
    animation: none;
    width: auto;
    flex-wrap: wrap;
  }

  .clients-row img[aria-hidden='true'] {
    display: none;
  }
}
