/**
 * Homepage layout — scoped to .page-home
 */

.page-home {
    --home-rule: #e6e1da;
    --home-copy: #3f3a36;
    --home-muted: #6b645c;
    --home-pad-x: clamp(1.25rem, 4vw, 2rem);
    --home-space: clamp(4rem, 8vw, 6.5rem);
    --home-space-tight: clamp(2.25rem, 5vw, 3.5rem);
    --home-split-gap: clamp(3.25rem, 6.6vw, 5.35rem);
    --home-partner-bg: #eef2f0;
    --home-end-bg: #20383b;
    --home-end-text: #f4f7f6;
    --home-end-muted: rgba(244, 247, 246, 0.72);
    background: #fff;
}

.page-home main .container {
    max-width: var(--container-max);
    padding-left: var(--home-pad-x);
    padding-right: var(--home-pad-x);
}

.page-home section {
    padding: var(--home-space) 0;
    background: #fff;
}

.page-home .fullscreen-hero {
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: var(--header-height);
    padding-bottom: clamp(3rem, 8vw, 5rem);
    background: #101214;
    overflow: hidden;
}

/* Cover the frame without tiling. A global 180deg overlay used to draw a
   horizontal band across the photo; keep one even wash instead. */
body.page-home .fullscreen-hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    animation: none;
    transform: none;
}

body.page-home .fullscreen-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(16, 18, 20, 0.42);
    background-image: none;
}

.page-home .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    padding: clamp(2rem, 6vw, 4rem) 0 0;
}

.page-home .hero-text {
    width: 100%;
    max-width: 40rem;
    margin: 0;
    text-align: left;
}

.page-home .hero-title {
    margin: 0 0 1.15rem;
    max-width: none;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.15rem, 4.6vw, 3.75rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #f7f4ef;
}

.page-home .hero-lead {
    max-width: 36rem;
    margin: 0 0 1.75rem;
    font-family: var(--font-body);
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.65;
    color: rgba(247, 244, 239, 0.9);
}

.page-home .hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.35rem;
    border: 1px solid #f7f4ef;
    color: #f7f4ef;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.page-home .hero-cta:hover {
    background: #f7f4ef;
    color: #1c1917;
}

.page-home .hero-title.hero-reveal,
.page-home .hero-lead.hero-reveal,
.page-home .hero-cta.hero-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: homeHeroIn 0.8s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
    animation-delay: calc(var(--reveal-i, 0) * 110ms + 160ms);
}

@keyframes homeHeroIn {
    to {
        opacity: 1;
        transform: none;
    }
}

.page-home .home-intro {
    padding-top: var(--home-space);
    padding-bottom: var(--home-space);
}

.page-home .home-intro__top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: end;
}

.page-home .home-intro h2,
.page-home .home-solutions h2,
.page-home .home-partner > .container > h2,
.page-home .home-proof h2,
.page-home .home-news__head h2,
.page-home .home-contact h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--color-ink);
}

.page-home .home-intro h2 {
    font-style: italic;
}

.page-home .home-partner > .container > h2,
.page-home .home-proof h2,
.page-home .home-news__head h2,
.page-home .home-contact h2 {
    font-style: normal;
}

.page-home .home-intro h2 {
    font-size: clamp(2.15rem, 4.2vw, 3.5rem);
}

.page-home .home-intro__copy p {
    margin: 0 0 1rem;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--home-copy);
}

.page-home .home-intro__copy a,
.page-home .home-split__copy > a,
.page-home .home-partner__copy > a,
.page-home .home-proof ul a,
.page-home .home-news__head a {
    color: var(--color-ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.page-home .home-intro__figure,
.page-home .home-split__media,
.page-home .home-partner__media {
    margin: 0;
    overflow: hidden;
    background: #1c1917;
}

.page-home .home-intro__figure {
    margin-top: clamp(2rem, 4vw, 3.25rem);
    aspect-ratio: 1672 / 941;
}

.page-home .home-intro__figure img,
.page-home .home-split__media img,
.page-home .home-partner__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-home .home-solutions {
    padding-top: 0;
    padding-bottom: var(--home-space);
}

.page-home .home-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.75rem, 4vw, 4rem);
    align-items: center;
    padding: var(--home-split-gap) 0 0;
    border-top: 1px solid var(--home-rule);
}

.page-home .home-split:first-child {
    border-top: 0;
    padding-top: 0;
}

.page-home .home-split--flip .home-split__media {
    order: -1;
}

.page-home .home-split__media,
.page-home .home-partner__media {
    aspect-ratio: 1672 / 941;
}

.page-home .home-split__copy h2,
.page-home .home-partner__copy h3 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.7rem, 2.6vw, 2.35rem);
    font-style: normal;
    font-weight: 400;
    line-height: 1.15;
}

.page-home .home-split__copy p,
.page-home .home-partner__copy > p,
.page-home .home-proof__copy > p,
.page-home .home-contact > .container > p {
    margin: 0 0 1.15rem;
    max-width: 38rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--home-copy);
}

.page-home .home-more {
    margin: 0 0 1.25rem;
    max-width: 38rem;
}

.page-home .home-more summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.95rem;
    color: var(--color-ink);
}

.page-home .home-more summary::-webkit-details-marker {
    display: none;
}

.page-home .home-more summary::after {
    content: " +";
}

.page-home .home-more[open] summary::after {
    content: " −";
}

.page-home .home-more ul {
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
}

.page-home .home-more li {
    padding: 0.55rem 0;
    border-top: 1px solid var(--home-rule);
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--home-copy);
}

.page-home .home-partner {
    background: var(--home-partner-bg);
    border-top: none;
}

.page-home .home-partner > .container > h2 {
    max-width: 12ch;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.page-home .home-partner .showcase-container,
.page-home .home-partner .showcase-content,
.page-home .home-partner .tab-content,
.page-home .home-partner__copy {
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.page-home .home-partner .showcase-tabs,
.page-home .home-partner .showcase-tabs.showcase-tabs--pill {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 1.75rem;
    width: 100%;
    margin: 0 0 1.75rem;
    padding: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(32, 56, 59, 0.16);
    border-radius: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.page-home .home-partner .showcase-tabs::-webkit-scrollbar {
    display: none;
}

.page-home .home-partner .tab-pill-indicator {
    display: none;
}

.page-home .home-partner .tab-btn {
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0;
    padding: 0.7rem 0;
    border: 0;
    border-right: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--home-muted);
    white-space: nowrap;
}

.page-home .home-partner .tab-btn:hover,
.page-home .home-partner .tab-btn.active {
    background: none;
    color: var(--color-ink);
    box-shadow: inset 0 -1px 0 #1a1a1a;
}

.page-home .home-partner .tab-btn.active::after,
.page-home .home-partner .tab-btn::after {
    display: none;
    content: none;
}

.page-home .home-partner .showcase-content {
    display: grid;
    padding: 0;
}

.page-home .home-partner .tab-content {
    display: grid;
    grid-area: 1 / 1;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(48px, 4vw, 64px);
    align-items: start;
    width: 100%;
    min-width: 0;
    padding: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.page-home .home-partner .tab-content.active {
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.page-home .home-partner__media,
.page-home .home-partner__copy {
    min-width: 0;
    max-width: 100%;
}

.page-home .home-partner__copy ul {
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
    max-width: 100%;
}

.page-home .home-partner__copy li {
    margin: 0;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(32, 56, 59, 0.16);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--home-copy);
}

.page-home .home-proof {
    border-top: 1px solid var(--home-rule);
}

.page-home .home-proof__layout {
    display: grid;
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.page-home .home-proof__number {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(4.5rem, 9vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.page-home .home-proof__caption {
    margin: 0.75rem 0 0;
    max-width: 12rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--home-muted);
}

.page-home .home-proof h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.page-home .home-proof ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-home .home-proof li {
    margin: 0;
    border-top: 1px solid var(--home-rule);
}

.page-home .home-proof ul a {
    display: block;
    padding: 0.75rem 0;
}

.page-home .home-news {
    padding-top: var(--home-space-tight);
    padding-bottom: var(--home-space-tight);
    border-top: 1px solid var(--home-rule);
}

.page-home .home-news__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.page-home .home-news__head h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.page-home .home-news__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-home .home-news__list a {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: baseline;
    padding: 0.95rem 0;
    border-top: 1px solid var(--home-rule);
    color: var(--color-ink);
    text-decoration: none;
}

.page-home .home-news__list li:last-child a {
    border-bottom: 1px solid var(--home-rule);
}

.page-home .home-news__list time {
    font-size: 0.85rem;
    color: var(--home-muted);
}

.page-home .home-news__list a:hover span:nth-child(2) {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.page-home .home-contact {
    background: var(--home-end-bg);
    border-top: none;
    padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

.page-home .home-contact h2 {
    max-width: 12ch;
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    color: var(--home-end-text);
}

.page-home .home-contact > .container > p {
    color: var(--home-end-muted);
}

.page-home .home-contact .btn {
    min-height: 44px;
    margin-bottom: 2rem;
}

.page-home .home-contact .btn-primary {
    background: var(--home-end-text);
    border-color: var(--home-end-text);
    color: var(--home-end-bg);
}

.page-home .home-contact .btn-primary:hover {
    background: #fff;
    border-color: #fff;
    color: var(--home-end-bg);
}

.page-home .home-contact__details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    margin: 0;
}

.page-home .home-contact__details dt {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-end-muted);
}

.page-home .home-contact__details dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--home-end-text);
    overflow-wrap: anywhere;
}

.page-home .home-contact__details a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 900px) {
    .page-home .home-intro__top,
    .page-home .home-split,
    .page-home .home-split--flip,
    .page-home .home-proof__layout,
    .page-home .home-partner .tab-content,
    .page-home .home-partner .tab-content.active,
    .page-home .home-contact__details {
        grid-template-columns: 1fr;
    }

    .page-home .home-split--flip .home-split__media {
        order: 0;
    }

    .page-home .home-news__list a {
        grid-template-columns: 1fr auto;
    }

    .page-home .home-news__list time {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .page-home .hero-title {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    .page-home .home-contact h2 {
        max-width: none;
    }
}

@media (max-width: 768px) {
    body.page-home section.home-partner {
        padding: var(--home-space) 0 !important;
        background: var(--home-partner-bg) !important;
    }

    body.page-home section.home-contact {
        padding-top: var(--home-space) !important;
        padding-bottom: 2rem !important;
        background: var(--home-end-bg) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .hero-title.hero-reveal,
    .page-home .hero-lead.hero-reveal,
    .page-home .hero-cta.hero-reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
