:root {
  --black: #000;
  --ink: #0b0b0b;
  --white: #fff;
  --muted: #b5b5b5;
  --muted-dark: #555;
  --green: #00c254;
  --green-hover: #00a849;
  --line: rgba(255, 255, 255, .25);
  --radius: 10px;
  --header-h: 76px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; letter-spacing: .04em; line-height: 1.3; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
p { margin: 0 0 1.5rem; }
.x { color: var(--green); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.4rem;
  border-radius: 6px;
  font: 500 .95rem var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-hover); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { border-color: var(--white); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--black); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #333; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px);
  transition: background .3s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.9rem; font-weight: 600; text-decoration: none; letter-spacing: -.01em; color: var(--white); }
.logo span { color: var(--green); font-weight: 700; }
.logo--dark { color: var(--ink); font-size: 1.6rem; }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a:not(.btn) { font-size: 1.05rem; text-underline-offset: 6px; }
.nav a:not(.btn):hover { color: var(--green); }
.nav .btn { padding: .45rem 1.5rem; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--white); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; padding-top: var(--header-h);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.15) 50%, rgba(0,0,0,.6)); }
.hero__content { position: relative; }
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 600; text-transform: uppercase; letter-spacing: .12em; line-height: 1.35;
  margin-bottom: 1rem;
}
.hero p { font-size: clamp(1rem, 2.2vw, 1.5rem); letter-spacing: .04em; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* Eyebrow + split layout */
.eyebrow {
  display: block; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1.5rem; color: var(--muted);
}
.eyebrow--dark { color: var(--muted-dark); }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.split__text {
  padding: clamp(3rem, 8vw, 7rem) clamp(16px, 6vw, 6rem);
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid transparent;
  position: relative;
}
.split--dark .split__text::before,
.industry__text::before {
  content: ""; position: absolute; left: clamp(8px, 3vw, 3rem); top: 20%; bottom: 20%;
  width: 1px; background: var(--line);
}
.split--dark .split__text p { color: #e6e6e6; max-width: 34ch; }
.split__media { overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.split:hover .split__media img { transform: scale(1.03); }

/* Services */
.services { background: var(--white); color: var(--ink); }
.services__head { padding: clamp(4rem, 8vw, 6rem) 0 2rem; text-align: center; max-width: 760px; }
.services__head .eyebrow { color: var(--muted-dark); }
.services .split__text p { color: #333; max-width: 42ch; }
.services .split__text .btn { align-self: flex-start; }
.split--reverse .split__text { order: 2; }

/* Numbers */
.numbers { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--ink); text-align: center; }
.numbers__title { margin-bottom: 3rem; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { padding: 2rem 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.stat__num { display: block; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; color: var(--green); line-height: 1.1; }
.stat__label { color: var(--muted); letter-spacing: .06em; }

/* Why */
.why { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--white); overflow: hidden; }
.why__inner { position: relative; display: flex; align-items: center; min-height: 600px; }
.why__card {
  position: relative; z-index: 2;
  background: var(--black); border-radius: 14px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 520px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
}
.why__card p { color: #e6e6e6; }
/* The arm enters from the photo's left edge, so it tucks behind the card and reaches out to the right */
.why__arm {
  position: absolute; z-index: 1;
  right: -2%; top: 50%;
  width: min(820px, 68%);
  transform: translateY(-50%);
  pointer-events: none;
}
.why__arm img { width: 100%; mix-blend-mode: multiply; animation: arm-float 7s ease-in-out infinite; transform-origin: 0% 40%; }
@keyframes arm-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(14px, -10px) rotate(-1.5deg); }
}
@media (prefers-reduced-motion: reduce) { .why__arm img { animation: none; } }

/* Industry */
.industry { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--black); }
.industry__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.industry__text { position: relative; padding-left: clamp(2rem, 4vw, 3.5rem); }
.industry__text::before { left: 0; }
.industry__text p { color: #e6e6e6; }

/* Client tiles: a green spotlight follows the cursor across the grid (set by script.js) */
.clients {
  --mx: -999px; --my: -999px;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.client {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  min-height: 160px; padding: 1.5rem 1rem; text-align: center;
  background: #0d0d0d; border-radius: 14px;
  overflow: hidden;
  transition: transform .3s ease;
}
.client::before { /* glowing border */
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  background: radial-gradient(260px circle at var(--x, -999px) var(--y, -999px), var(--green), rgba(255,255,255,.12) 70%);
}
.client::after { /* inner fill */
  content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 13px;
  background: radial-gradient(320px circle at var(--x, -999px) var(--y, -999px), rgba(0,194,84,.12), #0d0d0d 60%);
}
.client:hover { transform: translateY(-4px); }
.client__mark {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 600; font-size: .95rem; letter-spacing: .04em;
  transition: background .3s, border-color .3s, color .3s;
}
.client:hover .client__mark { background: var(--green); border-color: var(--green); color: var(--white); }
.client__name { font-size: 1.05rem; font-weight: 500; letter-spacing: .04em; color: #e8e8e8; }
/* Every logo is turned into the same off-white silhouette, then brightens on hover */
.client__logo {
  width: auto; max-width: 78%; height: 38px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .82;
  transition: opacity .3s, transform .3s;
}
.client__logo--icon { height: 64px; }
.client__logo--tall { height: 52px; }
.client:hover .client__logo { opacity: 1; transform: scale(1.05); }
.client.reveal:nth-child(2) { transition-delay: .08s; }
.client.reveal:nth-child(3) { transition-delay: .16s; }
.client.reveal:nth-child(4) { transition-delay: .24s; }
.client.reveal:nth-child(5) { transition-delay: .32s; }
.client.reveal:nth-child(6) { transition-delay: .40s; }

/* Contact */
.contact { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--white); color: var(--ink); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact__info > p { color: #444; }
.contact dl { margin: 2rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 1rem 2rem; }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { color: var(--green); }
.contact__form { display: grid; gap: 1.1rem; align-content: start; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; width: 100%;
  padding: .75rem .9rem; border: 1px solid #c9c9c9; border-radius: 6px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 194, 84, .18);
}
.field.invalid input, .field.invalid textarea { border-color: #d93025; }
.contact__form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.5em; font-size: .95rem; }
.form__status.error { color: #d93025; }
.form__status.ok { color: var(--green-hover); }

/* Footer */
.footer { background: var(--white); color: var(--ink); border-top: 1px solid #e5e5e5; padding: 2rem 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; font-size: .95rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: .5rem 16px 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; }

  .split, .industry__inner, .contact__inner { grid-template-columns: 1fr; }
  .split { min-height: 0; }
  .split__media { aspect-ratio: 4 / 3; }
  .split--reverse .split__text { order: 0; }
  .split--dark .split__text::before { display: none; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .industry__inner { gap: 2.5rem; }
  .industry__text { order: -1; }

  /* Services on mobile: numbered cards with the photo on top */
  .services { background: #f3f4f3; padding-bottom: 3rem; counter-reset: svc; }
  .services__head { padding: 3.5rem 0 1.5rem; text-align: left; }
  .services .split {
    counter-increment: svc;
    width: calc(100% - 32px); margin: 0 auto 1.25rem;
    background: var(--white); border-radius: 16px; overflow: hidden;
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .3);
  }
  .services .split__media { order: -1; aspect-ratio: 16 / 10; position: relative; }
  .services .split__media::after {
    content: "0" counter(svc);
    position: absolute; top: 14px; left: 14px;
    padding: .2rem .65rem; border-radius: 999px;
    background: var(--green); color: var(--white);
    font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  }
  .services .split__text { padding: 1.5rem 1.25rem 1.75rem; }
  .services h3 { font-size: 1.45rem; font-weight: 500; margin-bottom: .75rem; }
  .services .split__text p { font-size: .95rem; line-height: 1.65; margin-bottom: 1.25rem; }
  .services .split__text .btn { align-self: stretch; justify-content: center; }
  .why__inner { flex-direction: column; align-items: stretch; min-height: 0; }
  .why__arm { position: relative; right: auto; top: auto; transform: none; width: 110%; margin: -1rem 0 -2rem -5%; order: -1; }
}
@media (max-width: 480px) {
  .logo { font-size: 1.6rem; }
  .client { min-height: 120px; }
  .client__logo { height: 28px; }
  .client__logo--icon { height: 48px; }
  .client__logo--tall { height: 40px; }
  .contact dl { grid-template-columns: 1fr; gap: .25rem; }
  .contact dd { margin-bottom: .75rem; }
}
