:root {
  --blue: #0a5aa7;
  --blue-deep: #073d73;
  --navy: #061427;
  --navy-2: #0b1d36;
  --ink: #1c1c1c;
  --grey: #525252;
  --muted: #6b7280;
  --line: #e4e8ee;
  --paper: #f4f6f8;
  --white: #ffffff;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
}

h1,
h2,
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 16px;
}

.topbar a:hover {
  color: #fff;
}

.top-links,
.top-social {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-social a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.top-social svg {
  display: block;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(6, 20, 39, 0.06);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.logo img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.35s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav a:hover {
  color: var(--blue);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
}

.btn:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 90, 167, 0.28);
}

.btn:hover::after {
  left: 120%;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--navy);
  margin: auto;
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 124px);
  color: #fff;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: -4%;
  background: url("../images/hero.jpg") center/cover no-repeat;
  animation: ken 26s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 20, 39, 0.18) 0%, rgba(6, 20, 39, 0.78) 72%),
    linear-gradient(90deg, rgba(6, 20, 39, 0.55), transparent 58%);
}

.hero-shards {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(42vw, 520px);
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(135deg, transparent 46%, rgba(10, 90, 167, 0.28) 46.2% 52%, transparent 52.2%),
    linear-gradient(122deg, transparent 58%, rgba(255, 255, 255, 0.08) 58.2% 63%, transparent 63.2%),
    linear-gradient(148deg, transparent 70%, rgba(10, 90, 167, 0.18) 70.2% 76%, transparent 76.2%);
  animation: shard-drift 18s ease-in-out infinite alternate;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding: 88px 0 64px;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(48px, 7vw, 92px);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: #cfe3f7;
}

.hero p.lead {
  max-width: 58ch;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-meta div {
  background: rgba(6, 20, 39, 0.35);
  padding: 22px 18px;
}

.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

/* Sections */
section {
  padding: 96px 0;
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.sec-head h2 {
  font-size: clamp(36px, 5vw, 58px);
}

.sec-head p {
  color: var(--grey);
  font-size: 17px;
}

.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: #fff;
  padding: 36px 32px 32px;
  min-height: 180px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
}

.service-card:hover {
  background: #eef4fb;
  transform: translateY(-2px);
}

.service-card .num {
  font-family: var(--serif);
  color: var(--blue);
  font-size: 22px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--grey);
  font-size: 15px;
}

.arrow {
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  align-self: center;
  transition: transform 0.45s var(--ease);
}

.service-card:hover .arrow {
  transform: translateX(6px);
}

.why {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.why::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(10, 90, 167, 0.45), transparent 68%);
  animation: glow 8s ease-in-out infinite alternate;
}

.why .kicker,
.why .kicker::before {
  color: #8fbee8;
  background-color: transparent;
}

.why .kicker::before {
  background: #8fbee8;
}

.why .sec-head p {
  color: rgba(255, 255, 255, 0.7);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}

.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 26px 30px;
  min-height: 230px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 190, 232, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.why-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 14px 0 10px;
}

.why-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.mark {
  width: 36px;
  height: 36px;
  color: #7eb4e6;
}

.about-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  filter: grayscale(18%);
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 42%;
  height: 42%;
  background: var(--blue);
  mix-blend-mode: multiply;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}

.about-copy h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 18px;
}

.about-copy p {
  color: var(--grey);
  margin-bottom: 16px;
}

.about-copy ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.about-copy li {
  position: relative;
  padding-inline-start: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}

.about-copy li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--blue);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.vm {
  background: var(--paper);
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vm-card {
  background: #fff;
  padding: 40px 36px;
  border-top: 4px solid var(--blue);
}

.vm-card h3 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 18px;
}

.vm-card p,
.vm-card li {
  color: var(--grey);
  margin-bottom: 12px;
}

.vm-card ul {
  padding-inline-start: 18px;
}

.industries .chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.chip {
  min-height: 110px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  font-weight: 500;
  background:
    linear-gradient(135deg, transparent 70%, rgba(10, 90, 167, 0.08) 70%),
    #fff;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.chip:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(6, 20, 39, 0.08);
}

.contact {
  background:
    linear-gradient(180deg, rgba(6, 20, 39, 0.78), rgba(6, 20, 39, 0.88)),
    center/cover no-repeat;
  color: #fff;
}

.contact .sec-head p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
}

.form {
  background: #fff;
  color: var(--ink);
  padding: 36px;
}

.form h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.form > p {
  color: var(--grey);
  margin-bottom: 22px;
}

.form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--paper);
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--blue);
  background: #fff;
}

.people {
  display: grid;
  gap: 16px;
}

.person,
.reach {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.person h4,
.reach h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.person .role,
.reach p {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 12px;
}

.person a,
.reach a {
  display: block;
  color: #c5ddf4;
}

footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 28px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-grid .logo img {
  height: 42px;
  margin-bottom: 16px;
}

.foot-grid h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.foot-grid ul {
  list-style: none;
}

.foot-grid li {
  margin-bottom: 8px;
}

.foot-grid a:hover {
  color: #fff;
}

.m2-signature {
  --m2-sig-text: #ffffff;
  --m2-sig-accent: #4d9adf;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 0;
  border-top: none;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-align: center;
}

.m2-signature__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.m2-signature__logo:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.m2-signature__logo img {
  height: 18px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
}

.m2-signature__mark {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--m2-sig-accent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--m2-sig-accent) 55%, transparent));
  animation: m2-sig-pulse 3.4s ease-in-out infinite;
}

.m2-signature__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes m2-sig-pulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.12) rotate(45deg);
    opacity: 1;
  }
}

.m2-signature__tag,
.m2-signature__tag strong {
  color: var(--m2-sig-text);
  font-size: 13px;
}

.m2-signature__year {
  color: color-mix(in srgb, var(--m2-sig-text) 78%, transparent);
  font-size: 13px;
}

.mobile-nav {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-hero {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1.05s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

@keyframes shard-drift {
  from { transform: translate3d(0, 0, 0); opacity: 0.85; }
  to { transform: translate3d(-18px, 12px, 0); opacity: 1; }
}

@keyframes glow {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-hero {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav,
  .header-actions .btn {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .hero-meta,
  .service-grid,
  .why-grid,
  .sec-head,
  .about-split,
  .vm-grid,
  .industries .chip-grid,
  .contact-grid,
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-meta,
  .why-grid,
  .industries .chip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-visual img {
    height: 360px;
  }

  .mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 24px 22px;
    background: #fff;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .topbar .wrap {
    justify-content: center;
  }

  .top-social {
    display: none;
  }

  section {
    padding: 72px 0;
  }

  .hero-meta,
  .service-grid,
  .why-grid,
  .sec-head,
  .about-split,
  .vm-grid,
  .industries .chip-grid,
  .contact-grid,
  .foot-grid,
  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .form {
    padding: 22px;
  }

  .m2-signature {
    gap: 8px 10px;
  }
}
