:root {
  --blue: #767676;
  --bg: #000000;
  --text: #f1f0ec;
  --muted: #9e9e9b;
  --line: rgba(255, 255, 255, 0.13);
  --gutter: clamp(20px, 3.6vw, 68px);
  --gap: clamp(16px, 2vw, 32px);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

img, a {
  -webkit-user-drag: none;
}

body, h1, h2, h3, p, figure, blockquote {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img, video, canvas {
  display: block;
  width: 100%;
}

img {
  height: auto;
}

picture {
  display: contents;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: fixed;
  top: -100px;
  left: var(--gutter);
  z-index: 10001;
  background: var(--blue);
  color: #fff;
  padding: 14px 20px;
}

.skip:focus {
  top: 16px;
}

/* =========================================================
   PRELOADER & ZWISCHENLADE-SCREEN (KURZ & KNACKIG)
   ========================================================= */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--bg);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.52s var(--ease-in-out),
              opacity 0.35s ease,
              visibility 0s linear 0.52s;
  will-change: transform, opacity;
}

.page-loader.is-active {
  pointer-events: all;
  opacity: 1;
  visibility: visible;
  transform: translateY(0%);
  transition: transform 0.45s var(--ease-out-expo),
              opacity 0.25s ease,
              visibility 0s linear 0s;
}

.page-loader.is-from-bottom {
  transition: none !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(100%);
}

.loader-word {
  display: inline-flex;
  align-items: flex-start;
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.055em;
  color: #fff;
  line-height: 1;
  user-select: none;
}

.loader-word .char {
  display: inline-block;
  will-change: transform, filter, opacity;
  animation: gridWave 1.05s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: calc(var(--i) * 0.08s);
}

.loader-word .char-copy {
  font-size: 0.48em;
  margin-left: 0.08em;
  margin-top: 0.08em;
  font-weight: 600;
}

@keyframes gridWave {
  0%, 100% {
    transform: translateY(-10px) scale(1);
    filter: blur(0px);
    opacity: 1;
  }
  50% {
    transform: translateY(20px) scale(0.94);
    filter: blur(6px);
    opacity: 0.42;
  }
}

/* =========================================================
   NEGATIVER KREIS-CURSOR MIT DELAY
   ========================================================= */
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(1);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              margin 0.3s var(--ease-out-expo),
              opacity 0.25s ease;
  will-change: transform;
}

.cursor-follower.is-visible {
  opacity: 1;
}

.cursor-follower.is-hover {
  width: 48px;
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
}

@media (hover: none), (pointer: coarse) {
  .cursor-follower {
    display: none !important;
  }
}

/* =========================================================
   NAVIGATION (FIXED + BLEND MODE WIE GRID©)
   ========================================================= */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
}

.signature {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.signature span {
  font-size: 13px;
  vertical-align: top;
  letter-spacing: 0;
  margin-left: 2px;
}

nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

nav a {
  padding: 6px 0;
  transition: opacity 0.25s ease;
}

nav a:hover {
  opacity: 0.6;
}

/* =========================================================
   STICKY HERO + ORGANISCHER PARALLAX-SCROLL
   ========================================================= */
.hero-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: var(--bg);
}

.hero {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #484848;
  color: #fff;
  will-change: transform;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.hero-content a {
  pointer-events: auto;
}

.hero canvas,
.hero-fallback {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  mix-blend-mode: multiply;
}

/* Verblasstes Porträt mit CSS-Fallback */
.hero canvas {
  opacity: 0.8;
}

.hero-fallback {
  object-fit: cover;
  object-position: 66% 24%;
  transform: scale(0.98);
  opacity: 0.78;
  filter: blur(8px);
}

.hero.has-canvas .hero-fallback {
  visibility: hidden;
}

/* Weicher Fade zu Schwarz am unteren Rand des Hero-Bildes */
.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 56%,
    rgba(0, 0, 0, 0.46) 80%,
    rgba(0, 0, 0, 0.9) 95%,
    #000000 100%
  );
}

/* Organische Abdunkelung beim Hochschieben der Work-Section */
.hero-scroll-dim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: var(--bg);
  opacity: 0;
  will-change: opacity;
}

.hero-title-row {
  position: absolute;
  inset-inline: var(--gutter);
  bottom: 52px;
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  align-items: baseline;
}

.hero-portfolio-label {
  grid-column: 3;
  padding-left: clamp(8px, 1vw, 20px);
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.hero h1 {
  grid-column: 2;
  position: relative;
  font-size: 21vw;
  letter-spacing: -0.075em;
  line-height: 0.8;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
}

.hero h1 span {
  position: absolute;
  top: -0.14em;
  left: calc(100% + 0.12em);
  font-size: 0.145em;
  letter-spacing: 0;
  line-height: 1;
}

/* Curtain-Container, der sich beim Scrollen über das Hero-Bild schiebt */
.home-sheet {
  position: relative;
  z-index: 2;
  background: var(--bg);
  box-shadow: 0 -28px 64px rgba(0, 0, 0, 0.82);
}

.footer-sheet {
  position: relative;
  z-index: 3;
  background: var(--bg);
}

/* =========================================================
   SECTIONS, PROJEKTZEILEN & TYPOGRAFIE
   ========================================================= */
.section {
  padding: 110px var(--gutter);
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 52px;
  gap: 20px;
}

.section-label h2 {
  font-size: clamp(32px, 4.2vw, 68px);
  letter-spacing: -0.055em;
  font-weight: 600;
  line-height: 0.96;
}

.section-label > span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.work .section-label {
  margin-bottom: 0;
}

.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-list > li + li {
  border-top: 1px solid var(--line);
}

.project-card {
  display: grid;
  grid-template-columns: 0.7fr 3fr 1.8fr;
  align-items: center;
  column-gap: clamp(16px, 2.4vw, 44px);
  padding: clamp(28px, 4.5vw, 72px) 0;
}

.project-number {
  align-self: center;
  font-size: clamp(44px, 7.8vw, 124px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-variant-numeric: lining-nums tabular-nums;
}

.project-card.is-pending {
  opacity: 0;
  transform: translateY(42px);
}

.project-card.is-revealed {
  transition: opacity 0.8s ease, transform 1s var(--ease-out-expo);
}

.project-card:focus-visible {
  opacity: 1;
  transform: none;
}

.card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out-expo);
}

.project-card:hover .card-image img,
.project-card:focus-visible .card-image img {
  transform: scale(1.04);
}

.card-caption {
  min-width: 0;
}

.card-caption h3 {
  font-size: clamp(22px, 3.05vw, 48px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}

.card-caption p {
  margin-top: 8px;
  font-size: clamp(14px, 1.85vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--muted);
}

.work {
  padding-bottom: 0;
}

.work-more {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.view-all span {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}

.view-all:hover span,
.view-all:focus-visible span {
  transform: translate(3px, -3px);
}

/* Übersicht aller Projekte mit zwei großzügigen Bildspalten. */
.all-work-page {
  position: relative;
  min-height: 100svh;
  padding: 160px var(--gutter) 100px;
  background: var(--bg);
}

.all-work-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 26px;
  margin-bottom: clamp(36px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.all-work-heading h1 {
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.all-work-heading p {
  color: var(--muted);
  font-size: clamp(12px, 1.1vw, 17px);
  text-align: right;
}

.all-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 4.5vw, 76px) var(--gap);
}

.work-tile {
  display: block;
  min-width: 0;
}

.work-tile-image {
  aspect-ratio: 1.16;
  overflow: hidden;
  border-radius: clamp(14px, 1.6vw, 28px);
  background: var(--bg);
}

.work-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out-expo);
}

.work-tile[href="#project/corporate-design"] .work-tile-image img {
  object-position: right center;
  transform: scale(1.25);
  transform-origin: right center;
}

.work-tile[href="#project/corporate-design"]:is(:hover, :focus-visible) .work-tile-image img {
  transform: scale(1.29);
}

.work-tile:hover img,
.work-tile:focus-visible img {
  transform: scale(1.035);
}

.work-tile-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
}

.work-tile-caption h2 {
  font-size: clamp(24px, 2.3vw, 38px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.work-tile-caption p {
  margin-left: auto;
  color: var(--muted);
  font-size: clamp(12px, 1.1vw, 18px);
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-align: right;
}

.about-statement {
  font-size: clamp(36px, 5vw, 82px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
  max-width: 1260px;
  margin: 70px 0 84px;
  text-wrap: pretty;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 4vw;
}

.about-grid figure {
  height: 440px;
  overflow: hidden;
  background: var(--bg);
}

.about-grid img {
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  transform: scale(var(--portrait-scale, 1));
  transform-origin: 50% 35%;
  will-change: transform;
}

.about-grid h3 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--text);
}

.about-grid p {
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: -0.03em;
  line-height: 1.36;
  color: var(--muted);
  margin-bottom: 24px;
}

/* =========================================================
   CLEANER FOOTER (OHNE ÜBERGROSSES SIMION-WORT)
   ========================================================= */
footer {
  padding-bottom: 40px !important;
}

.contact-title {
  display: block;
  font-size: clamp(44px, 7.8vw, 132px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.065em;
  margin: 72px 0 18px;
}

.contact-title span {
  color: var(--blue);
  display: inline-block;
  transition: transform 0.4s var(--ease-out-expo);
}

.contact-title:hover span {
  transform: translate(6px, -6px);
}

.contact-links {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-bottom: clamp(36px, 5vw, 72px);
  font-size: 15px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.contact-linkedin {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #666;
  border-radius: 99px;
}

.contact-linkedin:is(:hover, :focus-visible) {
  background: var(--text);
  color: var(--bg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding-top: 24px;
}

.noscript {
  padding: 24px;
}

/* =========================================================
   PROJEKTSEITE & SLIDE-UP-ANIMATION VON UNTEN
   ========================================================= */
#project-page {
  position: relative;
  z-index: 5;
  background: var(--bg);
  min-height: 100svh;
}

#project-page.is-sliding-up {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow-y: hidden;
  box-shadow: 0 -40px 90px rgba(0, 0, 0, 0.85);
  animation: projectSlideUp 0.72s var(--ease-out-expo) forwards;
}

@keyframes projectSlideUp {
  from {
    transform: translateY(100vh);
  }
  to {
    transform: translateY(0);
  }
}

.project-heading {
  padding: 150px var(--gutter) 40px;
}

.project-heading > a {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.25s ease;
}

.project-heading > a:hover {
  color: var(--text);
  transform: translateX(-4px);
}

.project-heading h1 {
  font-size: clamp(56px, 8vw, 140px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.065em;
  margin: 46px 0 80px;
  max-width: 1050px;
}

.is-origami .project-heading h1,
a[href="#project/tiny-house"] :is(h2, h3, strong) {
  white-space: nowrap;
}

.project-intro {
  width: 52%;
  margin-left: auto;
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 46px;
}

.project-meta {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  font-size: 14px;
}

.project-meta dt {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 12px;
}

.project-meta dd {
  margin: 0;
  font-weight: 500;
}

.project-body {
  padding: 0 var(--gutter);
}

.project-body img {
  width: 100%;
  height: auto;
}

.is-autograph .project-heading {
  padding-top: clamp(78px, 10svh, 135px);
  padding-bottom: 24px;
}

.is-autograph .project-heading h1 {
  margin: 18px 0;
}

.is-autograph .project-intro {
  margin-bottom: 20px;
}

.autograph-cover {
  position: relative;
  min-height: 50svh;
  aspect-ratio: 1.65;
  overflow: hidden;
}

.autograph-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.autograph-concept,
.autograph-quote {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(100px, 20svh, 300px);
}

.autograph-concept {
  max-width: 740px;
  margin-left: auto;
  font-size: clamp(18px, 1.65vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--muted);
}

.autograph-concept h2 {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.autograph-concept p + p {
  margin-top: 24px;
}

.autograph-wide {
  aspect-ratio: 1.94;
  overflow: hidden;
}

.autograph-wide img {
  height: 100%;
  object-fit: cover;
}

.autograph-mockup-pair,
.autograph-spreads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.autograph-mockup-pair img {
  height: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.autograph-quote {
  width: 60%;
  margin: auto;
}

.autograph-quote blockquote {
  color: var(--muted);
  font-size: clamp(20px, 2.3vw, 36px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.autograph-quote figcaption {
  font-size: 13px;
  text-align: right;
  margin-top: 24px;
  color: var(--muted);
}

.autograph-spread {
  display: flex;
  align-items: stretch;
  background: white;
}

.autograph-spread img {
  width: 50%;
  aspect-ratio: 595 / 842;
  object-fit: contain;
}

.tiny-hero video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tiny-concept {
  display: grid;
  grid-template-columns: min(34%, 375px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 84px);
  padding: 110px 0;
  align-items: center;
}

.tiny-concept > div {
  text-align: left;
}

.tiny-sketch {
  display: block;
  aspect-ratio: 1472 / 2266;
  padding-inline-start: 1%;
  background: #fff;
  overflow: hidden;
}

.tiny-sketch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.tiny-concept p {
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--muted);
}

.tiny-concept p + p {
  margin-top: 1.2em;
}

.tiny-feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.tiny-feature-pair img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.tiny-elevations {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 12px;
  margin: 110px 0;
  align-items: stretch;
}

.tiny-elevations img {
  height: 100%;
  object-fit: cover;
}

.tiny-model {
  position: relative;
  min-height: 260px;
}

.tiny-model canvas {
  height: 100%;
}

.tiny-model-status {
  position: absolute;
  bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}

.tiny-process {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5vw;
  align-items: center;
  margin: 100px 0;
}

.tiny-process p {
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.4;
  color: var(--muted);
}

.tiny-process video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tiny-atmosphere {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 5vw;
  align-items: center;
  margin: 80px 0;
}

.tiny-night img {
  max-height: 750px;
  object-fit: cover;
}

.tiny-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.tiny-details img {
  aspect-ratio: 1.8;
  object-fit: cover;
}

.work-tile-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #151515;
  color: #bdbdbd;
  font-size: clamp(22px, 2.8vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
  text-align: center;
}

.is-motion .project-heading {
  padding-bottom: 0;
}

.motion-progress {
  display: grid;
  place-items: center;
  min-height: clamp(260px, 40svh, 480px);
  padding-block: 50px;
  color: #bdbdbd;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.025em;
  text-align: center;
}

.is-motion .next-project {
  margin-top: 0;
}

.collection-introduction {
  min-height: clamp(72px, 14svh, 170px);
  max-width: 740px;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 1.65vw, 26px);
  line-height: 1.4;
}

.collection-media {
  display: grid;
  gap: var(--gap);
}

.collection-media :is(img, video) {
  max-height: 90svh;
  object-fit: contain;
}

/* Corporate Design: Collage nach dem gelieferten Mockup. */
.corporate-page {
  --corporate-gap: clamp(10px, 1.2vw, 22px);
}

.corporate-introduction {
  margin: clamp(36px, 6vw, 90px) 0 clamp(70px, 10vw, 160px) auto;
  min-height: 0;
}

.corporate-collage,
.corporate-collage div {
  display: grid;
  gap: var(--corporate-gap);
  min-width: 0;
}

.corporate-collage figure {
  display: grid;
  align-items: center;
  min-width: 0;
}

.corporate-collage :is(img, video) {
  display: block;
  width: 100%;
  height: auto;
}

.corporate-broadcast {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
}

.corporate-identity {
  grid-template-columns: minmax(0, 0.4094fr) minmax(0, 1fr);
}

.corporate-programs {
  grid-template-columns: minmax(0, 0.61fr) minmax(0, 1fr);
}

.corporate-campaign {
  /* Align one 16:9 frame with two stacked 16:9 frames, including the gutter. */
  grid-template-columns: calc(66.6667% - var(--corporate-gap) * 0.0741) minmax(0, 1fr);
}

.corporate-campaign-intro {
  /* The mission grid adds another gutter between its two pairs. */
  grid-template-columns: calc(66.6667% + var(--corporate-gap) * 0.1852) minmax(0, 1fr);
}

.corporate-missions,
.corporate-posts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.corporate-medical {
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
}

.corporate-reels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.corporate-intro-film {
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.corporate-reels video {
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.next-project {
  margin: 90px var(--gutter) 0;
  padding: 35px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.next-project span {
  color: var(--muted);
  font-size: 12px;
}

.next-project strong {
  font-size: clamp(30px, 5vw, 80px);
  letter-spacing: -0.055em;
  font-weight: 600;
}

.media-error {
  padding: 30px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.reference-note {
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0;
}

@media (max-width: 700px), (orientation: landscape) and (pointer: coarse) and (max-height: 480px) and (max-width: 980px) {
  .navigation {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .signature {
    font-size: 22px;
  }
  nav {
    gap: 18px;
    font-size: 12px;
  }
  .hero-sticky-wrap {
    height: 92svh;
    min-height: 420px;
  }
  .hero-title-row h1 {
    font-size: min(21vw, calc((100vw - 136px) / 3.4));
  }
  .section {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .section-label {
    margin-bottom: 28px;
  }
  .section-label > span {
    font-size: 10px;
    max-width: 130px;
    text-align: right;
  }
  .work {
    padding-bottom: 0;
  }
  .project-card {
    grid-template-columns: 44px minmax(0, 1fr) minmax(96px, 31%);
    column-gap: 12px;
    padding: 30px 0;
  }
  .project-number {
    font-size: 44px;
  }
  .card-caption h3 {
    font-size: clamp(18px, 3.5vw, 24px);
  }
  .card-caption p {
    font-size: 12px;
    margin-top: 6px;
  }
  .all-work-page {
    padding-top: 120px;
    padding-bottom: 65px;
  }
  .all-work-grid {
    grid-template-columns: 1fr;
  }
  .work-tile-caption {
    display: block;
    margin-top: 16px;
  }
  .work-tile-caption p {
    margin-top: 8px;
    text-align: left;
    font-size: 14px;
  }
  .about-statement {
    text-indent: 0;
    margin: 40px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-grid figure {
    height: 420px;
  }
  .about-grid h3 {
    margin-bottom: 14px;
  }
  .contact-title {
    margin: 50px 0 14px;
  }
  .footer-bottom {
    font-size: 10px;
  }
  .project-heading {
    padding-top: 120px;
  }
  .project-heading h1 {
    margin: 36px 0 45px;
    font-size: 15vw;
  }
  .project-intro {
    width: 100%;
  }
  .project-meta {
    grid-template-columns: 1fr 1fr;
    font-size: 12px;
  }
  .project-meta > div:last-child {
    grid-column: 1 / -1;
  }
  .autograph-quote {
    width: 90%;
  }
  .autograph-mockup-pair,
  .autograph-spreads {
    grid-template-columns: 1fr;
  }
  .tiny-process,
  .tiny-atmosphere {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0;
    margin: 65px 0;
  }
  .tiny-concept {
    grid-template-columns: min(30%, 200px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(12px, 3vw, 24px);
    padding: 0;
    margin: 65px 0;
  }
  .tiny-concept p {
    font-size: 16px;
    line-height: 1.45;
  }
  .tiny-elevations {
    grid-template-columns: repeat(2, 1fr);
    margin: 65px 0;
  }
  .tiny-model {
    grid-column: 1 / -1;
    height: 350px;
  }
  .tiny-details {
    grid-template-columns: 1fr;
  }
  .tiny-night img {
    max-height: 500px;
    object-fit: contain;
  }
  .next-project {
    margin-top: 50px;
    gap: 20px;
  }
  .next-project strong {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .project-card.is-pending {
    opacity: 1;
    transform: none;
  }
  .about-grid img {
    transform: none;
  }
}

/* Kurzbeschreibung oberhalb des großen Schriftzugs. */
.hero-intro {
  position: absolute;
  left: var(--gutter);
  top: clamp(76px, 10.4svh, 110px);
  color: #9a9a9a;
  z-index: 2;
  margin: 0;
  text-align: left;
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-intro span {
  font-weight: 100;
}

@media (max-width: 700px), (orientation: landscape) and (pointer: coarse) and (max-height: 480px) and (max-width: 980px) {
  .hero-intro {
    line-height: 1.35;
  }
}

/* Scrollleisten ausblenden, Scrollen bleibt möglich. */
* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

/* Überschriften und Inhalte werden jeweils als ganzer Block eingeblendet. */
.reveal-block.is-pending {
  opacity: 0;
}

.reveal-block.is-revealed {
  transition: opacity 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-block.is-pending {
    opacity: 1;
  }
}

/* =========================================================
   COSTURA KANTI — Markenprojekt nach dem Portfolio-Mockup
   ========================================================= */
#project-page.is-kanti {
  --kanti-gap: clamp(10px, 1.4vw, 24px);
  --kanti-copy-size: clamp(13px, 1.22vw, 20px);
  color: #fff;
}

.is-kanti .project-heading h1 {
  max-width: none;
  font-size: clamp(48px, 7.5vw, 132px);
  letter-spacing: -0.045em;
}

.is-kanti .project-intro {
  width: 54%;
  font-size: clamp(24px, 2.75vw, 44px);
  letter-spacing: -0.035em;
}

.is-kanti .project-body {
  padding: 0;
}

.kanti-hero {
  aspect-ratio: 2752 / 1536;
  overflow: hidden;
}

.kanti-hero img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kanti-brand,
.kanti-campaign {
  width: 89%;
  margin-inline: auto;
}

.kanti-brand {
  padding-top: 10.5vw;
}

.kanti-concept {
  display: grid;
  grid-template-columns: 0.94fr 1.9fr;
  align-items: center;
  gap: 4.3vw;
}

.kanti-concept > figure {
  aspect-ratio: 1;
}

.kanti-concept > figure img {
  height: 100%;
  object-fit: cover;
}

.kanti-copy {
  color: var(--muted);
  font-size: var(--kanti-copy-size);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.kanti-copy h2 {
  color: var(--text);
  margin-bottom: 1.5em;
  font: inherit;
  text-transform: uppercase;
}

.kanti-copy p + p {
  margin-top: 1.2em;
}

.kanti-palette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7vw;
}

.kanti-palette span {
  display: block;
  height: clamp(18px, 2.8vw, 48px);
}

.kanti-palette p {
  margin: 10px 4px 0;
  color: #aaa9a4;
  font-size: clamp(14px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.kanti-logos {
  position: relative;
  width: min(96%, 165svh);
  margin: clamp(120px, 22svh, 315px) auto clamp(160px, 30svh, 420px);
}

.kanti-logos .kanti-guidelines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.kanti-campaign {
  display: grid;
  gap: 4.5vw;
}

.kanti-campaign figure {
  overflow: hidden;
}

.kanti-campaign img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kanti-campaign-gallery,
.kanti-campaign-city {
  aspect-ratio: 4 / 3;
}

.kanti-campaign-subway {
  aspect-ratio: 16 / 9;
}

.kanti-digital,
.kanti-craft {
  width: 92%;
  margin-inline: auto;
}

.kanti-digital-intro {
  width: 76%;
  margin: 19vw auto;
}

.kanti-social {
  display: grid;
  grid-template-columns: 0.728fr 1fr 1fr;
  gap: 5vw;
  align-items: stretch;
  padding-inline: 0.8vw;
}

/* Transparente Außenfläche des Mockups beschneiden, das ganze Telefon zeigen. */
.kanti-profile {
  position: relative;
  aspect-ratio: 989 / 2021;
  overflow: hidden;
  align-self: center;
}

.kanti-profile img {
  position: absolute;
  max-width: none;
  width: 455.0051%;
  height: 148.4414%;
  left: -52.6795%;
  top: -24.1959%;
}

.kanti-post {
  position: relative;
  aspect-ratio: 857 / 1352;
  overflow: hidden;
}

.kanti-post img {
  position: absolute;
  max-width: none;
  width: 126.021%;
  height: 142.012%;
  left: -12.952%;
  top: -22.337%;
}

.kanti-websites {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.5vw;
  margin-top: 6vw;
}

.kanti-websites figure {
  position: relative;
  aspect-ratio: 1723 / 1123;
  overflow: hidden;
}

.kanti-websites img {
  position: absolute;
  width: 100%;
  height: auto;
  bottom: 0;
  left: 0;
}

.kanti-craft {
  margin-top: 20vw;
}

.kanti-materials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4vw;
  margin-top: 4.5vw;
}

.kanti-materials figure {
  aspect-ratio: 0.72;
  overflow: hidden;
}

.kanti-materials img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kanti-materials .kanti-book img {
  object-position: 50% 50%;
}

.kanti-origin {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 6vw;
  margin-top: 4.5vw;
}

.kanti-origin figure {
  aspect-ratio: 1.48;
  overflow: hidden;
}

.kanti-origin img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.kanti-origin-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2em clamp(16px, 2vw, 36px);
  text-align: left;
}

.kanti-origin-text p + p {
  margin-top: 0;
}

.kanti-editorial {
  display: grid;
  gap: var(--kanti-gap);
  width: 94%;
  margin: 16vw auto 0;
}

#kanti-gallery-title {
  margin: 0 0 clamp(24px, 4vw, 72px);
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 4vw, 68px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.kanti-editorial figure {
  overflow: hidden;
}

.kanti-editorial figure img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kanti-editorial-opening {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--kanti-gap);
  aspect-ratio: 1.66;
}

.kanti-still-life {
  grid-row: 1 / 3;
}

.kanti-editorial-coast {
  display: grid;
  grid-template-columns: 1.94fr 1fr;
  gap: var(--kanti-gap);
  aspect-ratio: 2.67;
}

.kanti-editorial-coast .kanti-rust img {
  object-position: 52% center;
}

.kanti-editorial-alpacas {
  display: grid;
  grid-template-columns: 1fr 1.94fr;
  gap: var(--kanti-gap);
  aspect-ratio: 2.28;
}

.kanti-editorial-closing {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--kanti-gap);
}

.kanti-editorial-stack {
  display: grid;
  gap: var(--kanti-gap);
}

.kanti-editorial-stack figure {
  aspect-ratio: 1.79;
}

.kanti-editorial-signoff {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.kanti-final-portrait {
  flex: 1;
  min-height: 0;
  position: relative;
}

.kanti-final-portrait img {
  position: absolute;
  inset: 0;
}

.kanti-editorial .kanti-final-portrait img {
  object-position: 50% center;
}

/* Kopf und Titelbild sind immer sichtbar, weitere Blöcke erscheinen beim Scrollen. */
[data-project-reveal] {
  transition: opacity 0.85s ease, transform 1s var(--ease-out-expo);
}

[data-project-reveal].is-pending {
  opacity: 0;
  transform: translateY(28px);
}

[data-project-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 700px), (orientation: landscape) and (pointer: coarse) and (max-height: 480px) and (max-width: 980px) {
  .is-kanti .project-heading h1 {
    font-size: clamp(32px, 8.5vw, 60px);
    margin-bottom: 36px;
  }
  .is-kanti .project-intro {
    width: 100%;
    font-size: clamp(22px, 5.4vw, 30px);
    margin-bottom: 32px;
  }
  .kanti-brand,
  .kanti-campaign,
  .kanti-digital,
  .kanti-craft,
  .kanti-editorial {
    width: calc(100% - 2 * var(--gutter));
  }
  .kanti-brand {
    padding-top: 60px;
  }
  .kanti-concept {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .kanti-concept > figure {
    width: 58%;
  }
  .kanti-copy {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.015em;
  }
  .kanti-palette {
    margin-top: 36px;
  }
  .kanti-palette p {
    font-size: clamp(10px, 2.8vw, 15px);
    margin-inline: 0;
  }
  .kanti-logos {
    width: 100%;
    margin: clamp(100px, 17.5svh, 175px) auto clamp(110px, 19svh, 190px);
  }
  .kanti-campaign {
    gap: 24px;
  }
  .kanti-digital-intro {
    width: 100%;
    margin: 72px auto 48px;
  }
  .kanti-social {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px var(--kanti-gap);
    padding: 0;
  }
  .kanti-profile {
    grid-column: 1 / -1;
    width: 46%;
    justify-self: center;
  }
  .kanti-websites {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }
  .kanti-craft {
    margin-top: 80px;
  }
  .kanti-materials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--kanti-gap);
    margin-top: 32px;
  }
  .kanti-origin {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }
  .kanti-origin-text {
    grid-template-columns: 1fr;
  }
  .kanti-editorial {
    margin-top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-project-reveal].is-pending {
    opacity: 1;
    transform: none;
  }
}


/* Phone layouts use the same project order as the wider compositions. */
@media (max-width: 600px), (orientation: landscape) and (pointer: coarse) and (max-height: 480px) and (max-width: 980px) {
  nav {
    gap: clamp(12px, 4vw, 20px);
    font-size: 14px;
  }

  .navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .signature span {
    align-self: flex-start;
    margin-top: 7px;
  }

  .hero-title-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 12px;
    bottom: clamp(24px, 5svh, 48px);
  }

  .hero-title-row h1,
  .hero-portfolio-label {
    grid-column: 1;
  }

  .hero-title-row h1 {
    font-size: 21vw;
  }

  .hero-portfolio-label {
    padding: 0;
    font-size: 14px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .project-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
  }

  .project-card .card-image {
    grid-column: 1 / -1;
  }

  .card-caption h3 {
    font-size: clamp(22px, 5.8vw, 30px);
  }

  .card-caption p, .project-meta dd,
  .next-project span, .project-heading > a {
    font-size: 14px;
  }

  .about-grid figure {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .footer-bottom, .project-meta dt {
    font-size: 13px;
  }

  .project-heading h1 {
    font-size: clamp(40px, 13vw, 72px);
  }

  .project-meta {
    grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  }

  .project-meta > div:last-child {
    grid-column: auto;
  }

  .next-project {
    flex-wrap: wrap;
  }

  .autograph-cover, .autograph-wide, .autograph-mockup-pair figure {
    min-height: 0;
    aspect-ratio: auto;
  }

  .autograph-cover img, .autograph-wide img,
  .autograph-mockup-pair img, .tiny-feature-pair img,
  .tiny-elevations img, .tiny-details img {
    position: static;
    height: auto;
    aspect-ratio: auto;
  }

  /* Reserve space for lazy images until the browser decodes their intrinsic ratio. */
  .autograph-cover img {
    aspect-ratio: auto 1;
  }

  .autograph-wide img,
  .autograph-mockup-pair img {
    aspect-ratio: auto 3 / 2;
  }

  .autograph-mockup-pair figure:first-child img,
  .tiny-details figure:last-child img {
    aspect-ratio: auto 4 / 3;
  }

  .tiny-feature-pair img, .tiny-elevations img {
    aspect-ratio: auto 2 / 3;
  }

  .tiny-details img {
    aspect-ratio: auto 16 / 9;
  }

  .autograph-concept, .autograph-quote {
    min-height: 0;
    width: 100%;
    padding-block: clamp(60px, 12vw, 84px);
  }

  .autograph-spread {
    display: block;
  }

  .autograph-spread img {
    width: 100%;
  }

  .tiny-feature-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .tiny-hero video, .tiny-process video {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .kanti-copy {
    font-size: 16px;
    line-height: 1.5;
  }

  .kanti-social {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .kanti-profile {
    width: min(70%, 260px);
  }

  .kanti-palette p {
    font-size: 13px;
  }

  .kanti-materials, .kanti-editorial-opening, .kanti-editorial-coast,
  .kanti-editorial-alpacas, .kanti-editorial-closing {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    aspect-ratio: auto;
  }

  .kanti-campaign figure, .kanti-origin figure, .kanti-materials figure,
  .kanti-editorial figure, .kanti-websites figure {
    grid-row: auto;
    aspect-ratio: auto;
  }

  .kanti-campaign img, .kanti-origin img, .kanti-materials img,
  .kanti-editorial figure img, .kanti-websites img {
    position: static;
    height: auto;
  }

  .kanti-editorial-signoff {
    display: block;
  }

  .corporate-collage {
    --corporate-gap: 16px;
  }

  .corporate-collage > div, .corporate-missions, .corporate-posts {
    grid-template-columns: minmax(0, 1fr);
  }

  .corporate-identity figure:first-child {
    width: min(58%, 200px);
    justify-self: center;
  }
}
