/* Two typography-led introductions lead into the ordinary native form flow. */
body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero > .subhero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(48px, 5vw, 76px);
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-copy {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 20px;
  width: 100%;
  max-width: none;
  min-height: 0;
  container-type: inline-size;
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-copy h1 {
  grid-column: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 9.2cqw, 88px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.025em;
  word-spacing: .045em;
  text-wrap: balance;
}
body.nuweb-site #content .contact-hero h1 .headline-line {
  display: block;
  white-space: nowrap;
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-copy > p:not(.subhero-kicker) {
  grid-column: 1;
  justify-self: start;
  width: min(100%, 49ch);
  max-width: none;
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-copy > .subhero-kicker {
  grid-column: 1;
  margin: 0;
  font-size: var(--nuweb-eyebrow-size);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .025em;
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-visual {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  width: 100%;
  margin: 0;
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .contact-portrait {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: clip;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .contact-portrait picture {
  display: block;
  width: 100%;
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .contact-portrait img {
  display: block;
  width: 100%;
  height: clamp(300px, 46svh, 480px);
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 0;
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .contact-portrait figcaption {
  position: static;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.nuweb-site #content .contact-story .contact-portrait figcaption strong,
body.nuweb-site #content .contact-story .contact-portrait figcaption small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

body.nuweb-site #content .contact-story .contact-portrait figcaption strong {
  font-weight: 500;
}

body.nuweb-site #content .contact-story .contact-stage-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 22px 60px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.nuweb-site #content .contact-story .contact-stage-copy > .contact-kicker {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green);
  font-size: var(--nuweb-eyebrow-size);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .025em;
}

body.nuweb-site #content .contact-story .contact-stage-copy > h2 {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(72px, 7.6vw, 110px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.025em;
  word-spacing: .045em;
  text-wrap: balance;
}

body.nuweb-site #content .contact-story .contact-stage-copy > p:not(.contact-kicker) {
  grid-column: 1;
  grid-row: 3;
  width: 100%;
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

body.nuweb-site #content .contact-story .contact-stage-copy > .contact-form-link {
  grid-column: 1;
  grid-row: 4;
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-form-link {
  justify-self: start;
  width: auto;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-copy > .contact-form-link {
  grid-column: 1;
  grid-row: auto;
}

body.nuweb-site #content .contact-story :is(h1, h2) .motion-word {
  white-space: normal;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* The form stays outside all fading scenes and preserves native interaction. */
body.nuweb-site #content #projektanfrage.contact-experience {
  scroll-margin-top: calc(var(--header-height) + 28px);
  padding: 80px 0 110px;
  background: transparent;
}

body.nuweb-site #content #projektanfrage.contact-experience .contact-stage {
  display: block;
}

body.nuweb-site #content #projektanfrage.contact-experience .contact-stage-panel {
  width: min(860px, 100%);
  margin-inline: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Give direct contact its own readable ending after the native form and privacy note. */
body.nuweb-site #content #projektanfrage .contact-stage-panel-head {
  margin-top: clamp(40px, 4vw, 64px);
  padding-bottom: 24px;
}
body.nuweb-site #content #projektanfrage .contact-stage-panel-head > strong {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -.025em;
}
body.nuweb-site #content #projektanfrage .contact-path-copy > span {
  color: var(--muted);
  -webkit-text-fill-color: currentColor;
  font-size: var(--nuweb-eyebrow-size);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .025em;
  text-transform: none;
}
body.nuweb-site #content #projektanfrage .contact-path-copy > strong {
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.3;
  letter-spacing: -.02em;
}
body.nuweb-site #content #projektanfrage .contact-path-cta {
  font-size: var(--nuweb-eyebrow-size);
  font-weight: 500;
}
@media (max-width: 700px) {
  body.nuweb-site #content #projektanfrage .contact-stage-panel-head {
    margin-top: 36px;
    padding-bottom: 20px;
  }
}

@media (max-height: 800px) and (min-width: 1051px) {
  body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-copy {
    gap: 16px;
  }

  body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-copy h1 {
    font-size: clamp(30px, 9.2cqw, 88px);
  }

  body.nuweb-site #content .contact-story .contact-stage-copy > h2 {
    font-size: clamp(68px, 6.8vw, 92px);
  }

  body.nuweb-site #content .contact-story .contact-stage-copy > p:not(.contact-kicker) {
    font-size: 19px;
  }
}

@media (max-width: 1050px) {
  body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero > .subhero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-copy h1 {
    font-size: clamp(30px, 9.2cqw, 88px);
  }

  body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-visual {
    grid-column: 1;
    grid-row: 2;
    width: min(380px, 100%);
    justify-self: end;
  }

  body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .contact-portrait img {
    height: clamp(300px, 50vw, 440px);
  }

  body.nuweb-site #content .contact-story .contact-stage-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.nuweb-site #content .contact-story .contact-stage-copy > :is(.contact-kicker, h2, p, .contact-form-link) {
    grid-column: 1;
    grid-row: auto;
  }

  body.nuweb-site #content .contact-story .contact-stage-copy > p:not(.contact-kicker) {
    grid-column: 1;
    grid-row: auto;
  }

  body.nuweb-site #content .contact-story .contact-stage-copy > h2 {
    font-size: clamp(52px, 8.4vw, 84px);
  }
}

@media (max-width: 700px) {
  body.nuweb-site #content .contact-hero h1 .headline-line {
    white-space: normal;
  }

  body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-copy h1 {
    font-size: clamp(27px, 9.2cqw, 58px);
    line-height: 1.16;
  }

  body.nuweb-site #content .page-story.contact-story .scene.scene--page .scene-content .contact-hero .subhero-grid > .subhero-copy > p:not(.subhero-kicker),
  body.nuweb-site #content .contact-story .contact-stage-copy > p:not(.contact-kicker) {
    font-size: 18px;
  }

  body.nuweb-site #content .contact-story .contact-stage-copy > h2 {
    font-size: clamp(40px, 9.4vw, 60px);
    line-height: 1.1;
  }

  body.nuweb-site #content #projektanfrage.contact-experience {
    padding: 45px 0 80px;
  }
}

/* Keep the page compositions inside the continuous frame, aligned with navigation. */
body.nuweb-site #content .contact-story .section-inner {
  width: calc(100% - var(--frame-gutter) * 2 - var(--nuweb-frame-pad) * 2);
  max-width: 1180px;
  margin-inline: auto;
}

/* Keep the invitation copy at one consistent body-text size. */
body.nuweb-site #content .contact-invitation .contact-stage-copy {
  --contact-copy-size: 20px;
}
body.nuweb-site #content .contact-invitation .contact-stage-copy > p:not(.contact-kicker) {
  font-size: var(--contact-copy-size) !important;
  line-height: 1.6 !important;
}
@media (max-height: 780px) and (min-width: 1051px) {
  body.nuweb-site #content .contact-invitation .contact-stage-copy {
    --contact-copy-size: 19px;
  }
}
@media (max-width: 700px) {
  body.nuweb-site #content .contact-invitation .contact-stage-copy {
    --contact-copy-size: 18px;
  }
}
