:root {
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #0b0b0b;
  --muted: #6b6b6b;
  --line: rgba(11,11,11,.14);
  --page-pad: clamp(20px, 4vw, 64px);
  --display: Arial Black, Arial, Helvetica, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- Shared typography ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.name-panel h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.info-card {
  background: var(--white);
  box-shadow: 0 12px 42px rgba(0,0,0,.09);
}
.card-kicker {
  margin: 0 0 30px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.info-card h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 900;
  line-height: .90;
  letter-spacing: -.065em;
}
.info-card p {
  margin: 0 0 17px;
  max-width: 46ch;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -.012em;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.links a:hover { opacity: .55; }

.imprint-link {
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 20;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  mix-blend-mode: difference;
  color: #fff;
}
.imprint-link:hover { opacity: .6; }

/* ---------- Desktop: exact 50/50 stage ---------- */
@media (min-width: 761px) {
  main {
    position: relative;
    min-height: 220svh;
  }

  .name-panel {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 50vw;
    height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(34px, 4.5vw, 76px);
    background: #fff;
  }
  .name-wrap { width: 100%; }
  .name-panel h1 {
    font-size: clamp(92px, 10.6vw, 190px);
    line-height: .82;
  }

  .story {
    position: relative;
    z-index: 2;
    margin-top: -100svh;
    min-height: 220svh;
    pointer-events: none;
  }

  .sticky-photo-wrap {
    position: sticky;
    top: 0;
    height: 100svh;
    margin-left: 50vw;
    width: 50vw;
    overflow: hidden;
  }
  .portrait-frame {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #e7e7e7;
  }
  .portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .card-track {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    /* The card starts below the first screen, then becomes sticky. */
    padding-top: 112svh;
  }
  .info-card {
    position: sticky;
    top: 18svh;
    /* Centered on the right-hand 50vw image */
    margin-left: 75vw;
    transform: translateX(-50%);
    width: min(620px, 42vw);
    padding: clamp(34px, 3.2vw, 52px);
    pointer-events: auto;
  }
  .info-card h2 {
    font-size: clamp(38px, 3.7vw, 58px);
  }
}

/* ---------- Mobile: dedicated name screen, then sticky portrait ---------- */
@media (max-width: 760px) {
  .name-panel {
    height: 100svh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 22px 20px 12svh;
    background: #fff;
  }
  .name-wrap { width: 100%; }
  .eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
  }
  .name-panel h1 {
    font-size: clamp(76px, 27vw, 124px);
    line-height: .80;
    letter-spacing: -.082em;
  }

  .story {
    position: relative;
    min-height: 235svh;
    background: #fff;
  }
  .sticky-photo-wrap {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
  }
  .portrait-frame {
    margin: 0;
    width: 100vw;
    height: 100svh;
    overflow: hidden;
    background: #e7e7e7;
  }
  .portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .card-track {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* Keeps the portrait clean for a moment before card enters. */
    padding-top: 118svh;
  }
  .info-card {
    position: sticky;
    top: max(8svh, 28px);
    margin-left: 14px;
    width: calc(100vw - 28px);
    padding: 30px 24px 34px;
    pointer-events: auto;
  }
  .info-card h2 {
    font-size: clamp(38px, 13vw, 56px);
  }
  .info-card p {
    font-size: 15px;
    line-height: 1.58;
  }
}

/* ---------- Impressum ---------- */
.legal-page { background: #fff; }
.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 100px) var(--page-pad) 120px;
}
.back-link { display: inline-block; margin-bottom: 70px; text-decoration: none; }
.legal-shell h1 {
  margin: 0 0 70px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(60px, 9vw, 108px);
  line-height: .86;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.legal-shell section { margin-top: 42px; }
.legal-shell h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.legal-shell p { font-size: 16px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Inline project link ---------- */
.inline-link {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

/* ---------- Contact form ---------- */
.contact-block {
  margin-top: 34px;
}
.contact-kicker { margin-bottom: 20px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 7px; }
.form-row label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 7px 0 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
}
.contact-form textarea { min-height: 96px; }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-width: 2px; }
.contact-form button {
  justify-self: start;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 4px;
  margin-top: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-form button:hover { opacity: .55; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- Projects ---------- */
.projects-page { background: #fff; }




.project-story {
  position: relative;
  min-height: 245svh;
  background: #fff;
}
.project-photo-wrap {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #fff;
}
.project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.project-card-track {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding-top: 128svh;
  pointer-events: none;
}
.project-card {
  position: sticky;
  top: 12svh;
  width: min(700px, calc(100vw - 56px));
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px);
  background: #fff;
  box-shadow: 0 12px 42px rgba(0,0,0,.09);
  pointer-events: auto;
}
.project-card h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.project-card p {
  margin: 0 0 17px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.62;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.projects-back {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 30;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  mix-blend-mode: difference;
  color: #fff;
}

@media (max-width: 760px) {
  .contact-block { margin-top: 30px; }
  .contact-form { gap: 16px; }
  
  
  
  .project-card {
    top: max(6svh, 24px);
    width: calc(100vw - 28px);
    padding: 28px 24px 32px;
  }
  .project-card h2 { font-size: clamp(38px, 13vw, 58px); }
  .project-card p { font-size: 15px; line-height: 1.58; }
}


/* v11: projects start directly with the image.
   The card enters only after one full viewport of unobstructed image. */
@media (max-width: 760px) {
  .project-story { min-height: 255svh; }
  .project-card-track { padding-top: 132svh; }
}
