/* The cinematic layout is loaded only by the Home. */
.home-v4 {
    --v4-bg: #061019;
    --v4-blue: #102535;
    --v4-accent: #18d9b1;
    --v4-white: #f4f8fa;
    --v4-muted: #b4c5cd;
    --v4-line: #41606a73;
    background: var(--v4-bg);
    color: var(--v4-white);
}
.home-v4 .v4-wrap, .home-v4 .footer .container {
    width: min(1320px, calc(100% - clamp(36px, 10vw, 160px)));
    margin-inline: auto;
}
.home-v4 :focus-visible { outline-color: var(--v4-accent); }
.home-v4 main h1, .home-v4 main h2, .home-v4 main h3 { text-wrap: balance; }
.home-v4 main h2 { font-size: clamp(32px, 3.4vw, 57px); line-height: 1.02; letter-spacing: -.049em; font-weight: 720; }
.home-v4 main em { color: var(--v4-accent); font-style: normal; }
.home-v4 .v4-kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 14px; color: var(--v4-accent); font-weight: 680; font-size: 11px; letter-spacing: .22em; line-height: 1.35; text-transform: uppercase; }
.home-v4 .v4-kicker::before { content: ''; width: 23px; height: 1px; flex: 0 0 23px; background: currentColor; }
.home-v4 .v4-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.home-v4 .v4-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 18px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; line-height: 1.3; font-weight: 680; transition: background .22s, color .22s, border-color .22s, transform .22s; }
.home-v4 .v4-btn svg, .home-v4 .v4-text-link svg { width: 16px; height: 16px; flex: 0 0 16px; }
.home-v4 .v4-btn-primary { background: var(--v4-accent); color: #061b1b; }
.home-v4 .v4-btn-primary:hover { background: #62f5d7; transform: translateY(-2px); }
.home-v4 .v4-btn-outline { background: #06101975; border-color: #55aa9f93; color: var(--v4-white); }
.home-v4 .v4-btn-outline:hover { background: #103a40; border-color: var(--v4-accent); transform: translateY(-2px); }
.home-v4 .v4-text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--v4-white); font-size: 13px; font-weight: 650; }
.home-v4 .v4-text-link:hover { color: var(--v4-accent); }
.home-v4 .v4-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The astronaut sits behind the right half; the left remains a quiet reading area. */
.home-v4 .v4-hero { position: relative; isolation: isolate; display: grid; min-height: 100vh; min-height: 100svh; overflow: clip; background: #061019; }
.home-v4 .v4-hero-media, .home-v4 .v4-hero::after { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-v4 .v4-hero-media { inset-block-end: -3%; transform: translateY(var(--v4-parallax, 0px)); }
.home-v4 .v4-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 53%; }
.home-v4 .v4-hero::after { content: ''; background: linear-gradient(90deg,#040c14fa 0%,#041019dc 27%,#06101961 51%,transparent 72%), linear-gradient(0deg,#061019 0%,transparent 23%,transparent 82%,#0610194f 100%); }
.home-v4 .v4-hero-inner { position: relative; display: grid; align-items: center; padding-block: 115px 108px; }
.home-v4 .v4-hero-copy { max-width: min(660px, 58%); }
.home-v4 .v4-hero h1 { max-width: 660px; font-size: clamp(52px, 5.1vw, 84px); font-weight: 730; line-height: .99; letter-spacing: -.063em; text-wrap: wrap; }
.home-v4 .v4-hero h1 em { display: inline-block; }
.home-v4 .v4-hero-lead { max-width: 490px; margin: 24px 0 26px; color: #d7e2e7; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.63; }
.home-v4 .v4-hero-copy > * { animation: v4-enter .62s cubic-bezier(.2,.7,.24,1) both; }
.home-v4 .v4-hero h1 { animation-delay: .08s; }
.home-v4 .v4-hero-lead { animation-delay: .16s; }
.home-v4 .v4-hero .v4-actions { animation-delay: .23s; }
.home-v4 .v4-discover { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 5px; justify-items: center; padding: 4px 10px; min-height: 44px; white-space: nowrap; color: #e7f5f7; font-size: 11px; }
.home-v4 .v4-discover-icon { display: grid; place-items: center; width: 26px; height: 34px; border: 1px solid #d1e4e694; border-radius: 20px; }
.home-v4 .v4-discover svg { width: 14px; height: 14px; animation: v4-scroll-hint 2s ease-in-out 3; }
@keyframes v4-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes v4-scroll-hint { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* Three visual stories instead of the previous Bento. */
.home-v4 .v4-capabilities { padding-block: clamp(50px, 6vw, 95px); background: radial-gradient(ellipse at 62% 109%,#103a4066,transparent 62%), #07151e; }
.home-v4 .v4-section-intro { display: flex; justify-content: space-between; align-items: end; gap: 23px; margin-bottom: clamp(25px, 3.3vw, 42px); }
.home-v4 .v4-section-intro h2 { max-width: 715px; }
.home-v4 .v4-section-intro .v4-text-link { margin-bottom: 4px; flex: 0 0 auto; }
.home-v4 .v4-intro-aside { flex: 0 1 350px; padding-left: 23px; border-left: 1px solid #28736b; }
.home-v4 .v4-intro-aside p { margin: 0 0 8px; color: var(--v4-muted); font-size: 14px; line-height: 1.5; }
.home-v4 .v4-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px, 1.5vw, 24px); }
.home-v4 .v4-service { position: relative; isolation: isolate; display: flex; align-items: end; min-height: clamp(260px,22vw,345px); overflow: hidden; background: #102535; border: 1px solid #32615d99; border-radius: 14px; transition: border-color .25s, transform .25s; }
.home-v4 .v4-service::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#041219f9 1%,#041219cb 25%,#06101931 73%),linear-gradient(90deg,#06101942,transparent 70%); pointer-events: none; }
.home-v4 .v4-service-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .55s; }
.home-v4 .v4-service:is(:hover,:focus-visible) { border-color: #18d9b1; transform: translateY(-3px); }
.home-v4 .v4-service:is(:hover,:focus-visible) img { transform: scale(1.045); }
.home-v4 .v4-service-copy { padding: 22px 54px 23px 22px; }
.home-v4 .v4-service-index { color: var(--v4-accent); font-size: 11px; font-weight: 680; letter-spacing: .17em; }
.home-v4 .v4-service h3 { margin: 6px 0 8px; font-size: clamp(19px,1.9vw,29px); line-height: 1.07; letter-spacing: -.035em; }
.home-v4 .v4-service p { color: #cfdee3; font-size: 13px; line-height: 1.48; }
.home-v4 .v4-service-arrow { position: absolute; right: 15px; bottom: 16px; width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #54d5be88; border-radius: 50%; color: #60e8d0; background: #0a252c; }
.home-v4 .v4-service-arrow svg { width: 17px; height: 17px; }

/* Image slots retain their geometry before the approved files arrive. */
.home-v4 .v4-philosophy { padding-block: clamp(49px,6vw,91px); background: radial-gradient(ellipse at 10% 46%,#0b45494d,transparent 57%),#07131d; }
.home-v4 .v4-editorial { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(24px,5vw,76px); }
.home-v4 .v4-editorial-image { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #3d88866e; border-radius: 12px; }
.home-v4 .v4-media-slot { aspect-ratio: 1.65; background: radial-gradient(ellipse at 80% 22%,#17434d 0%,transparent 72%),linear-gradient(150deg,#102535,#061019); }
.home-v4 .v4-media-slot img { display: block; width: 100%; height: 100%; aspect-ratio: 1.65; object-fit: cover; }
.home-v4 .v4-editorial-image figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 18px; color: #d1e7e9; background: linear-gradient(transparent,#061019bd); font-size: 11px; }
.home-v4 .v4-editorial-image figcaption span { margin-right: 9px; color: var(--v4-accent); }
.home-v4 .v4-editorial-copy > p:not(.v4-kicker) { max-width: 480px; margin: 19px 0 24px; color: var(--v4-muted); font-size: 15px; }
.home-v4 .v4-closing { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(360px,33vw,510px); padding-block: 58px; border-block: 1px solid #1e4c56; background: #0b2532; }
.home-v4 .v4-closing-image, .home-v4 .v4-closing::after { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-v4 .v4-closing-image { background: radial-gradient(ellipse at 91% 100%,#0c706c80,transparent 67%),linear-gradient(150deg,#0a1922,#143d4b); }
.home-v4 .v4-closing-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-v4 .v4-closing::after { content: ''; background: linear-gradient(90deg,#061019f2,#061019b5 44%,#06101926 85%),linear-gradient(0deg,#06101977,transparent 65%); }
.home-v4 .v4-closing h2 { max-width: 670px; }
.home-v4 .v4-closing-content > p:not(.v4-kicker) { max-width: 480px; margin: 18px 0 22px; color: #c4d8df; font-size: 15px; }
.home-v4 .footer { background: #061019; }

/* Visible by default. Only offscreen elements opt into reveals. */
.home-v4 .v4-reveal.v4-pending { opacity: 0; transform: translateY(13px); }
.home-v4 .v4-reveal.v4-seen { transition: opacity .55s ease-out, transform .55s ease-out; }
.home-v4 .v4-reveal.v4-service.v4-seen { transition: opacity .55s, transform .34s, border-color .25s; }
.home-v4 .v4-reveal:focus-within { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .home-v4 .v4-hero-copy { max-width: 62%; }
    .home-v4 .v4-hero h1 { font-size: clamp(42px,6vw,57px); }
    .home-v4 .v4-service-copy { padding: 15px 36px 18px 15px; }
    .home-v4 .v4-service-arrow { width: 28px; height: 28px; right: 7px; bottom: 9px; }
    .home-v4 .v4-service-arrow svg { width: 13px; height: 13px; }
    .home-v4 .v4-service { min-height: 254px; }
}
@media (max-width: 700px) {
    .home-v4 .v4-hero-inner { align-items: end; padding-block: clamp(255px, 46svh, 430px) 83px; }
    .home-v4 .v4-hero-copy { max-width: 520px; }
    .home-v4 .v4-hero h1 { font-size: clamp(42px,8.4vw,60px); }
    .home-v4 .v4-hero-media { inset: 0 0 auto; height: clamp(350px,62svh,570px); transform: none; }
    .home-v4 .v4-hero-media img { object-position: 82% 54%; }
    .home-v4 .v4-hero::after { background: linear-gradient(0deg,#061019 24%,#061019 36%,#06101900 69%),linear-gradient(180deg,#06101988,transparent 23%); }
    .home-v4 .v4-hero-lead { margin-block: 16px 19px; }
    .home-v4 .v4-discover { bottom: 13px; }
    .home-v4 .v4-section-intro { flex-direction: column; align-items: start; gap: 13px; }
    .home-v4 .v4-intro-aside { flex-basis: auto; padding-left: 12px; }
    .home-v4 .v4-service-grid, .home-v4 .v4-editorial { grid-template-columns: 1fr; }
    .home-v4 .v4-service { min-height: 258px; }
    .home-v4 .v4-service-copy { padding: 18px 52px 18px 17px; }
    .home-v4 .v4-service-arrow { width: 36px; height: 36px; right: 11px; bottom: 13px; }
    .home-v4 .v4-closing { min-height: 360px; }
    .home-v4 .v4-closing::after { background: linear-gradient(90deg,#061019ea,#061019b5 72%,#06101985),linear-gradient(0deg,#06101952,transparent 70%); }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.home-v4) { scroll-behavior: auto; }
    .home-v4 *, .home-v4 *::before, .home-v4 *::after { animation: none !important; transition: none !important; }
    .home-v4 .v4-hero-media, .home-v4 .v4-reveal.v4-pending, .home-v4 .v4-btn:hover, .home-v4 .v4-service:is(:hover,:focus-visible), .home-v4 .v4-service:is(:hover,:focus-visible) img { transform: none; opacity: 1; }
}
