:root {
  --ink: #1a2b3c;
  --ink-soft: #4b5b6b;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --line: #e1e7ee;
  --blue-1: #55bfff;
  --blue-2: #0a64e8;
  --blue-3: #021f7a;
  --grad: linear-gradient(135deg, var(--blue-1), var(--blue-2) 55%, var(--blue-3));
  --display: "Anton", "Impact", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }

h1, h2, h3 { margin: 0; font-weight: 400; }
h2 {
  text-wrap: balance;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: .005em;
}
h3 { font-family: var(--body); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 20px;
}
.eyebrow--light { color: var(--blue-1); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 58ch; margin-top: 24px; }
.lead--light { color: #b8c6d6; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }


/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--ink);
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); background: var(--blue-2); border-color: var(--blue-2); box-shadow: 0 10px 30px -10px rgba(10,100,232,.6); outline: none; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); border-color: var(--ink); box-shadow: none; color: #fff; }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--blue-1); border-color: var(--blue-1); color: var(--ink); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease), background .3s, transform .4s var(--ease);
}
.nav.is-scrolled { padding-block: 10px; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { width: 130px; transition: width .3s var(--ease); }
.nav.is-scrolled .nav__logo img { width: 104px; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.nav__links a:not(.btn) { text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; display: flex; align-items: center; overflow: hidden; padding: clamp(140px, 14vw, 180px) 0 clamp(20px, 3vw, 40px); }
.hero__glow { position: absolute; right: -10%; top: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(85,191,255,.35), rgba(10,100,232,.12) 45%, transparent 70%); filter: blur(20px); }
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(3.4rem, 11.5vw, 10rem); line-height: .95; letter-spacing: .005em;
  margin-bottom: 32px;
}
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.line:nth-child(2) > span { animation-delay: .15s; }
@keyframes rise { to { transform: none; } }
.hero__lede { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 52ch; color: var(--ink-soft); margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }


/* Intro */
.intro { padding-block: clamp(40px, 5vw, 70px) clamp(90px, 14vw, 180px); }
.intro__text { font-family: var(--body); text-transform: none; font-weight: 600; letter-spacing: -.025em; font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.2; max-width: 22em; }
.intro__text .w { opacity: .15; transition: opacity .3s linear; }
.intro__text .w.on { opacity: 1; }
.intro__text b { font-weight: 800; }

.aside { color: #aab4bf; font-size: 1rem; font-style: italic; margin-top: 14px; }

/* Section head */
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }

/* Services */
.services { padding-bottom: clamp(40px, 5vw, 70px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 34px 30px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(2,31,122,.5);
}
.card h3 { margin-bottom: 14px; }
.card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 22px; }
.card ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 500; }
.card li { padding: 3px 0; }
.card li::before { content: "→ "; color: var(--blue-2); }
.card--cta { background: var(--ink); border-color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.card--cta, .card--cta p { color: #fff; }
.card--cta p { opacity: .8; }
.card--cta .btn { margin-top: 4px; }

/* Approach: pinned scroll section */
.approach { height: 400vh; position: relative; background: var(--bg-alt); }
.approach__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: flex-start; padding-top: clamp(96px, 13vh, 130px); overflow: hidden; }
.approach__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.approach h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.approach h2 br { display: none; }
.approach__bar { height: 4px; background: var(--line); border-radius: 2px; margin: 40px 0 16px; max-width: 320px; overflow: hidden; }
.approach__bar span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.approach__count { color: var(--ink-soft); font-size: .9rem; letter-spacing: .1em; }
.approach__count b { font-family: var(--display); font-size: 1.6rem; color: var(--ink); font-weight: 400; }
.approach__right { position: relative; min-height: 280px; }
.step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step.is-past { transform: translateY(-40px); }
.step h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; margin-bottom: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 44ch; }

/* Why */
.why { padding-block: clamp(90px, 12vw, 160px); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.why__item { padding: 34px 26px 10px 0; position: relative; }
.why__item + .why__item { padding-left: 26px; border-left: 1px solid var(--line); }
.why__item::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 3px; background: var(--grad); transition: width .9s var(--ease) .2s; }
.why__item.in::before { width: 100%; }
.why__item h3 { margin-bottom: 12px; }
.why__item p { color: var(--ink-soft); font-size: .96rem; }

/* Sectors */
.sectors { background: var(--ink); color: #fff; padding-block: clamp(90px, 12vw, 160px); }
.sectors .lead { color: #b8c6d6; }
.sectors .section-head { margin-bottom: 0; }
.sectors .eyebrow { color: var(--blue-1); }

/* FAQ */
.faq { padding-block: clamp(90px, 12vw, 160px); }
.faq__list { max-width: 860px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 26px 0; font-size: 1.15rem; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 1.8rem; line-height: 1; color: var(--blue-2); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 26px; color: var(--ink-soft); max-width: 62ch; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--grad); background: linear-gradient(135deg, #0a1f44, var(--blue-3) 60%, #0a3fa8); color: #fff; padding-block: clamp(100px, 14vw, 200px); }
.contact__bg { position: absolute; right: -3vw; top: 50%; margin-top: -22vw; font-family: var(--display); font-size: clamp(10rem, 26vw, 26rem); line-height: .85; color: rgba(255,255,255,.05); text-align: right; pointer-events: none; user-select: none; }
.contact__inner { position: relative; }
.contact__mail { display: inline-flex; align-items: center; gap: 16px; margin-top: 44px; font-family: var(--display); font-size: clamp(1.6rem, 5vw, 3.6rem); text-decoration: none; letter-spacing: .01em; border-bottom: 3px solid var(--blue-1); padding-bottom: 6px; transition: gap .3s var(--ease), color .3s; word-break: break-word; }
.contact__mail:hover { gap: 28px; color: var(--blue-1); }

/* Footer */
.footer { padding-block: 48px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; justify-content: space-between; }
.footer p { color: var(--ink-soft); font-size: .95rem; }
.footer nav { display: flex; gap: 24px; font-size: .92rem; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--blue-2); }
.footer__copy { width: 100%; font-size: .82rem; color: var(--ink-soft); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .section-head h2 br, .approach h2 br, .contact__inner h2 br { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .why__item:nth-child(n+3) { margin-top: 20px; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav__links a:not(.btn) { display: none; }
  .cards, .why__grid { grid-template-columns: 1fr; }
  .why__item, .why__item + .why__item { padding-left: 0; border-left: 0; }
  .why__item + .why__item { border-top: 1px solid var(--line); margin-top: 16px; }
}

/* Approach: no pinning on small or short screens, just stack the four steps */
@media (max-width: 960px), (max-height: 639px) {
  .approach { height: auto; padding-block: clamp(50px, 8vw, 80px); }
  .approach__pin { position: static; height: auto; padding: 0; display: block; overflow: visible; }
  .approach__grid { grid-template-columns: 1fr; gap: 36px; }
  .approach__bar, .approach__count { display: none; }
  .approach__right { display: grid; gap: 32px; min-height: 0; }
  .step { position: static; opacity: 1; transform: none; pointer-events: auto; padding-top: 28px; border-top: 1px solid var(--line); }
  .step h3 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .line > span { opacity: 1; transform: none; animation: none; transition: none; }
  .intro__text .w { opacity: 1; }
  .approach { height: auto; }
  .approach__pin { position: static; height: auto; padding-block: 80px; }
  .approach__bar, .approach__count { display: none; }
  .approach__right { display: grid; gap: 40px; min-height: 0; }
  .step { position: static; opacity: 1; transform: none; }
}
