html { scroll-behavior: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Gateway ---------- */
body.gateway { margin: 0; height: 100dvh; overflow: hidden; background: #03081a; font-family: 'Hanken Grotesk', system-ui, sans-serif; color: #fff; user-select: none; touch-action: none; }
.gateway * { box-sizing: border-box; }
#stage { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr 1fr; perspective: 1500px; transition: transform .55s cubic-bezier(.7, 0, .84, 0), opacity .55s; opacity: 0; transform: scale(1.12); }
.is-ready #stage { opacity: 1; transform: none; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1), opacity 1s; }
.is-exit #stage { opacity: 0; transform: scale(.82); transition: transform .5s ease-in, opacity .5s; }
.ring { position: relative; transform-style: preserve-3d; }
.ring-card { position: absolute; left: 50%; top: 50%; border-radius: 16px; overflow: hidden; background: #0b1533; box-shadow: 0 25px 50px rgba(0, 0, 0, .6); will-change: transform; }
.ring-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ring-card.is-far img { filter: blur(3px) brightness(.55); }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 62% 70% at 50% 50%, rgba(3, 8, 26, .15), rgba(3, 8, 26, .85) 100%), linear-gradient(rgba(3, 8, 26, .45), rgba(3, 8, 26, .45)); }

.gate-logo { position: absolute; left: 50%; top: 14px; z-index: 3; transform: translateX(-50%); background: #fff; border-radius: 14px; padding: 4px 10px; opacity: 0; animation: logo-in .8s .6s forwards; }
.gate-logo img { height: 58px; display: block; }
.gate-credit { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; margin: 0; text-align: center; font-size: .72rem; color: rgba(255, 255, 255, .7); }
.gate-credit a { color: #fff; font-weight: 600; }
.gates { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 32px; padding: 0 16px; pointer-events: none; transition: opacity .35s, transform .5s; }
.is-exit .gates { opacity: 0; transform: scale(1.08); }
.gate {
  position: relative; overflow: hidden; pointer-events: auto; width: 256px; min-height: 216px; padding: 28px 16px 24px; display: flex; flex-direction: column; align-items: center; text-align: center;
  color: #fff; text-decoration: none; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(10, 18, 44, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(26px); animation: gate-in .9s .35s cubic-bezier(.16, 1, .3, 1) forwards; transition: border-color .3s, box-shadow .3s;
}
.gate + .gate { animation-delay: .5s; }
@keyframes gate-in { to { opacity: 1; transform: translateY(0); } }
@keyframes logo-in { to { opacity: 1; } }
.gate:hover { border-color: rgba(255, 255, 255, .6); box-shadow: 0 30px 70px rgba(211, 18, 31, .35); }
.gate > :not(.gate-glow) { position: relative; }
.gate-glow { position: absolute; inset: -40%; background: radial-gradient(circle at 25% 25%, rgba(211, 18, 31, .75), transparent 42%), radial-gradient(circle at 78% 75%, rgba(212, 80, 80, .6), transparent 40%), radial-gradient(circle at 70% 20%, rgba(30, 136, 229, .4), transparent 36%); animation: glow-spin 11s linear infinite; }
@keyframes glow-spin { to { transform: rotate(360deg); } }
.gate-icon { width: 58px; height: 58px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s; }
.gate-icon .accent { stroke: #ff5560; }
.gate:hover .gate-icon { transform: translateY(-4px) scale(1.06); }
.gate strong { margin-top: 14px; font-size: 1.45rem; font-weight: 700; line-height: 1.15; }
.gate small { margin-top: 6px; font-size: .84rem; color: rgba(255, 255, 255, .78); }
.gate-arrow { margin-top: auto; flex: none; width: 42px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid #ff5560; transition: background .25s; }
.gate-arrow svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.gate:hover .gate-arrow { background: #D3121F; }
.gate:hover .gate-arrow svg { transform: translateX(3px); }
@media (max-width: 640px) {
  .gates { gap: 12px; }
  .gate { width: min(46vw, 170px); min-height: 212px; padding: 20px 8px 16px; }
  .gate strong { font-size: 1.1rem; }
  .gate small { font-size: .74rem; }
  .gate-icon { width: 46px; height: 46px; }
  .gate-logo img { height: 46px; }
}

/* ---------- Curtain ---------- */
#curtain { position: fixed; inset: 0; z-index: 70; background: #071D4F; transform-origin: top; animation: curtain .9s cubic-bezier(.76, 0, .24, 1) .1s forwards; pointer-events: none; }
@keyframes curtain { to { transform: scaleY(0); } }

/* ---------- Layout and type ---------- */
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 64px; } }
.h2 { font-weight: 600; color: #071D4F; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.1; letter-spacing: -.02em; }
.h3 { font-weight: 600; color: #071D4F; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em; }
.sub { margin-top: 1rem; color: #5b6783; }
.line-link { margin-top: 1.5rem; display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; font-weight: 600; color: #071D4F; border-bottom: 2px solid #071D4F; }
.line-link svg { width: 18px; height: 18px; transition: transform .25s; }
.line-link:hover svg { transform: translateX(4px); }

/* Shared widgets, squared off for this version */
.card { border-radius: .85rem; box-shadow: 0 1px 2px rgba(7, 29, 79, .06), 0 14px 34px -22px rgba(7, 29, 79, .4); }
.tab-btn[aria-selected="true"] { background: #071D4F; }
.chip { border-radius: .6rem; }
.chip[aria-pressed="true"] { background: #071D4F; border-color: #071D4F; }
.btn { border-radius: .6rem; }
.eyebrow { font-family: inherit; }
.icon-chip { box-shadow: none; }
#wa-float { bottom: 16px; right: 16px; }

/* ---------- Notched nav ---------- */
#top-nav { position: fixed; z-index: 45; top: 0; left: 0; right: 0; padding: 0 12px; height: 72px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; transition: transform .35s; }
#top-nav > * { pointer-events: auto; }
.top-logo { margin: 8px 0 0 12px; background: #fff; border-radius: 12px; padding: 3px 8px; }
.top-logo img { height: 52px; display: block; }
.top-cta { margin: 16px 12px 0 0; display: none; align-items: center; min-height: 42px; padding: 0 1.2rem; background: #071D4F; color: #fff; font-weight: 600; font-size: .9rem; border-radius: .5rem; transition: background .25s; }
.top-cta:hover { background: #D3121F; }
.notch { position: absolute; left: 50%; top: 0; margin-left: 0; translate: -50% 0; display: flex; align-items: center; gap: 1.6rem; height: 60px; padding: 0 1rem 0 2rem; background: #fff; border-radius: 0 0 26px 26px; font-weight: 500; font-size: .92rem; color: #6c7690; }
.notch::before, .notch::after { content: ''; position: absolute; top: 0; width: 26px; height: 26px; background: radial-gradient(circle at var(--c), transparent 26px, #fff 26.5px); }
.notch::before { right: 100%; --c: 0 100%; }
.notch::after { left: 100%; --c: 100% 100%; }
.notch a { transition: color .2s; white-space: nowrap; }
.notch a:hover, .notch a.is-active { color: #071D4F; }
#menu-btn { width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; border-radius: 999px; background: #EAF5FF; }
#menu-btn span { display: block; width: 18px; height: 2px; background: #071D4F; transition: transform .25s; }
#menu-btn.is-open span:first-child { transform: translateY(3.500px) rotate(45deg); }
#menu-btn.is-open span:last-child { transform: translateY(-3.500px) rotate(-45deg); }
#top-nav.is-stuck .top-cta { background: #D3121F; }
#top-nav.is-stuck .notch { box-shadow: 0 10px 26px -14px rgba(7, 29, 79, .5); }
#top-nav.is-stuck .top-logo { box-shadow: 0 8px 20px -10px rgba(7, 29, 79, .5); }
@media (max-width: 1023px) {
  .notch { left: auto; right: 0; translate: none; padding: 0 12px 0 14px; border-radius: 0 0 0 22px; height: 64px; }
  .notch a { display: none; }
  .notch::after { display: none; }
}
@media (min-width: 1024px) { .top-cta { display: inline-flex; } }

#sheet { position: fixed; z-index: 44; inset: 0; padding: 96px 24px 24px; display: flex; flex-direction: column; gap: .2rem; background: #071D4F; clip-path: circle(0 at calc(100% - 40px) 32px); visibility: hidden; overflow-y: auto; transition: clip-path .55s cubic-bezier(.76, 0, .24, 1), visibility .55s; }
#sheet.is-open { clip-path: circle(150% at calc(100% - 40px) 32px); visibility: visible; }
#sheet a { color: #fff; font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 600; padding: .3rem 0; transition: color .2s, transform .2s; }
#sheet a:hover { color: #ff7a82; transform: translateX(8px); }

/* ---------- Rail ---------- */
#rail { position: fixed; z-index: 40; right: 0; top: 12px; width: 38px; padding: 26px 0 24px; display: none; flex-direction: column; align-items: center; gap: 8px; background: #101622; color: #fff; border-radius: 16px 0 0 16px; cursor: grab; touch-action: none; user-select: none; box-shadow: -10px 10px 30px -14px rgba(7, 29, 79, .5); }
#rail.is-drag { cursor: grabbing; }
#rail b { font-size: .72rem; line-height: 1; }
#rail i { font-style: normal; font-size: .55rem; opacity: .6; margin-top: -6px; }
#rail a { width: 26px; height: 28px; display: grid; place-items: center; border-radius: 5px; font-size: .58rem; font-weight: 700; background: #252c3a; transition: background .2s, color .2s; }
#rail a:first-of-type { background: #fff; color: #101622; }
#rail a:hover { background: #D3121F; color: #fff; }
.rail-drag { writing-mode: vertical-rl; rotate: 180deg; margin-top: 8px; font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
@media (min-width: 1024px) { #rail { display: flex; } }

/* ---------- Hero ---------- */
.hero-frame { position: relative; height: min(100svh, 860px); min-height: 600px; overflow: hidden; border-radius: 0 0 22px 22px; background: #071D4F; }
.hero-img { position: absolute; inset: -6% 0 0; width: 100%; height: 106%; object-fit: cover; object-position: 60% 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 12, 36, .78) 4%, rgba(4, 12, 36, .15) 55%, rgba(4, 12, 36, .25)); }
.hero-copy { position: absolute; left: 16px; right: 16px; bottom: 96px; color: #fff; }
.hero-copy .lead { max-width: 430px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.hero-copy h1 { margin-top: 1rem; font-weight: 500; font-size: clamp(2.4rem, 7.2vw, 5.2rem); line-height: 1.08; letter-spacing: -.025em; }
.hero-copy .line { display: flex; align-items: center; gap: 1rem; overflow: hidden; padding-bottom: .1em; }
.hero-copy .line > span { display: block; }
.spin-badge { position: relative; flex: none; width: clamp(60px, 7vw, 84px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 999px; background: #fff; color: #071D4F; }
.spin-badge svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.spin-badge text { font-size: 10px; font-weight: 700; fill: #071D4F; }
.spin-badge em svg { position: static; width: 22px; height: 22px; animation: none; rotate: -45deg; }
.spin-badge em { display: block; width: 22px; height: 22px; transition: transform .3s; }
.spin-badge:hover em { transform: scale(1.25); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-glass { position: absolute; right: 40px; bottom: 80px; width: 288px; padding: 14px; color: #fff; border-radius: 16px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: none; flex-direction: column; transition: transform .35s; }
.hero-glass:hover { transform: translateY(-6px); }
.hero-glass b { font-size: 1.5rem; }
.hero-glass small { color: rgba(255, 255, 255, .8); }
.hero-glass img { height: 130px; width: 100%; object-fit: cover; border-radius: 10px; }
.notch-cta { position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: inline-flex; align-items: center; gap: .6rem; height: 58px; padding: 0 28px; white-space: nowrap; background: #071D4F; color: #fff; font-weight: 600; border: 8px solid #fff; border-bottom: 0; border-radius: 14px 14px 0 0; box-sizing: content-box; height: 46px; transition: background .25s; }
.notch-cta:hover { background: #D3121F; }
.notch-cta svg { width: 20px; height: 20px; }
@media (min-width: 768px) { .hero-copy { left: 40px; right: 360px; bottom: 80px; } }
@media (min-width: 1024px) { .hero-glass { display: flex; } }

/* ---------- Counters ---------- */
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding-top: 2.5rem; border-top: 1px solid rgba(7, 29, 79, .12); }
.counters b { display: block; font-weight: 500; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: #071D4F; }
.counters p { margin-top: .5rem; font-size: .88rem; color: #5b6783; }
@media (min-width: 1024px) { .counters { grid-template-columns: repeat(4, 1fr); } }

.statement { font-size: clamp(1.7rem, 4.2vw, 3.2rem); font-weight: 500; line-height: 1.22; letter-spacing: -.02em; color: #071D4F; max-width: 1040px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc:last-child { grid-column: span 2; }
}
.svc { position: relative; overflow: hidden; isolation: isolate; min-height: 250px; padding: 24px; display: flex; flex-direction: column; border-radius: .85rem; border: 1px solid rgba(7, 29, 79, .12); background: #fff; transition: border-color .3s; }
.svc img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .45s, transform .9s cubic-bezier(.16, 1, .3, 1); }
.svc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(4, 12, 36, .68); opacity: 0; transition: opacity .45s; }
.svc-icon { color: #D3121F; transition: color .3s; }
.svc h3 { margin-top: auto; padding-top: 2.5rem; font-weight: 600; font-size: 1.2rem; color: #071D4F; transition: color .3s; }
.svc p { margin-top: .4rem; font-size: .9rem; color: #5b6783; transition: color .3s; }
.svc:hover img { opacity: 1; transform: none; }
.svc:hover::after { opacity: 1; }
.svc:hover h3, .svc:hover p, .svc:hover .svc-icon { color: #fff; }

/* ---------- Journey ---------- */
.journey { display: grid; gap: 40px; }
.journey-stack { position: sticky; top: 100px; display: none; aspect-ratio: 1; align-self: start; border-radius: .85rem; overflow: hidden; background: #BFE3FF; max-height: calc(100vh - 130px); }
.journey-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .6s, transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.journey-stack img.is-on { opacity: 1; transform: none; }
.j-step { padding: 28px 0; border-top: 1px solid rgba(7, 29, 79, .15); opacity: .35; transition: opacity .4s; }
.j-step.is-on { opacity: 1; }
.j-step span { font-weight: 700; color: #D3121F; font-size: .85rem; }
.j-step h3 { margin-top: .3rem; font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.15; color: #071D4F; }
.j-step p { margin-top: .5rem; color: #5b6783; }
@media (min-width: 1024px) {
  .journey { grid-template-columns: 1fr 1fr; gap: 64px; }
  .journey-stack { display: block; }
  .j-step { padding: 48px 0; min-height: 34vh; }
}
@media (max-width: 1023px) { .j-step { opacity: 1; } }

/* ---------- Zoom scene ---------- */
.zoom-scene { position: relative; height: 100vh; min-height: 560px; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding-top: 11vh; text-align: center; background: #fff; }
.zoom-kicker { display: flex; align-items: center; gap: .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #6c7690; }
.zoom-kicker i { width: 7px; height: 7px; border-radius: 99px; background: #071D4F; }
.zoom-title { margin-top: .4rem; font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.025em; color: #071D4F; }
.zoom-card { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: min(36vw, 460px); min-width: 280px; height: 60vh; overflow: hidden; border-radius: 16px 16px 0 0; box-shadow: 0 30px 70px -20px rgba(7, 29, 79, .55); }
.zoom-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zoom-card::after { content: ''; position: absolute; inset: 0; background: rgba(4, 12, 36, .3); }
.zoom-tag { position: absolute; z-index: 1; top: 16px; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.zoom-tag-l { left: 18px; display: flex; align-items: center; gap: .4rem; }
.zoom-tag-l i { width: 7px; height: 7px; border-radius: 9px; background: #ff3b47; animation: blink 1.4s steps(2) infinite; }
.zoom-tag-r { right: 18px; }
@keyframes blink { 50% { opacity: .2; } }
.zoom-words { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 1.02; letter-spacing: -.03em; }
.zoom-words span { display: block; }

@media (prefers-reduced-motion: reduce) {
  #curtain { display: none; }
  .is-ready #stage, #stage { opacity: 1; transform: none; }
  .gate, .gate-logo { opacity: 1; transform: none; animation: none !important; }
  .gate-logo { transform: translateX(-50%); }
  .zoom-scene { height: auto; padding-bottom: 2rem; }
  .zoom-card { position: relative; left: auto; translate: none; width: min(92vw, 760px); border-radius: 16px; margin-top: 1.5rem; }
}
