/* Steding: service, project, career and legal editorial layouts.
   Shared brand, navigation, buttons and footer live in site.css. */
.subpage {
  background: var(--paper);
  color: var(--ink);
}
.subpage :is(h1, h2, h3, p, li, dt, dd, a, summary, figcaption, label) {
  overflow-wrap: anywhere;
}
.subpage li {
  hyphens: auto;
}
.subpage :is(h1, h2, h3) {
  hyphens: auto;
}
.subpage h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.99;
}
.subpage h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.subpage h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
}
.subpage .section {
  padding: clamp(3.5rem, 7vw, 7rem) max(1.25rem, calc((100vw - 1280px) / 2));
}
.subpage .section-label {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.subpage .text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  min-height: 44px;
  font-weight: 700;
}
.subpage .text-link span {
  flex: 0 0 auto;
}
.subpage :is(.service-lead, .reference-page-intro, .career-lead) {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.65;
  color: var(--muted);
}
.subpage .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}
.subpage .breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.subpage .breadcrumb [aria-current] {
  max-width: 100%;
}
.subpage .service-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.7rem;
  margin-top: 1.8rem;
}
.subpage .button {
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
.page-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.page-section-heading h2 {
  margin-bottom: 0;
}
.page-section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Services: strong type, a useful image and a legible technical sidebar. */
.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  max-width: 1600px;
  margin: auto;
}
.service-hero-copy {
  padding: 2rem clamp(1.25rem, 5vw, 5rem) 4.5rem
    max(1.25rem, calc((100vw - 1280px) / 2));
}
.service-hero h1 {
  font-size: clamp(3.1rem, 6.1vw, 6rem);
  margin: 0 0 2rem;
}
.service-hero-copy .service-lead {
  max-width: 34rem;
}
.service-hero-photo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  background: var(--ink);
}
.service-hero-photo > a {
  display: block;
  flex: 1;
  overflow: hidden;
}
.service-hero-photo img {
  width: 100%;
  height: 100%;
  max-height: 780px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.service-hero-photo > a:hover img {
  transform: scale(1.025);
}
.service-hero-photo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  color: var(--white);
  font-size: 0.7rem;
  line-height: 1.6;
}
.service-hero-photo figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.service-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  margin: 0;
  padding: 1.8rem max(1.25rem, calc((100vw - 1280px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #e9e7df;
  gap: 2rem;
}
.service-facts dt,
.reference-facts dt {
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.service-facts dd,
.reference-facts dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.service-information {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
}
.service-information > div > h2 {
  max-width: 18ch;
  margin: 0 0 2rem;
}
.service-information p {
  max-width: 62ch;
  font-size: 1.04rem;
  line-height: 1.75;
}
.service-information h3 {
  margin: 2.5rem 0 1rem;
}
.service-information ul {
  padding: 0;
  list-style: none;
}
.service-information li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  line-height: 1.6;
}
.service-information li::before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.service-systems {
  background: var(--ink);
  color: var(--white);
  padding: clamp(1.5rem, 3vw, 3rem);
  border-top: 4px solid var(--orange);
}
.service-systems .section-label {
  color: var(--orange);
}
.service-systems h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin: 0 0 1.7rem;
}
.service-systems p {
  font-size: 0.96rem;
  color: #d3d9d8;
}
.service-systems p:last-child {
  border-top: 1px solid #576063;
  padding-top: 1.5rem;
  margin: 1.5rem 0 0;
  color: var(--white);
}
.service-projects {
  border-top: 1px solid var(--line);
}
.project-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.project-preview {
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.project-preview > a {
  display: block;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}
.project-preview-image {
  overflow: hidden;
  background: #dddcd5;
  aspect-ratio: 1.4;
}
.project-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.project-preview > a:hover img {
  transform: scale(1.035);
}
.project-preview-copy {
  padding: 1.5rem 0 1.7rem;
}
.project-preview-copy .section-label {
  margin-bottom: 0.5rem;
}
.project-preview-copy h3 {
  margin: 0.4rem 0 1rem;
}
.project-preview-copy > p:not(.section-label) {
  color: var(--muted);
  line-height: 1.6;
}
.project-preview-copy .text-link {
  margin-top: 0.3rem;
}
.service-next,
.reference-page-cta {
  color: var(--white);
  background: var(--ink);
}
.service-next .section-label,
.reference-page-cta .section-label {
  color: var(--orange);
}
.service-next > h2,
.reference-page-cta > h2 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  max-width: 16ch;
  margin: 0 0 1.5rem;
}
.service-next > p,
.reference-page-cta > p {
  color: #d3d9d8;
  max-width: 65ch;
  line-height: 1.7;
}
.service-next .text-link,
.reference-page-cta .text-link {
  color: var(--white);
}
.related-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.related-services a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
  padding: 0.8rem 0;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.related-services a > span {
  color: var(--accent);
  flex: 0 0 auto;
}
.related-services a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.service-next .related-services {
  border-color: #576063;
  margin-top: 4rem;
}
.service-next .related-services a {
  color: var(--white);
  border-color: #576063;
}
.service-next .related-services a > span {
  color: var(--orange);
}
.category-gallery {
  border-top: 1px solid var(--line);
}
.category-gallery h2 {
  margin: 0 0 2rem;
}
.category-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.category-gallery figure {
  margin: 0;
}
.category-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.category-gallery figcaption {
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.page-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 8rem);
  border-top: 1px solid var(--line);
}
.page-faq h2 {
  max-width: 12ch;
  margin: 0;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  font-weight: 600;
  font-size: 1.08rem;
  min-height: 76px;
  padding: 1.1rem 0;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.subpage .faq-list summary::after {
  content: none;
  display: none;
}
.faq-list summary > span {
  color: var(--accent);
  font-size: 1.6rem;
  flex: 0 0 auto;
  line-height: 1;
}
.faq-list details[open] summary > span {
  transform: rotate(45deg);
}
.faq-list details p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  padding: 0 2rem 1.5rem 0;
}

/* Cinematic case studies: real construction photography, complete originals. */
.reference-page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100svh - var(--header, 88px));
  padding: 1.2rem var(--gutter) 1rem;
  color: var(--white);
  background: var(--ink);
  overflow: clip;
}
.reference-page-lead {
  position: absolute;
  inset: 0;
  z-index: auto;
  margin: 0;
  /* A fixed full-bleed photo must not become a transformed arrival context;
     its zoom control has to stay above the copy at enlarged text sizes. */
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
}
.reference-page-lead > a {
  display: block;
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 6rem;
  max-width: calc(100% - 40px);
  color: var(--white);
  cursor: zoom-in;
}
.reference-page-lead img {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.reference-page-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #111a1df5 0%,
      #111a1dce 36%,
      #111a1da8 62%,
      #111a1d30 100%
    ),
    linear-gradient(
      180deg,
      #111a1d50 0%,
      transparent 40%,
      #111a1d45 65%,
      #111a1df5 100%
    );
}
.reference-page-hero[data-project="treppenturm"] .reference-page-lead img {
  object-position: center 33%;
}
.reference-page-hero[data-project="hildesheim-bruecke"]
  .reference-page-lead
  img {
  object-position: center 37%;
}
.reference-page-hero[data-project="hannover-maler"] .reference-page-lead img {
  object-position: center 37%;
}
.reference-hero-enlarge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  max-width: 26rem;
  gap: 2rem;
  padding: 0.8rem 1rem;
  border: 1px solid #ffffff70;
  background: #111a1df0;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.6;
}
.reference-hero-enlarge > span {
  color: var(--orange);
  font-size: 1.4rem;
}
.reference-page-lead > a:hover .reference-hero-enlarge {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}
.reference-page-lead > a:hover .reference-hero-enlarge > span {
  color: var(--ink);
}
.reference-page-lead > a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -6px;
}
.reference-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.reference-page-hero .breadcrumb {
  color: #e1e6e3;
  margin: 0;
  font-size: 0.66rem;
}
.reference-hero-edition {
  padding: 0.5rem 0.8rem;
  color: #e1e6e3;
  background: #111a1de8;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.reference-page-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 100%;
  max-width: 1120px;
  padding: 3rem 0 7rem;
}
.reference-page-hero .section-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: #ffae65;
  font-size: 0.7rem;
  margin-bottom: 1.5rem;
}
.reference-case-marker {
  width: 8px;
  height: 8px;
  background: var(--orange);
  flex: 0 0 8px;
}
.reference-page-hero h1 {
  max-width: 19ch;
  color: var(--white);
  font-size: clamp(4.4rem, 8.8vw, 9.5rem);
  line-height: 0.93;
  letter-spacing: -0.035em;
  margin: 0 0 1.8rem;
  text-wrap: balance;
  text-shadow: 0 5px 32px #0003;
}
.reference-page-hero .reference-page-intro {
  max-width: 54ch;
  margin: 0;
  color: #e5e9e6;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.8;
}
.reference-page-hero .service-actions {
  margin-top: 2rem;
}
.reference-page-hero .text-link {
  color: var(--white);
}
.reference-hero-index {
  position: absolute;
  z-index: -1;
  top: 32%;
  right: var(--gutter);
  color: transparent;
  -webkit-text-stroke: 1px #ffffff50;
  font: 800 clamp(14rem, 28vw, 28rem) / 0.75 var(--display);
  letter-spacing: -0.05em;
  pointer-events: none;
}
.reference-hero-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #ffffff45;
  color: #d5dedb;
  font-size: 0.65rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.reference-hero-footer > a {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}
.reference-hero-footer > a span {
  color: var(--orange);
  font-size: 1.25rem;
}
.reference-project-notes {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
  background: var(--paper);
}
.reference-project-notes::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: 4rem;
  height: 5px;
  background: var(--orange);
}
.reference-project-notes h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.8rem, 4.6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.reference-technical-sheet {
  border-top: 2px solid var(--ink);
}
.reference-sheet-label {
  margin: 0;
  padding: 1rem 0 1.4rem;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.reference-facts {
  margin: 0;
}
.reference-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.reference-facts > div:last-child {
  border-bottom: 1px solid var(--line);
}
.reference-facts dt {
  margin: 0.2rem 0 0;
}
.reference-sheet-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
}
.reference-project-gallery {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid #ffffff30;
}
.reference-project-gallery .section-label {
  color: var(--orange);
}
.reference-project-gallery .page-section-heading {
  align-items: end;
  margin-bottom: 5rem;
}
.reference-project-gallery h2 {
  color: var(--white);
  font-size: clamp(4rem, 7.5vw, 8rem);
  line-height: 0.91;
  letter-spacing: -0.025em;
}
.reference-project-gallery h2 span {
  color: var(--orange);
}
.reference-gallery-intro {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 31rem;
}
.reference-gallery-count {
  flex-shrink: 0;
  color: var(--orange);
  font: 800 clamp(4rem, 7vw, 7rem) / 1 var(--display);
  letter-spacing: -0.03em;
}
.reference-gallery-intro > p {
  margin: 0;
  color: #c5cfcb;
  font-size: 0.8rem;
  line-height: 1.9;
}
.reference-photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 4.5rem 3rem;
}
.reference-photo {
  grid-column: span 7;
  min-width: 0;
  margin: 0;
}
.reference-photo:nth-child(4n + 2) {
  grid-column: span 5;
  margin-top: 9rem;
}
.reference-photo:nth-child(4n + 3) {
  grid-column: span 5;
}
.reference-photo:nth-child(4n + 4) {
  grid-column: span 7;
  margin-top: 6rem;
}
.reference-photo--landscape:nth-child(5n) {
  grid-column: 1 / -1;
  margin-top: 0;
}
.reference-photo-grid[data-count="1"] .reference-photo {
  grid-column: 2 / 12;
  max-width: 960px;
  margin: 0 auto;
}
.reference-photo > a {
  position: relative;
  display: block;
  padding: 0.5rem;
  border: 1px solid #ffffff3a;
  background: #1b272a;
  cursor: zoom-in;
}
.reference-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-open {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--ink);
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}
.reference-photo > a:hover .photo-open {
  transform: translate(3px, -3px);
}
.reference-photo figcaption {
  display: flex;
  gap: 1.4rem;
  align-items: start;
  padding-top: 1.2rem;
  color: var(--white);
}
.reference-photo-number {
  flex: 0 0 auto;
  min-width: 2.3ch;
  white-space: nowrap;
  color: var(--orange);
  font: 800 3rem/1 var(--display);
}
.reference-photo figcaption > div {
  min-width: 0;
}
.reference-photo-title {
  display: block;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.7;
}
.reference-photo-detail {
  display: block;
  margin-top: 0.45rem;
  color: #bfcac6;
  font-size: 0.65rem;
  line-height: 1.8;
}
.reference-gallery-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid #ffffff40;
  margin-top: 5rem;
  padding-top: 1.2rem;
  color: #c5cfcb;
  font-size: 0.7rem;
  line-height: 1.8;
}
.reference-gallery-end > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 2rem;
  color: var(--white);
  text-decoration: none;
}
.reference-gallery-end > a span {
  color: var(--orange);
}
.reference-services h2 {
  margin: 0;
}
.reference-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--ink);
  color: var(--white);
}
.reference-pagination > a {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 420px;
  align-items: end;
  padding: 3rem;
  text-decoration: none;
  overflow: clip;
  border-top: 1px solid #ffffff35;
}
.reference-pagination > a:first-child {
  border-right: 1px solid #ffffff35;
}
.reference-pagination-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
}
.reference-pagination-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #111a1d30 0%,
    #111a1d90 35%,
    #111a1df5 100%
  );
}
.reference-pagination-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.reference-pagination > a:hover img {
  transform: scale(1.045);
}
.reference-pagination-copy {
  display: grid;
  gap: 1rem;
  max-width: 33rem;
}
.reference-pagination-copy small {
  color: #ffb36f;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.reference-pagination-copy strong {
  color: var(--white);
  font: 800 clamp(2rem, 3.8vw, 4rem) / 1.03 var(--display);
  letter-spacing: -0.02em;
}
.reference-pagination-copy > span {
  color: #d1dad6;
  font-size: 0.8rem;
}
.reference-pagination > a:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
@media (max-width: 1100px) {
  .reference-page-hero h1 {
    font-size: clamp(4rem, 9vw, 7rem);
  }
  .reference-hero-edition {
    display: none;
  }
  .reference-page-copy {
    max-width: 850px;
  }
  .reference-photo-grid {
    gap: 3rem 2rem;
  }
  .reference-photo:nth-child(4n + 2) {
    margin-top: 5rem;
  }
  .reference-photo:nth-child(4n + 4) {
    margin-top: 4rem;
  }
  .reference-pagination > a {
    min-height: 360px;
    padding: 2rem;
  }
}
@media (max-width: 760px) {
  .reference-page-hero {
    min-height: calc(100svh - var(--header, 72px));
    padding: 0.7rem 20px 1rem;
  }
  .reference-page-hero .breadcrumb {
    margin-bottom: 0;
    font-size: 0.65rem;
  }
  .reference-page-copy {
    padding: 3rem 0 8rem;
    margin: 0;
  }
  .reference-page-hero .section-label {
    font-size: 0.65rem;
    line-height: 1.8;
    margin-bottom: 1.4rem;
  }
  .reference-page-hero h1 {
    max-width: 16ch;
    font-size: clamp(3.25rem, 14vw, 5.4rem);
    line-height: 0.96;
    margin-bottom: 0;
  }
  .reference-page-hero .reference-page-intro {
    display: none;
  }
  .reference-page-hero .service-actions {
    margin-top: 1.8rem;
    gap: 1rem 1.5rem;
  }
  .reference-page-hero .service-actions .button {
    gap: 1rem;
  }
  .reference-page-hero .text-link {
    font-size: 0.8rem;
  }
  .reference-hero-index {
    right: 15px;
    top: auto;
    bottom: 10rem;
    font-size: 11rem;
    opacity: 0.65;
  }
  .reference-page-lead > a {
    right: 20px;
    bottom: 6.5rem;
  }
  .reference-hero-enlarge {
    font-size: 0.68rem;
    min-height: 48px;
    padding: 0.65rem 1rem;
    gap: 1rem;
  }
  .reference-hero-footer {
    align-items: start;
    font-size: 0.61rem;
    padding-top: 0.8rem;
    gap: 1rem;
  }
  .reference-hero-footer > span {
    max-width: 19ch;
  }
  .reference-hero-footer > a {
    gap: 1rem;
  }
  .reference-page-lead::after {
    background:
      linear-gradient(90deg, #111a1df0 0%, #111a1d9e 65%, #111a1d5c 100%),
      linear-gradient(
        180deg,
        #111a1d40 0%,
        transparent 25%,
        #111a1d99 65%,
        #111a1df5 100%
      );
  }
  .reference-project-notes {
    gap: 2.5rem;
  }
  .reference-project-notes h2 {
    max-width: 21ch;
    font-size: clamp(2.5rem, 9vw, 3.8rem);
  }
  .reference-facts > div {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  }
  .reference-sheet-note {
    font-size: 0.9rem;
  }
  .reference-project-gallery .page-section-heading {
    margin-bottom: 3rem;
    gap: 2rem;
  }
  .reference-project-gallery h2 {
    font-size: clamp(3.8rem, 15vw, 6rem);
  }
  .reference-gallery-intro {
    gap: 1.2rem;
    align-items: start;
  }
  .reference-gallery-count {
    font-size: 4rem;
  }
  .reference-gallery-intro > p {
    font-size: 0.78rem;
  }
  .reference-photo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .reference-photo:nth-child(n),
  .reference-photo-grid[data-count="1"] .reference-photo {
    grid-column: 1;
    margin: 0;
    max-width: none;
  }
  .reference-photo:nth-child(even) {
    padding-left: 1.5rem;
  }
  .reference-photo figcaption {
    gap: 1rem;
  }
  .reference-photo-number {
    flex-basis: 2rem;
    font-size: 2.6rem;
  }
  .reference-photo-title {
    font-size: 0.8rem;
  }
  .reference-photo-detail {
    font-size: 0.65rem;
  }
  .reference-gallery-end {
    align-items: start;
    gap: 1.3rem;
    margin-top: 3rem;
    font-size: 0.65rem;
  }
  .reference-gallery-end > a {
    gap: 1rem;
  }
  .reference-pagination {
    grid-template-columns: minmax(0, 1fr);
  }
  .reference-pagination > a {
    min-height: 350px;
    padding: 2rem 20px;
  }
  .reference-pagination > a:first-child {
    border-right: 0;
  }
  .reference-pagination-copy strong {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}
@media (max-width: 360px) {
  .reference-page-hero h1 {
    font-size: 2.85rem;
  }
  .reference-page-hero .section-label {
    gap: 0.5rem;
  }
  .reference-photo:nth-child(even) {
    padding-left: 0;
  }
}

/* Careers, using a real site image rather than invented team photography. */
.career-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--ink);
  color: var(--white);
}
.career-hero-copy {
  z-index: 1;
  padding: 2rem 3rem 5rem max(1.25rem, calc((100vw - 1280px) / 2));
}
.career-hero .breadcrumb {
  color: #c0c9c9;
}
.career-hero .section-label {
  color: var(--orange);
}
.career-hero h1 {
  font-size: clamp(5rem, 8.5vw, 9rem);
  margin: 0 0 2rem;
}
.career-hero h1 > span {
  color: var(--orange);
}
.career-hero .career-lead {
  max-width: 36ch;
  color: #d3d9d8;
}
.career-hero .text-link {
  color: var(--white);
}
.career-site-photo {
  position: relative;
  margin: 0;
  align-self: stretch;
}
.career-site-photo > a {
  display: block;
  height: 100%;
}
.career-site-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 600px;
}
.career-site-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-size: 0.72rem;
  line-height: 1.6;
}
.career-site-photo figcaption a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.career-type {
  grid-column: 1 / -1;
  background: var(--orange);
  color: var(--ink);
  padding: clamp(1.5rem, 4vw, 4rem) max(1.25rem, calc((100vw - 1280px) / 2));
  font-family: var(--display);
  font-size: clamp(3.1rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.career-type br {
  display: none;
}
.career-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.career-role-grid article {
  position: relative;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: clamp(1.5rem, 3vw, 3rem);
}
.role-index {
  display: block;
  margin-bottom: 2rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.career-role-grid h3 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin: 0 0 1.2rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.career-role-grid h3 > small {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
  margin-top: 0.5rem;
}
.career-role-grid p {
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.7;
}
.career-benefits-section {
  background: #e9e7df;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
}
.career-benefits-section h2 {
  margin: 0 0 2.5rem;
}
.career-requirements h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.career-requirements p {
  max-width: 43ch;
  color: var(--muted);
  line-height: 1.7;
}
.career-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: benefits;
  border-top: 1px solid var(--line);
}
.career-benefits li {
  display: flex;
  gap: 1.3rem;
  align-items: baseline;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 1.07rem;
  line-height: 1.5;
}
.career-benefits li::before {
  counter-increment: benefits;
  content: counter(benefits, decimal-leading-zero);
  flex: 0 0 1.6rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}
.career-application {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
}
.career-contact h2 {
  margin: 0 0 2rem;
}
.career-contact > p {
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.7;
}
.career-contact strong {
  color: var(--ink);
}
.career-phone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-family: var(--display);
  font-weight: 800;
  min-height: 60px;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  margin-top: 2rem;
  text-decoration: none;
  gap: 1rem;
}
.career-phone > span {
  color: var(--accent);
}
.career-email {
  display: inline-flex;
  align-items: center;
  font-size: 0.96rem;
  min-height: 44px;
}
.career-contact-note {
  display: flex;
  align-items: start;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.career-contact-note > span {
  color: var(--accent);
  font-size: 3rem;
  font-family: var(--display);
  line-height: 1;
}
.career-contact-note p {
  margin: 0;
  max-width: 25ch;
  color: var(--muted);
  line-height: 1.7;
}
.career-form {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: clamp(1.3rem, 3vw, 3rem);
  scroll-margin-top: 7rem;
}
.career-form h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
}
.career-form-intro {
  margin-bottom: 2rem;
  color: var(--muted);
  line-height: 1.7;
}
.career-form .field {
  margin: 1.5rem 0;
}
.career-form label {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}
.career-role-choice {
  padding: 0;
  border: 0;
  min-width: 0;
}
.career-role-choice legend {
  padding: 0;
  margin-bottom: 0.65rem;
  font-family: var(--body);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
}
.career-role-options {
  display: grid;
  gap: 0.65rem;
}
.career-role-options label {
  display: flex;
  align-items: start;
  gap: 0.8rem;
  min-height: 54px;
  border: 1px solid #7b8584;
  background: var(--paper);
  padding: 0.85rem;
  margin: 0;
  cursor: pointer;
}
.career-role-options label:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.career-role-options label > span {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.career-form :is(input:not([type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--paper);
  border: 1px solid #7b8584;
  border-radius: 0;
  color: var(--ink);
  padding: 0.85rem;
  font: inherit;
  min-height: 50px;
}
.career-form .career-role-options input[type="radio"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0.1rem 0;
  accent-color: var(--accent);
}
.career-form textarea {
  min-height: 150px;
  resize: vertical;
}
.career-form .field-hint,
.career-form .form-note {
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--muted);
}
.career-form .field-hint {
  margin: -0.2rem 0 0.8rem;
}
.career-form .field-hint a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.career-form .field-error {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a12318;
  font-weight: 600;
  margin: 0.5rem 0 0;
}
.career-form .field-error:empty {
  display: none;
}
.career-form [aria-invalid="true"] {
  border: 2px solid #a12318;
}
.career-form .form-status:not(:empty) {
  padding: 1rem;
  margin: 1.5rem 0;
  border: 1px solid var(--accent);
  background: #fff4e8;
  font-size: 0.9rem;
  line-height: 1.65;
}
.career-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.career-form .submit-button {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  padding-left: 16px;
  padding-right: 16px;
}
.career-form .form-note:last-child {
  margin: 1rem 0 0;
}

/* Complete legal copy, a compact contents rail and comfortable line lengths. */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: 0 clamp(2rem, 7vw, 7rem);
  padding: 2rem max(1.25rem, calc((100vw - 1280px) / 2)) 6rem;
}
.legal-header {
  grid-column: 1 / -1;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4rem;
}
.legal-header h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7rem);
}
.legal-toc {
  align-self: start;
  position: sticky;
  top: 8rem;
  padding: 0 0 2rem;
}
.legal-toc h2 {
  font-size: 1rem;
  font-family: var(--body);
  letter-spacing: 0;
  margin: 0 0 1.5rem;
}
.legal-toc nav {
  display: grid;
  border-top: 1px solid var(--line);
}
.legal-toc a {
  padding: 0.8rem 0;
  min-height: 44px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.legal-toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.legal-content {
  max-width: 78ch;
  min-width: 0;
}
.legal-content > p:first-child {
  margin-top: 0;
}
.legal-content h2 {
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  line-height: 1.16;
  margin: 3rem 0 1.3rem;
  scroll-margin-top: 8rem;
}
.legal-content > h2:first-child {
  margin-top: 0;
}
.legal-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.2rem;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.legal-note {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 3rem 0;
}
.legal-note h2 {
  margin-top: 0;
}
.error-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 5rem max(1.25rem, calc((100vw - 1280px) / 2)) 7rem;
}
.error-code {
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(7rem, 23vw, 23rem);
  line-height: 1;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.08em;
}
.error-content h1 {
  font-size: clamp(3rem, 4.5vw, 4.7rem);
  margin: 0 0 1.5rem;
}
.error-content > div > p:not(.section-label) {
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 1600px) {
  .service-hero-copy {
    padding-left: 5rem;
  }
}
@media (max-width: 1100px) {
  .service-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }
  .service-hero-copy {
    padding-right: 2rem;
  }
  .service-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
  }
  .career-hero h1 {
    font-size: clamp(4rem, 8vw, 6.5rem);
  }
  .career-hero-copy {
    padding-right: 2rem;
  }
  .career-site-photo img {
    min-height: 580px;
  }
  .legal-layout {
    grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
    gap: 0 2.5rem;
  }
}
@media (max-width: 760px) {
  .subpage .section {
    padding: 3.5rem 1.25rem;
  }
  .subpage .breadcrumb {
    font-size: 0.7rem;
    margin-bottom: 2.3rem;
  }
  .subpage .section-label {
    font-size: 0.7rem;
  }
  .service-hero,
  .service-information,
  .page-faq,
  .reference-project-notes,
  .career-hero,
  .career-benefits-section,
  .career-application,
  .legal-layout,
  .error-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-hero-copy {
    padding: 1rem 1.25rem 3rem;
  }
  .service-hero h1 {
    font-size: clamp(3rem, 10vw, 4.8rem);
    line-height: 1.02;
    margin-bottom: 1.6rem;
  }
  .service-hero-photo img {
    height: auto;
    max-height: 540px;
    object-fit: contain;
  }
  .service-hero-photo figcaption {
    padding: 0.85rem 1.25rem;
    flex-wrap: wrap;
    font-size: 0.65rem;
    gap: 0.3rem 1rem;
  }
  .service-facts {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
    gap: 1.2rem;
  }
  .service-facts > div {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 0.8rem;
  }
  .service-facts dt {
    margin: 0.2rem 0 0;
    font-size: 0.65rem;
  }
  .service-facts dd {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .service-information {
    gap: 2.5rem;
  }
  .service-information > div > h2 {
    max-width: 20ch;
  }
  .service-information p {
    font-size: 1rem;
  }
  .project-preview-grid,
  .category-gallery-grid,
  .career-role-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .page-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .related-services {
    grid-template-columns: minmax(0, 1fr);
  }
  .related-services a {
    min-height: 60px;
  }
  .page-faq {
    gap: 2rem;
  }
  .page-faq h2 {
    max-width: 16ch;
  }
  .faq-list summary {
    font-size: 1rem;
    gap: 1rem;
  }
  .career-hero-copy {
    padding: 1rem 1.25rem 3rem;
  }
  .career-hero h1 {
    font-size: clamp(4rem, 16vw, 6rem);
  }
  .career-site-photo img {
    min-height: 0;
    height: auto;
    max-height: 480px;
  }
  .career-site-photo figcaption {
    font-size: 0.65rem;
    padding: 0.8rem 1.25rem;
  }
  .career-type {
    padding: 1.8rem 1.25rem;
    font-size: clamp(2.7rem, 10vw, 5.5rem);
  }
  .career-type br {
    display: block;
  }
  .career-role-grid h3 {
    font-size: clamp(2.1rem, 8vw, 3.3rem);
  }
  .career-benefits-section {
    gap: 2rem;
  }
  .career-benefits-section h2 {
    margin-bottom: 2rem;
  }
  .career-application {
    gap: 3rem;
  }
  .career-form {
    padding: 1.5rem 1.25rem;
    margin: 0 -0.25rem;
  }
  .career-contact-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  .legal-layout {
    padding: 1rem 1.25rem 4rem;
  }
  .legal-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  .legal-header h1 {
    font-size: clamp(3.1rem, 11vw, 5rem);
  }
  .legal-toc {
    position: static;
    margin-bottom: 1rem;
  }
  .legal-content {
    max-width: 100%;
  }
  .legal-content h2 {
    margin-top: 2.5rem;
    font-size: 1.8rem;
  }
  .legal-content p {
    font-size: 0.95rem;
    line-height: 1.8;
  }
  .error-content {
    padding: 2rem 1.25rem 4rem;
    gap: 1rem;
  }
  .error-code {
    font-size: clamp(8rem, 42vw, 15rem);
  }
  .error-content h1 {
    font-size: clamp(2.7rem, 9vw, 4rem);
  }
}
@media (max-width: 360px) {
  .service-hero h1 {
    font-size: 2.75rem;
  }
  .career-hero h1 {
    font-size: 4rem;
  }
  .subpage .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .subpage * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .subpage .site-header,
  .subpage .site-footer,
  .subpage .mobile-contact,
  .legal-toc {
    display: none;
  }
  .legal-layout {
    display: block;
    padding: 0;
  }
  .legal-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }
  .legal-content {
    max-width: none;
  }
  .subpage main {
    overflow: visible;
  }
}
