:root {
  --cream: #F2ECE0;
  --cream-2: #E8E0D2;
  --ink: #161310;
  --ink-soft: #4A443B;
  --gold: #A8895C;
  --line: rgba(22, 19, 16, 0.14);
  --white-warm: #FBF8F1;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --gutter: 20px;
  --section: 110px;
  --hero-type: 4.8rem;
  --headline-type: 3.2rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: auto;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

body.is-loading {
  overflow: hidden;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

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

img {
  height: auto;
}

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

a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}

::selection {
  background: var(--ink);
  color: var(--cream);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-140%);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  background: var(--gold);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-pad {
  position: relative;
  padding: var(--section) var(--gutter);
}

.section-index {
  position: absolute;
  right: var(--gutter);
  top: 44px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-variation-settings: "opsz" 72;
}

.section-heading {
  display: grid;
  gap: 26px;
  max-width: 980px;
  margin: 0 auto 70px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--headline-type);
  font-weight: 500;
  font-variation-settings: "opsz" 120, "SOFT" 20;
  letter-spacing: 0;
  line-height: 0.96;
}

.section-heading p:not(.eyebrow),
.about p,
.service-row p {
  max-width: 580px;
  color: var(--ink-soft);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--ink);
  clip-path: inset(0 0 0 0);
}

.webgl-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--ease);
}

.webgl-media-ready.webgl-media-visible .webgl-stage {
  opacity: 1;
}

.webgl-media-fallback .webgl-stage,
body.is-loading .webgl-stage {
  opacity: 0;
}

.preloader__inner {
  width: min(420px, calc(100vw - 48px));
}

.preloader__brand {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 500;
  font-variation-settings: "opsz" 120;
  line-height: 0.9;
  text-align: center;
}

.preloader__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preloader__line {
  height: 1px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--line);
}

.preloader__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.cursor {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 130;
  display: none;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__ring,
.cursor__dot,
.cursor__label {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate3d(-50%, -50%, 0);
}

.cursor__ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.cursor__label {
  min-width: 70px;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  color: var(--cream);
  mix-blend-mode: difference;
  transition: transform 0.65s var(--ease), opacity 0.65s var(--ease);
}

.site-header.is-hidden {
  opacity: 0;
  transform: translate3d(0, -120%, 0);
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 550;
  font-variation-settings: "opsz" 96;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 22px;
  color: rgba(242, 236, 224, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header__nav a {
  position: relative;
  padding: 8px 0;
}

.site-header__nav a::after {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.site-header__nav a:hover::after,
.site-header__nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 140px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
}

.hero__media,
.hero__media img,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.hero__shade {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(22, 19, 16, 0.64), rgba(22, 19, 16, 0.15) 48%, rgba(22, 19, 16, 0.46)),
    linear-gradient(0deg, rgba(22, 19, 16, 0.55), rgba(22, 19, 16, 0.06) 52%);
}

.hero-turn {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  perspective: 1100px;
  perspective-origin: 50% 100%;
}

.hero-turn__sheet {
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: -1px;
  height: 112%;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(251, 248, 241, 0.9), rgba(242, 236, 224, 0.98) 42%, rgba(232, 224, 210, 0.96)),
    var(--cream);
  border-top: 1px solid rgba(22, 19, 16, 0.12);
  box-shadow: 0 -34px 90px rgba(0, 0, 0, 0.34);
  transform: translate3d(0, 104%, 0) rotateX(14deg) skewY(-2deg);
  transform-origin: 50% 100%;
  will-change: transform;
}

.hero-turn__shadow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(34px, 8vh, 96px);
  background: linear-gradient(180deg, rgba(22, 19, 16, 0.18), rgba(22, 19, 16, 0));
  opacity: 0;
}

.hero-turn__grain {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 19, 16, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 19, 16, 0.03) 1px, transparent 1px);
  background-size: 92px 92px;
  mix-blend-mode: multiply;
  opacity: 0.28;
}

.hero__content {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 94svh;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 86px;
}

.hero__eyebrow {
  color: rgba(242, 236, 224, 0.76);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.22);
}

.hero__title {
  max-width: 9ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--hero-type);
  font-weight: 550;
  font-variation-settings: "opsz" 144, "SOFT" 18, "WONK" 1;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 510px;
  margin: 28px 0 0;
  color: rgba(242, 236, 224, 0.84);
  font-size: 1.02rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.2);
}

.hero__foot {
  position: absolute;
  bottom: 22px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(242, 236, 224, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__line {
  flex: 1;
  height: 1px;
  background: rgba(242, 236, 224, 0.35);
  transform-origin: left;
}

.manifest {
  display: grid;
  min-height: 82svh;
  align-content: center;
  background: var(--cream);
}

.manifest__statement {
  max-width: 1180px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: var(--headline-type);
  font-weight: 480;
  font-variation-settings: "opsz" 120, "SOFT" 28;
  line-height: 1;
  letter-spacing: 0;
}

.gallery {
  background: var(--cream-2);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-card {
  display: grid;
  gap: 16px;
}

.gallery-card__caption,
.section-index,
.section-heading p:not(.eyebrow),
.about__copy p:not(.eyebrow),
.contact-button {
  will-change: transform, opacity;
}

.gallery-card--wide .image-frame {
  aspect-ratio: 4 / 3;
}

.gallery-card--tall .image-frame {
  aspect-ratio: 3 / 4;
}

.gallery-card__caption {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: 1.62rem auto;
  gap: 6px 16px;
  align-items: start;
}

.gallery-card__caption span {
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1.35;
}

.gallery-card__caption h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 520;
  line-height: 1.08;
  white-space: nowrap;
}

.gallery-card__caption p {
  grid-column: 2;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.35;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: rgba(22, 19, 16, 0.08);
  isolation: isolate;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease), opacity 0.45s ease;
}

.webgl-image canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.webgl-image:hover img {
  filter: saturate(0.9) contrast(1.03);
}

.webgl-media-ready.webgl-media-visible .webgl-media.is-webgl-plane-ready > img {
  visibility: hidden;
  opacity: 0;
}

.showcase {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.showcase::before,
.showcase::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 6;
  width: clamp(34px, 8vw, 120px);
  content: "";
  pointer-events: none;
}

.showcase::before {
  left: 0;
  background: linear-gradient(90deg, var(--cream), rgba(242, 236, 224, 0));
}

.showcase::after {
  right: 0;
  background: linear-gradient(270deg, var(--cream), rgba(242, 236, 224, 0));
}

.showcase.is-dragging {
  cursor: grabbing;
}

.showcase__track {
  position: relative;
  z-index: 3;
  display: flex;
  width: max-content;
  gap: 22px;
  padding: 22px var(--gutter);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.showcase__panel {
  position: relative;
  flex: 0 0 auto;
  width: min(76vw, 560px);
  aspect-ratio: 5 / 4;
  margin: 0;
  overflow: hidden;
  background: var(--cream-2);
}

.showcase__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.webgl-media-ready .showcase__panel {
  background: transparent;
}

.webgl-media-ready.webgl-media-visible .showcase__panel.is-webgl-plane-ready img {
  visibility: hidden;
  opacity: 0;
}

.webgl-media-fallback .showcase__panel img {
  opacity: 1;
}

.showcase__panel figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  padding: 7px 10px;
  background: rgba(242, 236, 224, 0.76);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translate3d(0, 0, 0);
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
}

.showcase__panel:hover figcaption {
  background: rgba(242, 236, 224, 0.9);
  transform: translate3d(0, -4px, 0);
}

.about {
  display: grid;
  gap: 48px;
  align-items: center;
  background: var(--cream);
}

.about__copy {
  max-width: 680px;
}

.about__copy p:not(.eyebrow) {
  margin: 24px 0 0;
}

.about__image {
  aspect-ratio: 4 / 5;
}

.photographers {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.photographers__grid {
  display: grid;
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
}

.photographer-card {
  display: grid;
  gap: 22px;
}

.photographer-card__image {
  aspect-ratio: 4 / 5;
}

.photographer-card__copy {
  max-width: 560px;
  will-change: transform, opacity;
}

.photographer-card__copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 18;
  letter-spacing: 0;
  line-height: 1.05;
}

.photographer-card__copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.services {
  background: var(--cream-2);
}

.section-heading--split {
  max-width: 1120px;
}

.services__list {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  overflow: clip;
  transition: color 0.45s var(--ease), transform 0.45s var(--ease);
  will-change: transform;
}

.service-row::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(90deg, rgba(168, 137, 92, 0.16), rgba(168, 137, 92, 0));
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.58s var(--ease);
}

.service-row > * {
  position: relative;
  z-index: 1;
}

.service-row span {
  color: var(--gold);
  font-family: var(--font-display);
}

.service-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 520;
  line-height: 1;
}

.service-row p {
  grid-column: 2;
  margin: 0;
}

.service-row:hover,
.service-row:focus-within {
  color: var(--gold);
}

.service-row:hover::before,
.service-row:focus-within::before {
  transform: scaleX(1);
}

.contact {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.contact__inner {
  display: grid;
  min-height: 74svh;
  align-content: center;
  gap: 32px;
  padding: 90px var(--gutter);
}

.contact h2 {
  max-width: 980px;
  color: var(--cream);
}

.contact .eyebrow {
  color: rgba(242, 236, 224, 0.66);
}

.contact-button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(242, 236, 224, 0.38);
  color: var(--cream);
  font-weight: 700;
  line-height: 1.1;
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease);
}

.contact-button span:last-child {
  transition: transform 0.45s var(--ease);
}

.contact-button:hover,
.contact-button:focus-visible {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.contact-button:hover span:last-child,
.contact-button:focus-visible span:last-child {
  transform: translate3d(4px, -4px, 0);
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  padding: 28px var(--gutter);
  border-top: 1px solid rgba(242, 236, 224, 0.16);
  background: var(--ink);
  color: rgba(242, 236, 224, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.split-word-wrap {
  display: inline-block;
  overflow: hidden;
  padding: 0.05em 0 0.18em;
  margin: -0.05em 0 -0.18em;
  vertical-align: top;
}

.split-word {
  display: inline-block;
  line-height: 1.08;
  will-change: transform;
}

.reveal-image {
  clip-path: inset(0);
}

.magnetic {
  transform: translate3d(0, 0, 0);
}

@media (min-width: 640px) {
  :root {
    --gutter: 34px;
    --hero-type: 6.9rem;
    --headline-type: 4.7rem;
  }

  .site-header__nav {
    display: flex;
  }

  .hero__copy {
    font-size: 1.16rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 70px 24px;
  }

  .gallery-card--tall {
    grid-column: span 5;
  }

  .gallery-card--wide {
    grid-column: span 7;
  }

  .gallery-card--offset {
    margin-top: 96px;
  }

  .about {
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  }

  .photographers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    align-items: start;
  }

  .photographer-card--offset {
    margin-top: 72px;
  }

  .photographer-card__copy {
    padding-right: 24px;
  }

  .service-row {
    grid-template-columns: 76px minmax(240px, 0.8fr) 1fr;
    align-items: baseline;
    padding: 34px 0;
  }

  .service-row p {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 980px) {
  :root {
    --gutter: 48px;
    --section: 150px;
    --hero-type: 9.6rem;
    --headline-type: 6.4rem;
  }

  .section-heading--split {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    align-items: end;
  }

  .hero__content {
    padding-top: 150px;
  }

  .manifest__statement {
    max-width: 1260px;
  }

  .gallery__grid {
    gap: 96px 34px;
  }

  .showcase__track {
    gap: 34px;
    padding: 34px var(--gutter);
  }

  .showcase {
    display: grid;
    min-height: 88svh;
    align-content: center;
  }

  .showcase__panel {
    width: 560px;
  }

  .contact__inner {
    padding-top: 130px;
    padding-bottom: 130px;
  }
}

@media (min-width: 1440px) {
  :root {
    --gutter: 68px;
    --hero-type: 12rem;
    --headline-type: 7.6rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }

  .service-row:hover {
    transform: translateX(12px);
  }
}

@media (max-width: 639px) {
  :root {
    --section: 88px;
    --hero-type: 4.05rem;
    --headline-type: 2.85rem;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero {
    min-height: 92svh;
  }

  .hero__content {
    min-height: 92svh;
  }

  .hero__title {
    word-break: break-word;
  }

  .section-heading h2,
  .about h2,
  .photographer-card__copy h3,
  .contact h2,
  .manifest__statement {
    overflow-wrap: anywhere;
  }

  .photographers__grid {
    gap: 44px;
  }

  .contact-button {
    width: 100%;
    font-size: 0.86rem;
  }

  .showcase::before,
  .showcase::after {
    width: 24px;
  }

  /* Portfolio auf dem Handy als ruhiges 2-Spalten-Mosaik statt eines langen
     Einzelstapels (war ~7 Bildschirmhoehen). column-count haelt die tall/wide-
     Variation und fliesst lueckenlos; die Reveal-Animation bleibt erhalten. */
  .gallery__grid {
    display: block;
    column-count: 2;
    column-gap: 14px;
    gap: 0;
  }

  .gallery-card {
    break-inside: avoid;
    margin-bottom: 24px;
  }

  .gallery-card__caption {
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
    gap: 3px 10px;
  }

  .gallery-card__caption h3 {
    font-size: 1.04rem;
    white-space: normal;
  }

  .gallery-card__caption p {
    font-size: 0.74rem;
  }
}

@media (max-width: 759px) {
  /* Hero-Turn ("Blatt") auf schmalen Screens aus: das creme Sheet wuerde sonst
     das Hero-Bild ueberdecken und alles wirkt kurz nur beige. Der Hero scrollt
     stattdessen sauber nach oben in die Manifest-Sektion. */
  .hero-turn {
    display: none;
  }

  .showcase {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: auto;
    touch-action: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .showcase::before,
  .showcase::after {
    display: none;
  }

  .showcase__track {
    transform: none !important;
    will-change: auto;
  }

  .showcase__panel {
    scroll-snap-align: start;
  }

  .showcase__panel figcaption {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  :root {
    --hero-type: 3.65rem;
    --headline-type: 2.6rem;
  }
}

@media (max-width: 340px) {
  :root {
    --hero-type: 3.35rem;
    --headline-type: 2.38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .preloader {
    display: none;
  }

  .reveal-image {
    clip-path: inset(0);
  }

  .image-frame img {
    height: 100%;
    transform: none;
  }

  .cursor {
    display: none;
  }

  .hero-turn {
    display: none;
  }

  .scroll-progress {
    display: none;
  }

  .site-header {
    opacity: 1 !important;
    transform: none !important;
  }

  .webgl-stage {
    display: none;
  }

  .showcase {
    overflow-x: auto;
    cursor: auto;
  }

  .showcase__track {
    transform: none !important;
    will-change: auto;
  }
}

/* ---------------------------------------------------------------------------
   Lightbox – Portfolio-Bilder beim Tippen/Klicken gross anzeigen.
   --------------------------------------------------------------------------- */
/* Pointer-Cursor nur ohne Custom-Cursor (Touch/kein JS-Cursor); auf Desktop
   uebernimmt der "ansehen"-Custom-Cursor den Klick-Hinweis. */
body:not(.has-custom-cursor) .gallery__grid .image-frame {
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(20px, 5vw, 64px);
  background: rgba(16, 14, 11, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease), visibility 0s;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(1100px, 92vw);
  max-height: 100%;
}

.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  transform: scale(0.94);
  transition: transform 0.5s var(--ease);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__caption {
  color: rgba(242, 236, 224, 0.86);
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--cream);
  background: rgba(242, 236, 224, 0.1);
  border: 1px solid rgba(242, 236, 224, 0.28);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.lightbox__close:hover {
  background: rgba(242, 236, 224, 0.2);
  transform: scale(1.06);
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open .cursor {
  opacity: 0;
}
