/* Shared accessibility rules; mirrored in less/accessibility.less. */
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); z-index: 100000; padding: 12px 18px; background: #fff; color: #111; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid #1769db; outline-offset: 4px; }
button.acc__title { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
.loading-wrapper { display: none; }
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto !important; }
 *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
 .module .col, .footer .wrapper-inner > * { opacity: 1 !important; visibility: visible !important; }
 .video-background-wrapper { display: none !important; }
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.acc__panel:not([hidden]) { display: block !important; }
body .module .col, body .footer .wrapper-inner > * { opacity: 1 !important; visibility: visible !important; }

body.autoplay-paused .marquee-item { animation-play-state: paused !important; }

body.autoplay-paused .video-background-wrapper { visibility: hidden; }
body a:focus-visible, body button:focus-visible, body input:focus-visible, body select:focus-visible, body textarea:focus-visible { outline: 3px solid currentColor !important; outline-offset: 4px; box-shadow: 0 0 0 6px #fff; }
button, input, select, textarea { font: inherit; }
body .flex-pauseplay a { position: relative; display: inline-block; min-width: 44px; min-height: 44px; }

.motion-controls { position: relative; z-index: 2; padding-top: 1rem; padding-bottom: 1rem; }
#pch-motion-toggle { min-height: 44px; padding: .65em 1em; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
body.autoplay-paused *, body.autoplay-paused *::before, body.autoplay-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .marquee-item { animation: none !important; transform: none !important; } }

#pch-motion-toggle { display: inline; min-height: 0; margin-left: 1em; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; }
#pch-motion-toggle:hover { opacity: .6; }
.fixed-overlay { pointer-events: none; }
@media (hover: none), (prefers-reduced-motion: reduce) { body .post-block-traditional .post-object section { opacity: 1 !important; visibility: visible !important; } }

/* Header uses explicit colours; other interface blend effects are retained. */
body header.header { position:fixed; mix-blend-mode: normal; }
body:not(.invert-interface) header.header,
body:not(.invert-interface) header.header a,
body:not(.invert-interface) header.header a:hover { color: #141a26; }
body.invert-interface header.header,
body.invert-interface header.header a,
body.invert-interface header.header a:hover { color: #fff; }
body header.header svg { fill: currentColor; }

/* Header ink stays at the base colour, including on inverted pages. */
body header.header,
body.invert-interface header.header,
body header.header a,
body.invert-interface header.header a,
body header.header a:hover,
body.invert-interface header.header a:hover,
body header.header p,
body header.header span,
body header.header h1 { color: #141a26; }
body header.header svg, body header.header svg path { fill: currentColor; }

body:not(.invert-interface) .header.header a,
body.invert-interface .header.header a,
body .header.header a:link,
body .header.header a:visited,
body .header.header a:hover,
body .header.header a:focus { color: #141a26; }

/* Header logo: accessible name belongs to the home link. */
body header.header a.logo { display: block; width: 100%; max-width: 8rem; }
body header.header a.logo img { display: block; width: 100%; height: auto; }

/* Inverted pages use a white header, including every link state. */
body.invert-interface .header.header,
body.invert-interface .header.header a,
body.invert-interface .header.header a:link,
body.invert-interface .header.header a:visited,
body.invert-interface .header.header a:hover,
body.invert-interface .header.header a:focus,
body.invert-interface .header.header p,
body.invert-interface .header.header span,
body.invert-interface .header.header h1 { color: #fff; }
body.invert-interface .header.header a.logo img { filter: brightness(0) invert(1); }

/* Cinematic copy retains the original display typography after semantic changes. */
.intro-cinematic .foreground-wrapper .intro-description {
 font-family: var(--pch-typeface, "neue-haas-grotesk-display", sans-serif);
 font-weight: 600;
 font-style: normal;
 max-width: 170rem;
}
@media only screen and (min-width: 1024px) {
 .intro-cinematic .foreground-wrapper > .wrapper-inner,
 .intro-cinematic .foreground-wrapper .col-wrapper { height: 100%; }
 .intro-cinematic .foreground-wrapper .col-wrapper { align-items: center; align-content: center; }
 .intro-cinematic .foreground-wrapper .col-wrapper .col { margin-top: 0; margin-bottom: 0; }
}

@media only screen and (min-width: 1024px) {
 .intro-cinematic .foreground-wrapper .intro-description { font-size: 11.5rem; line-height: 1; margin-top: 0; margin-bottom: 0; }
 .module.intro-cinematic .foreground-wrapper .col-wrapper { position: relative; display: flex; align-items: center; align-content: center; }
 .module.intro-cinematic .foreground-wrapper .col-wrapper > .col:first-child { align-self: center; margin-top: 0; margin-bottom: 0; }
 .module.intro-cinematic .foreground-wrapper .col-wrapper > .col:nth-child(2) { position: absolute; bottom: 2rem; left: 0; margin: 0; }
}

/* Header description matches navigation typography and wraps within its column. */
body header.header .descriptor-wrapper .site-description {
 font-family: var(--pch-typeface, "neue-haas-grotesk-display", sans-serif);
 font-weight: 600;
 font-style: normal;
 max-width: 30rem;
}

/* Footer playback control mirrors the neighbouring legal link. */
footer.footer #pch-motion-toggle {
 font-size: 1.8rem;
 line-height: 1.9rem;
 transition: opacity .3s ease-in-out;
}
footer.footer #pch-motion-toggle:hover { opacity: .4; }
@media only screen and (min-width: 1024px) {
 footer.footer #pch-motion-toggle { font-size: 2.2rem; line-height: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
 footer.footer #pch-motion-toggle { transition: none; }
}

/* A single global family; existing sizes, weights and styles are preserved. */
body, body p, body em, body strong, body figcaption,
body h1, body h2, body h3, body h4, body h5, body h6,
body #cookie-notice, body input, body select, body textarea, body button,
body header.header .descriptor-wrapper .site-description,
body .intro-cinematic .foreground-wrapper .intro-description {
 font-family: var(--pch-typeface, "neue-haas-grotesk-display", sans-serif);
}

/* Roboto-only hierarchy; Neue Haas retains its existing weights. */
body.typeface-roboto { font-weight: 400; }
body.typeface-roboto p,
body.typeface-roboto em,
body.typeface-roboto figcaption,
body.typeface-roboto .meta-info .value { font-weight: 400; }
body.typeface-roboto h1,
body.typeface-roboto h2,
body.typeface-roboto h3,
body.typeface-roboto h4,
body.typeface-roboto h5,
body.typeface-roboto h6,
body.typeface-roboto strong,
body.typeface-roboto b,
body.typeface-roboto .intro-cinematic .foreground-wrapper .intro-description { font-weight: 700; }
body.typeface-roboto header.header .descriptor-wrapper .site-description,
body.typeface-roboto header.header nav,
body.typeface-roboto header.header .cta-wrapper { font-weight: 600; }

body.typeface-roboto { --pch-base-size: 1.6rem; }
@media only screen and (min-width: 1024px) {
 body.typeface-roboto { --pch-base-size: 2rem; }
}

/* Mobile header: logo followed by navigation and enquiry row. */
@media only screen and (max-width: 1023px) {
 body header.header .header-wrapper > .col-wrapper { display: flex; flex-direction: column; gap: 1.5rem; }
 body header.header .header-wrapper .col.logo-wrapper { display: block; width: 100%; flex-basis: auto; }
 body header.header .header-wrapper .col.descriptor-wrapper { display: none; }
 body header.header .header-wrapper .col.split-row { width: 100%; flex-basis: auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
 body header.header .nav-wrapper ul { justify-content: flex-start; flex-wrap: wrap; }
 body .wrapper-outer:not(.has-image) { padding-top: 14rem; }
 body.has-intro-cinematic .wrapper-outer { padding-top: 0; }
}

/* Keep cinematic copy visible on mobile. */
@media only screen and (max-width: 1023px) {
 body .module.intro-cinematic .foreground-wrapper { display: block; }
 body .module.intro-cinematic .foreground-wrapper > .wrapper-inner,
 body .module.intro-cinematic .foreground-wrapper .col-wrapper { height: 100%; }
 body .module.intro-cinematic .foreground-wrapper .col-wrapper { display: flex; align-items: center; align-content: center; padding-top: 12rem; padding-bottom: 6rem; box-sizing: border-box; }
 body .module.intro-cinematic .foreground-wrapper .col-wrapper > .col:first-child { align-self: center; margin: 0; }
 body .module.intro-cinematic .foreground-wrapper .intro-description { font-size: clamp(2.8rem, 7vw, 6rem); line-height: 1.05; margin: 0; }
 body .module.intro-cinematic .foreground-wrapper .col-wrapper > .col:nth-child(2) { position: absolute; bottom: 2rem; left: 0; margin: 0; }
}

/* Mobile header: logo left, navigation and CTA right. */
@media only screen and (max-width: 1023px) {
 body header.header .header-wrapper > .col-wrapper { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; gap: 1.5rem; }
 body header.header .header-wrapper .col.logo-wrapper { flex: 0 0 8rem; width: 8rem; }
 body header.header .header-wrapper .col.split-row { flex: 1 1 auto; min-width: 0; width: auto; justify-content: flex-end; }
 body header.header .nav-wrapper ul { justify-content: flex-end; }
}

/* Cinematic arrow: 15% smaller on desktop, half-size on mobile. */
.intro-cinematic .foreground-wrapper .arrow-detail svg { width: 8.5rem; height: 8.5rem; max-height: 8.5rem; }
@media only screen and (max-width: 1023px) {
 .intro-cinematic .foreground-wrapper .arrow-detail svg { width: 4.25rem; height: 4.25rem; max-height: 4.25rem; }
}

/* Remove doubled column gutters from the mobile header. */
@media only screen and (max-width: 1023px) {
 body header.header .header-wrapper > .col-wrapper { column-gap: 1rem; }
 body header.header .header-wrapper .col.split-row { padding-right: 0; padding-left: 0; column-gap: .75rem; }
 body header.header .split-row > .split-row-col { padding-left: 0; padding-right: 0; }
 body header.header .split-row > .cta-wrapper { margin-right: 0; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
 html.pch-loader-enabled body:not(.loaded) .loading-wrapper { display: block; }
 html.pch-loader-enabled body.loaded .loading-wrapper { display: block; opacity: 0; visibility: hidden; transition: opacity 1.3s ease-in-out, visibility 0s linear 1.3s; }
 html:not(.pch-loader-enabled) .loading-wrapper { display: none; }
}

/* Brand grey and clay flow through the loader lettering. */
.loading-wrapper .col-wrapper .col section h3 {
 background-image: linear-gradient(90deg, #e5e5e5 0%, #dd9c83 33%, #f1d7cd 66%, #e5e5e5 100%);
 background-size: 200% auto;
 background-clip: text;
 -webkit-background-clip: text;
}

/* SVG silhouette with the animated clay palette; decorative loading layer. */
.loading-wrapper .loader-logo {
 display: inline-block;
 width: min(24rem, 60vw);
 aspect-ratio: 2 / 1;
 background: linear-gradient(90deg, #e5e5e5 0%, #dd9c83 33%, #f1d7cd 66%, #e5e5e5 100%);
 background-size: 200% auto;
 -webkit-mask: url('../images/interface/peiter-hergert-logo.svg') center / contain no-repeat;
 mask: url('../images/interface/peiter-hergert-logo.svg') center / contain no-repeat;
 animation: shine 1.5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
 .loading-wrapper .loader-logo { animation: none; }
}

/* Fade the loading cover in place instead of moving it off screen. */
html.pch-loader-enabled .loading-wrapper,
html.pch-loader-enabled body.loaded .loading-wrapper { bottom: 0; transform: none; }

/* Internal links fade out before native navigation. */
body header.header, body #smooth-wrapper, body .fixed-overlay { transition: opacity .45s ease-in-out; }
body.pch-page-leaving header.header, body.pch-page-leaving #smooth-wrapper, body.pch-page-leaving .fixed-overlay { opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) {
 body header.header, body #smooth-wrapper, body .fixed-overlay { transition: none; }
}

/* Keep the same loading cover visible across outgoing and incoming pages. */
@media (prefers-reduced-motion: no-preference) {
 html.pch-page-exiting .loading-wrapper {
  display: block !important;
  bottom: 0 !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1;
  transition: opacity .65s ease-in-out, visibility 0s !important;
  animation: pch-loader-exit-in .65s ease-in-out both;
 }
}
@keyframes pch-loader-exit-in { from { opacity: 0; } to { opacity: 1; } }
