/* Home page mobile composition. Desktop presentation remains unchanged. */
@media (max-width: 768px) {
  .home-page {
    overflow-x: hidden;
  }

  .home-page .site-header {
    background: transparent;
  }

  .home-page .header-inner {
    width: calc(100% - 44px);
    min-height: 78px;
  }

  .home-page .brand {
    flex-basis: 148px;
    max-width: 148px;
  }

  .home-page .menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgb(255 255 255 / 68%);
    border-radius: 0;
    background: rgb(9 31 55 / 30%);
    box-shadow: none;
  }

  .home-page .menu-toggle span {
    background: var(--white);
  }

  .home-page .primary-navigation {
    max-height: calc(100svh - 78px);
    padding: 10px 22px 22px;
    overflow-y: auto;
    gap: 16px;
    border-top: 1px solid rgb(15 45 82 / 12%);
    border-bottom: 1px solid rgb(15 45 82 / 12%);
    background: var(--off-white);
    box-shadow: none;
  }

  .home-page .nav-links a {
    min-height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--navy);
    font-size: 15px;
  }

  .home-page .button--nav {
    min-height: 46px;
    align-self: stretch;
  }

  .home-page .hero--risk-control,
  .home-page .hero-risk-frame,
  .home-page .hero-risk-inner {
    min-height: 86svh;
  }

  .home-page .hero-risk-image {
    object-position: 64% center;
  }

  .home-page .hero-risk-scrim {
    background: linear-gradient(90deg, rgb(7 26 47 / 83%) 0%, rgb(7 26 47 / 58%) 42%, rgb(7 26 47 / 12%) 72%, transparent 100%);
  }

  .home-page .hero-risk-inner {
    padding: 90px 22px clamp(48px, 8svh, 70px);
    align-items: flex-end;
  }

  .home-page .hero--risk-control .hero-copy {
    width: min(100%, 390px);
  }

  .home-page .hero--risk-control h1 {
    font-size: clamp(48px, 13.3vw, 66px);
    line-height: 0.88;
  }

  .home-page .hero--risk-control .hero-title-line {
    white-space: nowrap;
  }

  .home-page .hero--risk-control .hero-brandline {
    margin-top: 18px;
    font-size: 11px;
    line-height: 1.35;
  }

  .home-page .hero--risk-control .hero-description {
    max-width: 355px;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.5;
  }

  .home-page .hero--risk-control .hero-actions {
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .home-page .hero--risk-control .hero-actions .button {
    min-height: 46px;
    padding-inline: 18px;
  }

  .home-page .hero--risk-control .hero-secondary-link {
    margin-top: 0;
  }

  .home-page .process-section,
  .home-page .situation-finder,
  .home-page .home-about,
  .home-page .field-notes,
  .home-page .worked-alongside {
    padding-block: 72px;
  }

  .home-page .process-section {
    padding-block: 64px;
    background-image: none;
  }

  .home-page .situation-finder {
    padding-block: 64px;
  }

  .home-page .process-section-inner,
  .home-page .situation-finder-inner,
  .home-page .home-about-inner,
  .home-page .capability-strip-inner,
  .home-page .field-notes-inner,
  .home-page .worked-alongside-inner,
  .home-page .contact-teaser-inner,
  .home-page .site-footer-main {
    width: calc(100% - 44px);
  }

  .home-page .process-section-heading {
    margin: 0 0 24px;
  }

  .home-page .process-section-heading h2,
  .home-page .situation-finder-heading h2,
  .home-page .field-notes-heading h2,
  .home-page .worked-alongside-heading h2 {
    font-size: clamp(40px, 10.8vw, 48px);
    line-height: 0.98;
  }

  .home-page .process-section-heading > p:last-child,
  .home-page .situation-finder-heading > p:last-child {
    max-width: 34rem;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .home-page .worked-alongside-heading > p:last-child {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.55;
  }

  .home-page .process-experience {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .home-page .process-wheel-wrap {
    display: none;
  }

  .home-page .process-mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgb(15 45 82 / 20%);
    border-bottom: 1px solid rgb(15 45 82 / 20%);
  }

  .home-page .process-mobile-step {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 74px;
    padding: 10px 5px 11px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: var(--navy);
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .home-page .process-mobile-step::after {
    position: absolute;
    right: 5px;
    bottom: -1px;
    left: 5px;
    height: 2px;
    background: transparent;
    content: "";
  }

  .home-page .process-mobile-number {
    color: #798595;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
  }

  .home-page .process-mobile-label {
    color: var(--navy);
    font-size: clamp(10px, 2.85vw, 12px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
  }

  .home-page .process-mobile-step.is-active {
    color: var(--navy);
    background: transparent;
  }

  .home-page .process-mobile-step.is-active::after {
    background: var(--red);
  }

  .home-page .process-mobile-step.is-active .process-mobile-number {
    color: var(--red);
  }

  .home-page .process-mobile-step:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -2px;
  }

  .home-page .process-detail {
    min-height: 0;
    height: auto;
    padding: 24px;
  }

  .home-page .process-detail::before {
    width: 46px;
  }

  .home-page .process-detail-kicker {
    margin-bottom: 16px;
  }

  .home-page .process-detail h3 {
    font-size: clamp(30px, 8.5vw, 34px);
    line-height: 1;
  }

  .home-page .process-detail-copy {
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .home-page .situation-finder-heading {
    margin: 0 0 24px;
    padding-top: 16px;
  }

  .home-page .situation-finder-layout {
    display: block;
  }

  .home-page .situation-options {
    height: auto;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgb(15 45 82 / 20%);
    border-bottom: 1px solid rgb(15 45 82 / 20%);
  }

  .home-page .situation-options::-webkit-scrollbar {
    display: none;
  }

  .home-page .situation-option {
    min-width: max-content;
    display: block;
    flex: 0 0 auto;
    border-top: 0;
    border-bottom: 0;
    scroll-snap-align: start;
  }

  .home-page .situation-option-button {
    position: relative;
    width: auto;
    min-width: 106px;
    min-height: 66px;
    height: 100%;
    padding: 10px 14px 11px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 0;
    background: transparent;
    text-align: left;
  }

  .home-page .situation-option-button:hover,
  .home-page .situation-option-button:focus-visible,
  .home-page .situation-option-button.is-active {
    padding-left: 14px;
    background: transparent;
  }

  .home-page .situation-option-button::after {
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 2px;
    background: transparent;
    content: "";
  }

  .home-page .situation-option-button.is-active {
    color: var(--navy);
    border-left-color: transparent;
    outline: none;
  }

  .home-page .situation-option-button.is-active::after {
    background: var(--red);
  }

  .home-page .situation-option-number {
    font-size: 10px;
    line-height: 1;
  }

  .home-page .situation-option-label {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }

  .home-page .situation-option-button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -2px;
  }

  .home-page .recommendation-panel {
    min-height: 0;
    height: auto;
    margin: 24px 0 0;
    padding: 24px;
  }

  .home-page .recommendation-kicker {
    margin-bottom: 16px;
  }

  .home-page .recommendation-panel h3 {
    margin-bottom: 0;
    font-size: clamp(30px, 8.5vw, 36px);
    line-height: 1;
  }

  .home-page .recommendation-copy {
    margin: 14px 0 20px;
    font-size: 16px;
    line-height: 1.55;
  }

  .home-page .recommendation-services {
    padding-top: 16px;
  }

  .home-page .recommendation-services li {
    padding-block: 7px;
    font-size: 13px;
  }

  .home-page .recommendation-cta {
    min-height: 44px;
    margin-top: 16px;
  }

  .home-page .home-about-inner {
    padding-left: 0;
    border-left: 0;
  }

  .home-page .home-about-content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .home-page .home-about-content h2 {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 52px);
    line-height: 0.98;
  }

  .home-page .home-about-content > div {
    width: 100%;
    margin-top: 28px;
    padding-top: 0;
  }

  .home-page .home-about-content > div p {
    font-size: 18px;
    line-height: 1.55;
  }

  .home-page .home-about-content > div .home-about-area {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.5;
  }

  .home-page .capability-strip {
    padding-block: 0;
  }

  .home-page .capability-strip-inner {
    padding-block: 12px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-page .capability-item,
  .home-page .capability-item:first-of-type {
    min-height: 64px;
    padding: 0;
    gap: 12px;
    border-top: 0;
    border-bottom: 1px solid rgb(15 45 82 / 15%);
    border-left: 0;
  }

  .home-page .capability-item:last-child {
    border-bottom: 0;
  }

  .home-page .capability-index {
    min-width: 24px;
    font-size: 10px;
  }

  .home-page .capability-item h3 {
    font-size: 16px;
    line-height: 1.35;
  }

  .home-page .field-notes-heading {
    margin-bottom: 28px;
  }

  .home-page .field-gallery {
    margin-right: -22px;
    padding-right: 22px;
    padding-bottom: 12px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .home-page .field-image,
  .home-page .field-image--worker,
  .home-page .field-image--exterior,
  .home-page .field-image--structure,
  .home-page .field-image--exterior-context {
    width: min(78vw, 340px);
    aspect-ratio: 2 / 3;
    flex: 0 0 min(78vw, 340px);
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: start;
  }

  .home-page .field-image::after {
    display: none;
  }

  .home-page .field-image figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: fit-content;
    padding: 7px 9px;
    background: rgb(7 26 47 / 78%);
    font-size: 9px;
  }

  .home-page .worked-alongside-inner {
    gap: 28px;
  }

  .home-page .worked-alongside-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-page .worked-alongside-heading .section-eyebrow {
    margin-bottom: 14px;
  }

  .home-page .partner-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .home-page .partner-list li,
  .home-page .partner-list li:last-child {
    min-height: 60px;
    padding: 10px 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid rgb(15 45 82 / 16%);
    font-size: 14px;
  }

  .home-page .partner-list li:last-child {
    grid-column: 1 / -1;
  }

  .home-page .contact-teaser {
    padding-block: 64px;
  }

  .home-page .contact-teaser-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .home-page .contact-teaser h2 {
    font-size: clamp(40px, 11vw, 48px);
    line-height: 0.98;
  }

  .home-page .contact-teaser-copy > p:last-child {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.55;
  }

  .home-page .contact-teaser-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .home-page .contact-teaser-actions .button {
    min-height: 46px;
    padding-inline: 18px;
    font-size: 10px;
  }

  .home-page .site-footer-main {
    padding-block: 56px 38px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-page .footer-brand {
    width: 150px;
  }

  .home-page .footer-column {
    gap: 0;
  }

  .home-page .footer-column h2 {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .home-page .footer-column a {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 14px;
  }

  .home-page .footer-location {
    justify-self: start;
    font-size: 14px;
    text-align: left;
  }

  .home-page .site-footer-bottom {
    min-height: 0;
    padding: 24px 22px 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .home-page .site-footer-bottom p,
  .home-page .site-footer-bottom a {
    font-size: 11px;
    line-height: 1.5;
  }
}

@media (max-width: 400px) {
  .home-page .header-inner,
  .home-page .process-section-inner,
  .home-page .situation-finder-inner,
  .home-page .home-about-inner,
  .home-page .capability-strip-inner,
  .home-page .field-notes-inner,
  .home-page .worked-alongside-inner,
  .home-page .contact-teaser-inner,
  .home-page .site-footer-main {
    width: calc(100% - 40px);
  }

  .home-page .hero-risk-inner {
    padding-inline: 20px;
  }

  .home-page .hero--risk-control h1 {
    font-size: clamp(46px, 12.8vw, 52px);
  }

  .home-page .field-gallery {
    margin-right: -20px;
    padding-right: 20px;
  }
}

@media (max-width: 360px) {
  .home-page .hero--risk-control .hero-actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .home-page .hero--risk-control h1 {
    font-size: 46px;
  }

  .home-page .partner-list {
    grid-template-columns: 1fr;
  }

  .home-page .partner-list li:last-child {
    grid-column: auto;
  }
}
