:root {
  --bg: #1a1a2e;
  --white: #f4f4f4;
  --pink: #e94560;
  --menu-bg: #2d1a2d;
  --scale: 1;
  --offset-x: 0px;
  --offset-y: 0px;
  --design-w: 1920px;
  --design-h: 1080px;
  --ui-scale: 1;
  --ui-logo-left: 105px;
  --ui-logo-top: 58px;
  --ui-logo-width: 106px;
  --ui-logo-height: 74px;
  --ui-menu-top: 44px;
  --ui-menu-right: 72px;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

html.subpage-html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

html.subpage-html body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: input-serif, serif;
  color: var(--white);
}

/* Lade-Seite */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  opacity: 1;
  visibility: visible;
  transition: opacity 760ms cubic-bezier(.18,.8,.18,1), visibility 0ms linear 760ms;
}

.preloader-logo {
  width: clamp(96px, 12vw, 148px);
  height: auto;
  display: block;
  animation: loaderPulse 1150ms ease-in-out infinite alternate;
}

@keyframes loaderPulse {
  from { transform: translateY(0) scale(1); opacity: .86; }
  to { transform: translateY(-8px) scale(1.035); opacity: 1; }
}

body.is-loaded .preloader {
  opacity: 0;
  visibility: hidden;
}

body.preloading .logo,
body.preloading .hero-copy,
body.preloading .photo-stage,
body.preloading .menu-button {
  opacity: 0;
}

body.is-loaded .logo,
body.is-loaded .hero-copy,
body.is-loaded .photo-stage,
body.is-loaded .menu-button {
  opacity: 1;
}

body.is-loaded .logo { animation: introPopUp 760ms 90ms cubic-bezier(.18,.8,.18,1) both; }
body.is-loaded .hero-copy { opacity: 1; }
body.is-loaded .photo-stage { opacity: 1; }
body.is-loaded .menu-button { animation: introFade 740ms 420ms cubic-bezier(.18,.8,.18,1) both; }

@keyframes introPopUp {
  from { opacity: 0; transform: translate3d(0, 74px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes introFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.landing {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

/* Feste 1920x1080-Designfläche. Sie wird nur proportional auf den Monitor skaliert. */
.design-stage {
  position: absolute;
  left: var(--offset-x);
  top: var(--offset-y);
  width: var(--design-w);
  height: var(--design-h);
  transform: scale(var(--scale));
  transform-origin: top left;
  overflow: hidden;
}

.logo {
  position: absolute;
  top: 58px;
  left: 105px;
  z-index: 30;
  display: block;
  width: 106px;
  height: 74px;
}

.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.hero-copy {
  position: absolute;
  left: 96px; /* wie Referenz: weiter links, aber vollständig sichtbar */
  top: 185px;
  z-index: 20;
  width: 875px;
  pointer-events: none;
}

.headline {
  margin: 0;
  color: var(--white);
  font-family: gunter, sans-serif;
  font-size: 200px;
  line-height: 182px;
  letter-spacing: -0.058em;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  transform: scaleX(1.34);
  transform-origin: left top;
  display: flex;
  flex-direction: column;
  gap: 0;
  white-space: nowrap;
}

.headline span {
  display: block;
  margin: 0;
  padding: 0;
}

.headline .char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .34em, 0);
  will-change: opacity, transform;
}

body.is-loaded .headline .char {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 120ms linear var(--char-delay),
    transform 420ms cubic-bezier(.18,.8,.18,1) var(--char-delay);
}

body.is-loaded .lorem-text {
  animation: introPopUp 780ms 1080ms cubic-bezier(.18,.8,.18,1) both;
}

body.is-loaded .signature-text {
  animation: introPopUp 700ms 1240ms cubic-bezier(.18,.8,.18,1) both;
}

.headline .line-than { padding-left: 176px; }

.lorem-text {
  /* Bündig mit MORE THAN METAL, läuft jetzt weiter nach rechts. */
  margin: 42px 0 0 0;
  color: var(--white);
  font-family: input-serif, serif;
  font-size: 22px;
  line-height: 31px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.025em;
  max-width: 900px;
}

.signature-text {
  margin: 24px 0 0 0;
  color: var(--white);
  font-family: input-serif, serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.08em;
}

.photo-stage {
  position: absolute;
  left: 0;
  top: 160px; /* direkt unter dem Popout, keine sichtbare Lücke */
  width: var(--design-w);
  height: calc(var(--design-h) - 160px);
  z-index: 10;
  pointer-events: auto;
  overflow: hidden;
}

.photo-card {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  background: #060c16;
  transform-origin: center center;
  will-change: transform, width, height;
  cursor: pointer;
  backface-visibility: hidden;
  box-shadow: -18px 14px 34px rgba(0, 0, 0, 0.26);
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.74) contrast(1.08);
}

.menu-button {
  position: absolute;
  top: 44px;
  right: 72px;
  z-index: 40;
  width: 100px;
  height: 78px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  display: block;
  transition:
    transform 560ms cubic-bezier(.18,.8,.18,1),
    width 560ms cubic-bezier(.18,.8,.18,1),
    height 560ms cubic-bezier(.18,.8,.18,1),
    left 560ms cubic-bezier(.18,.8,.18,1),
    right 560ms cubic-bezier(.18,.8,.18,1),
    top 560ms cubic-bezier(.18,.8,.18,1),
    border-radius 560ms cubic-bezier(.18,.8,.18,1),
    opacity 240ms ease;
}
.burger-white {
  right: 0;
  width: 100px;
  height: 15px;
  background: var(--white);
  transform-origin: center center;
}
.burger-white-top { top: 0; }
.burger-white-bottom { top: 63px; }
.burger-pink {
  top: 34px;
  width: 45px;
  height: 10px;
  background: var(--pink);
  border-radius: 0;
}
.burger-pink-top { left: 0; }
.burger-pink-bottom { right: 0; }

body.menu-open .burger-white {
  width: 100px;
  height: 14px;
  right: 0;
  top: 32px;
  /* Zwei rotierende Linien mit bewusst freier Mitte um den pinken Kreis. */
  background: linear-gradient(90deg,
    var(--white) 0 26px,
    transparent 26px 74px,
    var(--white) 74px 100px
  );
}
body.menu-open .burger-white-top { transform: rotate(45deg); }
body.menu-open .burger-white-bottom { transform: rotate(-45deg); }
body.menu-open .burger-pink {
  width: 24px;
  height: 24px;
  left: 38px;
  right: auto;
  top: 27px;
  border-radius: 50%;
}
body.menu-open .burger-pink-bottom { opacity: 0; transform: scale(.2); }

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 35;
  width: 1100px;
  height: 160px;
  background: var(--menu-bg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 130px;
  padding-left: 150px;
  padding-right: 230px;
  transform: translateX(1100px);
  opacity: 0;
  transition: transform 640ms cubic-bezier(.18,.8,.18,1), opacity 340ms ease;
}
.menu-panel.is-open { transform: translateX(0); opacity: 1; }
.menu-panel a {
  color: var(--pink);
  font-family: input-serif, serif;
  font-size: 30pt;
  line-height: 1;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.menu-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.62em;
  height: 0.62em;
  line-height: 1;
  flex: 0 0 0.62em;
  color: transparent;
  transform-origin: 50% 50%;
  will-change: transform;
}

.menu-star::before {
  content: "*";
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--pink);
  transform: translate(-50%, -50%);
  line-height: 1;
}

.menu-link:hover { opacity: 0.9; }
.menu-link:hover .menu-star {
  animation: menuStarSpin 780ms linear infinite;
}

@keyframes menuStarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.checker-pattern {
  position: absolute;
  left: 0;
  top: 0;
  width: 72px; /* exakt drei Schachbrett-Spalten à 24px */
  height: 160px;
  background-color: transparent;
  background-image: conic-gradient(
    from 90deg,
    var(--bg) 0 25%,
    transparent 0 50%,
    var(--bg) 0 75%,
    transparent 0
  );
  background-size: 48px 48px;
  background-position: 0 0;
}


.checker-pattern-right {
  left: auto;
  right: 0;
}
.menu-close {
  /* Der animierte Burger bleibt beim offenen Menü als Close-Icon sichtbar.
     Dieser separate Button bleibt als unsichtbare Klickfläche erhalten. */
  position: absolute;
  right: 48px;
  top: 42px;
  width: 96px;
  height: 80px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
}
.menu-close span { display: none; }


/* ==============================
   MOBILE / TABLET OPTIMIERUNG
   Desktop bleibt die feste 1920x1080-Stage.
   Unter 768px wird automatisch auf eine native Handy-Ansicht gewechselt.
   ============================== */
@media (max-width: 768px) {
  html,
  body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg);
  }

  .landing {
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  .design-stage {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 100vh;
    transform: none !important;
    overflow: visible;
    padding: 30px 0 46px;
  }

  .logo {
    position: relative;
    top: auto;
    left: 22px;
    width: 82px;
    height: 58px;
    z-index: 50;
  }

  .menu-button {
    /* Mobile: exakt wie Referenz — breite weiße Linien, zwei pinke Linien nebeneinander mit Lücke. */
    top: 22px;
    right: 18px;
    width: 108px;
    height: 76px;
    transform: none;
    transform-origin: center center;
    z-index: 70;
  }

  .burger-white {
    left: 0;
    right: auto;
    width: 108px;
    height: 10px;
  }

  .burger-white-top { top: 0; }
  .burger-white-bottom { top: 66px; }

  .burger-pink {
    top: 34px;
    width: 48px;
    height: 9px;
  }

  .burger-pink-top {
    left: 0;
    right: auto;
  }

  .burger-pink-bottom {
    left: 60px;
    right: auto;
  }

  body.menu-open .burger-white {
    width: 82px;
    height: 9px;
    left: 13px;
    right: auto;
    top: 34px;
    background: linear-gradient(90deg,
      var(--white) 0 23px,
      transparent 23px 59px,
      var(--white) 59px 82px
    );
  }

  body.menu-open .burger-pink {
    width: 18px;
    height: 18px;
    left: 45px;
    right: auto;
    top: 29.5px;
    border-radius: 50%;
  }

  .menu-panel {
    /* Mobile: Popout ist Teil des Inhalts und scrollt zusammen mit dem Kreuz. */
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    height: 104px;
    padding-left: 54px;
    padding-right: 138px;
    gap: 16px;
    transform: translateX(100%);
    z-index: 60;
    align-items: center;
    justify-content: flex-start;
  }

  .menu-panel.is-open { transform: translateX(0); }

  body.menu-open .logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .menu-panel a {
    font-size: clamp(17px, 5.15vw, 22px);
    letter-spacing: 0.035em;
  }

  .checker-pattern {
    width: 42px;
    height: 96px;
    background-size: 28px 28px;
  }

  .menu-close {
    right: 8px;
    top: 12px;
    width: 88px;
    height: 76px;
  }

  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    /* Einheitlicher linker Rand: Headline, Text und Signatur beginnen auf derselben Linie. */
    padding: 44px 24px 0 24px;
    z-index: 20;
    pointer-events: auto;
  }

  .headline {
    /* Handy-Ansicht bewusst kleiner, damit MORE THAN METAL vollständig auf den Screen passt. */
    font-size: clamp(58px, 17.8vw, 86px);
    line-height: .9;
    letter-spacing: -0.058em;
    transform: scaleX(1.08);
    transform-origin: left top;
    width: calc(100% / 1.08);
    max-width: calc(100% / 1.08);
  }

  .headline .line-than {
    padding-left: 17vw;
  }

  .lorem-text {
    margin-top: 34px;
    max-width: none;
    width: 100%;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.44;
    letter-spacing: 0.02em;
    text-align: left;
  }

  .signature-text {
    margin-top: 18px;
    font-size: 21px;
  }

  .photo-stage {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: clamp(240px, 62vw, 380px);
    margin-top: 34px;
    --mobile-card-w: min(84vw, 520px);
    padding: 0 calc((100vw - var(--mobile-card-w)) / 2);
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    z-index: 10;
  }

  .photo-stage::-webkit-scrollbar { display: none; }
  .photo-stage { scrollbar-width: none; }

  .photo-card {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 var(--mobile-card-w);
    width: var(--mobile-card-w) !important;
    height: 100% !important;
    transform: none !important;
    transition: none !important;
    scroll-snap-align: center;
    border-radius: 0;
    box-shadow: -12px 12px 28px rgba(0, 0, 0, 0.26);
  }

  .photo-card img {
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 430px) {
  .design-stage { padding-top: 24px; }
  .hero-copy { padding-left: 20px; padding-right: 20px; padding-top: 38px; }
  .logo { left: 20px; width: 72px; height: 52px; }
  .menu-panel {
    height: 96px;
    padding-left: 46px;
    padding-right: 126px;
    gap: 10px;
  }
  .menu-panel a { font-size: clamp(15px, 4.4vw, 18px); }
  .checker-pattern { width: 36px; height: 96px; background-size: 24px 24px; }
  .menu-button { top: 18px; right: 12px; transform: scale(.82); transform-origin: top right; }
  .headline {
    font-size: clamp(54px, 17vw, 72px);
    transform: scaleX(1.06);
    width: calc(100% / 1.06);
    max-width: calc(100% / 1.06);
  }
  .headline .line-than { padding-left: 16vw; }
  .lorem-text { font-size: 15px; line-height: 1.43; }
  .signature-text { font-size: 18px; }
  .photo-stage {
    --mobile-card-w: 86vw;
    padding-left: calc((100vw - var(--mobile-card-w)) / 2);
    padding-right: calc((100vw - var(--mobile-card-w)) / 2);
    gap: 14px;
  }
  .photo-card { flex-basis: var(--mobile-card-w); width: var(--mobile-card-w) !important; }
}


/* Unterseiten */
.subpage-stage {
  background: var(--bg);
}

.subpage-content {
  position: absolute;
  left: 96px;
  top: 225px;
  z-index: 20;
  max-width: 980px;
  color: var(--white);
  opacity: 0;
}

body.is-loaded .subpage-content {
  animation: introPopUp 760ms 220ms cubic-bezier(.18,.8,.18,1) both;
}

.subpage-title {
  margin: 0 0 34px;
  font-family: gunter, sans-serif;
  font-size: 132px;
  line-height: .92;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.impressum-box {
  font-family: input-serif, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  max-width: 720px;
}

.impressum-box p { margin: 0 0 18px; }
.impressum-box strong { font-weight: 700; color: var(--pink); }

@media (max-width: 768px) {
  .subpage-content {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 44px);
    margin: 90px 22px 0;
    max-width: none;
  }

  .subpage-title {
    font-size: clamp(54px, 17vw, 86px);
    line-height: .92;
  }

  .impressum-box {
    font-size: 17px;
    line-height: 1.55;
  }
}

/* Contact-Seite: gleiche Haupt-Hintergrundfarbe, Logo/Menu bleiben identisch, Inhalt ist scrollbar. */
body.contact-page,
body.projects-page {
  background: var(--bg);
}

body.contact-page {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
}

.contact-page .landing {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  background: var(--bg);
}

.contact-page .design-stage {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  min-height: 100vh;
  height: auto;
  transform: none !important;
  transform-origin: top left;
  overflow: visible;
  background: var(--bg);
  padding-bottom: 120px;
}

.contact-page .subpage-content {
  position: relative;
  left: 96px;
  top: auto;
  padding-top: 150px;
  padding-bottom: 80px;
  width: min(980px, calc(100vw - 180px));
  max-width: 980px;
}

.contact-page .subpage-title {
  color: var(--white);
}

.contact-page .impressum-box {
  max-width: 920px;
  color: var(--white);
  font-family: input-serif, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: 0.018em;
}

.contact-page .impressum-box h2,
.contact-page .impressum-box h3 {
  margin: 0 0 14px;
  color: var(--pink);
  font-family: input-serif, serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.15;
}

.contact-page .impressum-box h2 {
  font-size: 40px;
  margin-bottom: 28px;
}

.contact-page .impressum-box h3 {
  font-size: 25px;
  margin-top: 36px;
}

.contact-page .impressum-box p {
  margin: 0 0 18px;
}

.contact-page .impressum-box .note {
  opacity: .78;
  font-size: 19px;
  line-height: 1.5;
}

.contact-page .impressum-box a,
.contact-page .impressum-box a:visited {
  color: var(--pink);
  text-decoration-color: var(--pink);
  text-underline-offset: 4px;
}

.contact-page .impressum-box a:hover {
  opacity: .82;
}


@media (min-width: 769px) {
  /*
    Contact ist scrollbar und deshalb nicht in der 1920er-Stage skaliert.
    Nur dort werden Logo, Burger und Popout auf exakt dieselbe sichtbare Größe
    wie auf der Hauptseite heruntergerechnet. Projects bleibt wie die Hauptseite
    in der skalierten Design-Stage, damit nichts doppelt skaliert wird.
  */
  body.contact-page .logo {
    position: fixed;
    left: var(--ui-logo-left);
    top: var(--ui-logo-top);
    width: var(--ui-logo-width);
    height: var(--ui-logo-height);
    z-index: 80;
  }

  body.contact-page .menu-button {
    position: fixed;
    top: var(--ui-menu-top);
    right: var(--ui-menu-right);
    transform: scale(var(--ui-scale));
    transform-origin: top right;
    z-index: 120;
  }

  body.contact-page .menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 100vw;
    height: calc(160px * var(--ui-scale));
    min-height: 112px;
    transform-origin: top center;
    transform: translateY(-110%);
    opacity: 0;
    z-index: 100;
    justify-content: center;
    gap: clamp(80px, 10vw, 190px);
    padding-left: calc(150px * var(--ui-scale));
    padding-right: calc(230px * var(--ui-scale));
  }

  body.contact-page .menu-panel.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  body.contact-page .checker-pattern {
    height: 100%;
  }

  body.contact-page .checker-pattern-right {
    display: block;
  }
}

@media (max-width: 768px) {
  .contact-page .design-stage {
    padding-top: 30px;
    padding-bottom: 70px;
  }

  .contact-page .subpage-content {
    margin: 0;
    left: auto;
    top: auto;
    width: calc(100% - 44px);
    max-width: none;
    padding: 112px 0 50px;
    margin-left: 22px;
    margin-right: 22px;
  }

  .contact-page .subpage-title {
    font-size: clamp(50px, 16vw, 78px);
    margin-bottom: 28px;
  }

  .contact-page .impressum-box {
    font-size: 16px;
    line-height: 1.55;
    max-width: none;
  }

  .contact-page .impressum-box h2 { font-size: 29px; }
  .contact-page .impressum-box h3 { font-size: 19px; margin-top: 30px; }
  .contact-page .impressum-box .note { font-size: 14px; }
  body.contact-page .menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 100vw;
    height: 104px;
    transform: translateY(-110%);
    justify-content: center;
    gap: 30px;
    padding-left: 52px;
    padding-right: 132px;
    z-index: 64;
  }

  body.contact-page .menu-panel.is-open {
    transform: translateY(0);
  }

  body.contact-page .checker-pattern-right {
    display: block;
  }

  body.contact-page .menu-panel .checker-pattern {
    height: 104px;
  }

}

/* Contact: normales Popout wie auf den anderen Seiten; beim Scrollen automatisch Full-Width-Leiste */
@media (min-width: 769px) {
  body.contact-page .menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: calc(1100px * var(--ui-scale));
    height: calc(160px * var(--ui-scale));
    min-height: 0;
    background: var(--menu-bg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: calc(130px * var(--ui-scale));
    padding-left: calc(150px * var(--ui-scale));
    padding-right: calc(230px * var(--ui-scale));
    transform-origin: top right;
    transform: translateX(100%);
    opacity: 0;
    z-index: 100;
    transition: transform 640ms cubic-bezier(.18,.8,.18,1), opacity 340ms ease, width 520ms cubic-bezier(.18,.8,.18,1), left 520ms cubic-bezier(.18,.8,.18,1), right 520ms cubic-bezier(.18,.8,.18,1);
  }

  body.contact-page .menu-panel.is-open {
    transform: translateX(0);
    opacity: 1;
  }

  body.contact-page .menu-panel a {
    font-size: calc(30pt * var(--ui-scale));
  }

  body.contact-page .checker-pattern {
    width: calc(72px * var(--ui-scale));
    height: 100%;
    background-size: calc(48px * var(--ui-scale)) calc(48px * var(--ui-scale));
  }

  body.contact-page .checker-pattern-right {
    display: none;
  }

  body.contact-page.contact-scroll-ready .menu-button {
    opacity: 0;
    pointer-events: none;
  }

  body.contact-page.contact-scroll-ready .menu-panel {
    left: 0;
    right: auto;
    width: 100vw;
    transform: translateY(-100%);
    opacity: 1;
    justify-content: center;
    gap: clamp(80px, 10vw, 190px);
    padding-left: calc(150px * var(--ui-scale));
    padding-right: calc(150px * var(--ui-scale));
    transition: transform 620ms cubic-bezier(.18,.8,.18,1), opacity 260ms ease;
  }

  body.contact-page.contact-scroll-menu .menu-panel {
    transform: translateY(0);
  }

  body.contact-page.contact-scroll-ready .checker-pattern-right {
    display: block;
  }
}

@media (max-width: 768px) {
  body.contact-page .menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 100vw;
    height: 104px;
    transform: translateX(100%);
    justify-content: flex-start;
    gap: 16px;
    padding-left: 54px;
    padding-right: 138px;
    z-index: 64;
  }

  body.contact-page .menu-panel.is-open {
    transform: translateX(0);
  }

  body.contact-page .checker-pattern-right {
    display: none;
  }

  body.contact-page.contact-scroll-ready .menu-button {
    opacity: 0;
    pointer-events: none;
  }

  body.contact-page.contact-scroll-ready .menu-panel {
    left: 0;
    right: auto;
    transform: translateY(-100%);
    opacity: 1;
    justify-content: center;
    gap: 24px;
    padding-left: 52px;
    padding-right: 52px;
    transition: transform 620ms cubic-bezier(.18,.8,.18,1), opacity 260ms ease;
  }

  body.contact-page.contact-scroll-menu .menu-panel {
    transform: translateY(0);
  }

  body.contact-page.contact-scroll-ready .checker-pattern-right {
    display: block;
  }
}


/* FINAL FIX: Contact Scroll-Popout ist ein separates Top-Panel.
   Dadurch kommt es wirklich von oben und der normale Burger/Side-Popout bleibt unverändert. */
.contact-scroll-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(160px * var(--ui-scale, 1));
  min-height: 112px;
  z-index: 115;
  background: var(--menu-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(80px, 10vw, 190px);
  padding-left: calc(150px * var(--ui-scale, 1));
  padding-right: calc(150px * var(--ui-scale, 1));
  transform: translateY(-105%);
  opacity: 1;
  pointer-events: none;
  transition: transform 620ms cubic-bezier(.18,.8,.18,1);
}

.contact-scroll-panel a {
  color: var(--pink);
  font-family: input-serif, serif;
  font-size: calc(30pt * var(--ui-scale, 1));
  line-height: 1;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.contact-scroll-panel .checker-pattern {
  position: absolute;
  top: 0;
  width: calc(72px * var(--ui-scale, 1));
  height: 100%;
  background-color: transparent;
  background-image: conic-gradient(
    from 90deg,
    var(--bg) 0 25%,
    transparent 0 50%,
    var(--bg) 0 75%,
    transparent 0
  );
  background-size: calc(48px * var(--ui-scale, 1)) calc(48px * var(--ui-scale, 1));
  background-position: 0 0;
}

.contact-scroll-panel .checker-pattern-left { left: 0; }
.contact-scroll-panel .checker-pattern-right { right: 0; left: auto; display: block; }

body.contact-page.contact-scroll-menu .contact-scroll-panel {
  transform: translateY(0);
  pointer-events: auto;
}

body.contact-page.contact-scroll-ready .menu-button,
body.contact-page.contact-scroll-menu .menu-button {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* während des automatischen Scroll-Popouts bleibt das normale Burger-Popout unsichtbar */
body.contact-page.contact-scroll-ready .menu-panel:not(.is-open),
body.contact-page.contact-scroll-menu .menu-panel:not(.is-open) {
  transform: translateX(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .contact-scroll-panel {
    height: 104px;
    min-height: 0;
    gap: 24px;
    padding-left: 52px;
    padding-right: 52px;
  }

  .contact-scroll-panel a {
    font-size: clamp(15px, 4.4vw, 18px);
  }

  .contact-scroll-panel .checker-pattern {
    width: 42px;
    height: 104px;
    background-size: 28px 28px;
  }
}

/* ==============================
   PROJECTS PORTFOLIO PAGE
   Scrollbare Portfolio-Seite mit 30 nummerierten 3:2 / 2:3 Bild-Platzhaltern.
   ============================== */
body.projects-page {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
  background: var(--bg);
}

.projects-page .landing {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  background: var(--bg);
}

.projects-page .design-stage {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  min-height: 100vh;
  height: auto;
  transform: none !important;
  transform-origin: top left;
  overflow: visible;
  background: var(--bg);
  padding-bottom: 130px;
}

.projects-content {
  position: relative;
  width: min(1740px, calc(100vw - 150px));
  margin-left: 76px;
  padding-top: 138px;
  padding-bottom: 80px;
}

.projects-title {
  margin: 0 0 36px;
  color: var(--white);
}

.portfolio-grid {
  column-count: 3;
  column-gap: 22px;
  width: 100%;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  background:
    linear-gradient(135deg, rgba(233, 69, 96, .22), rgba(233, 69, 96, .05)),
    #101022;
  border: 1px solid rgba(249, 249, 249, .11);
  box-shadow: -18px 18px 38px rgba(0, 0, 0, .22);
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-family: input-serif, serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(42px, 5vw, 92px);
  letter-spacing: .05em;
  transform-origin: center center;
  will-change: transform;
  transition: transform 260ms cubic-bezier(.18,.8,.18,1), box-shadow 260ms ease, border-color 260ms ease;
}

.portfolio-item::before {
  content: "PHOTO PLACEHOLDER";
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: rgba(249, 249, 249, .55);
  font-size: 14px;
  line-height: 1;
  letter-spacing: .18em;
}

.portfolio-item.landscape { aspect-ratio: 3 / 2; }
.portfolio-item.portrait { aspect-ratio: 2 / 3; }

.portfolio-item:hover {
  transform: scale(1.045);
  box-shadow: -24px 26px 50px rgba(0, 0, 0, .32);
  border-color: rgba(233, 69, 96, .5);
  z-index: 5;
}

@media (min-width: 769px) {
  body.projects-page .logo {
    position: fixed;
    left: var(--ui-logo-left);
    top: var(--ui-logo-top);
    width: var(--ui-logo-width);
    height: var(--ui-logo-height);
    z-index: 80;
  }

  body.projects-page .menu-button {
    position: fixed;
    top: var(--ui-menu-top);
    right: var(--ui-menu-right);
    transform: scale(var(--ui-scale));
    transform-origin: top right;
    z-index: 120;
  }

  body.projects-page .menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: calc(1100px * var(--ui-scale));
    height: calc(160px * var(--ui-scale));
    min-height: 0;
    background: var(--menu-bg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: calc(130px * var(--ui-scale));
    padding-left: calc(150px * var(--ui-scale));
    padding-right: calc(230px * var(--ui-scale));
    transform-origin: top right;
    transform: translateX(100%);
    opacity: 0;
    z-index: 100;
    transition: transform 640ms cubic-bezier(.18,.8,.18,1), opacity 340ms ease;
  }

  body.projects-page .menu-panel.is-open {
    transform: translateX(0);
    opacity: 1;
  }

  body.projects-page .menu-panel a {
    font-size: calc(30pt * var(--ui-scale));
  }

  body.projects-page .checker-pattern {
    width: calc(72px * var(--ui-scale));
    height: 100%;
    background-size: calc(48px * var(--ui-scale)) calc(48px * var(--ui-scale));
  }

  body.projects-page .checker-pattern-right {
    display: none;
  }
}

/* Projects nutzt dasselbe automatische Scroll-Top-Popout wie Contact */
body.projects-page.contact-scroll-menu .contact-scroll-panel {
  transform: translateY(0);
  pointer-events: auto;
}

body.projects-page.contact-scroll-ready .menu-button,
body.projects-page.contact-scroll-menu .menu-button {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.projects-page.contact-scroll-ready .menu-panel:not(.is-open),
body.projects-page.contact-scroll-menu .menu-panel:not(.is-open) {
  transform: translateX(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .projects-page .design-stage {
    padding-top: 30px;
    padding-bottom: 70px;
  }

  .projects-content {
    width: calc(100% - 44px);
    margin-left: 22px;
    margin-right: 22px;
    padding-top: 112px;
    padding-bottom: 50px;
  }

  .projects-title {
    font-size: clamp(50px, 16vw, 78px);
    margin-bottom: 34px;
  }

  .portfolio-grid {
    column-count: 1;
    column-gap: 0;
  }

  .portfolio-item,
  .portfolio-item:nth-child(n) {
    margin-top: 0;
    margin-bottom: 22px;
  }

  .portfolio-item:nth-child(odd) { aspect-ratio: 3 / 2; }
  .portfolio-item:nth-child(even) { aspect-ratio: 2 / 3; }

  body.projects-page .menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 100vw;
    height: 104px;
    transform: translateX(100%);
    justify-content: flex-start;
    gap: 16px;
    padding-left: 54px;
    padding-right: 138px;
    z-index: 64;
  }

  body.projects-page .menu-panel.is-open {
    transform: translateX(0);
  }

  body.projects-page .checker-pattern-right {
    display: none;
  }
}

/* ==============================
   PROJECTS LIGHTBOX CAROUSEL
   Klick auf ein Portfolio-Bild öffnet eine große mittige Ansicht.
   Oben und unten liegen zwei weitere Unter-Platzhalter desselben Projekts.
   ============================== */
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 46, .82);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 0ms linear 260ms;
}

.project-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 260ms ease, visibility 0ms linear 0ms;
}

.project-lightbox-stage {
  position: relative;
  width: min(78vw, 1180px);
  height: min(82vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lightbox-card {
  position: absolute;
  width: min(68vw, 1040px);
  max-height: 66vh;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(233, 69, 96, .24), rgba(233, 69, 96, .06)),
    #101022;
  border: 1px solid rgba(249, 249, 249, .16);
  box-shadow: -28px 32px 66px rgba(0, 0, 0, .42);
  color: var(--pink);
  font-family: input-serif, serif;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .05em;
  transition: transform 520ms cubic-bezier(.18,.8,.18,1), opacity 520ms ease, filter 520ms ease;
  will-change: transform, opacity;
}

.project-lightbox[data-orientation="landscape"] .lightbox-card {
  width: min(68vw, 1040px);
  aspect-ratio: 3 / 2;
}

.project-lightbox[data-orientation="portrait"] .lightbox-card {
  width: min(42vw, 560px);
  max-height: 70vh;
  aspect-ratio: 2 / 3;
}

.lightbox-card::before {
  content: "PROJECT PLACEHOLDER";
  position: absolute;
  left: 30px;
  bottom: 28px;
  color: rgba(249, 249, 249, .6);
  font-size: 14px;
  line-height: 1;
  letter-spacing: .18em;
}

.lightbox-card span {
  display: block;
  font-size: clamp(76px, 9vw, 150px);
  line-height: 1;
}

.lightbox-card-active {
  z-index: 3;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: brightness(1);
}

.lightbox-card-prev {
  z-index: 1;
  transform: translate3d(0, -48%, 0) scale(.72);
  opacity: .46;
  filter: brightness(.76);
}

.lightbox-card-next {
  z-index: 2;
  transform: translate3d(0, 48%, 0) scale(.72);
  opacity: .46;
  filter: brightness(.76);
}

.project-lightbox-stage.moving-down .lightbox-card-prev {
  transform: translate3d(0, -96%, 0) scale(.56);
  opacity: 0;
}

.project-lightbox-stage.moving-down .lightbox-card-active {
  transform: translate3d(0, -48%, 0) scale(.72);
  opacity: .46;
  filter: brightness(.76);
}

.project-lightbox-stage.moving-down .lightbox-card-next {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: brightness(1);
}

.project-lightbox-stage.moving-up .lightbox-card-prev {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: brightness(1);
}

.project-lightbox-stage.moving-up .lightbox-card-active {
  transform: translate3d(0, 48%, 0) scale(.72);
  opacity: .46;
  filter: brightness(.76);
}

.project-lightbox-stage.moving-up .lightbox-card-next {
  transform: translate3d(0, 96%, 0) scale(.56);
  opacity: 0;
}

.project-lightbox-close {
  position: fixed;
  top: 42px;
  right: 56px;
  z-index: 520;
  width: 54px;
  height: 54px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--white);
  font-family: input-serif, serif;
  font-size: 54px;
  line-height: 46px;
  font-weight: 400;
  cursor: pointer;
  transition: transform 220ms ease, opacity 220ms ease;
}

.project-lightbox-close:hover {
  transform: scale(1.08);
  opacity: .82;
}

html.project-lightbox-open,
body.project-lightbox-open {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none;
}

body.project-lightbox-open .projects-page,
body.project-lightbox-open .landing {
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .project-lightbox-stage {
    width: 100vw;
    height: 86vh;
  }

  .project-lightbox[data-orientation="landscape"] .lightbox-card {
    width: 86vw;
    max-height: 52vh;
  }

  .project-lightbox[data-orientation="portrait"] .lightbox-card {
    width: 62vw;
    max-height: 62vh;
  }

  .lightbox-card-prev {
    transform: translate3d(0, -58%, 0) scale(.72);
  }

  .lightbox-card-next {
    transform: translate3d(0, 58%, 0) scale(.72);
  }

  .project-lightbox-close {
    top: 22px;
    right: 24px;
    width: 46px;
    height: 46px;
    font-size: 48px;
    line-height: 40px;
  }
}

/* Projektbilder: echte Fotos in den Portfolio-Kacheln */
.portfolio-item.has-image {
  background: #060c16;
}

.portfolio-item.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(.78) contrast(1.08);
  transition: transform 300ms cubic-bezier(.18,.8,.18,1), filter 300ms ease;
}

.portfolio-item.has-image:hover img {
  transform: scale(1.035);
  filter: brightness(.86) contrast(1.1);
}

.portfolio-item.has-image span {
  position: relative;
  z-index: 2;
  opacity: 0;
}

.portfolio-item.has-image::before {
  display: none;
}

/* Lightbox: jede Unterbox bekommt eigenes Format/Ausrichtung statt globaler Einheitsgröße */
.lightbox-card[data-orientation="landscape"] {
  width: min(72vw, 1120px);
  max-height: 66vh;
}

.lightbox-card[data-orientation="portrait"] {
  width: min(38vw, 520px);
  max-height: 72vh;
}

.lightbox-card.has-image {
  background: #060c16;
}

.lightbox-card.has-image::before {
  display: none;
}

.lightbox-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.lightbox-card.has-image span {
  display: none;
}

@media (max-width: 768px) {
  .lightbox-card[data-orientation="landscape"] {
    width: 88vw;
    max-height: 52vh;
  }

  .lightbox-card[data-orientation="portrait"] {
    width: 66vw;
    max-height: 66vh;
  }
}

/* FINAL FIX: Lightbox-Karten passen sich exakt an jedes Bildformat an. */
.project-lightbox .lightbox-card {
  max-width: none !important;
  max-height: none !important;
}

.project-lightbox .lightbox-card.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  background: #060c16;
}

.project-lightbox .lightbox-card[data-orientation="portrait"] {
  width: auto;
}

/* SMOOTH LIGHTBOX CAROUSEL: stufenlose Bewegung ohne harte Step-Animation */
.project-lightbox.is-open .lightbox-card {
  transition: none !important;
  will-change: transform, opacity, filter;
}

.project-lightbox-stage.moving-down .lightbox-card,
.project-lightbox-stage.moving-up .lightbox-card {
  transition: none !important;
}

/* ==============================
   FINAL OVERRIDES — mobile projects, checkerboard cleanup, burger spacing
   ============================== */

:root {
  --checker-cell: 20px;
  --checker-cols: 3;
}

/* Größerer Abstand zwischen den beiden pinken Burger-Linien */
.menu-button {
  width: 104px;
}

.burger-white {
  width: 104px;
}

.burger-pink {
  width: 36px;
  top: 34px;
}

.burger-white-bottom {
  top: 63px;
}

body.menu-open .burger-white {
  width: 104px;
  background: linear-gradient(90deg,
    var(--white) 0 26px,
    transparent 26px 78px,
    var(--white) 78px 104px
  );
}

body.menu-open .burger-pink {
  left: 40px;
}

/* Einheitliches Schachbrettmuster nur aus vollen, gleich großen Quadraten */
.menu-panel,
.contact-scroll-panel {
  --checker-size: var(--checker-cell);
}

.checker-pattern,
.contact-scroll-panel .checker-pattern,
body.projects-page .checker-pattern,
body.projects-page .contact-scroll-panel .checker-pattern,
body.contact-page .checker-pattern,
body.contact-page .contact-scroll-panel .checker-pattern {
  width: calc(var(--checker-size) * var(--checker-cols));
  background-color: transparent;
  background-image:
    linear-gradient(45deg,
      var(--bg) 25%,
      transparent 25%,
      transparent 75%,
      var(--bg) 75%,
      var(--bg) 100%),
    linear-gradient(45deg,
      var(--bg) 25%,
      transparent 25%,
      transparent 75%,
      var(--bg) 75%,
      var(--bg) 100%);
  background-size: calc(var(--checker-size) * 2) calc(var(--checker-size) * 2);
  background-position: 0 0, var(--checker-size) var(--checker-size);
  background-repeat: repeat;
}

.menu-panel {
  min-height: 160px;
}

.contact-scroll-panel {
  min-height: 120px;
}

/* স্কalierte Desktop-Menüs: Pattern ebenfalls proportional skalieren */
@media (min-width: 769px) {
  body.projects-page .menu-panel,
  body.contact-page .menu-panel,
  body.projects-page .contact-scroll-panel,
  body.contact-page .contact-scroll-panel {
    --checker-size: calc(20px * var(--ui-scale, 1));
  }

  body.projects-page .checker-pattern,
  body.contact-page .checker-pattern,
  body.projects-page .contact-scroll-panel .checker-pattern,
  body.contact-page .contact-scroll-panel .checker-pattern {
    width: calc(var(--checker-size) * var(--checker-cols));
    background-size: calc(var(--checker-size) * 2) calc(var(--checker-size) * 2);
    background-position: 0 0, var(--checker-size) var(--checker-size);
  }
}

/* Projects mobile: kompaktere, besser nutzbare Portfolio-Ansicht */
@media (max-width: 768px) {
  body.projects-page .design-stage {
    padding-top: 24px;
    padding-bottom: 56px;
  }

  body.projects-page .logo {
    left: 20px;
    top: 18px;
    width: 72px;
    height: 52px;
    position: fixed;
    z-index: 80;
  }

  body.projects-page .menu-button {
    position: fixed;
    top: 18px;
    right: 14px;
    transform: scale(.82);
    transform-origin: top right;
    z-index: 90;
  }

  body.projects-page .menu-panel {
    height: 100px;
    min-height: 100px;
    gap: 14px;
    padding-left: 46px;
    padding-right: 126px;
  }

  body.projects-page .menu-panel a {
    font-size: clamp(15px, 4.2vw, 18px);
  }

  body.projects-page .menu-panel,
  body.projects-page .contact-scroll-panel {
    --checker-size: 20px;
  }

  body.projects-page .checker-pattern,
  body.projects-page .contact-scroll-panel .checker-pattern {
    width: calc(var(--checker-size) * var(--checker-cols));
    height: 100%;
    background-size: calc(var(--checker-size) * 2) calc(var(--checker-size) * 2);
    background-position: 0 0, var(--checker-size) var(--checker-size);
  }

  .projects-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
    padding-top: 98px;
    padding-bottom: 40px;
  }

  .projects-title {
    font-size: clamp(44px, 13vw, 72px);
    margin-bottom: 20px;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 12px;
    column-count: initial;
  }

  .portfolio-item,
  .portfolio-item:nth-child(n) {
    width: 100%;
    margin: 0;
    break-inside: initial;
    -webkit-column-break-inside: initial;
    font-size: clamp(28px, 8vw, 54px);
    box-shadow: -12px 12px 28px rgba(0, 0, 0, .22);
  }

  .portfolio-item.landscape,
  .portfolio-item:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 2;
  }

  .portfolio-item.portrait,
  .portfolio-item:nth-child(even) {
    grid-column: auto;
    aspect-ratio: 2 / 3;
  }

  .portfolio-item::before {
    left: 14px;
    bottom: 12px;
    font-size: 10px;
    letter-spacing: .14em;
  }

  .portfolio-item:hover {
    transform: none;
    box-shadow: -12px 12px 28px rgba(0, 0, 0, .22);
  }

  .portfolio-item.has-image:hover img {
    transform: none;
    filter: brightness(.78) contrast(1.08);
  }

  .project-lightbox-stage {
    width: 100vw;
    height: 84vh;
  }

  .project-lightbox[data-orientation="landscape"] .lightbox-card {
    width: min(88vw, 760px);
    max-height: 54vh;
  }

  .project-lightbox[data-orientation="portrait"] .lightbox-card {
    width: min(68vw, 420px);
    max-height: 64vh;
  }

  .lightbox-card::before {
    left: 16px;
    bottom: 16px;
    font-size: 10px;
    letter-spacing: .14em;
  }

  .lightbox-card span {
    font-size: clamp(40px, 12vw, 80px);
  }

  .project-lightbox-close {
    top: 18px;
    right: 20px;
  }

  .contact-scroll-panel {
    min-height: 100px;
    height: 100px;
    gap: 16px;
    padding-left: 84px;
    padding-right: 84px;
  }

  .contact-scroll-panel a {
    font-size: clamp(15px, 4.2vw, 18px);
  }
}

@media (max-width: 430px) {
  body.projects-page .menu-panel,
  body.contact-page .menu-panel {
    height: 100px;
    min-height: 100px;
  }

  body.projects-page .menu-panel,
  body.contact-page .menu-panel,
  body.projects-page .contact-scroll-panel,
  body.contact-page .contact-scroll-panel {
    --checker-size: 20px;
  }

  body.projects-page .checker-pattern,
  body.contact-page .checker-pattern,
  body.projects-page .contact-scroll-panel .checker-pattern,
  body.contact-page .contact-scroll-panel .checker-pattern {
    width: calc(var(--checker-size) * var(--checker-cols));
    height: 100%;
    background-size: calc(var(--checker-size) * 2) calc(var(--checker-size) * 2);
    background-position: 0 0, var(--checker-size) var(--checker-size);
  }

  .portfolio-grid {
    gap: 10px;
  }

  .projects-content {
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .portfolio-item,
  .portfolio-item:hover {
    transform: none !important;
  }

  .portfolio-item.has-image:hover img {
    transform: none !important;
  }
}
