/* Preserve all copy and section-specific compositions in one viewport. */
main.p-top .swipe-section {
  height: var(--page-height); min-height: var(--page-height); max-height: var(--page-height);
  padding-block: 0; overflow: clip;
}
main.p-top .swipe-section > .p-top-section__inner,
#top .type-hero__inner {
  position: absolute; top: 50%; left: 50%; width: calc(100% / var(--screen-fit,1)); height: auto; min-height: 0;
  transform: translate(-50%,-50%) scale(var(--screen-fit,1)); transform-origin: center;
}
#top .p-top-kv { height: var(--page-height); min-height: 0; }
#top .type-hero__inner { padding-block: 24px 48px; }
#ambition .type-quotes { gap: 8px; margin-block: 16px; }
#ambition .type-quotes p { padding-block: 10px; }
#work .work-photo { height: min(150px,22dvh); margin-top: 16px; }
#work .type-copy { padding-block: 12px; }
#work .type-body { margin-top: 16px; }
#future .type-quotes, #future .type-body > p:last-child { padding: 16px; margin-block: 16px; }
#future .type-quotes p + p { margin-top: 10px; }
#future .type-body > p:last-child strong { margin-block: 8px; }
#people .type-values { gap: 8px; }
#people .type-values li { padding-block: 10px; }
#people .type-values--care, #people .type-body > p { margin-top: 16px; }
#first .type-copy { margin-block: 18px; }
#first .type-button { height: 60px; margin-top: 20px; }
#company .company-logo { width: 96px; height: 96px; margin-top: 16px; }
#company .type-details > div { padding-block: 14px; }

.contact-flow.contact-form { display: block; padding: 0; margin: 0; background: transparent; }
.contact-flow .contact .p-top-section__inner { padding-inline: 8vw; }
.contact-flow .contact { padding-inline: 0; }
.contact-flow .contact-field { margin-top: 22px; }
.contact-flow .contact-note { margin-top: 20px; }
.contact-flow .contact-submit { margin-top: 20px; }
.screen-page-count { margin-top: 12px; font-size: 12px; text-align: right; opacity: .7; }

/* Compensate for visual scaling so the text/panel edges stay at 8vw. */
main.p-top .swipe-section > .p-top-section__inner,
#top .type-hero__inner,
.contact-flow .contact .p-top-section__inner { padding-inline: calc(8vw / var(--screen-fit,1)); }

#ambition > .p-top-section__inner, #work > .p-top-section__inner { width: calc(100% / var(--screen-fit,1)); }

/* Native outside markers collide when list items wrap in a flex row. */
#requirements .type-details > div:last-child ul { list-style: none; padding-left: 0; column-gap: 10px; }
#requirements .type-details > div:last-child li { display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%; }
#requirements .type-details > div:last-child li::before { content: '•'; flex: 0 0 auto; }

/* Reserve a separate line for the existing circle/triangle/square decoration. */
#requirements .c-heading, #contact .c-heading { padding-top: 18px; }
#first .c-heading { align-items: flex-start; }
#first .c-heading__header { width: 100%; text-align: left; }

/* Keep the original heading ornament legible on the dark People section. */
#people .c-heading { padding-top: 18px; }
#people .c-heading::before { filter: brightness(0) invert(1); }

/* Job details and entry use document scrolling, never viewport scaling.
   Keep the same horizontal edges while allowing all content its natural height. */
main.p-top :is(#requirements,#contact).swipe-section {
  height: auto; min-height: var(--page-height); max-height: none;
  padding-block: 36px 48px; overflow: visible;
}
main.p-top :is(#requirements,#contact).swipe-section > .p-top-section__inner {
  position: relative; top: auto; left: auto; width: 100%;
  transform: none; padding-inline: 8vw;
}
#requirements .type-body { font-size: 16px; line-height: 1.7; }
#requirements .type-details > div { padding-block: 22px; }
.contact-flow #contact .contact-field { margin-top: 22px; gap: 10px; }
#contact :is(input,select,textarea) { min-height: 52px; padding: 14px 16px; }
#contact textarea { min-height: 170px; }
.contact-flow #contact .contact-submit { height: 64px; margin-top: 24px; }
