/* ===== Design tokens ===== */
:root {
  --blue: #1f6fe0;
  --blue-dark: #0f4bb0;
  --blue-soft: #e8f0ff;
  --ink: #0c1322;
  --ink-2: #2a3447;
  --muted: #5b6678;
  --line: #e7eaf0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(15, 30, 60, .25);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -10px rgba(31,111,224,.7); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--full { width: 100%; }

/* ===== Eyebrow ===== */
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px;
  font-weight: 700; color: rgba(255,255,255,.7); margin: 0 0 18px;
}
.eyebrow--dark { color: var(--blue); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.nav.scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 30px; width: auto; transition: filter .3s ease; }
/* logo is dark-grey; invert to white over the dark hero, restore when scrolled */
.nav:not(.scrolled) .nav__logo img { filter: brightness(0) invert(1); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 500; font-size: 15px; color: rgba(255,255,255,.92); transition: color .2s ease; }
.nav__links a:hover { color: #fff; }
.nav.scrolled .nav__links a { color: var(--ink-2); }
.nav.scrolled .nav__links a:hover { color: var(--blue); }
.nav__cta {
  background: var(--blue); color: #fff !important; padding: 9px 20px; border-radius: 999px;
  box-shadow: 0 10px 22px -10px rgba(31,111,224,.8);
}
.nav__cta:hover { background: var(--blue-dark); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav.scrolled .nav__toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero { position: relative; padding: 170px 0 90px; overflow: hidden; color: #fff; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(56,130,255,.55), transparent 60%),
    radial-gradient(800px 600px at 90% 20%, rgba(120,80,255,.45), transparent 55%),
    radial-gradient(700px 700px at 70% 100%, rgba(20,90,220,.5), transparent 60%),
    linear-gradient(160deg, #0a1733 0%, #0c1f4a 55%, #0a1733 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.hero__inner { position: relative; max-width: 880px; }
.hero__title { font-size: clamp(40px, 6.5vw, 74px); font-weight: 700; }
.grad {
  background: linear-gradient(100deg, #6fb1ff, #b79bff 60%, #6fb1ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin: 26px 0 0; font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.82); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: 'Space Grotesk'; font-size: 32px; font-weight: 700; }
.hero__stats span { font-size: 14px; color: rgba(255,255,255,.65); }

/* ===== Marquee ===== */
.marquee { background: var(--ink); overflow: hidden; padding: 18px 0; }
.marquee__track {
  display: flex; gap: 26px; white-space: nowrap; width: max-content;
  animation: scroll 28s linear infinite; color: rgba(255,255,255,.55);
  font-family: 'Space Grotesk'; font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .05em;
}
.marquee__track span { opacity: .8; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 0 52px; }
.section__head h2 { font-size: clamp(28px, 4vw, 42px); }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* ===== Grids ===== */
.grid { display: grid; gap: 22px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--approach { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid--work { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Work */
.work {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.work img { max-width: 78%; max-height: 70%; object-fit: contain; transition: transform .3s ease; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work:hover img { transform: scale(1.05); }
.work__meta {
  position: absolute; inset: auto 0 0 0; padding: 16px;
  background: linear-gradient(transparent, rgba(8,16,34,.88)); color: #fff;
  display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity .25s ease;
}
.work:hover .work__meta { opacity: 1; }
.work__meta strong { font-size: 15px; }
.work__meta span { font-size: 12.5px; color: rgba(255,255,255,.7); }

/* Approach values */
.value { padding: 30px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.value__num { font-family: 'Space Grotesk'; font-weight: 700; font-size: 15px; color: var(--blue); }
.value h3 { font-size: 23px; margin: 14px 0 10px; }
.value p { color: var(--muted); }

/* ===== Band ===== */
.band { background: linear-gradient(150deg, #0c1f4a, #0a1733); color: #fff; padding: 86px 0; }
.band__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.band__text h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.band__text p { color: rgba(255,255,255,.78); margin-bottom: 28px; max-width: 520px; }
.band__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.band__stats div { padding: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.band__stats strong { display: block; font-family: 'Space Grotesk'; font-size: 30px; }
.band__stats span { font-size: 14px; color: rgba(255,255,255,.65); }

/* ===== Contact ===== */
.section--contact { background: var(--bg-alt); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__intro h2 { font-size: clamp(28px, 4vw, 40px); }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; flex-direction: column; }
.contact__list span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contact__list a { color: var(--blue); font-weight: 600; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,111,224,.12);
}
.field textarea { resize: vertical; }
.contact__note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ===== Map ===== */
.map { position: relative; line-height: 0; }
.map iframe { width: 100%; height: 440px; border: 0; display: block; }
.map__link {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 22px -8px rgba(15,30,60,.4);
  line-height: 1.2;
}
.map__link:hover { color: var(--blue); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #fff; padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__word { font-family: 'Space Grotesk'; font-weight: 700; font-size: 30px; }
.footer__word::after { content: ""; }
.footer__tag { display: block; letter-spacing: .35em; font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }
.footer__brand p { margin-top: 16px; color: rgba(255,255,255,.6); max-width: 320px; font-size: 14.5px; }
.footer__addr { margin-top: 10px !important; font-style: normal; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.footer__nav a { color: rgba(255,255,255,.72); font-size: 15px; }
.footer__nav a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--work { grid-template-columns: repeat(2, 1fr); }
  .grid--approach { grid-template-columns: 1fr; }
  .band__inner, .contact__inner { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 6px;
    background: #fff; padding: 90px 24px 30px; transform: translateY(-110%);
    transition: transform .35s ease; box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { color: var(--ink-2) !important; font-size: 18px; padding: 8px 0; }
  .nav__cta { align-self: flex-start; }
  .nav__toggle { display: flex; }
}
@media (max-width: 560px) {
  .grid--services, .grid--work { grid-template-columns: 1fr; }
  .band__stats { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .hero { padding-top: 140px; }
}
