:root {
  --navy: #050734;
  --navy-2: #0f1450;
  --blue: #1b6ab8;
  --sky: #7bb8f1;
  --ink: #050734;
  --muted: #4c5575;
  --line: #dde6f2;
  --bg-soft: #f0f6fd;
  --radius: 14px;
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; overflow-x: hidden; }
main { animation: pageIn .6s var(--ease); }
body.leaving main { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; position: relative; }
.eyebrow { color: var(--blue); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 10px 0 14px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--navy), #1a2378, var(--navy)); background-size: 200% 100%; color: #fff; box-shadow: 0 8px 24px rgba(5,7,52,.28); animation: shimmer 4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.btn-ghost { border: 1px solid rgba(5,7,52,.3); color: var(--navy); }
.btn-ghost:hover { background: rgba(5,7,52,.06); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Nav */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; transition: box-shadow .3s; }
header.solid { box-shadow: 0 6px 24px rgba(5,7,52,.1); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: block; }
.logo img { display: block; height: 42px; width: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav ul a:not(.btn) { color: #2a3258; font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0; }
.nav ul a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:not(.btn):hover, .nav ul a.active { color: var(--navy); }
.nav ul a:not(.btn):hover::after, .nav ul a.active::after { transform: scaleX(1); }
.nav .btn { padding: 10px 20px; }
.menu-btn { display: none; background: none; border: 0; color: var(--navy); font-size: 1.6rem; cursor: pointer; }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--sky)); width: 0; }

/* Hero */
.hero { background: #e9f3fc; color: var(--navy); padding: 160px 0 110px; overflow: hidden; }
.hero.small { padding: 150px 0 80px; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.blob.b1 { width: 480px; height: 480px; background: var(--sky); top: -120px; left: -120px; }
.blob.b2 { width: 420px; height: 420px; background: var(--sky); bottom: -160px; right: -80px; animation-delay: -6s; opacity: .35; }
.blob.b3 { width: 260px; height: 260px; background: var(--blue); top: 30%; left: 45%; animation-delay: -12s; opacity: .12; }
@keyframes drift { 50% { transform: translate(60px, 40px) scale(1.1); } 100% { transform: translate(-40px, 70px) scale(.95); } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(5,7,52,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(5,7,52,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); margin: 16px 0 22px; }
.hero.small h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 820px; }
.grad { background: linear-gradient(90deg, var(--blue), #3a86d6, var(--blue)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
.hero-line { display: block; white-space: nowrap; }
.rotator { display: inline-block; }
.rotator.swap { animation: wordIn .5s var(--ease); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.4em); filter: blur(6px); } }
.hero p { color: #3b4468; font-size: 1.2rem; max-width: 640px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Orbit visual */
.orbit { position: relative; width: min(440px, calc(50vw - 180px)); aspect-ratio: 1; margin: 0 auto; }
.orbit .core { position: absolute; inset: 36%; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), #1b3a8a); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 60px rgba(123,184,241,.6); animation: pulse 3s ease-in-out infinite; }
.orbit .core img { display: block; width: 76%; height: auto; }
@keyframes pulse { 50% { box-shadow: 0 0 100px rgba(123,184,241,.9); transform: scale(1.04); } }
.ring { position: absolute; inset: 0; border: 1px dashed rgba(5,7,52,.22); border-radius: 50%; animation: spin 40s linear infinite; }
.ring.inner { inset: 18%; animation-duration: 28s; animation-direction: reverse; }
.ring span { position: absolute; transform: translate(-50%, -50%); } /* left/top set by main.js */
.ring span b { display: block; white-space: nowrap; font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid var(--sky); color: var(--navy); animation: spin 40s linear infinite reverse; }
.ring.inner span b { animation-duration: 28s; animation-direction: normal; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Link cards: the only clickable boxes on the site */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; margin-top: 48px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: radial-gradient(400px circle at var(--x, -100%) var(--y, -100%), rgba(123,184,241,.14), transparent 40%) #fff; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; }
.card:hover { border-color: var(--sky); box-shadow: 0 16px 40px rgba(5,7,52,.1); transform: translateY(-6px); }
.card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card .more { display: inline-block; margin-top: 16px; color: var(--blue); font-weight: 600; font-size: .9rem; transition: transform .3s var(--ease); }
.card:hover .more { transform: translateX(6px); }
.card.feature { grid-row: span 2; background: radial-gradient(500px circle at var(--x, -100%) var(--y, -100%), rgba(123,184,241,.3), transparent 45%) var(--navy); color: #fff; border-color: var(--navy); }
.card.feature h3 { font-size: 2rem; }
.card.feature p { color: #b8c6db; }
.card.feature .more { color: var(--sky); }
.soft { background: var(--bg-soft); }

/* Client logo tunnel. Base rules are a plain logo grid, used without JS or with reduced motion; .tunnel-on (set by main.js) turns on the 3D scroll. */
.tunnel { padding: 56px 0; }
.tunnel-stage { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.tunnel-title { text-align: center; }
.tunnel-title h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 620px; margin: 8px auto 0; text-wrap: balance; }
.tunnel-ring, .tunnel-prompt { display: none; }
.tunnel-plane { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 32px; list-style: none; }
.tunnel-card { display: flex; align-items: center; justify-content: center; min-height: 0; aspect-ratio: 3 / 2; padding: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tunnel-card img { display: block; flex: none; width: calc(var(--w) * .8%); max-width: 100%; height: auto; }

.tunnel-on { height: 280vh; padding: 0; }
.tunnel-on .tunnel-stage { position: sticky; top: 0; height: 100vh; height: 100svh; max-width: none; padding: 72px 20px 0; display: grid; place-items: center; overflow: hidden; perspective: 1200px; background: radial-gradient(circle at 50% 55%, rgba(123,184,241,.28), transparent 65%), #fff; }
.tunnel-on .tunnel-plane { position: absolute; inset: 0; display: block; margin: 0; transform-style: preserve-3d; pointer-events: none; }
.tunnel-on .tunnel-card { position: absolute; left: 50%; top: 50%; width: var(--cw); opacity: 0; border-color: var(--sky); box-shadow: 0 18px 40px rgba(5,7,52,.14); will-change: transform, opacity; }
.tunnel-on .tunnel-title { position: relative; z-index: 2; pointer-events: none; }
.tunnel-on .tunnel-ring { display: block; position: absolute; width: 48vmin; height: 48vmin; border: 1px solid rgba(123,184,241,.45); border-radius: 50%; }
.tunnel-on .tunnel-ring.wide { width: 76vmin; height: 76vmin; border-style: dashed; }
.tunnel-on .tunnel-prompt { display: block; position: absolute; bottom: 24px; z-index: 2; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Hairline rows (solutions) */
.rows { margin-top: 32px; border-top: 1px solid var(--line); }
.rowline { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rowline h3 { font-size: 1.15rem; }
.rowline small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; letter-spacing: 0; margin-top: 2px; }
.rowline p { color: var(--muted); }

/* Phases (services) */
.phase { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.phase + .phase { margin-top: 88px; }
.phase > div:first-child { position: sticky; top: 104px; }
.phase .num { font-size: 4.5rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
.phase h2 { margin-top: 12px; }
.phase li { list-style: none; padding: 20px 0; border-top: 1px solid var(--line); }
.phase li:last-child { border-bottom: 1px solid var(--line); }
.phase li strong { display: block; font-size: 1.1rem; letter-spacing: -.01em; }
.phase li span { color: var(--muted); }

/* Mosaic (industries) */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-flow: dense; }
.tile { border-radius: var(--radius); padding: 24px; min-height: 172px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--bg-soft); }
.tile h3 { font-size: 1.15rem; margin-bottom: 4px; }
.tile p { font-size: .92rem; color: var(--muted); }
.tile.wide { grid-column: span 2; }
.tile.navy { background: var(--navy); color: #fff; }
.tile.blue { background: var(--blue); color: #fff; }
.tile.cyan { background: #d9eafb; }
.tile.navy p, .tile.blue p { color: #f2f7fd; }
.tile.cyan p { color: var(--navy-2); }

/* Statement + principles (about) */
.mission { padding: 64px 0; text-align: center; }
.statement { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; margin-top: 12px; text-wrap: balance; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.highlights > div { border-top: 2px solid var(--sky); padding-top: 16px; }
.highlights h3 { font-size: 1.1rem; margin-bottom: 6px; }
.highlights p { color: var(--muted); }
.principles { counter-reset: p; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; margin-top: 48px; }
.principles > div { counter-increment: p; padding-left: 64px; position: relative; }
.principles > div::before { content: "0" counter(p); position: absolute; left: 0; top: -4px; font-size: 1.8rem; font-weight: 800; color: var(--sky); }
.principles h3 { font-size: 1.2rem; margin-bottom: 6px; }
.principles p { color: #b8c6db; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stats-band { padding: 36px 0; }
.stat { padding: 8px 24px; text-align: center; }
.stat b { display: block; font-size: 3rem; font-weight: 800; background: linear-gradient(90deg, var(--navy), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 500; }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; color: var(--muted); transition: all .25s; }
.tabs button:hover { border-color: var(--blue); color: var(--blue); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
[role=tabpanel]:not([hidden]) { animation: cardIn .5s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* Process timeline */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(6, 1fr); margin-top: 56px; position: relative; }
.steps::before { content: ""; position: absolute; top: 20px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--sky)); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 1.6s var(--ease); }
.steps.in { --p: 1; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-weight: 800; font-size: .9rem; }
.soft .step::before { background: var(--bg-soft); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; }

/* Dark section */
.dark { background: var(--navy); color: #fff; overflow: hidden; }
.dark .lead { color: #b8c6db; }
.dark .eyebrow { color: var(--sky); }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--navy), #123a8c 50%, var(--blue)); background-size: 200% 200%; animation: gradMove 10s ease infinite; color: #fff; text-align: center; border-radius: 24px; padding: 64px 32px; }
.cta p { color: #e3eeff; margin: 0 auto 28px; max-width: 560px; }
.cta .btn { background: #fff; color: var(--navy); }
@keyframes gradMove { 50% { background-position: 100% 100%; } }

/* FAQ */
.faq { max-width: 820px; margin-top: 40px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details[open] p { animation: cardIn .4s var(--ease); }
details p { color: var(--muted); margin-top: 10px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact > *, label { min-width: 0; }
form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px rgba(5,7,52,.07); }
label { font-size: .85rem; font-weight: 600; display: grid; gap: 6px; }
input, textarea, select { width: 100%; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27,106,184,.12); outline: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form { scroll-margin-top: 96px; }
form button { border: 0; cursor: pointer; font-family: inherit; font-size: inherit; }
#form-status { font-size: .92rem; color: var(--navy-2); background: #e8f1ff; border-radius: 10px; padding: 12px 14px; }
#form-status a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.contact-list { list-style: none; margin-top: 28px; display: grid; gap: 14px; color: var(--muted); }
.contact-list strong { color: var(--ink); display: block; }

footer { background: var(--bg-soft); color: var(--muted); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .88rem; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--navy); margin-bottom: 12px; font-size: .95rem; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a:hover { color: var(--navy); }
footer .legal { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; text-align: center; }

/* Scroll reveal: only hides content when JS is running */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(5,7,52,.1); }
  .nav ul.open { display: flex; animation: cardIn .3s var(--ease); }
  .nav ul li { width: 100%; }
  .nav ul a { display: block; padding: 12px 0; }
  .nav ul .btn { text-align: center; margin-top: 8px; }
  .hero-split, .contact, .row, footer .cols, .bento, .rowline, .phase, .principles, .highlights { grid-template-columns: 1fr; }
  .bento { grid-template-rows: none; }
  .rowline { gap: 6px; }
  .phase { gap: 24px; }
  .phase > div:first-child { position: static; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .orbit { width: min(300px, 62vw); }
  .ring span b { font-size: .68rem; padding: 4px 9px; }
  .steps::before { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .stats { gap: 8px; }
  .stat { padding: 0; }
  .stat b { font-size: 2.2rem; }
  .stat span { display: block; font-size: .8rem; line-height: 1.3; }
  .steps { grid-template-columns: 1fr 1fr; }
  .tunnel-plane { gap: 8px; grid-template-columns: 1fr 1fr; }
  .tunnel-card { padding: 10px; }
  .hero h1 { font-size: min(9vw, 2.3rem); }
  .mosaic { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .tile { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
