@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-variable.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-600.woff2") format("woff2");
}

:root {
  --paper: #E8E6E1;
  --ink: #1C1B19;
  --red: #E63321;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 4rem);
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--red);
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--paper); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-family: var(--display); }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
}

.progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px); left: 0;
  width: 100%; height: 4px;
  z-index: 9999;
  overflow: hidden;
  background: transparent;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 120ms linear;
}

.site-nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  z-index: 100;

  background: var(--paper);
}

.site-nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 100vh;
  background: var(--paper);
  pointer-events: none;
}

.site-nav a { text-decoration: none; }

.site-nav nav { display: flex; gap: clamp(0.8rem, 2.5vw, 2rem); flex-wrap: wrap; }

.site-nav nav a:hover,
.site-nav nav a:focus-visible { color: var(--red); }

.nav-name { font-weight: 600; }
.nav-name:hover { color: var(--red); }

.nav-burger { display: none; }

body.menu-open { overflow: hidden; }

.scene {
  position: relative;
  padding: clamp(1.25rem, 3.5vh, 2.5rem) var(--gutter);
  max-width: 90rem;
  margin: 0 auto;
}

.scene--projekte { padding-top: clamp(2rem, 5vh, 3.5rem); }

.scene-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink);
  padding-top: 0.6rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.slug { font-weight: 500; }

.tc {
  color: var(--red);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.scene-title {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(2.5rem, 6vh, 5rem);
}

.scene-title--wrap {
  hyphens: manual;
  overflow-wrap: break-word;
}

.char { display: inline-block; }

.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;
}

.mono-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin: 0.6rem 0 0;
}

.scene--hero {
  padding-top: clamp(3rem, 9vh, 6rem);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-name {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(4rem, 16vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  margin-bottom: 0.15em;
  pointer-events: none;
}

.hero-line { display: block; }

.hero-line--offset {
  margin-left: clamp(2rem, 12vw, 12rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-frame {
  margin: 0;
  position: relative;
}

.hero-frame img,
.hero-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #181714;
}

.hero-statement {
  position: relative;
  z-index: 2;
  display: inline-block;
  align-self: flex-start;
  margin: -1.6em 0 0 clamp(0.5rem, 6vw, 6rem);
  padding: 0.55em 0.9em;
  background: var(--ink);
  color: var(--paper);
  border-left: 6px solid var(--red);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  transform-origin: 0% 100%;
  max-width: 34ch;
}

.hero-sub {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 46ch;
  margin: 1.8rem 0 0 clamp(0.5rem, 6vw, 6rem);
}

.scroll-hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-decoration: none;
  margin-top: auto;
  padding-top: 3rem;
  align-self: center;
}

.scroll-hint:hover { text-decoration: underline; }

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vh, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.project { position: relative; }

.award {
  position: absolute;
  top: -0.9rem;
  left: 1rem;
  z-index: 4;
  pointer-events: none;
  background: var(--red);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.4em 0.8em;
}

.embed {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
}

.embed-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease-out;
}

.project:hover .embed-thumb,
.journey-item:hover .embed-thumb { transform: scale(1.03); }

.embed-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}

.embed-play svg {
  width: clamp(48px, 12%, 68px);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: transform 200ms ease-out;
}

.embed-play .yt-bg { fill: var(--red); }
.embed-play .yt-tri { fill: var(--paper); }

.embed-play:hover svg,
.embed-play:focus-visible svg { transform: scale(1.08); }

.embed-play--msg {
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed--loading iframe { visibility: hidden; }

.project-info { margin-top: 1.1rem; }

.project-title {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.project-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin: 0.4rem 0 0.6rem;
}

.project-desc {
  margin: 0;
  max-width: 44ch;
  font-size: 0.95rem;
}

.gallery-grid {
  columns: clamp(220px, 24vw, 300px);
  column-gap: clamp(0.4rem, 1vw, 0.7rem);
}

.gallery-item {
  margin: 0 0 clamp(0.4rem, 1vw, 0.7rem);
  break-inside: avoid;
  overflow: hidden;
  background: var(--ink);
  line-height: 0;
}

.gallery-item picture { display: contents; }

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 400ms ease-out;
}

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

.gallery-grid.is-justified {
  columns: auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 1vw, 0.7rem);
}

.gallery-grid.is-justified .gallery-item {
  margin: 0;
  break-inside: auto;
}

.gallery-grid.is-justified .gallery-item img {
  height: 100%;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem 2vw;
  position: relative;
}

.about-portrait {
  grid-column: 1 / 6;
  margin: 0;

  position: relative;
  z-index: 2;
}

.about-portrait img { aspect-ratio: 3 / 4; object-fit: cover; }

.about-text {
  grid-column: 7 / 12;
  position: relative;
  z-index: 3;
  padding-top: 1rem;
}

.about-text p {
  max-width: 52ch;
  margin: 0 0 1.2em;
}

.about-number {
  position: absolute;
  right: -0.06em;
  bottom: -0.2em;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(6rem, 18vw, 16rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  pointer-events: none;
  z-index: 1;
}

.journey-intro {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 52ch;
  margin: 0 0 3rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem 2vw;
}

.journey-item { grid-column: span 4; margin: 0; }
.journey-item--down { margin-top: 3rem; }
.journey-item--lower { margin-top: 6rem; }

.journey-cta {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--red);
  padding: 0.9em 1.4em;
  text-decoration: none;
  transition: background 200ms ease-out;
}

.journey-cta:hover { background: var(--ink); }

.work-intro { max-width: 48ch; margin: 0 0 2.5rem; }

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44rem;
}

.work-list li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

.work-list li:last-child { border-bottom: 1px solid var(--ink); }

.work-index {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.1em;
}

.work-note {
  font-family: var(--mono);
  font-size: 0.8rem;
  margin: 2.5rem 0 0;
  max-width: 52ch;
}

.faq {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  max-width: 60ch;
}

.faq-item {
  padding: 1.2rem 0;
  border-top: 1px solid var(--ink);
}

.faq-item:last-child { border-bottom: 1px solid var(--ink); }

.faq-q {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.faq-q::before {
  content: "F / ";
  color: var(--red);
}

.faq-a {
  margin: 0;
  font-size: 0.98rem;
  max-width: 54ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem 2vw;
}

.contact-intro {
  grid-column: 1 / 5;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 0;
}

.contact-form { grid-column: 5 / 12; }

.botcheck { display: none; }

.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.8em;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink);
}

.field textarea { resize: none; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}

.submit {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--red);
  border: 0;
  padding: 0.9em 1.6em;
  cursor: pointer;
  transition: background 200ms ease-out;
}

.submit:hover { background: var(--ink); }
.submit:disabled { opacity: 0.6; cursor: wait; }

.form-status {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin: 1rem 0 0;
  min-height: 1.2em;
}

.form-status[data-state="error"] { color: var(--red); }

.contact-links {
  grid-column: 1 / 12;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-top: 3rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.2em;
}

.contact-links a:hover { color: var(--red); }

.contact-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  color: var(--red);
}

.contact-links a:hover .contact-icon { color: var(--ink); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 2rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--red); }

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

.scene--legal { padding-top: clamp(3rem, 9vh, 6rem); }

.scene--legal .scene-title {
  font-size: clamp(1.8rem, 8vw, 5rem);
  overflow-wrap: break-word;
}

.legal-text { max-width: 62ch; }

.legal-text h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 2.2rem 0 0.6rem;
}

.legal-text p { margin: 0 0 1em; }

.legal-text a {
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  word-break: break-word;
}

.legal-text a:hover { color: var(--red); }

@media (max-width: 800px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    font-size: 0.66rem;
  }

  .site-nav nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
    flex-wrap: nowrap;
    letter-spacing: 0.04em;
  }

  .site-nav a { padding: 0.15em 0; }

  .site-nav.has-burger {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-nav.has-burger .nav-name { position: relative; z-index: 2; }

  .nav-burger {
    display: block;
    position: relative;
    z-index: 2;
    padding: 12px;
    margin: -12px -12px -12px 0;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 200ms ease, opacity 150ms ease;
  }

  .nav-burger span + span { margin-top: 5px; }

  .site-nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
  .site-nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav.has-burger nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100svh;
    z-index: 1;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(1.6rem, 5.5vh, 2.6rem);
    width: auto;
    flex-wrap: nowrap;
    background: transparent;
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1.5rem calc(3rem + env(safe-area-inset-bottom, 0px));
    counter-reset: navi;
  }

  .site-nav.has-burger nav::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: -25vh;
    background: var(--paper);
    z-index: -1;
  }

  .site-nav.is-open nav { display: flex; }

  .site-nav.has-burger nav a {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    padding: 0.5em 1em;
  }

  .site-nav.has-burger nav a::before {
    counter-increment: navi;
    content: "0" counter(navi) " / ";
    color: var(--red);
    font-weight: 500;
  }

  .site-nav.has-burger nav a:last-child {
    border: 1px solid var(--red);
    margin-top: 0.5rem;
  }

  html { scroll-padding-top: 6.5rem; }

  .hero-name { margin-bottom: 0.15em; }

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

  .about-portrait {
    grid-column: 1 / -1;
    margin-top: 0;
    max-width: 22rem;
  }

  .about-text { grid-column: 1 / -1; }

  .about-number { font-size: 6rem; bottom: -0.4em; }

  .journey-item,
  .journey-item--down,
  .journey-item--lower {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .contact-intro,
  .contact-form,
  .contact-links { grid-column: 1 / -1; }

  .hero-statement { margin-left: 0; }
  .hero-sub { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
