@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0b1736;
  --navy-2: #13224a;
  --ink: #0f172a;
  --text: #3b4658;
  --muted: #6b7587;
  --line: #dfe3ea;
  --line-dark: rgba(255, 255, 255, .16);
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --blue: #1f4fd1;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -.022em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: rgba(255, 255, 255, .74); }
.section.dark h2, .section.dark h3 { color: #fff; }

.label {
  display: block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dark .label, .hero .label { color: #8fb0ff; }
.h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.035em; line-height: 1.04; }
.h2 { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--blue);
  transition: background .25s, border-color .25s, color .25s;
}
.btn:hover { background: #1740ad; border-color: #1740ad; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .5); }
.btn.ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: transparent; color: #fff; }
.btn .arrow, .link .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .link:hover .arrow, a:hover > .link .arrow { transform: translateX(4px); }
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
}
.dark .link { color: #fff; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height .3s var(--ease); }
.site-header.scrolled .wrap { height: 64px; }
.brand-logo { height: 30px; width: auto; max-width: none; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; color: var(--ink); }
.site-nav a:not(.btn) { position: relative; padding: 6px 0; }
.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav .btn { min-height: 42px; padding: 0 20px; font-size: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .3s, opacity .3s; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
main { padding-top: 76px; }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .8); }
.hero-media { position: absolute; inset: -8% 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 23, 54, .92) 0%, rgba(11, 23, 54, .72) 45%, rgba(11, 23, 54, .25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(64px, 9vw, 110px); }
.hero h1 { max-width: 880px; color: #fff; }
.hero .lead { max-width: 600px; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-foot { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line-dark); }
.hero-foot li { padding: 22px 24px 0 0; color: #fff; font-size: 15px; font-weight: 500; }
.hero-foot li span { display: block; margin-bottom: 4px; color: rgba(255, 255, 255, .5); font-size: 13px; font-weight: 400; }

.page-hero { padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 7vw, 88px); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero .h1 { max-width: 900px; }
.page-hero .lead { max-width: 680px; margin-top: 24px; }
.crumbs { display: flex; gap: 10px; margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.crumbs a:hover { color: var(--blue); }

/* Split layouts */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.split .body > * + * { margin-top: 22px; }
.split.center { align-items: center; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { max-width: 700px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 36px 30px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.service::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service:hover::before { transform: scaleX(1); }
.service small { color: var(--muted); font-size: 13px; font-weight: 600; }
.service h3 { margin: 56px 0 14px; font-size: 21px; }
.service p { font-size: 15px; }
.service .link { margin-top: auto; padding-top: 28px; }

/* Approach */
.figure { position: relative; overflow: hidden; background: var(--bg-alt); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure.tall { aspect-ratio: 4 / 5; }
.steps { position: relative; margin-top: 44px; }
.steps::before, .steps .rail { content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps .rail { background: var(--blue); transform: scaleY(var(--fill, 0)); transform-origin: top; }
.steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 24px; padding: 0 0 34px; }
.steps li:last-child { padding-bottom: 0; }
.steps b { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; background: #fff; border: 2px solid var(--line); color: var(--ink); font-size: 14px; transition: border-color .4s, background .4s, color .4s; }
.steps li.on b { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps h3 { margin: 8px 0 6px; font-size: 19px; }
.steps p { font-size: 15px; }

/* Band */
.band { position: relative; display: flex; align-items: center; min-height: 520px; overflow: hidden; color: #fff; }
.band .band-media { position: absolute; inset: -15% 0; }
.band .band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ''; position: absolute; inset: 0; background: rgba(11, 23, 54, .72); }
.band .wrap { position: relative; z-index: 1; }
.band blockquote { max-width: 900px; margin: 0; color: #fff; font-size: clamp(30px, 4.2vw, 54px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; }
.band cite { display: block; margin-top: 28px; color: rgba(255, 255, 255, .66); font-size: 15px; font-style: normal; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stats div { padding: 32px 24px 0 0; }
.stats strong { display: block; color: #fff; font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stats span { display: block; margin-top: 12px; font-size: 15px; }

/* Live site previews */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.project { display: flex; flex-direction: column; }
.browser { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35); }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #eef1f5; border-bottom: 1px solid var(--line); }
.browser-bar i { display: flex; gap: 6px; }
.browser-bar i::before, .browser-bar i::after, .browser-bar i span { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #c9cfd9; }
.browser-bar em { flex: 1; overflow: hidden; padding: 4px 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.browser-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.browser-view iframe { position: absolute; top: 0; left: 0; width: 1440px; height: calc(100% / var(--s, .4)); border: 0; transform: scale(var(--s, .4)); transform-origin: 0 0; }
.browser-view.tall { aspect-ratio: 16 / 11; }
.browser-view .shield { position: absolute; inset: 0; z-index: 1; }
.browser-view .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.project-meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 26px; }
.project-meta small { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.project-meta h3 { margin: 8px 0 8px; font-size: 24px; }
.project-meta p { max-width: 480px; font-size: 15px; }
.project-meta .link { flex-shrink: 0; align-self: start; margin-top: 30px; }
.more-work { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.more-work a { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.more-work a:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
.more-work small { color: var(--muted); font-size: 13px; }
.more-work h3 { font-size: 19px; transition: color .25s; }
.more-work a:hover h3 { color: var(--blue); }
.more-work .link { grid-row: 1 / 3; grid-column: 2; align-self: center; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.industries li { display: flex; justify-content: space-between; align-items: center; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 18px; font-weight: 500; }
.industries li:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.industries li span { color: var(--muted); font-size: 13px; font-weight: 500; }

/* Insight cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: box-shadow .35s, transform .35s var(--ease); }
.card:hover { box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .25); transform: translateY(-4px); }
.card .figure { aspect-ratio: 3 / 2; }
.card .figure img { transition: transform .8s var(--ease); }
.card:hover .figure img { transform: scale(1.04); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 26px 26px 28px; }
.card small { color: var(--muted); font-size: 13px; }
.card h3 { margin: 10px 0 12px; font-size: 20px; line-height: 1.28; }
.card p { font-size: 15px; }
.card .link { margin-top: auto; padding-top: 24px; }
.cards.feature { grid-template-columns: 2fr 1fr 1fr; }
.cards.feature .card:first-child h3 { font-size: 26px; }

/* CTA */
.cta { position: relative; overflow: hidden; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta .h2 { max-width: 720px; }
.cta p { margin-top: 18px; max-width: 560px; }

/* Case studies */
.case { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.case:last-child { border-bottom: 0; }
.case-side { position: sticky; top: 110px; align-self: start; }
.case-side h2 { margin-bottom: 18px; }
.case-side .lead { color: var(--text); }
.facts { margin-top: 32px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts li span { color: var(--muted); }
.facts li b { color: var(--ink); font-weight: 500; text-align: right; }
.case-main > * + * { margin-top: 22px; }
.case-main .browser { margin-bottom: 36px; }
.case-main h3 { margin-top: 36px; font-size: 20px; }
.case-panel { display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 36px; background: var(--navy); color: #fff; }
.case-panel b { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: .08em; }
.case-panel.slate { background: #24344d; }

/* Articles */
.article-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.article-figure { padding-top: clamp(40px, 5vw, 64px); }
.article-figure .figure { aspect-ratio: 21 / 9; }
.article { max-width: 740px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) 0; font-size: 18px; line-height: 1.75; color: var(--text); }
.article p + p { margin-top: 22px; }
.article h2 { margin: 52px 0 18px; font-size: 28px; }
.article .pull { margin: 44px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--blue); color: var(--ink); font-size: 26px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }

/* Footer */
.site-footer { background: #07102a; color: rgba(255, 255, 255, .62); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 80px 0 64px; }
.footer-top p { max-width: 340px; margin-top: 22px; }
.footer-top h4 { margin-bottom: 18px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.footer-top li + li { margin-top: 10px; }
.footer-top a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 32px; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-bottom nav { display: flex; gap: 24px; }

/* Scroll motion */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal='left'] { transform: translate3d(-48px, 0, 0); }
.js [data-reveal='right'] { transform: translate3d(48px, 0, 0); }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal='scale'] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-wipe] { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.js [data-wipe] img { transform: scale(1.18); transition: transform 1.6s var(--ease); }
.js [data-wipe].in { clip-path: inset(0 0 0 0); }
.js [data-wipe].in img { transform: scale(1); }
.js [data-lines] .ln { display: block; overflow: hidden; }
.js [data-lines] .ln > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 100ms); }
.js [data-lines].in .ln > span { transform: none; }
.js .rule { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.js .rule.in { transform: scaleX(1); }
[data-parallax] { will-change: transform; }

/* Responsive */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 260px; }
  .projects { grid-template-columns: 1fr; }
  .cards.feature { grid-template-columns: 1fr 1fr; }
  .cards.feature .card:first-child { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15, 23, 42, .08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .scrolled .site-nav { top: 64px; }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { justify-content: center; margin-top: 20px; min-height: 50px; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .case { grid-template-columns: 1fr; }
  .case-side { position: static; }
  .hero-foot, .stats { grid-template-columns: 1fr 1fr; }
  .industries { grid-template-columns: 1fr 1fr; }
  .industries li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .industries li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .cards.feature { grid-template-columns: 1fr; }
  .section-head, .cta .wrap { flex-direction: column; align-items: flex-start; }
  .figure.tall { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .site-header .wrap { height: 64px; }
  .site-nav, .scrolled .site-nav { top: 64px; }
  main { padding-top: 64px; }
  .brand-logo { height: 24px; }
  .services, .more-work, .industries { grid-template-columns: 1fr; }
  .more-work a:nth-child(2n), .industries li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .hero-foot li { font-size: 14px; }
  .project-meta { flex-direction: column; gap: 0; }
  .project-meta .link { margin-top: 16px; }
  .footer-top { grid-template-columns: 1fr; padding: 60px 0 44px; }
  .footer-bottom { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .site-nav .btn { width: auto; }
  .article { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-wipe], .js [data-wipe] img, .js [data-lines] .ln > span, .js .rule { opacity: 1; transform: none; clip-path: none; transition: none; }
  [data-parallax] { transform: none !important; }
}

/* Featured partner project */
.project.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); margin-bottom: clamp(8px, 1vw, 16px); }
.project.featured .project-meta { flex-direction: column; gap: 0; margin-top: 0; }
.project.featured .project-meta h3 { font-size: clamp(26px, 2.6vw, 34px); }
.project.featured .project-meta .link { margin-top: 24px; }
@media (max-width: 1080px) { .project.featured { grid-template-columns: 1fr; } .project.featured .project-meta { margin-top: 26px; } }
