.home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #10264e;
    color: var(--white);
}

.hero-inner {
    display: grid;
    grid-template-columns: 56% 44%;
    align-items: center;
    min-height: clamp(43rem, 55vw, 54rem);
    padding-top: var(--header-height);
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: clamp(3rem, 6.2vw, 6rem) clamp(2rem, 4vw, 4.75rem) clamp(3.2rem, 6.7vw, 6.5rem) 0;
}

.hero-name {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: clamp(1.2rem, 2vw, 1.8rem);
    font-size: .95rem;
    font-weight: 720;
    letter-spacing: .018em;
    color: #e4ecff;
    animation: hero-fade .8s ease-out .05s backwards;
}

.hero-name::before {
    width: 1.65rem;
    height: 1px;
    background: currentColor;
    content: "";
}

.hero-copy h1 {
    font-size: clamp(3.15rem, 5.85vw, 6.15rem);
    font-weight: 800;
    letter-spacing: -.075em;
    line-height: 1.015;
}

.hero-line {
    display: block;
    overflow: clip;
    padding-bottom: .13em;
    margin-bottom: -.10em;
}

.hero-line > span {
    display: block;
    animation: hero-line-in 1.32s cubic-bezier(.25, .7, .3, 1) .14s backwards;
}

.hero-line:nth-child(2) > span {
    color: #dbe8ff;
    animation-delay: .32s;
}

.hero-lead {
    max-width: 31rem;
    margin-top: clamp(1.2rem, 2.2vw, 1.8rem);
    color: #edf2ff;
    font-size: clamp(1rem, 1.34vw, 1.16rem);
    line-height: 1.68;
    animation: hero-fade 1s ease-out .49s backwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: clamp(1.4rem, 2.5vw, 2rem);
    animation: hero-fade 1s ease-out .63s backwards;
}

.hero-actions:focus-within { animation: none; }

.hero-actions .button-outline { border-color: #b7ccff; color: var(--white); }

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: 0;
    overflow: clip;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 29%;
    transform-origin: 62% 38%;
    animation: hero-image-in 1.65s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-media::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, #06132dd4 0%, #081a3b42 23%, transparent 47%, #06132d35 100%),
        linear-gradient(90deg, #071b40f0 0%, #0a2766e0 30%, #12398793 52%, #10265010 73%);
    content: "";
}

.hero-media figcaption {
    position: absolute;
    z-index: 1;
    right: max(1.25rem, calc((100vw - var(--shell)) / 2));
    bottom: 1.2rem;
    padding: .42rem .65rem;
    background: #06152bd9;
    color: var(--white);
    font-size: .8125rem;
    line-height: 1.4;
}

@keyframes hero-image-in {
    from { transform: scale(1.062); }
    to { transform: scale(1); }
}

@keyframes hero-line-in {
    from { opacity: 0; transform: translateY(102%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade {
    from { opacity: 0; transform: translateY(.7rem); }
    to { opacity: 1; transform: translateY(0); }
}

.home-section {
    padding-block: clamp(3.8rem, 7.5vw, 7rem);
}

.home-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.2rem clamp(1.6rem, 6vw, 6rem);
    margin-bottom: clamp(1.65rem, 4vw, 3.35rem);
}

.home-heading h2, .process-intro h2, .home-contact h2 {
    font-size: clamp(2.15rem, 4.55vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -.069em;
    font-weight: 800;
}

.home-heading > p {
    max-width: 23.5rem;
    color: var(--muted);
    line-height: 1.65;
    padding-bottom: .2rem;
}

.home-services {
    background: #f2f5fb;
    border-bottom: 1px solid var(--rule);
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.85rem, 2.05vw, 1.6rem);
}

.home-service {
    min-width: 0;
    min-height: clamp(11.7rem, 19vw, 16.25rem);
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: end;
    gap: clamp(1.15rem, 3.5vw, 3.5rem);
    padding: clamp(1.15rem, 2.65vw, 2.35rem);
    border: 1px solid #dce5f4;
    border-radius: .3rem;
    box-shadow: 0 .65rem 1.8rem #1636690a;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}

.home-service:hover, .home-service:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 .8rem 2rem #16366918;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .home-service:hover { transform: translateY(-.2rem); }
}

.home-service svg {
    width: clamp(2.4rem, 4vw, 3.3rem);
    color: var(--blue);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.home-service h3 {
    font-size: clamp(1.12rem, 1.75vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.home-service p {
    max-width: 27ch;
    margin-top: .45rem;
    color: var(--muted);
}

.home-service:hover h3 { color: var(--blue-deep); }

.home-process {
    padding-block: clamp(3.6rem, 7vw, 6.75rem);
    background: var(--blue-pale);
}

.process-layout {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
    gap: clamp(2rem, 10vw, 9rem);
}

.process-intro p {
    max-width: 23rem;
    margin-block: 1rem 1.4rem;
    color: var(--muted);
}

.process-steps {
    margin: 0;
    padding: 0;
    list-style-type: none;
    counter-reset: process;
    border-top: 1px solid var(--rule);
}

.process-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .9rem;
    padding-block: 1.05rem;
    border-bottom: 1px solid var(--rule);
    counter-increment: process;
}

.process-steps li::before {
    content: counter(process);
    display: grid;
    place-items: center;
    align-self: start;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #a8bdf0;
    color: var(--blue-deep);
    font-size: .88rem;
    font-weight: 800;
}

.process-steps h3 { font-size: 1.06rem; }
.process-steps p { margin-top: .22rem; color: var(--muted); }

.reference-heading { align-items: center; }
.reference-heading p { margin-top: .65rem; color: var(--muted); }
.reference-heading .button { flex-shrink: 0; color: var(--blue-deep); }

.reference-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    list-style: none;
}

.reference-preview li {
    display: grid;
    align-content: center;
    justify-items: start;
    min-height: 7.5rem;
    padding: clamp(.9rem, 2.3vw, 2rem);
    border-bottom: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
}

.reference-preview strong {
    font-size: clamp(1.1rem, 2.1vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: -.052em;
    font-weight: 800;
}

.reference-preview span { margin-top: .25rem; color: var(--muted); font-size: .875rem; }

.home-contact {
    background: var(--blue);
    color: var(--white);
    padding-block: clamp(2.8rem, 6.4vw, 5.75rem);
}

.home-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.35rem 3rem;
}

.home-contact h2 { font-size: clamp(2rem, 4.4vw, 4.1rem); }
.home-contact p { margin-top: .7rem; color: #eef3ff; }
.home-contact .button { flex: 0 0 auto; }
.home-hero :focus-visible, .home-contact :focus-visible { outline-color: var(--white); }

@media (max-width: 1020px) and (min-width: 761px) {
    .hero-inner { grid-template-columns: 58% 42%; }
    .hero-copy { padding-right: 1rem; }
}

@media (max-width: 760px) {
    .home-hero { display: block; }
    .hero-inner { display: block; min-height: clamp(41rem, 115vw, 47rem); padding-top: clamp(15.5rem, 45vw, 20.5rem); }
    .hero-copy { padding: 1.25rem 0 3.35rem; }
    .hero-copy h1 { font-size: clamp(2.45rem, 9.3vw, 4.6rem); }
    .hero-name { margin-bottom: .85rem; }
    .hero-media img { object-position: 53% 21%; }
    .hero-media::after {
        background: linear-gradient(180deg, #081831ab 0%, #0b234c25 21%, #0b285981 40%, #0c2959ec 62%, #0a2045 100%);
    }
    .hero-media figcaption { right: var(--gutter); bottom: .85rem; }
    .home-heading, .home-contact-inner { flex-direction: column; align-items: flex-start; }
    .home-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-layout { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
    .home-service-grid { grid-template-columns: 1fr; }
    .home-service { min-height: 0; align-items: start; gap: 1rem; padding: 1.3rem; }
}

@media (max-width: 530px) {
    .reference-preview { grid-template-columns: repeat(2, 1fr); }
    .reference-preview li { min-height: 5.7rem; }
}

@media (max-width: 365px) {
    .hero-copy h1 { font-size: clamp(2.32rem, 11vw, 2.8rem); }
    .hero-actions .button { padding-inline: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero img, .hero-name, .hero-line > span, .hero-lead, .hero-actions {
        animation: none;
    }
}
