/* Site chrome shared by every page: top menu, buttons, "Let's talk" contact footer and scroll-reveal motion.
   Colours and fonts are scoped to .nav/.contact/.next so these pieces look the same on every page. */
.nav, .contact, .next {
  --navy: #0e2a55; --blue: #1f7ae0; --ink: #1b2b44; --line: #dde6f1; --tint: #eaf2fc;
  --expo: cubic-bezier(0.16, 1, 0.3, 1); --pop: cubic-bezier(0.45, 1.45, 0.8, 1);
  --barlow: "Barlow", system-ui, sans-serif; --dm: "DM Sans", system-ui, sans-serif;
  --pad: clamp(16px, 8.3334vw, 120px);
  font-family: var(--dm);
  font-variation-settings: "opsz" 14;
}
.nav .wrap, .contact .wrap, .next .wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.nav button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.contact .kicker, .next .kicker { font: 600 14px/normal var(--barlow); letter-spacing: 3.08px; white-space: pre-wrap; }
.next .kicker { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font: 500 16px/normal var(--dm);
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn img { width: 18px; height: 18px; transition: translate .2s; }
.btn:hover img { translate: 3px 0; }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--blue); }
.btn--line { border: 1.5px solid var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--tint); }
.btn--line-white { border: 1.5px solid #fff; color: #fff; }
.btn--line-white:hover { background: #fff; color: var(--navy); }
/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 10; }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 24px;
}
.logo { font: 700 20px/normal var(--barlow); letter-spacing: 4.8px; color: var(--navy); white-space: nowrap; }
.nav-links { display: flex; gap: 36px; align-items: center; font-weight: 500; font-size: 15px; color: var(--ink); white-space: nowrap; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.menu-btn { display: none; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; overflow: hidden; }
.contact .wrap { position: relative; display: flex; flex-direction: column; gap: 96px; padding-block: 120px 56px; }
.contact .stripe { position: absolute; top: 0; width: 230px; height: 420px; }
.stripe--1 { right: 130px; }
.stripe--2 { right: 60px; }
.stripe--3 { right: -10px; }
.cta { position: relative; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.cta .kicker { color: #7db8f7; }
.cta h2 { font: 700 clamp(40px, 4.4445vw, 64px)/1.05 var(--barlow); letter-spacing: -0.005em; max-width: 760px; }
.cta-text { font-size: 19px; line-height: 1.6; color: #c9d8ee; max-width: 620px; }
.footer {
  position: relative;
  border-top: 1px solid #2a4a7a;
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  line-height: normal;
}
.footer-tag { font: 500 13px var(--barlow); letter-spacing: 2.6px; color: #9fb5d6; }
.footer-sign { font: 700 14px var(--barlow); letter-spacing: 2.8px; white-space: pre; }

/* ---------- Motion (Figma timeline; each group plays when scrolled into view) ---------- */
@keyframes rv-fade { from { opacity: 0; } }
@keyframes rv-move { from { translate: var(--x) var(--y); rotate: var(--r); scale: var(--s); } }
@keyframes rv-word { from { opacity: 0; translate: 0 36px; filter: blur(10px); } }
@keyframes pulse   { 50% { scale: 1.1; } }
@keyframes float   { 50% { translate: 0 var(--fy); rotate: var(--fr); } }

@media (prefers-reduced-motion: no-preference) {
  .rv {
    --x: 0px; --y: 28px; --r: 0deg; --s: 1;
    --d: 0s; --od: .52s; --md: .65s; --ease: var(--expo);
    animation:
      rv-fade var(--od) ease-out var(--d) both,
      rv-move var(--md) var(--ease) var(--d) both;
  }
  .rv.pop  { --y: 0px; --s: .3; --od: .25s; --md: .5s; --ease: var(--pop); }
  .rv.solo { animation-name: none, rv-move; }
  .rv.play, .rv.play-glyph {
    --y: 0px; --s: .4; --d: .6s; --md: .5s; --ease: var(--pop);
    animation:
      rv-move var(--md) var(--ease) var(--d) both,
      pulse .8s ease-in-out 1.1s 3;
  }
  .rv.floats {
    --fy: -10px; --fr: 0deg; --fd: 2s; --fs: 0s;
    animation:
      rv-fade var(--od) ease-out var(--d) both,
      rv-move var(--md) var(--ease) var(--d) both,
      float var(--fd) ease-in-out var(--fs) infinite;
  }
  .word { animation: rv-word .277s cubic-bezier(0, 0, .58, 1) var(--d) both; }

  .js .grp:not(.in) .rv,
  .js .grp:not(.in) .word { animation-play-state: paused; }

  /* Coming back to a page (e.g. after closing a video) shows it as it was, without replaying the entrance. */
  .returning .rv,
  .returning .word { animation: none; }
}

/* ---------- Next case study ---------- */
.next { border-top: 1px solid var(--line); }
.next .wrap { padding-block: 56px; }
.next-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.next-text { display: flex; flex-direction: column; gap: 10px; }
.next-title { font: 700 clamp(28px, 2.7778vw, 40px)/1.1 var(--barlow); color: var(--navy); transition: color .2s; }
.next-link:hover .next-title { color: var(--blue); }
.next-arrow {
  width: 64px; height: 64px; flex: none; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center;
  transition: background-color .2s, translate .3s var(--expo);
}
.next-arrow img { width: 18px; height: 18px; }
.next-link:hover .next-arrow { background: var(--blue); translate: 4px 0; }

/* ---------- Current page in the menu ---------- */
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a[aria-current="page"] { position: relative; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--blue); border-radius: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 16px;
  }
  .nav-links a { padding: 10px 0; }
  .nav.open .nav-links { display: flex; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
    margin-left: auto;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    display: block; width: 16px; height: 1.5px; background: var(--navy); position: relative; content: "";
  }
  .menu-btn span::before { position: absolute; top: -5px; }
  .menu-btn span::after  { position: absolute; top: 5px; }
}
@media (max-width: 760px) {
  .logo { font-size: 16px; letter-spacing: 3.6px; }
  .nav .wrap { padding-block: 16px; }
  .contact .wrap { padding-block: 150px 40px; gap: 64px; }
  .contact .stripe { width: 88px; height: 160px; }
  .stripe--1 { right: 50px; }
  .stripe--2 { right: 23px; }
  .stripe--3 { right: -4px; }
  .cta-text { font-size: 17px; }
  .contact .kicker, .next .kicker { font-size: 12px; letter-spacing: 2.4px; }
  .next .wrap { padding-block: 40px; }
  .next-arrow { width: 52px; height: 52px; }

  .nav-links a[aria-current="page"]::after { display: none; }
}
@media (max-width: 420px) {
  .logo { font-size: 14px; letter-spacing: 2.6px; }
}

