

@font-face {
  font-family: "Syne";
  src: url("../fonts/syne/Syne%5Bwght%5D.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrumentsans/InstrumentSans%5Bwdth,wght%5D.ttf") format("truetype");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {

  --bg: #ffffff;
  --text: #121212;
  --muted: #6b6b6b;
  --line: #dedede;
  --placeholder: #ededed;
  --font-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --side: clamp(20px, 4vw, 64px);
  --gap: clamp(14px, 2vw, 32px);
  --row: clamp(36px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-text); }

body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .site-footer { flex: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--side); top: 8px; background: var(--text); color: var(--bg); padding: 6px 10px; }

.marker { background: #fff1a8; color: #4d3f00; padding: 0 .25em; font-family: var(--font-text); font-size: 13px; letter-spacing: 0; text-transform: none; }

.label { font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
a.label:hover { color: var(--text); }

.site-header { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; padding: 22px var(--side) 14px; background: var(--bg); }

.logo { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .85em; word-spacing: .5em; text-transform: uppercase; white-space: nowrap; }
.nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.nav a { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }

main { padding: 0 var(--side); }

.lead, .gallery, .links-row, .project-nav, .about {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start;
}

.works-page { --offset: 61px; }
html:has(.works-page) { scroll-snap-type: y proximity; scroll-padding-top: 61px; }
.works-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.work { scroll-snap-align: start; }

main.works-page ~ .site-footer { scroll-snap-align: end; }
.work-link { display: flex; flex-direction: column; align-items: center; height: calc(100svh - var(--offset)); padding: 28px 0 8px; }
.work-media { display: block; flex: 1 1 auto; min-height: 0; aspect-ratio: 3 / 2; max-width: 100%; background: var(--placeholder); }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: opacity .25s ease; }
.work-text { flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 0 8px; }
.work-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 34px); line-height: .95; letter-spacing: -.02em; text-wrap: balance; }
.work-location { font-size: 13px; color: var(--muted); }

.work-cta { margin-top: 6px; font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.work-link:hover img { opacity: .86; }
.work-link:hover .work-title, .work-link:hover .work-cta { color: var(--muted); }

.work-media { position: relative; }
.work-place { position: absolute; left: 0; bottom: 18px; transform: translateX(calc(4.5em - 100%)); display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 10.5px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--text); pointer-events: none; }
.work-place::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.project-head { margin: clamp(18px, 2.4vw, 30px) 0 clamp(18px, 2.2vw, 28px); }
.index { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin: 0 0 12px; }
.project-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3.2vw, 46px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.project-title.long { font-size: clamp(22px, 2.6vw, 38px); }

.lead { row-gap: 32px; margin-bottom: 0; }
.lead-left { grid-column: 1 / span 5; display: grid; gap: 28px; align-content: start; }
.lead-media { grid-column: 7 / span 6; display: grid; gap: var(--gap); align-content: start; }
.lead-media.wide { grid-column: 6 / span 7; }
.lead-media figure { grid-column: 1 / -1; }
.project-subtitle { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.3; }
.project-note { margin: -12px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; font-size: 13px; line-height: 1.45; }
.facts dt { font-family: var(--font-display); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
.lead-text { max-width: 58ch; font-size: 17px; line-height: 1.6; }
.lead-text p { margin: 0 0 1em; }
.lead-text p:last-child { margin-bottom: 0; }

.rows { display: grid; gap: var(--gap); margin: clamp(20px, 3vw, 44px) 0 var(--row); }
.row { display: flex; gap: var(--gap); align-items: flex-start; }
.row figure, .row > .stack { flex: var(--ar, 1) 1 0%; min-width: 0; }
.row > .stack { display: grid; gap: var(--gap); }

.row.solo { justify-content: center; }
.row.solo figure { flex: 0 1 min(100%, 1100px, calc(78vh * var(--ar, 1))); }
.row.mitte { margin-inline: auto; width: 100%; }
.lead-media.tall { grid-column: 8 / span 5; }
.lead-media.narrow { grid-column: 9 / span 4; }
.rows img { width: 100%; background: var(--placeholder); }
.rows video, .lead-media video { display: block; width: 100%; height: auto; background: var(--placeholder); }

figure { margin: 0; grid-column: var(--c, 1 / -1); }
figcaption { margin-top: 8px; font-size: 11px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
figcaption:empty { display: none; }
.lead img, .gallery img { width: 100%; background: var(--placeholder); }
img.frei { background: transparent; }
.small img { width: auto; max-width: 100%; }
.gallery { row-gap: var(--row); margin: var(--row) 0; }
.down { margin-top: 20%; }
.down-2 { margin-top: 40%; }
.rows-2 { grid-row: span 2; }

.credits { margin: var(--row) 0; padding-top: 24px; border-top: 1px solid var(--line); }
.credits h2 { margin: 0 0 20px; }
.credits dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px var(--gap); font-size: 12.5px; line-height: 1.5; }
.credits dt { font-family: var(--font-display); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.credits dd { margin: 0; }

.links-row { margin: var(--row) 0; }
.links-row .project-links { grid-column: 6 / span 7; }

.project-links h2, .project-nav .label { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.9vw, 26px); line-height: 1.1; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.project-links h2 { margin: 0 0 16px; }
.project-links ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.project-links li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.project-links a { font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 1.35; }
.project-links a:hover { color: var(--muted); }
.project-links .source { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.project-nav { margin: var(--row) 0 clamp(48px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); row-gap: 32px; align-items: start; }
.project-nav .prev { grid-column: 1 / span 5; }
.project-nav .next { grid-column: 6 / span 7; text-align: right; }
.project-nav .label { display: block; margin-bottom: 10px; }
.project-nav .small-title, .project-nav .big-title { display: block; font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 1.35; letter-spacing: 0; text-wrap: balance; }
.project-nav a:hover .label, .project-nav a:hover .small-title, .project-nav a:hover .big-title { color: var(--muted); }

.about { display: flex; align-items: stretch; column-gap: clamp(40px, 5vw, 88px); row-gap: 32px; margin: clamp(28px, 4vw, 52px) 0 clamp(56px, 8vw, 120px); }
.about .portrait { position: relative; flex: none; align-self: flex-start; width: clamp(300px, 32vw, 460px); margin: 0; }
.about .portrait img { width: 100%; height: auto; aspect-ratio: 1; max-width: none; object-fit: cover; object-position: 50% 90%; background: var(--placeholder); }
.about .portrait figcaption { position: absolute; left: 100%; top: 0; margin: 0 0 0 10px; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: 10px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.about-areas { position: absolute; left: clamp(16px, 1.8vw, 24px); bottom: clamp(14px, 1.8vw, 24px); margin: 0; padding: 0; list-style: none; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 1.33vw, 19px); line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.about-areas li { white-space: nowrap; }
.about-areas .strich { font-weight: 400; margin: 0 .18em; }
.about .about-text { flex: 0 1 62ch; min-width: 0; max-width: 62ch; display: flex; flex-direction: column; font-size: 13px; line-height: 1.7; }
.about h1 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); line-height: .95; letter-spacing: -.02em; }
.about-lead { margin: 0 0 18px; font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 1.4; }
.about-text p { margin: 0 0 1em; }

.about-text .about-contact { scroll-margin-top: 110px; margin: auto 0 0; padding-top: 1.4em; }
.about-contact p { margin: 0 0 .6em; }
.about-mail { display: inline-block; max-width: 100%; font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2.1vw, 30px); line-height: 1.15; letter-spacing: .01em; white-space: nowrap; }
.about-mail:hover { color: var(--muted); }

.contact-page { max-width: 68ch; margin: clamp(28px, 4vw, 52px) auto clamp(56px, 8vw, 120px); font-size: 15px; line-height: 1.7; min-height: 40vh; }
.contact-page h1 { margin: 0 0 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); line-height: .95; letter-spacing: -.02em; }
.contact-intro { margin: 0 0 1.6em; font-size: 16px; line-height: 1.6; max-width: 46ch; }
.contact-services { margin: 0 0 2.2em; }
.contact-services .label { display: block; margin: 0 0 8px; }
.contact-services ul { margin: 0 0 1em; padding: 0; list-style: none; font-size: 16px; line-height: 1.8; }
.contact-note { margin: 0; max-width: 54ch; font-size: 13px; line-height: 1.6; color: var(--muted); }
.contact-card { margin: 0 0 1.4em; font-size: 16px; line-height: 1.8; }
.contact-card a { font-family: var(--font-display); font-weight: 600; }
.contact-card a:hover { color: var(--muted); }
.contact-card a:hover { opacity: .7; }
.placeholder { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--placeholder); color: var(--muted); font-size: 12px; text-align: center; padding: 8px; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px var(--side) 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--bg); }
.site-footer .legal-links a { border-bottom: 1px solid transparent; }
.site-footer .legal-links a:hover { color: var(--text); }
.site-footer .legal-links a[aria-current="page"] { border-bottom-color: currentColor; }

.legal-page { max-width: 68ch; margin: clamp(28px, 4vw, 52px) auto clamp(56px, 8vw, 120px); font-size: 14px; line-height: 1.7; }
.legal-page h1 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); line-height: .95; letter-spacing: -.02em; }
.legal-lead { margin: 0 0 32px; }
.legal-page section { margin: 0 0 28px; }
.legal-page section .label { display: block; margin: 0 0 8px; }
.legal-page p { margin: 0 0 1em; }
.legal-page a { border-bottom: 1px solid currentColor; }
.legal-note { margin-top: 40px; color: var(--muted); font-size: 13px; }

.site-header.over { position: absolute; top: 0; left: 0; right: 0; z-index: 2; color: #fff; background: transparent; padding-bottom: 0; }
.site-header.over .nav { margin-left: auto; }

html:has(main.home), body:has(main.home) { background: #cac7c9; }
main.home { position: relative; padding: 0; min-height: 100vh; min-height: 100lvh; }
.home-image { position: absolute; inset: 0; margin: 0; }
.home-image img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.home-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .22) 50%, rgba(0, 0, 0, .05) 100%); }
.home-image figcaption { position: absolute; z-index: 1; right: var(--side); bottom: 14px; margin: 0; color: rgba(255, 255, 255, .8); }

.home-text { position: absolute; z-index: 1; left: var(--side); top: 50%; transform: translateY(-50%); color: #fff; }
.home-text .label { display: block; margin-bottom: 18px; color: rgba(255, 255, 255, .8); }

.home-mark { --u: clamp(9.6px, 1vw, 14.4px); --sperrung: 1.68em; --sperrung-handy: 1.252em; margin: 0; }
.home-text h1 { margin: 0 0 .55em; font-family: var(--font-display); font-weight: 500; font-size: calc(var(--u) * 1.1); line-height: 1; letter-spacing: var(--sperrung, 0); word-spacing: 1.2em; text-transform: uppercase; white-space: nowrap; }
.home-line { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: calc(var(--u) * 1.7); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.home-cta { position: absolute; top: 100%; left: 0; margin-top: clamp(64px, 11svh, 120px); white-space: nowrap; font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.home-cta:hover { opacity: .7; }

.site-header.over.bright { color: var(--text); }
main.home.bright .home-image::after { background: linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .2) 55%, rgba(255, 255, 255, 0) 100%); }
main.home.bright .home-image figcaption { color: var(--muted); }
main.home.bright .home-text { color: var(--text); }
main.home.bright .home-text .label { color: var(--muted); }

@media (max-width: 900px) {
  .credits dl { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  html:has(.works-page) { scroll-snap-type: none; }
  .work-link { height: auto; padding: 24px 0 12px; }
  .work-media { flex: none; width: 100%; height: auto; }
  .work-text { padding: 16px 0 12px; }
  .work-place { left: auto; right: 0; bottom: 100%; transform: none; margin-bottom: 7px; font-size: 10px; }
  .work-place::before { width: 20px; }
  figure, .lead-media > *, .links-row .project-links, .project-nav .prev, .project-nav .next, .about .portrait, .about .about-text { grid-column: 1 / -1 !important; }
  .site-header { gap: 6px 22px; padding: 14px var(--side) 10px; }
  .nav { flex: 1 0 100%; }
  .nav ul { flex-wrap: nowrap; justify-content: space-between; gap: 0 10px; }
  .nav a { font-size: min(11px, 3.2vw); letter-spacing: .08em; white-space: nowrap; }
  .lead { row-gap: 28px; }
  .lead-left, .lead-media { display: contents; }
  .row.solo figure { flex: none; }
  .lead-left > * { grid-column: 1 / -1; }
  .project-subtitle, .project-note { order: 1; }
  .lead-media > :first-child { order: 2; }
  .facts { order: 3; }
  .lead-text { order: 4; }
  .lead .project-links { order: 5; }
  .lead-media > :not(:first-child) { order: 6; }
  .down, .down-2 { margin-top: 0; }
  .rows-2 { grid-row: auto; }
  .row { flex-direction: column; align-items: stretch; }
  .row figure, .row > .stack { flex: none; }
  .row.tiny { flex-direction: row; flex-wrap: wrap; }
  .row.tiny figure { flex: 1 1 calc((100% - 2 * var(--gap)) / 3); }
  .row.tiny figure:first-child:nth-last-child(4), .row.tiny figure:first-child:nth-last-child(4) ~ figure { flex-basis: calc((100% - var(--gap)) / 2); }
  .row.kleine { flex-direction: row; flex-wrap: wrap; }
  .row.kleine figure { flex: 0 1 calc((100% - var(--gap)) / 2); }
  .credits dl { grid-template-columns: 1fr; }
  .project-nav .next { text-align: left; }
  .about { flex-direction: column; row-gap: 22px; }
  .about .portrait { width: min(100%, 420px); margin-bottom: 26px; }
  .about .portrait figcaption { top: 100%; left: 0; margin: 8px 0 0; writing-mode: horizontal-tb; transform: none; white-space: nowrap; font-size: 11px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
  .about-areas { left: 16px; bottom: 14px; font-size: clamp(12px, 3.6vw, 13.5px); }
  .about .about-text { flex: none; align-self: stretch; max-width: none; }
  .about-text .about-contact { margin-top: .6em; }
  .home-text h1 { font-size: min(11px, 3.06vw); letter-spacing: var(--sperrung-handy, 0); }
  .home-line { font-size: min(14px, 3.9vw); }
  .home-text { left: 50%; top: 50dvh; transform: translate(-50%, -50%); }
  .home-cta { left: 50%; transform: translateX(-50%); }

  main.home { min-height: calc(100vh + 160px); min-height: calc(100lvh + 160px); }
  .home-image::after { background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .2) 60%, rgba(0, 0, 0, .05) 100%); }
  main.home.bright .home-image::after { background: linear-gradient(to bottom, #cac7c9 0, rgba(202, 199, 201, 0) 72px), radial-gradient(ellipse 60% 50dvh at 50% 50dvh, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .28) 55%, rgba(255, 255, 255, 0) 100%); }
}
