@font-face {
  font-family: "Anybody";
  src: url("fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --ink: #0c0e0b;
  --ink-2: #161914;
  --bone: #eceee4;
  --mute: #a4a998;
  --acid: #d4f53c;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--ink);
  scrollbar-color: #3a3f34 var(--ink);
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--acid); color: var(--ink); }

img { display: block; max-width: 100%; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.display {
  font-family: "Anybody", "Geist", sans-serif;
  font-weight: var(--wght, 780);
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.display,
.display * { font-variation-settings: "wdth" var(--wdth, 100); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--acid);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Navigation: verschwindet beim Runterscrollen, wird über dem gelben Feld schwarz */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  color: var(--bone);
  transition: color 0.5s var(--ease-out);
}
.nav.is-on-acid { color: var(--ink); }
.nav__mark {
  justify-self: start;
  font-family: "Anybody", sans-serif;
  font-weight: 800;
  font-variation-settings: "wdth" 130;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav__links { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav__links a {
  font-size: 0.875rem;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
  padding: 0.35rem 0;
}
.nav__links a:hover { background-size: 100% 1px; }
.nav__tc {
  justify-self: end;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Buttons: eckig, wie alles auf der Seite */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 3.25rem;
  padding: 0 1.6rem;
  font: 500 1.0625rem/1 "Geist", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), scale 0.2s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: scaleY(1); }
.btn:active { scale: 0.98; }
.btn--solid { background: var(--acid); color: var(--ink); }
.btn--solid::before { background: var(--bone); }
.btn--solid:focus-visible { outline-color: var(--bone); }
.btn--ghost { color: var(--bone); box-shadow: inset 0 0 0 1px rgb(236 238 228 / 0.45); }
.btn--ghost::before { background: var(--bone); }
.btn--ghost:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}
.hero__still,
.hero__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__still { object-fit: cover; filter: brightness(0.55); }
.hero__gl { opacity: 0; transition: opacity 0.6s linear; touch-action: pan-y; }
.hero.is-gl .hero__gl { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgb(12 14 11 / 0.85) 0%, rgb(12 14 11 / 0) 55%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 7rem var(--gutter) clamp(2rem, 7vh, 4.5rem);
  pointer-events: none;
}
.hero__content a { pointer-events: auto; }
.hero__title {
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  font-size: clamp(3.1rem, 10.5vw, 6rem);
  --wdth: 125;
  --wght: 820;
  line-height: 0.92;
}
.display .word { white-space: nowrap; }
.hero__title .line-mask { padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 34rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem 3rem;
}
.hero__sub { margin: 0; font-size: 1.1875rem; color: var(--bone); max-width: 36ch; }
.hero__hint { color: var(--mute); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Manifest */
.manifest {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: clamp(6rem, 14vh, 10rem) var(--gutter);
}
.manifest__text {
  margin: 0 0 0 clamp(0rem, 14vw, 16rem);
  max-width: 22ch;
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  --wght: 620;
  --wdth: 100;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

/* Arbeiten */
.work { position: relative; overflow: hidden; }
.work__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  height: 100dvh;
  padding: 0 14vw 0 var(--gutter);
  width: max-content;
}
.work__intro { flex: 0 0 auto; width: max-content; }
.work__title {
  margin: 0 0 1.25rem;
  font-size: clamp(3.5rem, 11vw, 6rem);
  --wdth: 150;
  --wght: 850;
}
.work__lede { margin: 0; color: var(--mute); max-width: 28ch; font-size: 1.1875rem; }

.proj {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: flex-start;
  margin-top: 9vh;
}
.proj--low { align-self: flex-end; margin: 0 0 6vh; }
.proj__media {
  position: relative;
  margin: 0;
  height: calc(var(--h) * 1vh - 7rem);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--ink-2);
}
.proj__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}
.proj__ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.18);
}
.proj__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.5rem;
  align-items: baseline;
}
.proj__name {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  --wdth: 110;
  --wght: 760;
}
.proj__meta p { grid-column: 1; margin: 0.35rem 0 0; color: var(--mute); font-size: 0.875rem; }
.proj__year {
  grid-row: 1;
  grid-column: 2;
  font-family: "Geist Mono", monospace;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

/* Disziplinen */
.disc { padding: clamp(6rem, 16vh, 11rem) var(--gutter); }
.disc__title {
  margin: 0 0 clamp(2.5rem, 6vh, 4rem);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--mute);
}
.disc__list { list-style: none; margin: 0; padding: 0; }
.disc__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  align-items: end;
  gap: 0.5rem 3rem;
  padding: clamp(0.75rem, 2vh, 1.25rem) 0;
}
.disc__row + .disc__row { border-top: 1px solid rgb(236 238 228 / 0.12); }
.disc__word {
  display: block;
  font-size: clamp(2.1rem, 6.2vw, 5rem);
  --wdth: 60;
  --wght: 800;
  line-height: 1;
  white-space: nowrap;
}
.disc__desc { margin: 0 0 0.6rem; color: var(--mute); max-width: 32ch; }

/* Studio */
.studio { position: relative; height: 100dvh; overflow: hidden; }
.studio__frame { position: absolute; inset: 0; overflow: hidden; }
.studio__frame img { width: 100%; height: 100%; object-fit: cover; }
.studio__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(12 14 11 / 0.92) 0%, rgb(12 14 11 / 0.35) 50%, rgb(12 14 11 / 0.1) 100%);
}
.studio__copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2.5rem, 9vh, 6rem);
  max-width: 44rem;
}
.studio__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  --wdth: 115;
  --wght: 800;
}
.studio__copy p { margin: 0; max-width: 46ch; font-size: 1.1875rem; }

/* Kontakt: die eine gewollte Farbumkehr der Seite */
.contact {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--acid);
  color: var(--ink);
}
.contact ::selection { background: var(--ink); color: var(--acid); }
.contact :focus-visible { outline-color: var(--ink); }
.contact__inner {
  align-self: center;
  padding: 7rem var(--gutter) 3rem;
}
.contact__title {
  margin: 0 0 1.5rem;
  font-size: clamp(3.2rem, 12vw, 6rem);
  --wdth: 150;
  --wght: 880;
}
.contact__text { margin: 0 0 2.5rem; max-width: 34ch; font-size: 1.1875rem; }
.contact__mail {
  display: inline-block;
  font-family: "Anybody", sans-serif;
  font-variation-settings: "wdth" 100;
  font-weight: 700;
  font-size: clamp(1.4rem, 4.4vw, 3.25rem);
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
  transition: font-variation-settings 0.6s var(--ease-out);
}
.contact__mail:hover { font-variation-settings: "wdth" 135; }
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid rgb(12 14 11 / 0.2);
  font-size: 0.875rem;
}
.foot p { margin: 0; }

/* Mobil: alles einspaltig, Arbeiten vertikal */
@media (max-width: 899px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__tc { display: none; }
  .nav__links { gap: 1.1rem; }
  .nav__links a { padding: 0.8rem 0.1rem; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__title { --wdth: 108; font-size: clamp(2.9rem, 13vw, 4.5rem); }
  .work__title { --wdth: 112; }
  .studio__title { --wdth: 100; font-size: clamp(2.1rem, 9.5vw, 3.5rem); }
  .contact__title { --wdth: 112; font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .manifest__text { margin-left: 0; }

  .work__track {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    width: auto;
    padding-block: clamp(5rem, 12vh, 8rem);
    gap: 4rem;
  }
  .work__intro { width: auto; }
  .proj,
  .proj--low { align-self: stretch; margin: 0; }
  .proj:nth-of-type(even) { padding-left: 18vw; }
  .proj:nth-of-type(odd) { padding-right: 12vw; }
  .proj__media { height: auto; width: 100%; aspect-ratio: 4 / 5; }

  .disc__row { grid-template-columns: 1fr; }
  .disc__desc { margin: 0; }
}

@media (max-width: 420px) {
  .nav__mark { font-size: 1.1rem; }
  .nav__links a { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__gl { display: none; }
  .proj__media img { transform: none; }
  .disc__word { --wdth: 100; }
  .proj__ghost { display: none; }
}

html.reduced .nav { background: var(--ink); }

/* Ohne Bewegung: Arbeiten untereinander statt horizontaler Fahrt */
html.reduced .work__track {
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  width: auto;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter);
  gap: 5rem;
}
html.reduced .proj,
html.reduced .proj--low { align-self: flex-start; margin: 0; }
html.reduced .proj__media { height: min(78vh, 52rem); max-width: 100%; }
@media (max-width: 899px) {
  html.reduced .proj__media { height: auto; }
}
