/* ==========================================================================
   Portfolio — Raw Studio & Signal
   Design-Tokens und Komponenten aus der Base44-App (Tailwind) als reines CSS.
   ========================================================================== */

/* Schriften lokal eingebunden – keine Google-Requests. Quellen: Google Fonts (OFL). */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-black-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-tight-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-tight-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-tight-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-tight-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --background: #ebebeb;
  --foreground: #121212;
  --signal: #c41e3a;
  --signal-foreground: #ffffff;
  --muted: #5c5c5c;
  --line: rgba(18, 18, 18, 0.2);
  --line-soft: rgba(18, 18, 18, 0.15);
  --font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--foreground); color: var(--background); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.container { width: 100%; max-width: 1700px; margin-inline: auto; padding-inline: 12px; }
.meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6875rem;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (min-width: 768px) { .meta { font-size: 0.75rem; } }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.signal { color: var(--signal); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 640px) {
  .container { padding-inline: 24px; }
  .meta { font-size: 0.75rem; }
}

/* ---------- Header -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--background);
  border-bottom: 1px solid var(--foreground);
}
.header-inner {
  max-width: 1700px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
}
.brand { order: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 13px 12px; }
.brand-name { font-size: 1rem; line-height: 1; white-space: nowrap; }
@media (min-width: 640px) { .brand-name { font-size: 1.5rem; } }
.brand .meta { margin-top: 4px; }
.main-nav { order: 2; display: flex; width: 100%; align-items: stretch; border-top: 1px solid var(--line); }
.nav-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 6px;
  white-space: nowrap;
  border-right: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
}
.nav-link:last-child { border-right: 0; }
.nav-link:hover { background: var(--signal); color: var(--signal-foreground); }
.site-header .record-indicator { display: none; }

.record-indicator { display: flex; align-items: center; gap: 8px; }
.record-dot { position: relative; display: block; width: 8px; height: 8px; flex: none; background: var(--signal); }
.record-dot > span {
  position: absolute;
  inset: 0;
  background: var(--signal);
  animation: record-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes record-ping {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(2.6); opacity: 0; }
}
.record-clock { font-variant-numeric: tabular-nums; }

@media (min-width: 640px) {
  .header-inner { padding-inline: 24px; }
  .brand { padding: 13px 32px 13px 0; border-right: 1px solid var(--line); }
  .brand-name { font-size: 1.5rem; }
  .main-nav { width: auto; flex: 1; justify-content: flex-end; border-top: 0; }
  .nav-link { flex: none; padding-inline: 28px; }
}
@media (min-width: 1024px) {
  .site-header .record-indicator {
    display: flex;
    order: 4;
    flex: none;
    border-left: 1px solid var(--line);
    padding-inline: 24px;
  }
}
/* Querformat auf Telefonen: flacher Header, damit vom Viewport mehr übrig bleibt. */
@media (orientation: landscape) and (max-height: 520px) {
  .header-inner { flex-wrap: nowrap; align-items: center; }
  .brand { flex: none; padding-block: 8px; }
  .brand-name { font-size: 1.125rem; }
  .main-nav { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-link { min-height: 44px; padding-inline: 12px; }
  .site-header .record-indicator { display: none; }
}

/* ---------- Hero ---------------------------------------------------------- */

.hero { border-bottom: 1px solid var(--foreground); }
.hero-media { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--foreground); }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--foreground) 0%, rgba(18, 18, 18, 0.45) 45%, transparent 100%);
}
.hero-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: var(--background);
  font-size: clamp(2.75rem, 13vw, 12rem);
}
.hero-record {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 12px;
  background: rgba(18, 18, 18, 0.8);
  color: var(--background);
}
.hero-intro-wrap { padding-top: 32px; padding-bottom: 24px; }
.hero-intro {
  margin: 0;
  max-width: 1024px;
  font-size: clamp(1.25rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 24px;
}
.hero-meta p + p { margin-top: 8px; font-size: 0.875rem; }
.status-line { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; flex: none; background: var(--signal); }
@media (min-width: 640px) {
  .hero-media { aspect-ratio: 16 / 9; }
  .hero-title { left: 24px; right: 24px; bottom: 24px; }
  .hero-record { top: 24px; right: 24px; }
  .hero-intro-wrap { padding-top: 48px; }
  .hero-meta { padding-top: 24px; padding-bottom: 24px; }
  .featured-synopsis { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .hero-media { aspect-ratio: 21 / 9; }
  .hero-title { left: 24px; right: 24px; bottom: 24px; }
  .hero-record { top: 24px; right: 24px; display: none; }
  .hero-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-meta > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
  .hero-meta p + p { font-size: 1rem; }
}

/* ---------- Section label ------------------------------------------------- */

.section-label {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  border-bottom: 1px solid var(--foreground);
  padding: 16px 0 12px;
}
.section-label-main { display: flex; align-items: baseline; gap: 16px; }
.section-link { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.section-link:hover { color: var(--signal); text-decoration-color: var(--signal); }

/* ---------- Latest work / grids ------------------------------------------ */

.section-latest { padding-top: 56px; }
@media (min-width: 640px) { .section-latest { padding-top: 80px; } }
.featured { display: grid; gap: 32px; border-bottom: 1px solid var(--line); padding: 32px 0; }
.media-frame { position: relative; width: 100%; overflow: hidden; background: rgba(18, 18, 18, 0.1); }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-3x4 { aspect-ratio: 3 / 4; }
.media-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured .media-cover { transition: transform 0.5s; }
.featured:hover .media-cover { transform: scale(1.02); }
.featured-media .video-stage--ambient { width: 100%; height: 100%; aspect-ratio: auto; }
.video-stage--ambient video { pointer-events: none; object-fit: cover; }
.featured-media .video-stage--ambient .video-content iframe,
.featured-media .video-stage--ambient .video-content video {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.featured-media .video-stage--ambient.is-video-visible .video-content iframe,
.featured-media .video-stage--ambient.is-video-visible .video-content video {
  opacity: 1;
}
.featured-media .video-stage--ambient .video-ambient-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.featured-media .video-stage--ambient.is-video-visible .video-ambient-poster {
  opacity: 0;
}
.featured-copy { min-width: 0; }
.featured-title { margin: 12px 0 0; max-width: 100%; font-size: clamp(2rem, 3.3vw, 3.5rem); overflow-wrap: break-word; hyphens: auto; text-wrap: balance; transition: color 0.2s; }
.featured:hover .featured-title { color: var(--signal); }
.featured-roles { margin-top: 16px; }
.featured-synopsis { margin: 20px 0 0; max-width: 65ch; line-height: 1.6; color: rgba(18, 18, 18, 0.8); font-size: 1rem; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.detail-list dd { margin-top: 4px; font-size: 0.875rem; }
.latest-grid { margin-top: 40px; }

.role-tags { display: flex; flex-wrap: wrap; gap: 6px 0; }
.role-tags li { border: 0; padding: 4px 0; color: rgba(18, 18, 18, 0.8); }
.role-tags li + li::before { content: "·"; margin: 0 11px; color: var(--muted); }

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.project-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px;
  background: var(--background);
  transition: background 0.2s;
}
.project-card:hover { background: #dbdbdb; }
.card-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; color: var(--muted); }
.card-hover-image { opacity: 0; transition: opacity 0.3s; }
.project-card:hover .card-hover-image { opacity: 1; }
.card-body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 16px; padding-top: 16px; }
.card-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); transition: color 0.2s; }
.project-card:hover .card-title { color: var(--signal); }
.card-roles { margin-top: 12px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }

@media (min-width: 640px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card { padding: 20px; }
}
@media (min-width: 1024px) {
  .featured { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
  .featured-media { grid-column: span 8; }
  .featured-copy { grid-column: span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
}
@media (min-width: 1280px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- About --------------------------------------------------------- */

.section-about { padding-top: 64px; }
@media (min-width: 640px) { .section-about { padding-top: 96px; } }
.about-grid { display: grid; gap: 40px; padding: 32px 0; }
.about-visual .meta { margin-top: 12px; }
.about-lead { margin: 0; font-size: clamp(1.375rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }
.about-body { display: grid; gap: 20px; margin-top: 32px; color: rgba(18, 18, 18, 0.8); font-size: 1rem; line-height: 1.65; }
.about-body p { margin-bottom: 0; }
.about-facts { display: grid; gap: 20px 32px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.about-facts dd { margin-top: 4px; font-size: 0.875rem; }
.collaborators { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.collaborators ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
@media (min-width: 640px) {
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .about-body { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; }
  .about-visual { grid-column: span 5; }
  .about-copy { grid-column: span 7; }
}

/* ---------- Contact ------------------------------------------------------- */

.contact-section { margin-top: 64px; border-top: 1px solid var(--foreground); background: var(--foreground); color: var(--background); }
@media (min-width: 640px) { .contact-section { margin-top: 96px; } }
.contact-grid { display: grid; gap: 48px; padding-block: 56px; }
.contact-heading { margin: 24px 0; font-size: clamp(2.5rem, 7vw, 6rem); }
.contact-intro { max-width: 65ch; color: rgba(235, 235, 235, 0.8); font-size: 1rem; line-height: 1.6; }
.contact-direct { margin-top: 40px; border-top: 1px solid rgba(235, 235, 235, 0.2); padding-top: 24px; }
.contact-label { color: rgba(235, 235, 235, 0.5); }
.contact-label-spaced { margin-top: 32px; }
.contact-mail { display: block; margin-top: 12px; font-size: 1.25rem; text-decoration: underline; text-decoration-color: rgba(235, 235, 235, 0.3); text-underline-offset: 4px; }
.contact-mail:hover { color: var(--signal); text-decoration-color: var(--signal); }
.contact-form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label { color: rgba(235, 235, 235, 0.6); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(235, 235, 235, 0.3);
  border-radius: 0;
  background: transparent;
  padding: 12px 16px;
  font-size: 1rem;
  outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--signal); }
.field input::placeholder, .field textarea::placeholder { color: rgba(235, 235, 235, 0.5); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 56px; background: var(--foreground); }
.select-chevron { position: absolute; right: 20px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: rgba(235, 235, 235, 0.7); pointer-events: none; }
.field-error { color: var(--signal); }
.field-error:empty { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { border: 1px solid var(--signal); padding: 12px 16px; color: var(--signal); }
.form-error[hidden] { display: none; }
.submit-button {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: var(--signal-foreground);
  padding: 0 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.submit-button:hover { background: var(--background); color: var(--foreground); }
.submit-button:disabled { opacity: 0.6; cursor: wait; }
.contact-success { border: 1px solid rgba(235, 235, 235, 0.3); padding: 24px; }
.contact-success p + p { margin: 16px 0 0; font-size: 1.125rem; }
.contact-again { display: inline-block; margin-top: 32px; text-decoration: underline; text-decoration-color: rgba(235, 235, 235, 0.3); text-underline-offset: 4px; }
@media (min-width: 640px) {
  .contact-grid { padding-block: 80px; }
  .contact-intro { font-size: 1.125rem; }
  .contact-success { padding: 32px; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
  .contact-form-wrap { padding-top: 56px; }
}

/* ---------- Footer -------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--foreground); background: var(--foreground); color: var(--background); }
.footer-claim { border-bottom: 1px solid rgba(235, 235, 235, 0.2); padding: 40px 0; font-size: clamp(0.875rem, 3.85vw, 4.5rem); white-space: nowrap; }
.footer-grid { display: grid; gap: 40px; padding: 24px 0 40px; }
.footer-label { color: rgba(235, 235, 235, 0.5); }
.footer-spaced { margin-top: 24px; }
.footer-mail { display: block; margin-top: 16px; font-size: 1.125rem; text-decoration: underline; text-decoration-color: rgba(235, 235, 235, 0.3); text-underline-offset: 4px; }
.footer-mail:hover { color: var(--signal); text-decoration-color: var(--signal); }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a:hover, .footer-link:hover { color: var(--signal); }
.footer-link { display: inline-block; margin-top: 16px; text-decoration: underline; text-decoration-color: rgba(235, 235, 235, 0.3); text-underline-offset: 4px; }
.lang-toggle { display: flex; width: fit-content; align-items: stretch; margin-top: 12px; }
.lang-toggle a { display: flex; min-height: 52px; align-items: center; padding: 0 8px; }
.lang-toggle a + a { border-left: 1px solid rgba(235, 235, 235, 0.2); }
.lang-toggle a.is-active { background: var(--background); color: var(--foreground); }
.footer-copy { margin-top: 8px; color: rgba(235, 235, 235, 0.7); }
@media (min-width: 640px) { .lang-toggle a { padding-inline: 16px; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Archive / filters -------------------------------------------- */

.archive-header { border-bottom: 1px solid var(--foreground); background: var(--foreground); color: var(--background); }
.archive-header-inner { padding-top: 40px; padding-bottom: 56px; }
.archive-topline { display: flex; justify-content: space-between; gap: 16px; color: rgba(235, 235, 235, 0.6); }
.archive-title { margin: 24px 0 0; font-size: clamp(2.5rem, 10vw, 8rem); }
.archive-intro { max-width: 768px; margin: 24px 0 0; color: rgba(235, 235, 235, 0.8); font-size: 1.125rem; line-height: 1.6; }
.filters { border-top: 1px solid var(--foreground); }
.filter-row { display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.filter-label { flex: none; width: 112px; color: var(--muted); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(18, 18, 18, 0.25);
  padding: 0 16px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--signal); color: var(--signal); }
.chip.is-active { border-color: var(--foreground); background: var(--foreground); color: var(--background); }
.chip-dot { width: 6px; height: 6px; background: var(--signal); }
.filter-search-row { display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.search-form { display: flex; width: 100%; max-width: 448px; align-items: center; gap: 12px; border: 1px solid rgba(18, 18, 18, 0.25); padding: 0 16px; }
.search-form:focus-within { border-color: var(--signal); }
.search-field { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; }
.search-form input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; outline: none; }
.search-form input[type="search"]::-webkit-search-cancel-button,
.search-form input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-form input[type="search"]::-moz-search-cancel-button { appearance: none; }
.search-clear {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.search-clear:hover { color: var(--signal); transform: rotate(90deg); }
.search-clear[hidden] { display: none; }
.filter-summary { display: flex; align-items: center; gap: 20px; }
.filter-summary a { text-decoration: underline; text-underline-offset: 4px; }
.filter-summary a:hover { color: var(--signal); }
.archive-results { padding-top: 32px; padding-bottom: 96px; }
.empty-state { border: 1px solid var(--line); padding: 80px 24px; text-align: center; }
.empty-title { font-size: clamp(1.75rem, 5vw, 3rem); }
.empty-state .meta { margin-top: 16px; }
.empty-reset { display: inline-block; min-height: 44px; margin-top: 32px; border: 1px solid var(--foreground); padding: 12px 24px; }
.empty-reset:hover { background: var(--signal); color: #fff; border-color: var(--signal); }
@media (min-width: 1024px) {
  .filter-row { flex-direction: row; align-items: center; gap: 24px; }
  .filter-search-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Project detail ------------------------------------------------ */

.project-head { border-bottom: 1px solid var(--foreground); }
.project-topline { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.project-back,
.legal-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  margin-left: -12px;
  padding: 0 40px 0 12px;
}
.project-back:hover,
.legal-back:hover { color: var(--signal); }
.project-title { padding-bottom: 4px; font-size: clamp(2.5rem, 9vw, 8rem); }
.project-media { border-bottom: 1px solid var(--foreground); background: var(--foreground); }
.project-media .media-frame { aspect-ratio: 16 / 9; }
.project-body { padding-block: 48px; }
.project-grid { display: grid; gap: 48px; }
.project-synopsis { max-width: 65ch; margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.3; }
.project-awards { margin-top: 24px; color: var(--signal); }
.project-stills { margin-top: 56px; }
.stills-grid { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.still { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: rgba(18, 18, 18, 0.1); padding: 0; cursor: pointer; text-align: left; }
.still img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transform-origin: center; transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; backface-visibility: hidden; }
.still:hover img { transform: scale(1.04); }
.still-num { position: absolute; left: 0; bottom: 0; background: var(--foreground); color: var(--background); padding: 4px 8px; }
.still-view { position: absolute; right: 0; top: 0; background: var(--signal); color: #fff; padding: 4px 8px; opacity: 0; transform: translateY(4px); transition: opacity 0.16s ease, transform 0.24s cubic-bezier(0.4, 0, 0.2, 1); }
.still:hover .still-view { opacity: 1; transform: translateY(0); }
.aside-sticky { position: sticky; top: 112px; }
.credit-rows { border-bottom: 1px solid var(--line-soft); }
.credit-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.credit-row:last-child { border-bottom: 0; }
.credit-row dd { font-size: 0.875rem; }
.credit-name { font-weight: 500; }
.credits-block { margin-top: 32px; }
.credits-heading { display: flex; justify-content: space-between; margin: 0; border-bottom: 1px solid var(--foreground); padding-bottom: 8px; color: var(--signal); font-weight: 400; }
.enquiry-box { margin-top: 32px; border: 1px solid var(--foreground); background: var(--foreground); color: var(--background); padding: 20px; }
.enquiry-label { color: rgba(235, 235, 235, 0.6); }
.enquiry-mail { display: block; margin-top: 12px; font-size: 1.125rem; text-decoration: underline; text-decoration-color: rgba(235, 235, 235, 0.3); text-underline-offset: 4px; }
.enquiry-mail:hover { color: var(--signal); }
.enquiry-link { display: inline-block; margin-top: 20px; text-decoration: underline; text-decoration-color: rgba(235, 235, 235, 0.3); text-underline-offset: 4px; }
.enquiry-link:hover { color: var(--signal); }
.next-project { display: block; border-top: 1px solid var(--foreground); background: var(--foreground); color: var(--background); }
.next-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.next-title { margin: 16px 0 0; font-size: clamp(2rem, 6vw, 5rem); transition: color 0.2s; }
.next-project:hover .next-title { color: var(--signal); }
.next-meta { padding-bottom: 8px; color: rgba(235, 235, 235, 0.6); }
@media (min-width: 640px) {
  .stills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-inner { padding-top: 64px; padding-bottom: 64px; }
}
@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 64px; }
  .project-main { grid-column: span 7; }
  .project-aside { grid-column: span 5; }
}

/* ---------- Video player -------------------------------------------------- */

.video-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--foreground); }
.video-content, .video-content iframe, .video-content video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-content video { object-fit: contain; background: var(--foreground); }
.video-content iframe { pointer-events: none; }
.video-stage.is-playing .video-content { cursor: pointer; }
.video-poster { position: absolute; inset: 0; z-index: 5; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.video-poster-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(18, 18, 18, 0.35);
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.video-poster-icon svg { display: block; width: 26px; height: 26px; }
.video-poster:hover .video-poster-icon { background: var(--signal); border-color: var(--signal); }
.video-poster.video-consent::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(18, 18, 18, 0.65);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.video-poster.video-consent:hover::after { background: var(--signal); border-color: var(--signal); }
.video-poster[hidden] { display: none; }
.video-controls { position: absolute; right: 0; bottom: 0; z-index: 10; display: flex; align-items: stretch; border-top: 1px solid rgba(235, 235, 235, 0.2); border-left: 1px solid rgba(235, 235, 235, 0.2); background: rgba(18, 18, 18, 0.85); color: var(--background); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.video-stage.is-playing .video-controls { opacity: 1; pointer-events: auto; }
.video-controls button { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-right: 1px solid rgba(235, 235, 235, 0.2); background: none; color: inherit; cursor: pointer; }
.video-controls button:hover { background: var(--signal); color: #fff; }
.video-controls [data-action="mute"] { display: flex; align-items: center; justify-content: center; }
.video-controls [data-icon="mute"] svg { display: block; width: 18px; height: 18px; }
.video-controls [data-icon="mute"] svg[hidden] { display: none; }
.video-controls [data-icon="toggle"] svg { display: block; width: 18px; height: 18px; }
.video-controls [data-icon="toggle"] svg[hidden] { display: none; }
.video-source { display: flex; align-items: center; padding: 0 12px; }
.video-source:hover { color: var(--signal); }
body.video-fullscreen { background: #000; }
.video-stage.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  overscroll-behavior: contain;
  background: #000;
}
.video-stage.is-fullscreen .video-controls {
  z-index: 210;
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  max-width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Lightbox ------------------------------------------------------ */

.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.8); }
.lightbox[hidden] { display: none; }
.lightbox-dialog { display: flex; width: 100%; max-width: 1152px; max-height: 100dvh; flex-direction: column; overflow: hidden; border: 1px solid rgba(235, 235, 235, 0.28); background: #262626; color: #ebebeb; }
.lightbox-bar { display: flex; flex: none; align-items: center; gap: 12px; border-bottom: 1px solid rgba(235, 235, 235, 0.28); padding: 8px 16px; color: #ebebeb; }
.lightbox-title { min-width: 0; }
.lightbox-count { flex: none; white-space: nowrap; }
.lightbox-bar button { width: 44px; height: 44px; margin-left: auto; border: 0; background: none; color: inherit; cursor: pointer; }
.lightbox-bar button:hover { color: #fff; }
.lightbox-image { display: flex; flex: none; height: 55vh; max-height: calc(100dvh - 9rem); align-items: center; justify-content: center; overflow: hidden; background: #1c1c1c; }
.lightbox-track { position: relative; width: 100%; height: 100%; transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
.lightbox-track.is-dragging { transition: none; }
.lightbox-track.is-fast { transition-duration: 0.16s; }
.lightbox-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.lightbox-slide[data-slide="prev"] { transform: translateX(-100%); }
.lightbox-slide[data-slide="next"] { transform: translateX(100%); }
@media (min-width: 640px) { .lightbox-image { height: 70vh; } }
@media (prefers-reduced-motion: reduce) { .lightbox-track, .lightbox-track.is-fast { transition: none; } }
.lightbox-nav { display: flex; flex: none; justify-content: space-between; border-top: 1px solid rgba(235, 235, 235, 0.28); padding: 8px 16px; color: #ebebeb; }
.lightbox-nav button { min-height: 44px; border: 0; background: none; color: inherit; cursor: pointer; }
.lightbox-nav button:hover { color: #fff; }

/* ---------- Imprint / 404 ------------------------------------------------- */

.legal-head { border-bottom: 1px solid var(--foreground); }
.legal-topline { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.legal-topline a:hover { color: var(--signal); }
.legal-title { padding-bottom: 20px; font-size: clamp(2.5rem, 9vw, 8rem); }
.legal-body { padding-block: 48px; }
.legal-columns { column-count: 1; column-gap: 64px; }
.legal-block { break-inside: avoid; margin-bottom: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.legal-block-head { display: flex; align-items: baseline; gap: 12px; }
.legal-rows { display: grid; gap: 8px; margin-top: 16px; }
.legal-row { display: grid; gap: 4px; }
.legal-row dt { color: rgba(92, 92, 92, 0.8); }
.legal-row dd { color: rgba(18, 18, 18, 0.9); font-size: 0.875rem; line-height: 1.625; }
.legal-lines { display: grid; gap: 12px; margin-top: 16px; color: rgba(18, 18, 18, 0.8); font-size: 0.875rem; line-height: 1.625; }
.legal-lines p { margin-bottom: 0; }
.legal-lines a { text-decoration: underline; text-decoration-color: rgba(18, 18, 18, 0.3); text-underline-offset: 4px; }
.legal-lines a:hover { color: var(--signal); }
.legal-note { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (min-width: 640px) {
  .legal-row { grid-template-columns: minmax(0, 10rem) 1fr; gap: 16px; }
}
@media (min-width: 1024px) { .legal-columns { column-count: 2; } }

.notfound { min-height: 55vh; padding-top: 80px; padding-bottom: 80px; }
.notfound-title { max-width: 20ch; margin: 16px 0 32px; font-size: clamp(2rem, 7vw, 5rem); }
.notfound-links { display: flex; gap: 24px; }
.notfound-links a { text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .still img { transition-duration: 0.28s !important; }
  .still-view { transition-duration: 0.16s, 0.24s !important; }
}
