/* Home-only additions. Keep the approved global palette, navigation and inner pages intact. */
.page-home { --container: 2560px; --gutter: clamp(24px, 4vw, 160px); }
/* One bounded content measure for the home header, hero and all sections.
   Inner pages keep their shared container and navigation rules. */
.page-home .site-header { left: 0; right: 0; width: min(calc(100% - var(--gutter) * 2), var(--container)); margin-inline: auto; }
.page-home .hero { overflow: clip; display: grid; grid-template-rows: 1fr auto; gap: 16px; min-height: clamp(760px, 100svh, 1760px); height: auto; max-height: none; padding-block: 124px 24px; }
.page-home .hero-content { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, .55fr); align-items: center; padding-block: 0; }
.page-home .hero-copy { grid-column: 1; grid-row: 1; min-width: 0; z-index: 1; }
.page-home .hero h1 { font-size: clamp(60px, 5.8vw, 136px); }
.page-home .hero h1 .title-line { white-space: nowrap; }
.page-home .hero h1 .title-line:first-child { color: #397cac; }
/* The KV has empty scenery on its left. Overlap that scenery with the copy
   through the grid, keeping the entire 3:2 image inside the content measure.
   The height budget reserves room for the header and scroll cue. */
.page-home .hero-installation { grid-column: 1 / -1; grid-row: 1; justify-self: end; position: static; top: auto; right: auto; margin: 0; width: min(84%, calc((100svh - 220px) * 1.5)); height: auto; z-index: 0; }
.page-home .hero-bottom { position: static; }
/* Blend the complete scene into the existing theme, preserving the sculpture.
   The mask only softens empty perimeter scenery; material/optics are in the KV. */
.page-home .hero-kv-picture { display: block; mask-image: linear-gradient(90deg, transparent, #000 26%, #000 90%, transparent), linear-gradient(transparent, rgba(0,0,0,.25) 4%, #000 12%, #000 90%, transparent); mask-composite: intersect; }
.page-home .brand-sculpture { aspect-ratio: auto; object-fit: contain; filter: none; animation: none; }
.page-home .hero .brand-flow { opacity: .08; }
.page-home .hero-brand-caption { display: flex; flex-direction: column; gap: 11px; top: 33%; right: max(20px, calc((100% - var(--container)) / 2 + 20px)); writing-mode: horizontal-tb; font-family: inherit; font-size: 12px; letter-spacing: .18em; color: #46627f; }
.page-home .hero-brand-caption::after { content: ''; width: 1px; height: 42px; margin: 8px auto 0; background: linear-gradient(#71a8ce, transparent); }
.page-home .hero-description { font-size: clamp(15px, 1vw, 20px); max-width: 36em; }
.page-home .hero-expertise { max-width: 640px; margin-top: 24px; letter-spacing: 0; }
.page-home .expertise-label { font-size: 10px; line-height: 1.5; letter-spacing: .12em; color: #425b73; }
.page-home .expertise-label > span { padding-inline: 5px; color: #62839d; }
.page-home .expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 18px); margin-top: 9px; }
.page-home .expertise-item { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: 7px; row-gap: 5px; padding: 4px 0 4px 11px; border-left: 1px solid #a6c7df; color: #233f57; transition: color .18s, border-color .18s; }
.page-home .expertise-number { align-self: center; font-family: var(--font-en); font-size: 10px; line-height: 1.5; color: #425b73; }
.page-home .expertise-name { display: flex; align-items: center; gap: 7px; font-size: clamp(20px, 1.15vw, 22px); line-height: 1.35; font-weight: 500; white-space: nowrap; }
.page-home .expertise-arrow { font-size: 12px; font-weight: 400; color: #496e8a; }
.page-home .expertise-keywords { grid-column: 1 / -1; font-size: 12px; line-height: 1.6; color: #405a71; }
.page-home .expertise-keywords > span { white-space: nowrap; }
.page-home .expertise-item:hover { color: #295f84; border-left-color: #548fb7; }
.page-home .expertise-item:focus-visible { outline: 2px solid #397cac; outline-offset: 4px; border-radius: 0; }
@media (min-width: 901px) and (max-width: 1100px) {
  .page-home .expertise-item { column-gap: 5px; padding-left: 8px; }
  .page-home .expertise-arrow { display: none; }
}
@media (max-width: 360px) {
  .page-home .hero-expertise .expertise-name { font-size: 15px; }
}
.page-home .button { font-size: clamp(14px, .95vw, 18px); min-height: clamp(56px, 3.4vw, 72px); }
.page-home .section-space { padding-block: clamp(80px, 8vw, 120px); }
.page-home .home-about { padding-block: clamp(72px, 6.8vw, 104px); padding-bottom: clamp(32px, 3vw, 48px); border-top: 0; background: transparent; }
.home-about-layout { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, .55fr); gap: clamp(36px, 4vw, 64px); align-items: center; }
.page-home .home-about-copy { max-width: none; min-width: 0; }
.page-home .home-about-copy > .eyebrow { font-size: 11px; line-height: 1.6; color: #3d6689; }
.home-about-copy h2 { margin-top: 16px; margin-bottom: 12px; font-size: clamp(34px, 3.6vw, 64px); }
.home-about-strapline { margin-bottom: 24px; font-size: clamp(20px, 1.6vw, 28px); line-height: 1.6; font-weight: 500; color: #315979; }
.home-about-description { max-width: 36em; color: #30455f; font-size: clamp(16px, 1vw, 20px); line-height: 1.9; }
.home-about-description p + p { margin-top: 18px; }
.home-about-description strong { font-weight: 500; color: #244665; }
.home-about-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 720px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid rgba(104,145,179,.25); }
.home-about-values dt { font-size: 12px; line-height: 1.6; color: #4b647d; }
.home-about-values dd { margin: 7px 0 0; font-size: clamp(15px, .95vw, 18px); line-height: 1.7; font-weight: 500; color: #294e70; }
.page-home .home-about-services { margin-top: 22px; color: #397cac; border-bottom-color: rgba(104,145,179,.4); }
.page-home .home-about-services:hover, .page-home .home-about-services:focus-visible { color: #2b6088; border-bottom-color: #71a8ce; }
.home-photo { min-width: 0; padding: 12px; background: rgba(255,255,255,.47); border: 1px solid rgba(255,255,255,.74); border-radius: 8px; box-shadow: var(--shadow-panel); }
.home-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 3px; background: #eaf0f6; }
.home-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 10px 7px; font-size: 13px; color: #30455f; }
.page-home .home-entrance { padding: 10px; border-radius: 12px; }
.page-home .home-entrance img { border-radius: 5px; background: #f3f5f7; }
.page-home .home-practice { padding-top: clamp(48px, 4vw, 64px); border-top: 0; background: transparent; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.home-section-heading h2 { margin-top: 18px; font-size: clamp(34px, 3.6vw, 64px); }
.home-section-heading > p { color: #30455f; font-size: clamp(15px, 1vw, 20px); line-height: 1.9; }
.home-practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.home-practice-grid h3 { font-size: clamp(18px, 1vw, 24px); }
.page-home .home-contact { min-height: 360px; padding-block: 80px; }
.page-home .home-contact h2 { font-size: clamp(34px, 3.6vw, 64px); margin-top: 22px; }
.page-home .cta-bottom { margin-top: 28px; }
.page-home .cta-bottom > p { font-size: clamp(16px, 1vw, 20px); color: #30455f; }
@media (max-width: 900px) {
  .page-home .expertise-label { display: none; }
  .page-home .expertise-grid { margin-top: 0; }
  .page-home .hero { display: block; min-height: 0; height: auto; padding-block: 0; }
  .page-home .hero-content { display: flex; flex-direction: column; align-items: stretch; }
  .page-home .hero-copy { display: contents; }
  .page-home .hero h1 { font-size: 66px; }
  .page-home .hero-content { padding-top: 155px; padding-bottom: 110px; }
  /* Stack the same complete KV below the copy on tablet and phone. */
  .page-home .hero-installation { order: 1; position: static; top: auto; right: auto; width: min(620px, 100%); height: auto; aspect-ratio: 3 / 2; margin: 24px auto 0; }
  .page-home .hero-kv-picture { display: flex; align-items: center; justify-content: center; height: 100%; mask-image: none; }
  .page-home .brand-sculpture { width: 100%; height: auto; max-width: 100%; mask-image: linear-gradient(90deg, transparent, #000 16%, #000 90%, transparent), linear-gradient(transparent, #000 12%, #000 90%, transparent); mask-composite: intersect; }
  .page-home .hero-brand-caption { display: none; }
  .page-home .hero .button-group { order: 2; margin-top: 24px; }
  .page-home .hero-bottom { position: absolute; }
  .home-about-layout { gap: 32px; }
  .home-about-description { font-size: 15px; }
  .home-practice-grid { gap: 22px; }
}
@media (max-width: 900px) {
  .home-about-layout { grid-template-columns: 1fr; gap: 32px; }
  .home-about-values { max-width: 540px; }
}
@media (max-width: 700px) {
  .page-home { --gutter: 24px; }
  .page-home .site-header { width: calc(100% - 32px); }
  .page-home .hero-content { padding-top: 139px; padding-bottom: 100px; }
  .page-home .hero h1 { font-size: clamp(36px, 10.2vw, 58px); }
  .page-home .hero-description { font-size: 13px; max-width: none; }
  .page-home .hero-installation { width: 100%; height: auto; margin: 17px auto 0; }
  .page-home .hero-expertise { margin-top: 18px; }
  .page-home .expertise-grid { gap: 8px; margin-top: 0; }
  .page-home .expertise-item { column-gap: 4px; row-gap: 4px; padding: 2px 0 2px 8px; }
  .page-home .expertise-name { font-size: 18px; gap: 4px; }
  .page-home .expertise-number { font-size: 9px; }
  .page-home .expertise-arrow { display: none; }
  .page-home .button { min-height: 52px; font-size: 13px; }
  .page-home .hero-kicker { margin-bottom: 23px; }
  .page-home .hero .button-group { justify-content: center; }
  .home-practice-grid { grid-template-columns: 1fr; }
  .page-home .home-about { padding-block: 64px 32px; }
  .home-about-layout { gap: 28px; }
  .home-about-copy h2 { margin-bottom: 12px; }
  .home-about-strapline { margin-bottom: 22px; }
  .home-about-description { font-size: 15px; line-height: 1.9; }
  .home-about-values { column-gap: 16px; margin-top: 24px; padding-top: 18px; }
  .home-about-values dd { font-size: 14px; }
  .home-photo { padding: 9px; }
  .home-photo figcaption { padding: 14px 4px 5px; font-size: 12px; }
  .home-section-heading { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
  .home-section-heading > p br { display: none; }
  .home-practice-grid { gap: 26px; }
  .home-practice-grid .eyebrow { font-size: 9px; }
  .page-home .home-contact { min-height: 0; padding-block: 70px; }
  .page-home .cta-bottom { align-items: start; gap: 22px; }
}
