@font-face {
  font-family: "AT Rotis Sans Serif 45";
  src: url("schrift/AT Rotis Sans Serif 45.woff2") format("woff2"),
       url("schrift/AT Rotis Sans Serif 45.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f7f6f2;
  --surface: #f7f6f2;
  --ink: #171713;
  --muted: #5f655c;
  --line: rgba(23, 23, 19, 0.16);
  --soft-line: rgba(23, 23, 19, 0.08);
  --moss: #465648;
  --clay: #7b6556;
  --stone: #8e958a;
  --focus: #2c5c7a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "AT Rotis Sans Serif 45", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ink);
}

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

.mobile-header {
  display: none;
}

.site-shell {
  min-height: 100vh;
}

.home-page {
  --home-gutter: 64px;
  --home-header-height: 108px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 108px;
  padding: 24px 64px 18px;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 34px;
  align-items: start;
}

.home-page .site-nav {
  position: fixed;
  right: 0;
  left: 0;
}

.home-page .site-nav,
.home-page .mobile-header {
  transition: background-color 220ms ease;
}

.home-page.landing-active .site-nav,
.home-page.landing-active .mobile-header {
  background: transparent;
  backdrop-filter: none;
}

.brand,
.wordmark {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.05;
  text-align: left;
}

.primary-nav {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  grid-column: 1;
  width: 100%;
  margin-top: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.primary-nav a {
  color: var(--muted);
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--ink);
}

.meta-nav {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 25;
  display: flex;
  gap: 16px;
  width: max-content;
  font-size: 15px;
  line-height: 1.1;
  writing-mode: vertical-rl;
  transition: opacity 180ms ease;
}

.home-page.landing-active .meta-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.nav-idle .site-nav .primary-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.home-page.landing-top .site-nav .primary-nav,
.home-page.landing-top .nav-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-page.landing-top .site-nav,
.home-page.landing-top .mobile-header {
  pointer-events: none;
}

.home-page.landing-top .brand,
.home-page.landing-top .wordmark {
  pointer-events: auto;
}

.main-content {
  margin-left: 0;
  padding: 22px 64px 52px;
}

.home-page .main-content {
  padding-top: 0;
}

.home-page .main-content > [hidden] {
  display: none;
}

.home-page.is-section-view .main-content {
  min-height: 100vh;
  padding-top: var(--home-header-height);
}

.home-page.projects-only .main-content {
  padding-top: var(--home-header-height);
}

.home-page main > section:not(.stage),
.home-page .site-footer {
  scroll-margin-top: var(--home-header-height);
}

.stage {
  display: block;
  height: 100vh;
  height: 100dvh;
  width: calc(100% + var(--home-gutter) + var(--home-gutter));
  margin-right: calc(0px - var(--home-gutter));
  margin-left: calc(0px - var(--home-gutter));
  padding-bottom: 0;
}

.stage-media {
  margin: 0;
  background: rgba(23, 23, 19, 0.08);
  height: 100%;
  overflow: hidden;
}

.stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  body,
  .home-page .stage {
    cursor: url("assets/cursor-scroll-down.svg") 16 16,
            url("assets/cursor-scroll-down.png") 16 16, default;
  }
  .project-page .project-info-panel,
  .project-page .project-slideshow {
    cursor: url("assets/cursor-scroll-down.svg") 16 16,
            url("assets/cursor-scroll-down.png") 16 16, default;
  }

  body.scroll-up,
  .home-page.scroll-up .stage,
  .project-page .project-info-panel.scroll-up,
  .project-page .project-slideshow.scroll-up {
    cursor: url("assets/cursor-scroll-up.svg") 16 16, default;
  }

  body a[href],
  body button,
  body [role="button"],
  body select,
  body .project-tabs button,
  body .publication-tabs button,
  body .project-card,
  .project-page a,
  .project-page button {
    cursor: url("assets/cursor-dot.svg") 16 16, pointer;
  }
}

body.nav-idle .site-nav:hover .primary-nav,
body.nav-idle .site-nav:focus-within .primary-nav {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.home-page.landing-top .site-nav .primary-nav {
  visibility: hidden;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 15px;
}

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

h1 {
  margin-bottom: 0;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 400;
}

h2 {
  margin-bottom: 16px;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 400;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 22px;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
}

.archive,
.public-section,
.office-section {
  padding: 64px 0;
  border-top: 0;
}

.archive {
  --gallery-image-height: clamp(324px, 28.8vw, 472px);
  --gallery-wide-width: min(46.8vw, 585px);
  --gallery-tall-width: min(23.4vw, 288px);
  padding-top: 68px;
}

.section-head {
  max-width: 100%;
  margin-bottom: 34px;
}

.archive-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 34px;
  align-items: end;
  margin-bottom: 54px;
}

.archive-head h2 {
  margin-bottom: 0;
}

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

.project-tabs,
.publication-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px clamp(20px, 2.6vw, 30px);
}

.project-tabs button,
.publication-tabs button {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.project-tabs button.is-active,
.project-tabs button:hover,
.project-tabs button:focus-visible,
.publication-tabs button.is-active,
.publication-tabs button:hover,
.publication-tabs button:focus-visible {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: min(1008px, 100%);
  margin: 0 auto;
  gap: 31px clamp(50px, 6.3vw, 126px);
}

.project-card {
  display: block;
  flex: 0 0 auto;
  width: var(--gallery-wide-width);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.project-card.is-wide {
  width: var(--gallery-wide-width);
}

.project-card.is-tall {
  width: var(--gallery-tall-width);
}

.project-card figure {
  margin: 0;
  width: 100%;
  height: var(--gallery-image-height);
  background: var(--soft-line);
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--card-focus, 50% 50%);
}

.project-title {
  display: block;
  padding-top: 12px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.16;
}

.project-card.is-active .project-title {
  color: var(--ink);
}

.project-card:hover .project-title,
.project-card:focus .project-title {
  color: var(--ink);
}

@media (min-width: 1181px) {
  .archive {
    --gallery-wide-width: 58.035714%;
    --gallery-tall-width: 28.571429%;
  }

  .project-grid {
    container-type: inline-size;
    width: min(61.2vw, 100%);
    column-gap: 12.5%;
  }

  .project-card figure {
    height: 46.875cqw;
  }
}

.public-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 48px;
}

.public-head h2 {
  margin-bottom: 0;
}

.publication-list {
  border-bottom: 1px solid var(--line);
}

.publication-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 190px;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.publication-date {
  color: var(--clay);
  font-size: 18px;
}

.publication-copy {
  min-width: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
}

.publication-title {
  margin-bottom: 8px;
  font-size: 24px;
}

.publication-source {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
}

.publication-summary {
  max-width: 66ch;
  margin-bottom: 12px;
}

.publication-project {
  display: inline-block;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

a.publication-project,
.publication-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.publication-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.publication-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.publication-link {
  padding: 2px 0;
  color: var(--ink);
  font-size: 17px;
}

.publication-link:hover,
a.publication-project:hover {
  color: var(--moss);
}

.publication-empty {
  padding: 30px 0;
}

.publication-original {
  margin-top: 18px;
  color: var(--muted);
}

.publication-summary,
.publication-original {
  white-space: pre-line;
}

.legal-section {
  max-width: 900px;
}

.legal-copy {
  line-height: 1.6;
  overflow-wrap: anywhere;
}

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

.office-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(320px, 0.65fr);
  gap: 56px;
  align-items: start;
}

.office-image {
  margin: 0;
  background: var(--soft-line);
}

.office-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.office-copy {
  max-width: 520px;
}

.credit {
  margin-top: 42px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  padding: 34px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.site-footer code {
  font-family: Arial, sans-serif;
  color: var(--ink);
}

.project-page {
  --project-nav-height: 108px;
  --project-content-top: 160px;
  --project-pad-x: 64px;
  --project-info-width: min(380px, 26vw);
  --project-image-left: calc(var(--project-pad-x) + var(--project-info-width));
  --project-image-view-height: calc(100vh - var(--project-content-top) - 28px);
  --project-image-fit-height: calc(var(--project-image-view-height) - 22px);
  --project-image-gap: clamp(88px, 12vh, 150px);
  height: calc(100vh - var(--project-nav-height));
  padding: calc(var(--project-content-top) - var(--project-nav-height)) var(--project-pad-x) 40px;
  overflow: hidden;
}

.project-hero {
  position: relative;
  height: 100%;
  min-height: 0;
  padding-bottom: 0;
}

.project-info-panel {
  grid-area: info;
  position: relative;
  z-index: 2;
  width: var(--project-info-width);
  min-width: 280px;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 22px;
  padding-bottom: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-info-panel::-webkit-scrollbar {
  display: none;
}

.project-slideshow {
  grid-area: image;
  position: fixed;
  top: var(--project-content-top);
  left: var(--project-image-left);
  z-index: 1;
  width: calc(100vw - var(--project-image-left) - var(--project-pad-x));
  height: var(--project-image-view-height);
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 36px;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-slideshow::-webkit-scrollbar {
  display: none;
}

.project-image-stack {
  display: flex;
  flex-direction: column;
  gap: var(--project-image-gap);
  min-height: 100%;
}

.project-hero-image {
  margin: 0;
  width: 100%;
  min-height: var(--project-image-fit-height);
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  scroll-snap-align: start;
}

.project-hero-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: var(--project-image-fit-height);
  height: var(--project-image-fit-height);
  object-fit: contain;
  object-position: center top;
}

.project-hero-copy {
  max-width: none;
}

.project-page h1 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.1;
}

.project-page [hidden] {
  display: none;
}

.project-page .lead {
  white-space: pre-line;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.detail-facts div {
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--line);
}

.detail-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.detail-facts dd {
  margin: 0;
}

.hero-project-text {
  max-width: none;
  margin: 34px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 19px;
}

.hero-project-text p {
  margin: 0 0 20px;
}

.hero-project-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1500px) {
  .project-page {
    --project-info-width: 320px;
  }

  .project-info-panel {
    min-width: 0;
  }

  .project-slideshow {
    width: min(60vw, 1080px, calc(100vw - var(--project-image-left) - var(--project-pad-x)));
  }
}

@media (max-width: 1180px) {
  .home-page {
    --home-gutter: 42px;
  }

  .main-content {
    padding: 60px 42px 44px;
  }

  .site-nav {
    padding-right: 42px;
    padding-left: 42px;
  }

  .project-page {
    --project-pad-x: 42px;
    --project-info-width: 260px;
    --project-content-top: 152px;
    --project-image-view-height: calc(100vh - var(--project-content-top) - 24px);
    --project-image-fit-height: calc(var(--project-image-view-height) - 20px);
    height: calc(100vh - var(--project-nav-height));
    padding: calc(var(--project-content-top) - var(--project-nav-height)) var(--project-pad-x) 36px;
    overflow: hidden;
  }

  .project-hero {
    height: 100%;
  }

  .project-info-panel {
    min-width: 0;
    padding-right: 18px;
  }

  .project-slideshow {
    width: min(52vw, 760px, calc(100vw - var(--project-image-left) - var(--project-pad-x)));
    top: var(--project-content-top);
    height: var(--project-image-view-height);
  }

  .project-page h1 {
    font-size: 32px;
  }

  .archive-head {
    grid-template-columns: 1fr;
  }

  .archive {
    --gallery-image-height: clamp(297px, 37.8vw, 396px);
    --gallery-wide-width: min(50.4vw, 486px);
    --gallery-tall-width: min(25.2vw, 234px);
  }

  .archive-head {
    margin-bottom: 44px;
  }

  .project-grid {
    width: min(810px, 100%);
    gap: 31px clamp(38px, 5.4vw, 76px);
  }

  .project-tabs,
  .publication-tabs {
    justify-content: flex-start;
  }

  .public-head {
    grid-template-columns: 1fr;
  }

  .publication-row {
    grid-template-columns: 100px minmax(0, 1fr) 155px;
    gap: 24px;
  }

}

@media (max-width: 820px) {
  .home-page {
    --home-gutter: 22px;
    --home-header-height: 74px;
  }

  body {
    font-size: 17px;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
    padding: 16px 22px;
    background: var(--surface);
  }

  .home-page .mobile-header {
    position: fixed;
    right: 0;
    left: 0;
  }

  .wordmark {
    max-width: 220px;
    font-size: 24px;
    text-align: left;
  }

  .nav-toggle {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: transparent;
  }

  .site-nav {
    display: none;
    position: fixed;
    inset: 74px 0 auto 0;
    width: 100%;
    min-height: 220px;
    padding: 24px 22px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: var(--surface);
    grid-template-columns: 1fr;
  }

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

  .home-page.landing-active .site-nav.is-open {
    background: var(--surface);
  }

  .home-page .primary-nav {
    flex-direction: column;
    gap: 14px;
  }

  body.nav-idle .site-nav.is-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav .brand {
    display: none;
  }

  .primary-nav {
    grid-column: auto;
    width: auto;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 0;
    font-size: 24px;
  }

  .meta-nav {
    right: 16px;
    bottom: 18px;
    font-size: 14px;
  }

  .main-content {
    margin-left: 0;
    padding: 34px 22px 36px;
  }

  .project-page {
    height: auto;
    overflow: visible;
  }

  .project-hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "image";
    gap: 30px;
    height: auto;
    min-height: auto;
    padding-bottom: 44px;
  }

  .project-info-panel {
    width: auto;
    min-width: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .project-slideshow {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    padding-bottom: 0;
    transform: none;
  }

  .project-image-stack {
    gap: 42px;
  }

  .project-hero-image {
    min-height: auto;
    scroll-snap-align: none;
  }

  .project-hero-image img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .stage-media img {
    height: 100%;
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 19px;
  }

  .project-page h1 {
    font-size: 30px;
  }

  .hero-project-text {
    font-size: 19px;
  }

  .project-grid,
  .office-section {
    grid-template-columns: 1fr;
  }

  .archive {
    --gallery-image-height: auto;
    padding-top: 48px;
  }

  .archive-head {
    gap: 28px;
    margin-bottom: 34px;
  }

  .project-grid {
    display: grid;
    gap: 44px;
    width: 100%;
  }

  .project-card,
  .project-card.is-wide,
  .project-card.is-tall {
    width: 100%;
  }

  .project-card figure {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .office-image img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .public-head {
    gap: 24px;
    margin-bottom: 34px;
  }

  .publication-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 26px 0;
    margin-right: 20px;
  }

  .publication-title {
    font-size: 22px;
  }

  .publication-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}

@media (max-width: 520px) {
  .project-tabs,
  .publication-tabs {
    gap: 14px;
  }
}

/* Auswahlkreis: 40 px, braun.
   Drei Ebenen – .cursor-desat entfärbt, .cursor-dot invertiert (weiß, difference),
   .cursor-tint färbt das Ergebnis braun (screen) → brauner Kreis, Schrift weiß.
   Über Bildern genauso → Bild braun-weiß invertiert (hell wird braun, dunkel wird weiß). */
.cursor-desat,
.cursor-dot,
.cursor-tint {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.cursor-desat {
  /* entfärbt den Untergrund im Kreis → Invertierung bleibt monochrom */
  z-index: 9999;
  background: #808080;
  mix-blend-mode: saturation;
}

.cursor-dot {
  /* invertiert den entfärbten Untergrund */
  background: #fff;
  mix-blend-mode: difference;
}

.cursor-tint {
  z-index: 10001;
  background: var(--clay);
  mix-blend-mode: screen;
}

.cursor-desat.is-visible,
.cursor-dot.is-visible,
.cursor-tint.is-visible {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  html.has-cursor-dot body a[href],
  html.has-cursor-dot body button,
  html.has-cursor-dot body [role="button"],
  html.has-cursor-dot body select,
  html.has-cursor-dot body .project-card,
  html.has-cursor-dot .project-page a,
  html.has-cursor-dot .project-page button {
    cursor: none;
  }
}
