@font-face {
  font-family: "NeueHaas";
  src: url("fonts/NHaasGroteskDSStd-55Rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "NeueHaas";
  src: url("fonts/NHaasGroteskDSStd-65Md.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "NeueHaas";
  src: url("fonts/NHaasGroteskDSStd-75Bd.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

/* ==== BASIS & HEADER ==== */
html, body {
  height: 100%;
  margin: 0;
  background: #fff;
  font-family: "NeueHaas", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  isolation: isolate;
}

.logo, .about {
  position: fixed;
  z-index: 3;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #000;
  user-select: none;
  cursor: pointer;
  transition:
    top 1.2s cubic-bezier(.85,0,.15,1),
    left 1.2s cubic-bezier(.85,0,.15,1),
    right 1.2s cubic-bezier(.85,0,.15,1),
    transform 1.2s cubic-bezier(.85,0,.15,1),
    opacity .6s ease,
    visibility .6s ease,
    color .6s ease;
}

body.about-open .logo {
  transition: opacity .15s ease-out, visibility .15s ease-out;
}

.logo {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 210pt;
  padding-right: 4px;
}
.logo sup {
  font-style: italic;
  font-size: .55em;
  position: relative;
  top: -.08em;
  margin-left: 0.02em;  
  padding-right: 2px;
}

.about {
  top: 2%;
  right: 2%;
  font-size: 60pt;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* nach Klick */
body.header-on .logo {
  top: 2%;
  left: 2%;
  transform: none;
}
body.header-on .about {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* X-ray */
body.xray .logo,
body.xray .about {
  color: #fff;
  mix-blend-mode: difference;
}

/* ===================== ABOUT-PANEL ===================== */
.about-panel {
  position: fixed;
  top: calc(2% + 60pt + 12px);
  left: 2%;
  right: 2%;
  font-size: 11pt;
  font-family: "NeueHaas", sans-serif;
  line-height: 1.35;
  color: #000;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}

.about-panel a {
  font-family: "NeueHaas", sans-serif;
  font-size: 11pt;
  color: #000;
  text-decoration: none;
  opacity: 1;
  transition: opacity .25s ease;
}
.about-panel a:hover {
  opacity: .5;
}

body.xray .about-panel {
  color: #fff;
  mix-blend-mode: difference;
}

/* ABOUT FULLSCREEN */
body.about-open .about {
  left: 2%;
  right: auto;
}
body.about-open .about-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  left: 2%;
  right: 2%;
  top: calc(2% + 60pt + 24px);
}
body.about-open .about,
body.about-open .about-panel {
  mix-blend-mode: normal;
  color: #000;
}
body.about-open .logo {
  display: none;
}

/* ======= ABOUT-INHALT ======= */
.about-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4vw;
}

.about-copy {
  max-width: 42ch;
}

.reach-title {
  font-size: 11pt;
  font-weight: 400;
  margin: 0.6em 0 0.2em;
}

.about-copy a {
  display: block;
  margin: 0.05em 0;
}

.about-media {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.about-media img {
  display: block;
  width: 48vw;
  height: auto;
  object-fit: cover;
  object-position: center;
  max-height: 70vh;
  margin-right: 2vw;
}

/* ===================== GRID ===================== */
.grid {
  position: relative;
  margin-top: 0; /* kein Weiß oben */
  padding: 0 0.6vw 2vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 24vw;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
}

body.grid-on .grid {
  opacity: 1;
  visibility: visible;
}

body.about-open .grid {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.grid-item.tall { grid-row: span 3; }
.grid-item.square { grid-row: span 2; }

/* GRID ITEMS – smooth Fade-In */
.grid-item {
  overflow: hidden;
  background: #f3f3f3;

  /* Startzustand: unsichtbar + leicht nach unten */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

/* sobald grid-on → alles smooth einblenden */
body.grid-on .grid-item {
  opacity: 1;
  transform: translateY(0);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1s;
}
.grid-item:hover img {
  transform: scale(1.08);
}

/* ===========================
            FOOTER
   =========================== */
.footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.2vh 2% 2vh;
  box-sizing: border-box;
  font-family: "NeueHaas", sans-serif;
  font-style: italic;
  font-size: 10pt;
  line-height: 1.25;
  color: rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  margin-top: 0.5vh;
  transition: opacity .4s ease;
}

.footer-col {
  width: 32%;
}
.footer-label {
  display: block;
}
.footer-name {
  display: block;
}

.footer-col.left   { text-align: left; }
.footer-col.center { text-align: center; }
.footer-col.right  { text-align: right; }

body.grid-on .footer {
  opacity: 1;
  visibility: visible;
}

body.about-open .footer {
  opacity: 0;
  visibility: hidden;
}

/* ===================== MOBILE (max 768px) ===================== */
@media (max-width: 768px) {

  /* Logo */
  .logo {
    font-size: 110pt;
  }
  .logo sup {
    margin-left: 0.02em;
  }

  body.header-on .logo {
    top: 3%;
    left: 3%;
    /* transform bleibt translate(-50%, -50%) */
  }

  /* About */
  .about {
    font-size: 34pt;
    top: 3%;
    right: 3%;
  }
  body.about-open .about {
    left: 3%;
  }

  /* About Panel */
  .about-panel {
    left: 3%;
    right: 3%;
    top: calc(3% + 34pt + 12px);
    font-size: 12pt;
    line-height: 1.45;
  }
  body.about-open .about-panel {
    top: calc(3% + 34pt + 20px);
  }

  /* About Layout */
  .about-content {
    flex-direction: column;
    gap: 3vh;
  }
  .about-copy {
    max-width: 100%;
  }
  .about-media {
    justify-content: flex-start;
  }
  .about-media img {
    width: 100%;
    height: auto;
    max-height: none;
    margin-right: 0;
  }

  /* GRID MOBILE */
  .grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 70vw;
    gap: 8px;
    padding: 0 3vw 0.8vh;
    margin-top: 0;
    margin-bottom: 0;
  }
  .grid-item.tall   { grid-row: span 2; }
  .grid-item.square { grid-row: span 1; }

  /* Footer */
  .footer {
    flex-direction: column;
    gap: 0.6vh;
    text-align: left;
    padding: 1.5vh 3% 1.5vh;
    font-size: 7pt;
    line-height: 1.1;
  }
  .footer-col {
    width: 100%;
    text-align: left !important;
  }

  /* Hover auf Touch deaktivieren */
  .logo:hover,
  .about:hover {
    animation: none;
    background: none;
    color: inherit;
  }
}