/* Homepage composition based on the supplied visual reference. */
.home-page { background: var(--site-bg); }
.home-main { padding-top: 0; }
.home-main section[id] { scroll-margin-top: 86px; }
.home-main .container { max-width: 1320px; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.home-section { padding: clamp(2.75rem, 4.5vw, 4.5rem) 0; }
.home-main :is(h1, h2, h3) { font-family: "Roboto", sans-serif; font-weight: 700; letter-spacing: -.035em; text-transform: none; }
.home-main h2 { margin: 0; color: var(--site-ink); font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.2; text-wrap: balance; }
.home-eyebrow { margin: 0 0 .8rem; color: var(--site-accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.home-icon { display: inline-block; flex: 0 0 auto; width: 32px; height: 32px; vertical-align: middle; }
.home-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; min-height: 46px; padding: .8rem 1.5rem; border: 1px solid transparent; border-radius: 999px; font-size: .875rem; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.home-button-primary { color: #fff; background: var(--site-accent); }
.home-button-primary:hover { color: #fff; background: #0054b9; }
.home-button-outline { color: #fff; background: rgba(5, 20, 33, .2); border-color: rgba(255, 255, 255, .65); }
.home-button-outline:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: #fff; }
.home-button > span { font-size: 1.2rem; line-height: 1; }
.home-main :is(a, button):focus-visible { outline: 3px solid var(--site-accent); outline-offset: 4px; }
.home-hero :is(a, button):focus-visible,
.home-projects a:focus-visible { outline-color: var(--site-highlight); }
.home-inline-link { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; color: var(--site-accent); font-size: .85rem; font-weight: 700; line-height: 1.5; text-decoration: none; }
.home-inline-link:hover { color: #0054b9; text-decoration: underline; text-underline-offset: .25em; }
.home-inline-link > span[aria-hidden] { font-size: 1.2rem; }

/* A single real photograph, with stronger shading behind the two text columns. */
.home-hero { position: relative; isolation: isolate; padding: 160px 0 0; background: var(--site-ink); color: #fff; }
.home-hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; }
.home-hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4, 18, 30, .92) 0%, rgba(4, 18, 30, .76) 40%, rgba(4, 18, 30, .35) 65%, rgba(4, 18, 30, .86) 100%); }
.home-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 225px; align-items: center; column-gap: clamp(3rem, 10vw, 9rem); }
.home-hero-copy { max-width: 690px; padding: 1.5rem 0 3.5rem; }
.home-hero .home-eyebrow { color: #69baff; }
.home-hero h1 { margin: 0; color: #fff; font-size: clamp(2.15rem, 3.55vw, 3.25rem); line-height: 1.12; }
.home-hero-intro { max-width: 530px; margin: 1.4rem 0 1.9rem; color: #e1e8ee; font-size: 1rem; line-height: 1.7; }
.home-hero-benefits { display: grid; gap: 1.7rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.home-hero-benefits li { display: flex; align-items: center; gap: 1rem; font-size: .8rem; font-weight: 500; line-height: 1.5; }
.home-hero-benefits .home-icon { color: #d5e4f0; width: 28px; height: 28px; }
.home-hero-caption { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 1.25rem; border-top: 1px solid rgba(255, 255, 255, .18); color: #d5e4f0; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

.home-about { padding: 0; background: linear-gradient(110deg, #edf3f9, #f8fafc); }
.home-about-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.home-about-copy { padding: 3rem 0; }
.home-about-copy > p:not(.home-eyebrow) { max-width: 440px; margin: 1.15rem 0 1.5rem; color: var(--site-muted); font-size: .95rem; line-height: 1.7; }
.home-about-visual { position: relative; align-self: stretch; min-height: 360px; padding: 170px 0 2rem; display: flex; align-items: end; }
.home-about-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.home-about-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, #edf3f9 0%, rgba(237, 243, 249, 0) 60%); }
.home-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: calc(100% + 1.5rem); margin: 0 0 0 -1.5rem; padding: 1.75rem 1rem; border: 1px solid #fff; border-radius: 10px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 35px rgba(9, 34, 52, .05); }
.home-stats > div { display: flex; flex-direction: column; padding: 0 .7rem; border-right: 1px solid var(--site-border); }
.home-stats > div:last-child { border: 0; }
.home-stats dd { display: flex; flex-direction: column; align-items: start; gap: .8rem; order: -1; margin: 0 0 .2rem; }
.home-stats dd .home-icon { color: var(--site-accent); }
.home-stats dd strong { color: var(--site-ink); font-size: clamp(1.2rem, 1.8vw, 1.65rem); line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; }
.home-stats dd .home-stats-word { font-size: 1rem; min-height: 1.98rem; display: flex; align-items: end; letter-spacing: 0; }
.home-stats dt { color: var(--site-muted); font-size: .7rem; font-weight: 400; line-height: 1.5; }

.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.6rem; }
.home-section-heading h2 { max-width: 760px; }
.home-section-heading > a { flex-shrink: 0; }
.home-page .home-category-section { background: var(--site-bg); }
.home-page .home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.home-page .home-category-card { border: 0; border-radius: 9px; background: var(--site-ink); }
.home-page .home-category-media { aspect-ratio: 1.5; background: #fff; }
.home-page .home-category-copy { min-height: 82px; padding: 1rem; color: #fff; }
.home-page .home-category-copy strong { font-size: .95rem; font-weight: 600; }
.home-page .home-category-copy small { color: #b8cbdc; font-size: .75rem; }
.home-page .home-category-copy > span { color: #e0ebf4; }
.home-page .home-category-extra { display: block; }
.home-page .home-category-grid.is-collapsible:not(.is-expanded) .home-category-extra { display: none; }
.home-category-controls { display: flex; justify-content: center; margin-top: 1.25rem; }
.home-category-toggle { padding: .25rem .75rem; border: 0; background: transparent; cursor: pointer; }
.home-category-toggle[hidden] { display: none; }

.home-projects { background: var(--site-ink); }
.home-projects h2 { color: #fff; }
.home-projects :is(.home-eyebrow, .home-inline-link) { color: #69baff; }
.home-projects .home-inline-link:hover { color: #fff; }
.home-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.home-project-grid-fallback { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-project-card { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: 8px; background: var(--site-ink-soft); color: #fff; }
.home-project-card img { display: block; width: 100%; aspect-ratio: 1.8; object-fit: cover; transition: transform .3s ease; }
.home-project-card > span { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(4, 18, 30, .95)); font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.home-project-card > span > span { flex-shrink: 0; font-size: 1.2rem; }
.home-project-card:hover { color: #fff; }
.home-project-card:hover img { transform: scale(1.035); }

.home-services { background: #edf3f9; }
.home-services-layout { display: grid; grid-template-columns: minmax(170px, .85fr) minmax(0, 2.7fr); gap: 2.5rem; }
.home-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.home-service { text-align: center; }
.home-service .home-icon { width: 36px; height: 36px; margin-bottom: 1rem; color: var(--site-accent); }
.home-service h3 { margin: 0 0 .5rem; color: var(--site-ink); font-size: .9rem; letter-spacing: -.015em; line-height: 1.4; }
.home-service p { margin: 0; color: var(--site-muted); font-size: .8rem; line-height: 1.6; }
.home-partners { padding: 2rem 0; background: #fff; }
.home-partners-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 2rem; }
.home-partners h2 { font-size: 1.2rem; }
.home-partner-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.home-partner-grid li { display: grid; min-width: 0; place-items: center; }
.home-partner-grid img { display: block; width: 100%; max-width: 120px; height: 54px; object-fit: contain; }

@media (max-width: 1199.98px) {
    .home-hero-layout { column-gap: 2.5rem; grid-template-columns: minmax(0, 1fr) 200px; }
    .home-about-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 2rem; }
    .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0; width: 100%; margin: 0; padding: 1.5rem 1rem; }
    .home-stats > div:nth-child(2) { border: 0; }
    .home-stats dd { gap: .5rem; }
    .home-section-heading { align-items: start; flex-direction: column; gap: .5rem; }
    .home-services-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 991.98px) {
    .home-hero { padding-top: 110px; }
    .home-hero-layout { grid-template-columns: 1fr; }
    .home-hero-copy { max-width: 620px; padding-bottom: 2.5rem; }
    .home-hero-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
    .home-hero-benefits li { align-items: start; flex-direction: column; gap: .65rem; }
    .home-hero::after { background: linear-gradient(90deg, rgba(4, 18, 30, .92), rgba(4, 18, 30, .65)); }
    .home-about-layout { grid-template-columns: 1fr; gap: 0; }
    .home-about-copy { max-width: 650px; padding-bottom: 2rem; }
    .home-about-copy > p:not(.home-eyebrow) { max-width: none; }
    .home-about-visual { min-height: 320px; padding-top: 160px; }
    .home-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-stats > div:nth-child(2) { border-right: 1px solid var(--site-border); }
    .home-page .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-project-card img { aspect-ratio: 1.3; }
    .home-service-grid { gap: 1.5rem; }
    .home-partners-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .home-partners h2 { text-align: center; }
}

@media (max-width: 575.98px) {
    .home-hero { padding-top: 100px; }
    .home-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
    .home-hero-image { object-position: 40% center; }
    .home-hero-intro { font-size: .95rem; }
    .home-actions { gap: .75rem; }
    .home-actions .home-button { width: 100%; }
    .home-hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
    .home-hero-benefits li { flex-direction: row; align-items: center; font-size: .75rem; }
    .home-hero-benefits .home-icon { width: 24px; height: 24px; }
    .home-about-copy { padding-top: 2.5rem; }
    .home-about-visual { min-height: 390px; }
    .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.5rem .6rem; }
    .home-stats > div:nth-child(2) { border: 0; }
    .home-stats dd strong { font-size: 1.5rem; }
    .home-stats dd .home-stats-word { font-size: 1rem; min-height: 1.8rem; }
    .home-stats dt { font-size: .75rem; }
    .home-page .home-category-grid { grid-template-columns: 1fr; }
    .home-page .home-category-media { aspect-ratio: 1.75; }
    .home-project-grid { grid-template-columns: 1fr; }
    .home-project-card img { aspect-ratio: 1.8; }
    .home-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
    .home-service { text-align: left; }
    .home-partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page :is(.home-button, .home-category-card, .home-category-media img, .home-project-card img) { transition: none; }
    .home-page .home-category-card:hover,
    .home-page .home-category-card:hover img,
    .home-page .home-project-card:hover img { transform: none; }
}
