/* Homepage: local video hero and editorial service cards. */
.home-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: min(52rem, calc(100svh - 5rem)); margin-top: 5rem; padding: 7rem var(--gutter) 8rem; color: white; background: #101e35; }
.home-hero > video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgb(5 17 39 / 93%) 0%, rgb(5 17 39 / 78%) 45%, rgb(5 17 39 / 35%) 100%); }
.hero-copy { width: 100%; max-width: var(--page-width); margin-inline: auto; }
.home-hero h1 { color: white; font-size: clamp(2.6rem, 5.6vw, 5.6rem); line-height: 1.08; letter-spacing: -0.055em; margin-bottom: 1.75rem; }
.home-hero h1 span { color: #b9c8ff; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2rem; }
.hero-actions .button { background: white; color: #101e35; border-color: white; }
.hero-actions .button:hover { background: #e5ebff; border-color: #e5ebff; }
.hero-secondary { display: inline-flex; align-items: center; gap: 1.2rem; color: white; font-size: 0.9rem; text-decoration: none; padding-block: 0.6rem; }
.hero-secondary:hover { color: #c8d6ff; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.intro-copy { color: var(--muted); }
.intro-copy > p:first-child { font-size: 1.15rem; color: var(--ink); }
.services-section { background: var(--surface); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 23rem; color: var(--muted); margin-bottom: 0; font-size: 0.9rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; position: relative; min-height: 21rem; padding: 2rem; border: 1px solid var(--line); border-radius: 0.8rem; background: white; color: var(--ink); text-decoration: none; transition: border-color 240ms ease, background-color 240ms ease, transform 240ms ease, box-shadow 240ms ease; }
.service-card:focus-visible { border-color: var(--brand); background: #fafbff; }
.service-card > img { object-fit: contain; margin-bottom: 2rem; transition: transform 240ms ease; }
.service-card h3 { font-size: 1.4rem; }
.service-card p { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.75rem; }
.card-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; color: var(--brand); font-size: 0.8rem; font-weight: bold; }
.approach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 3rem; }
.approach-grid > div { position: relative; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.approach-grid p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0; }
@media (max-width: 1000px) {
    .home-hero { margin-top: 0; min-height: 40rem; min-height: min(48rem, calc(100svh - 4rem)); padding-block: 6rem 8rem; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intro-grid { gap: 2.5rem; }
}
@media (max-width: 700px) {
    .home-hero { min-height: 38rem; padding-block: 4rem 7rem; }
    .home-hero h1 { font-size: clamp(2.15rem, 7.8vw, 3.5rem); }
    .intro-grid, .service-grid, .approach-grid { grid-template-columns: 1fr; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .service-card { min-height: 19rem; }
    .approach-grid { gap: 2rem; }
}

.hero-description { max-width: 44rem; margin: 1.5rem 0 0; color: #e0e6f0; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.8; }

/* Small interaction cues; all content remains visible without JavaScript. */
.home .hero-actions .button {
    transition: background-color 220ms ease, box-shadow 220ms ease;
}
.home .hero-actions .button span,
.home .hero-secondary span,
.home .card-link > span,
.home .text-link span {
    display: inline-block;
    transition: transform 220ms ease;
}
.home .hero-secondary {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.5rem;
    transition: color 220ms ease, text-decoration-color 220ms ease;
}
.home .hero-secondary:focus-visible {
    text-decoration-color: currentColor;
}
.home .text-link {
    transition: color 220ms ease, border-color 220ms ease;
}
.approach-grid > div::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 2.5rem;
    height: 2px;
    background: var(--brand);
}
@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        color: var(--ink);
        border-color: #a2adce;
        background: #fafbff;
        transform: translateY(-5px);
        box-shadow: 0 16px 32px rgb(13 30 64 / 7%);
    }
    .service-card:hover > img { transform: translateY(-2px); }
    .service-card:hover .card-link > span,
    .home .text-link:hover span,
    .home .hero-actions .button:hover span { transform: translate(2px, -2px); }
    .home .hero-actions .button:hover { box-shadow: 0 6px 22px rgb(0 0 0 / 12%); }
    .home .hero-secondary:hover { text-decoration-color: currentColor; }
    .home .hero-secondary:hover span { transform: translateY(3px); }
    .home .text-link:hover { border-color: var(--brand); }
}
@media (prefers-reduced-motion: reduce) {
    .home .service-card:hover,
    .home .service-card:hover > img,
    .home .card-link > span,
    .home .text-link span,
    .home .hero-actions .button span,
    .home .hero-secondary span { transform: none; }
}
