/* Institutional opening and service overview. */
.page-home {
  --ink: #111111;
  --muted: #333333;
  --blue: #164dab;
}
.page-home .home-intro { background: #f4e8d8; padding-block: clamp(44px, 5.5vw, 78px); }
.home-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(28px, 4.3vw, 62px); align-items: center; }
.home-intro-copy .eyebrow { color: #112d49; }
.home-intro-copy h1 { font-size: clamp(42px, 4.6vw, 68px); max-width: 650px; }
.home-intro-copy p { color: #222222; max-width: 52ch; }
.home-intro-copy .lead { font-size: clamp(18px, 1.6vw, 22px); }
.home-intro-copy .btn { margin-top: 6px; }
.home-intro-image { background: #dfcbb4; }
.home-intro-image img { width: 100%; height: auto; aspect-ratio: 1.33; object-fit: cover; object-position: 91% center; }

.home-needs { background: #ffffff; }
.home-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2.1vw, 28px); }
.home-service { display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 34px); border: 1px solid transparent; }
.home-service-icon { display: block; width: 36px; height: 36px; color: #112d49; margin-bottom: 22px; }
.home-service h3 { font-size: clamp(25px, 2.4vw, 33px); line-height: 1.13; margin-bottom: 12px; }
.home-service p { max-width: 55ch; color: #333333; }
.home-service .home-service-detail { color: #112d49; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.home-service-actions { margin-top: auto; padding-top: 8px; border-top: 1px solid; }
.home-service-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 0; background: none; border: 0; color: #112d49; font-size: 15px; font-weight: 500; text-align: left; }
.home-service-link:hover { color: #164dab; text-decoration: underline; text-underline-offset: .2em; }
.home-service-link span { flex: none; }

.home-proof { background: #faf7f2; }
.home-milestones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 34px; padding: 0; margin: 0; list-style: none; }
.home-milestones li { grid-column: span 2; border-top: 1px solid #c8bba9; padding-top: 22px; margin: 0; min-width: 0; }
.home-milestones .home-milestone-wide { grid-column: span 3; }
.milestone-year { display: block; font-size: 13px; font-weight: 500; color: #112d49; margin-bottom: 18px; letter-spacing: .06em; }
.home-milestones h3 { font-size: 23px; line-height: 1.2; margin-bottom: 12px; }
.home-milestones p { font-size: 16px; color: #333333; margin: 0; max-width: 49ch; }
.home-commercial-thread { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 30px; padding: clamp(22px, 3vw, 36px); margin-top: 36px; border-left: 3px solid #3a6487; background: #eaf0f5; }
.home-commercial-thread .eyebrow { margin-bottom: 10px; color: #112d49; }
.home-commercial-thread h3 { font-size: clamp(23px, 2.35vw, 32px); line-height: 1.16; margin: 0; max-width: 26ch; }
.home-commercial-thread p { margin: 0; color: #222222; max-width: 61ch; }
/* Continuous client strip; static horizontal list without JavaScript. */
.home-clients { padding-block: 44px; background: #1B1D21; color: #e8e1ce; }
.clients-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.home-clients h2 { color: #e8e1ce; margin: 0; font-size: clamp(28px, 3vw, 38px); }
.client-carousel-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #65666a; border-radius: 50%; background: transparent; color: #e8e1ce; cursor: pointer; }
.client-carousel-toggle[hidden] { display: none; }
.client-carousel-toggle svg { width: 20px; height: 20px; }
.client-carousel-toggle .client-play-icon,
.client-carousel-toggle[aria-pressed="true"] .client-pause-icon { display: none; }
.client-carousel-toggle[aria-pressed="true"] .client-play-icon { display: block; }
.client-carousel-toggle:hover { background: #fff; color: #1B1D21; }
.client-carousel-viewport { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #717379 #1B1D21; scrollbar-width: thin; }
.client-carousel-track { display: flex; width: max-content; }
.client-logo-grid { display: flex; flex: none; align-items: center; gap: 64px; list-style: none; padding: 0 64px 0 0; margin: 0; }
.client-logo-grid[aria-hidden="true"] { display: none; }
.home-clients[data-carousel-ready] .client-logo-grid[aria-hidden="true"] { display: flex; }
.client-logo-grid li { flex: 0 0 171px; width: 171px; height: 146px; padding: 10px 0; margin: 0; display: flex; justify-content: center; align-items: center; }
.client-logo-wrap { display: block; position: relative; width: 171px; max-width: 100%; height: 79.2px; }
.client-logo-grid img { position: absolute; left: 50%; top: 50%; width: auto; height: auto; max-width: 100%; max-height: 100%; transform: translate(-50%, -50%); filter: grayscale(1) contrast(.5) brightness(1.5); opacity: .82; transition: filter .25s ease, opacity .25s ease; }
.client-logo-item--stacked .client-logo-wrap { height: 104.4px; }
.client-logo-item--compact .client-logo-wrap { height: 126px; }
.home-clients[data-carousel-ready] .client-carousel-viewport { overflow: hidden; }
.home-clients[data-carousel-ready] .client-carousel-track { animation: clients-left-to-right-v2 var(--clients-duration, 211.5s) linear infinite normal; will-change: transform; }
.home-clients[data-carousel-paused] .client-carousel-track,
.client-carousel-viewport:focus-within .client-carousel-track { animation-play-state: paused; }
.home-clients[data-carousel-manual] .client-carousel-track { animation: none; transform: none; }
.home-clients[data-carousel-manual] .client-logo-grid[aria-hidden="true"] { display: none; }
.home-clients[data-carousel-manual] .client-carousel-viewport { overflow-x: auto; }
/* Increasing physical X coordinates: logos enter from the left and exit right. */
@keyframes clients-left-to-right-v2 { from { transform: translate3d(var(--clients-start, -50%), 0, 0); } to { transform: translate3d(0, 0, 0); } }
@media (hover: hover) and (pointer: fine) {
  .client-carousel-viewport:hover .client-carousel-track { animation-play-state: paused; }
  .client-logo-grid li:hover .client-logo { filter: brightness(1.35); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .home-clients[data-carousel-ready] .client-carousel-track { animation: none; transform: none; will-change: auto; }
  .home-clients[data-carousel-ready] .client-carousel-viewport { overflow-x: auto; }
  .home-clients[data-carousel-ready] .client-logo-grid[aria-hidden="true"], .client-carousel-toggle { display: none; }
  .client-logo-grid img { transition: none; }
}

/* Desktop clients share the pinned photograph; the mobile section stays intact. */
@media (min-width: 1051px) {
  .page-home .editorial-hero--home { grid-template-columns: minmax(0, 1fr); }
  .page-home .site-header.home-nav-with-scene {
    transform: translateY(var(--home-nav-offset, 0px));
    transition: none;
  }
  .page-home .editorial-hero--home .editorial-hero-inner {
    min-width: 0;
    /* Release once the complete logo strip has entered, with space beneath it. */
    padding-bottom: clamp(80px, 12svh, 144px);
  }
  .page-home .editorial-hero--home .home-clients {
    position: relative;
    width: 100%;
    margin-top: clamp(42px, 6svh, 72px);
    padding-block: 0;
    background: transparent;
    border: 0;
    pointer-events: auto;
    --home-clients-occlusion: -200px;
    -webkit-mask-image: linear-gradient(to bottom, transparent var(--home-clients-occlusion), #000 calc(var(--home-clients-occlusion) + 44px));
    mask-image: linear-gradient(to bottom, transparent var(--home-clients-occlusion), #000 calc(var(--home-clients-occlusion) + 44px));
  }
  .page-home .editorial-hero--home .clients-heading {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .page-home .editorial-hero--home .home-clients,
  .page-home .editorial-hero--home .home-clients h2,
  .page-home .editorial-hero--home .client-carousel-toggle:not(:hover) {
    color: #ffffff;
  }
}
@media (min-width: 1051px) and (prefers-reduced-motion: reduce) {
  .page-home .editorial-hero--home .editorial-hero-inner {
    padding-bottom: clamp(60px, 9svh, 120px);
  }
  .page-home .editorial-hero--home .home-monitor-scene {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

.home-projects { background: #ffffff; }
.home-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 32px; }
.home-project { min-width: 0; }
.project-media { display: block; overflow: hidden; border: 1px solid #d9d9d6; background: #f7f5f0; border-radius: 4px; }
.project-media img { width: 100%; height: auto; aspect-ratio: 2.1; object-fit: cover; object-position: center top; }
.project-copy { padding: 22px 4px 0; }
.project-category { display: block; color: #444444; font-size: 11px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.project-copy h3 { font-size: 27px; line-height: 1.2; margin-bottom: 12px; }
.project-copy p { font-size: 16px; color: #333333; margin-bottom: 9px; max-width: 63ch; }
.project-copy .text-link { font-size: 14px; color: #112d49; }
.page-home .cta-section h2 { max-width: 650px; }
.page-home .cta-section .btn-white { background: #f4e8d8; color: #112d49; border-color: #f4e8d8; }
.page-home .cta-section .btn-white:hover { background: #ffffff; border-color: #ffffff; }
.page-home .home-language-note { color: #e3ebf1; font-size: 14px; margin: 20px 0 0; }
.page-home .cta-section .eyebrow { color: #e3ebf1; }
.page-home .cta-section :focus-visible { outline-color: #ffffff; }

@media (min-width: 1050px) {
  .home-service h3 { min-height: 2.26em; }
}
@media (max-width: 900px) {
  .home-intro-image img { aspect-ratio: 1.05; }
  .home-milestones { gap: 25px; }
  .home-milestones h3 { font-size: 21px; }
}
@media (max-width: 800px) {
  .home-intro-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-intro-copy h1 { font-size: clamp(38px, 7.1vw, 54px); }
  .home-intro-image img { aspect-ratio: 1.65; }
  .home-services { grid-template-columns: minmax(0, 1fr); }
  .home-service h3 { font-size: 28px; }
  .home-service-icon { margin-bottom: 16px; }
  .home-service-link { width: fit-content; max-width: 100%; }
  .home-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-milestones li, .home-milestones .home-milestone-wide { grid-column: auto; }
  .home-milestones li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .home-intro-copy h1 { margin-bottom: 18px; }
  .home-milestones { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .home-milestones li { padding-top: 20px; }
  .milestone-year { margin-bottom: 12px; }
  .home-milestones h3 { font-size: 23px; }
  .home-milestones p { max-width: none; }
  .home-commercial-thread { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  .home-clients { padding-block: 34px; }
  .clients-heading { margin-bottom: 18px; gap: 12px; }
  .client-logo-grid { gap: 36px; padding-right: 36px; }
  .client-logo-grid li { flex-basis: 157.5px; width: 157.5px; height: 116px; }
  .client-logo-wrap { width: 157.5px; height: 66.6px; }
  .client-logo-item--stacked .client-logo-wrap { height: 86.4px; }
  .client-logo-item--compact .client-logo-wrap { height: 95.4px; }
  .home-project-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .project-copy { padding-top: 19px; }
  .project-copy h3 { font-size: 26px; }
}
