/* Home page. Other pages keep styles.css. */

.home .navbar {
    background: rgba(4, 21, 37, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.home-hero {
    background: var(--navy-deep);
    color: var(--white);
}

.home-hero-grid {
    min-height: calc(100vh - var(--header-h));
    margin-top: var(--header-h);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    padding: 72px 56px 64px max(24px, calc((100vw - 1180px) / 2));
}

.home-hero h1 {
    max-width: 11em;
    font-size: clamp(2.7rem, 4.6vw, 4.5rem);
}

.home-hero h1 span {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-top: 0.22em;
    padding-top: 0.2em;
    border-top: 3px solid var(--orange);
    color: var(--white);
}

.home-hero-copy > p:not(.eyebrow):not(.home-hero-note) {
    margin-top: 22px;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.home-hero-note {
    margin-top: 28px;
    max-width: 34rem;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

.home-hero-figure {
    position: relative;
    margin: 0;
    min-height: 560px;
    overflow: hidden;
}

.home-hero-figure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-figure::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 28%;
    background: linear-gradient(rgba(4, 21, 37, 0.55), transparent);
    pointer-events: none;
}

.home-hero-figure figcaption {
    position: absolute;
    z-index: 1;
    left: 28px;
    right: 28px;
    top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-facts {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.home-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.home-facts-grid > div {
    padding: 28px 28px 28px 0;
}

.home-facts-grid > div + div {
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.home-facts strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.home-facts span {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.home-facts a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.home-facts a:hover {
    color: var(--orange);
}

.home-block {
    padding: 112px 0;
}

.home-work-intro {
    max-width: 640px;
    margin-bottom: 48px;
}

.home-work-intro h2 {
    max-width: 14ch;
}

.home-work-intro p:not(.eyebrow) {
    margin-top: 16px;
    color: var(--muted);
    max-width: 38rem;
}

.home-work {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 64px;
    align-items: start;
}

.home-work-sticky {
    position: sticky;
    top: calc(var(--header-h) + 28px);
}

.home-path h2,
.home-about h2,
.home-why h2,
.home-sectors h2,
.home-faq h2,
.home-close h2 {
    max-width: 16ch;
}

.home-work-frame {
    position: relative;
    margin: 0 0 18px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--navy-deep);
}

.home-work-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s var(--ease);
}

.home-work-frame img.is-fading {
    opacity: 0.35;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.home-text-link::after {
    content: "→";
    color: var(--orange);
    transition: transform 0.2s var(--ease);
}

.home-text-link:hover::after {
    transform: translateX(4px);
}

.home-index {
    list-style: none;
    border-top: 1px solid var(--line);
}

.home-index a {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 26px 8px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s var(--ease);
}

.home-index a::after {
    content: "→";
    color: var(--orange);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: 0.2s var(--ease);
}

.home-index a:hover,
.home-index a.is-active,
.home-index a:focus-visible {
    background: var(--paper);
}

.home-index a:hover::after,
.home-index a.is-active::after,
.home-index a:focus-visible::after {
    opacity: 1;
    transform: none;
}

.home-index-num {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--orange);
}

.home-index-copy {
    display: grid;
    gap: 4px;
}

.home-index-copy strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.home-index-copy em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.96rem;
}

.home-index a.is-active .home-index-copy strong {
    color: var(--navy);
}

.home-path {
    background: var(--navy-deep);
    color: var(--white);
    padding: 112px 0 96px;
}

.home-path-head {
    margin-bottom: 56px;
}

.home-path h2 {
    max-width: 12em;
}

.home-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
}

.home-steps::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.home-steps li {
    position: relative;
    padding-top: 42px;
}

.home-steps span {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-50%);
    background: var(--navy-deep);
    padding-right: 12px;
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.home-steps h3 {
    margin-bottom: 10px;
}

.home-steps p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 26ch;
}

.home-about {
    background: var(--paper);
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.home-about-figure {
    position: relative;
    margin: 0;
}

.home-about-figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.home-about-figure figcaption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    max-width: 240px;
    padding: 18px 20px;
    background: rgba(4, 21, 37, 0.9);
    color: var(--white);
}

.home-about-figure strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.home-about-copy h2 {
    max-width: 14em;
}

.home-about-copy p:not(.eyebrow) {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.05rem;
}

.home-about-copy .btn {
    margin-top: 28px;
}

.home-why-head {
    max-width: 640px;
    margin-bottom: 12px;
}

.home-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
}

.home-why-grid article {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.home-why-grid h3 {
    margin-bottom: 8px;
}

.home-why-grid p {
    color: var(--muted);
    max-width: 46ch;
}

.home-sectors {
    padding: 96px 0 88px;
    background: var(--navy);
    color: var(--white);
}

.home-sectors h2 {
    max-width: 16em;
    margin-bottom: 36px;
}

.home-sectors ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.home-sectors li::after {
    content: "/";
    margin: 0 0.38em;
    color: var(--orange);
    font-weight: 600;
}

.home-sectors li:last-child::after {
    content: "";
    margin: 0;
}

.home-faq {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.home-faq-intro p:not(.eyebrow) {
    margin: 16px 0 22px;
    color: var(--muted);
    max-width: 36ch;
}

.home .faq-item {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.home .faq-item:first-child {
    border-top: 1px solid var(--line);
}

.home .faq-item button {
    padding: 22px 36px 22px 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    position: relative;
}

.home .faq-item button::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange);
    font-size: 1.4rem;
    line-height: 1;
}

.home .faq-item.is-open button::after {
    content: "–";
}

.home .faq-item p {
    padding: 0 48px 20px 0;
    max-width: 62ch;
}

.home-close {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    overflow: hidden;
    background: var(--navy-deep);
}

.home-close img,
.home-close-shade {
    position: absolute;
    inset: 0;
}

.home-close img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-close-shade {
    background:
        linear-gradient(90deg, rgba(4, 21, 37, 0.88) 0%, rgba(4, 21, 37, 0.55) 52%, rgba(4, 21, 37, 0.25) 100%),
        linear-gradient(180deg, rgba(4, 21, 37, 0.05), rgba(4, 21, 37, 0.45));
}

.home-close-inner {
    position: relative;
    z-index: 1;
    padding: 120px 0 88px;
    max-width: 720px;
}

.home-close h2 {
    max-width: 12em;
}

.home-close-inner > p:not(.eyebrow) {
    margin-top: 16px;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08rem;
}

.home a:focus-visible,
.home button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .home-hero-grid,
    .home-facts-grid,
    .home-work,
    .home-about-grid,
    .home-faq,
    .home-steps {
        grid-template-columns: 1fr 1fr;
    }

    .home-hero-grid,
    .home-work,
    .home-about-grid,
    .home-faq {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        max-width: none;
        margin-left: 0;
        padding: 56px 20px 36px;
    }

    .home-hero-figure {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .home-facts-grid > div,
    .home-facts-grid > div + div {
        padding: 22px 18px;
    }

    .home-facts-grid > div:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .home-facts-grid > div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .home-work-sticky {
        position: static;
    }

    .home-path-head,
    .home-why-grid {
        display: block;
    }

    .home-why-grid article {
        max-width: none;
    }

    .home-block,
    .home-path {
        padding: 80px 0;
    }
}

@media (max-width: 720px) {
    .home-hero h1 {
        max-width: none;
        font-size: clamp(2.3rem, 11vw, 3.1rem);
    }

    .home-hero-grid {
        min-height: 0;
    }

    .home-facts-grid,
    .home-steps {
        grid-template-columns: 1fr;
    }

    .home-facts-grid > div,
    .home-facts-grid > div + div {
        padding: 20px 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .home-facts-grid > div:first-child {
        border-top: 0;
    }

    .home-index a {
        grid-template-columns: 40px 1fr;
        gap: 12px;
        padding: 20px 0;
    }

    .home-index a::after {
        display: none;
    }

    .home-index-copy strong {
        font-size: 1.15rem;
    }

    .home-steps::before {
        display: none;
    }

    .home-steps li {
        padding: 0 0 8px 56px;
    }

    .home-steps span {
        transform: none;
        top: 0;
        padding: 0;
    }

    .home-about-figure img {
        aspect-ratio: 4 / 3;
    }

    .home-sectors ul {
        font-size: 1.55rem;
    }

    .home-close {
        min-height: 0;
    }

    .home-close-inner {
        padding: 88px 0 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-work-frame img,
    .home-text-link::after,
    .home-index a,
    .home-index a::after {
        transition: none;
    }
}
