/* ============================================================
   Irreductible — Global styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours */
  --dark:        #1e1e1e;   /* page background        */
  --dark-2:      #242424;   /* raised surfaces        */
  --green:       #33d991;   /* brand green (logo)     */
  --green-rgb:   51, 217, 145;
  --green-hover: #4fe3a3;
  --cream:       #f3efd9;   /* vinyl centre           */
  --blue:        #166aff;   /* paper planes + button  */
  --blue-dark:   #0b57e0;
  --white:       #ffffff;
  --grey:        #b3b3b3;   /* muted text             */
  --line:        rgba(255, 255, 255, 0.14);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: 32px;
  --header-h: 104px;
  /* Home-indicator / notch insets, 0 on browsers without safe areas */
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
  background-color: var(--dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

/* Long single words (section titles) must never punch out of their box */
h1, h2, h3, p { overflow-wrap: break-word; }

/* Anchor targets clear the sticky header (+ its border and a little air) */
section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--dark);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

/* ----- Logo (header) ----- */
.logo {
  display: inline-flex;
  align-items: center;
}
.logo__img {
  height: 34px;
  width: auto;
}

/* ----- Desktop nav ----- */
.nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  position: relative;
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  transition: color 0.2s var(--ease);
}
.nav__link:not(.nav__link--cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:not(.nav__link--cta):hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover { color: var(--green); }

/* Contact-us CTA with square + green dot */
.nav__link--cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav__cta-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--green);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease);
}
.nav__cta-icon::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
}
.nav__link--cta:hover .nav__cta-icon {
  background: rgba(90, 214, 140, 0.12);
}

/* ----- Language switcher ----- */
.header__actions {
  display: flex;
  align-items: center;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.language-switcher__item {
  position: relative;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.language-switcher__item + .language-switcher__item::before {
  content: "/";
  position: absolute;
  right: calc(100% + 5px);
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}
.language-switcher__item:hover,
.language-switcher__item.is-active {
  color: var(--white);
}
.language-switcher__item.is-active {
  font-weight: 700;
}
.nav__language {
  display: flex;
  align-items: center;
}
.language-switcher--header .language-switcher__item {
  padding-block: 10px;
  font-size: 12px;
}

/* ----- Mobile toggle (hamburger) ----- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----- Mobile nav panel ----- */
.mobile-nav {
  display: none;
  overflow: hidden;
  max-height: 0;
  background: var(--dark);
  border-bottom: 1px solid var(--line);
  transition: max-height 0.4s var(--ease);
}
/* Generous cap plus internal scrolling: a fixed 400px would clip the list if a
   link is added or the user bumps their font size. */
.mobile-nav.is-open {
  max-height: 640px;   /* fallback: svh is unsupported before Safari 15.4 */
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) 28px;
}
.mobile-nav__link {
  display: block;
  padding: 16px 0;
  font-size: 22px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__link--cta { color: var(--green); font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  /* svh ignores the mobile browser chrome, so the hero never overflows the
     visible area while the toolbar is expanded. */
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(51, 217, 145, 0.045), transparent 42%),
    #181818;
  isolation: isolate;
}
.hero__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* One-shot "Nucleus" concept: each new point reveals a smaller point inside
   it until the irreducible brand mark remains and resolves into the logo. */
.hero-nucleus {
  position: relative;
  display: block;
  width: min(100%, 1180px);
  aspect-ratio: 16 / 9;
}

.hero-nucleus__field,
.hero-nucleus__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.hero-nucleus__field {
  z-index: 2;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.hero-nucleus__layer {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: var(--diameter);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: var(--color);
  transform: translate3d(-50%, -50%, 0) scale(0.08);
  backface-visibility: hidden;
}
.hero-nucleus__layer--one {
  --diameter: clamp(300px, 58vmin, 580px);
  --color: var(--green);
  --delay: 0s;
}
.hero-nucleus__layer--two {
  --diameter: clamp(214px, 41vmin, 410px);
  --color: #181818;
  --delay: 0.34s;
}
.hero-nucleus__layer--three {
  --diameter: clamp(150px, 28vmin, 280px);
  --color: var(--green);
  --delay: 0.68s;
}
.hero-nucleus__layer--four {
  --diameter: clamp(102px, 19vmin, 190px);
  --color: #181818;
  --delay: 1.02s;
}
.hero-nucleus__layer--five {
  --diameter: clamp(68px, 12vmin, 120px);
  --color: var(--green);
  --delay: 1.36s;
}
.hero-nucleus__layer--six {
  --diameter: clamp(38px, 6.8vmin, 68px);
  --color: var(--cream);
  --delay: 1.7s;
}
.hero-nucleus__layer--seven {
  --diameter: clamp(9px, 1.45vmin, 15px);
  --color: #181818;
  --delay: 2.04s;
}

.hero-nucleus__brand {
  z-index: 4;
  width: 96%;
  aspect-ratio: 1333 / 260;
}

.hero-nucleus__mark {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  display: block;
  width: 3.14%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: var(--green);
  transform: translate3d(-50%, -50%, 0) scale(0);
  backface-visibility: hidden;
}
.hero-nucleus__mark::before,
.hero-nucleus__mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
}
.hero-nucleus__mark::before {
  width: 33.5%;
  background: var(--cream);
}
.hero-nucleus__mark::after {
  width: 3.7%;
  min-width: 1px;
  background: var(--dark);
}

.hero-nucleus__logo {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  backface-visibility: hidden;
}

.hero-nucleus.is-playing .hero-nucleus__field {
  animation: nucleus-field 5.4s var(--ease) both;
  will-change: transform, opacity;
}
.hero-nucleus.is-playing .hero-nucleus__layer {
  animation: nucleus-layer-in 0.72s var(--ease) var(--delay) both;
  will-change: transform, opacity;
}
.hero-nucleus.is-playing .hero-nucleus__mark {
  animation: nucleus-mark 5.4s var(--ease) both;
  will-change: left, top, transform, opacity;
}
.hero-nucleus.is-playing .hero-nucleus__logo {
  animation: nucleus-logo 5.4s var(--ease) both;
  will-change: clip-path, opacity;
}

.hero-nucleus.is-complete .hero-nucleus__field,
.hero-nucleus.is-complete .hero-nucleus__mark {
  display: none;
}
.hero-nucleus.is-complete .hero-nucleus__logo {
  opacity: 1;
  clip-path: inset(0);
}

@keyframes nucleus-layer-in {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.08);
  }
  62% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1.055);
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@keyframes nucleus-field {
  0%,
  48% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
  61%,
  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.055);
  }
}

@keyframes nucleus-mark {
  0%,
  50% {
    left: 50%;
    top: 50%;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0);
  }
  59% {
    left: 50%;
    top: 50%;
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1.18);
  }
  68% {
    left: 50%;
    top: 50%;
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
  82% {
    left: 2.747%;
    top: 88.546%;
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
  88%,
  100% {
    left: 2.747%;
    top: 88.546%;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@keyframes nucleus-logo {
  0%,
  78% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  83% {
    opacity: 1;
    clip-path: inset(0 94.4% 0 0);
  }
  96%,
  100% {
    opacity: 1;
    clip-path: inset(0);
  }
}

@media (max-width: 600px) {
  .hero-nucleus {
    width: 112%;
    aspect-ratio: 4 / 3;
  }
  .hero-nucleus__layer--one { --diameter: min(78vw, 390px); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   INTRO STATEMENT
   ============================================================ */
.statement {
  padding-block: clamp(64px, 10vw, 140px);
}
.statement__title {
  max-width: 1227px;         /* container width from design */
  margin: 0;
  font-family: 'Work Sans', var(--font);
  font-weight: 700;          /* Bold */
  /* 30px floor: "Organizations" still fits a 320px viewport at that size */
  font-size: clamp(30px, 7vw, 96px);
  line-height: 1.12;         /* "Auto" ≈ 1.12 for Work Sans */
  letter-spacing: 0;
  color: var(--white);
}
.statement__word {
  --t: 0;                    /* 0 → 1 highlight sweep, driven by GSAP ScrollTrigger */
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--white);
  padding: 0.04em 0.2em;
  margin: -0.04em -0.2em;
  border-radius: 0.2em;
}
.statement__word::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(var(--green-rgb), 0.55);
  box-shadow: 0 0 calc(var(--t, 0) * 30px) rgba(var(--green-rgb), calc(var(--t, 0) * 0.45));
  transform: scaleX(var(--t, 0));
  transform-origin: left;
  pointer-events: none;
}

/* ============================================================
   WINGMAN  (white section, scroll-animated planes)
   ============================================================ */
.wingman {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--dark);
  min-height: 96vh;
  display: flex;
  align-items: center;
  padding-block: clamp(80px, 12vw, 160px);
}

.wingman__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ----- Heading + divider rule (block ≈ 1185 × 149) ----- */
.wingman__head { max-width: 1185px; }
.wingman__title {
  margin: 0;
  font-family: 'Work Sans', var(--font);
  font-weight: 700;                       /* Bold */
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  color: var(--dark);
}
.wingman__rule {
  position: relative;
  margin-top: 44px;
  height: 0;
  border-top: 2px solid var(--dark);
}
.wingman__rule::before {                  /* dot sitting on the line, left end */
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dark);
  transform: translate(-1px, -50%);
}

/* ----- Two-column body ----- */
.wingman__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 64px;
  margin-top: 60px;
}
.wingman__left { flex: 1 1 618px; max-width: 618px; }
.wingman__text {
  margin: 0;
  max-width: 618px;
  font-family: var(--font);               /* Inter */
  font-weight: 400;                       /* Regular */
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.4;
  color: var(--dark);
}
/* ----- Paper-plane formation (box ≈ 480 × 420) ----- */
.wingman__planes {
  position: relative;
  flex: 0 0 480px;
  width: 480px;
  height: 420px;
  pointer-events: none;
}
.plane {
  position: absolute;
  width: 165px;
  height: auto;
  will-change: transform;
  /* JS sets three eased 0..1 values on the section and they inherit down here:
       --plane-in     0 = still climbing from far below, 1 = settled in formation
       --plane-settle same idea, but ramped over the part of the climb that is
                      actually on screen — it drives the depth cues
       --plane-lift   0 = in formation, 1 = fully lifted out through the top
     The distances stay in CSS so each breakpoint can size its own glide.
     --plane-start is deliberately deep: the formation begins well below the
     section (clipped out of view by .wingman's overflow: hidden) and rises
     into place, instead of popping in already near its resting slot.
     Both values are shared by the three planes, so the V stays locked while
     it moves. They are read through var() fallbacks (settled, no lift) rather
     than declared here — a local declaration would shadow the values JS sets
     on the section — so a visitor without JS, or with reduced motion, simply
     sees the formation at rest. */
  --plane-start: 92vh;
  --plane-exit: 26vh;
  --plane-bank: 5deg;   /* shared bank that levels off as the V settles */
  transform:
    translate3d(0, calc(var(--plane-start) * (1 - var(--plane-in, 1))
                        - var(--plane-exit) * var(--plane-lift, 0)), 0)
    rotate(calc(var(--rot, 0deg) + (1 - var(--plane-settle, 1)) * var(--plane-bank)))
    scale(calc(0.93 + var(--plane-settle, 1) * 0.07));   /* they read as further away on the way in */
}
/* Tight V (wingman) formation: one leader up front, two wingmen tucked in behind. */
.plane--1 { left: 50%; margin-left: -82px; top: 0;    --rot: 0deg; }
.plane--2 { left: 4%;                      top: 200px; --rot: -5deg; }
.plane--3 { right: 4%;                     top: 200px; --rot: 5deg; }

/* ============================================================
   HUMAN  (pure-black section, animated hand gif)
   ============================================================ */
.human {
  background: #000;            /* matches the gif background so it blends */
  min-height: clamp(680px, 96vh, 998px);
  display: flex;
  align-items: flex-start;          /* arm starts at the very top edge */
  justify-content: center;
  padding: 0 var(--gutter) clamp(64px, 8vw, 120px);
}
.human__stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.human__gif {
  display: block;
  width: auto;
  height: clamp(520px, 82vh, 840px);
  /* The global `img { max-width: 100% }` would cap the width while the height
     stays fixed, squashing the arm. Cap by aspect ratio instead. */
  max-width: none;
  aspect-ratio: 500 / 750;
}
.human__title {
  position: absolute;
  left: 50%;
  top: 64%;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  color: var(--white);
  font-family: 'Work Sans', var(--font);
  font-weight: 700;                       /* Bold */
  font-size: clamp(30px, 4.6vw, 60px);    /* block ≈ 835 × 149 at 60px */
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* ============================================================
   SERVICES  (sticky stacking cards)
   ============================================================ */
.services {
  background: var(--white);
  color: var(--dark);
  padding-top: clamp(64px, 9vw, 120px);
  /* Keep the final sticky state intact at the end of the document. A bottom
     padding would push the Technology card upward to make room for whitespace,
     which in turn covers the Marketing title. */
  padding-bottom: 0;
}
.services__wrap {
  max-width: 1352px;          /* 1288 card + 2*32 padding */
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* Heading + rule (reuses the Wingman treatment) */
.services__head {
  max-width: 1185px;
  margin-bottom: clamp(44px, 6vw, 84px);
}
.services__title {
  margin: 0;
  font-family: 'Work Sans', var(--font);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  color: var(--dark);
}
.services__rule {
  position: relative;
  margin-top: 26px;
  height: 0;
  border-top: 1.5px solid var(--dark);
}
.services__rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dark);
  transform: translate(-1px, -50%);
}

/* ----- The stack ----- */
.services__stack { position: relative; }

.service {
  position: sticky;
  /* Stick below the header; each card sits ~100px lower so every previous title
     stays fully visible when the stack is complete (all three titles readable). */
  top: calc(var(--header-h) + 14px + var(--i) * 100px);
  z-index: calc(var(--i) + 1);
  /* Telescoping (pyramid) stack: back card narrowest, each front card wider,
     all centred. Widths follow the Figma spec (1072 / 1200 / 1288). */
  margin-inline: auto;
  padding: 40px clamp(38px, 4.4vw, 64px) clamp(34px, 3.6vw, 52px);
  margin-bottom: 44px;
  border-radius: 28px;
  color: var(--white);
}
.service:last-child { margin-bottom: 0; }

/* Progressive backgrounds: back card darkest, front card lightest */
.service--comm { background: #1a1a1a; }
.service--mkt  { background: #2b2b2b; }
.service--tech { background: #3d3d3d; }

/* Progressive size (Figma spec, front card = 1288x587 = 100%):
   Communication 1072x437 (83%), Marketing 1200x547 (93%), Technology full. */
.service--comm { width: 83.2%;  min-height: clamp(360px, 46vh, 437px); }
.service--mkt  { width: 93.2%;  min-height: clamp(400px, 52vh, 547px); }
.service--tech { width: 100%;   min-height: clamp(440px, 58vh, 587px); }

.service__title {
  margin: 0;
  font-family: 'Work Sans', var(--font);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.05;
}
.service--comm .service__title { color: #ee5b39; }
.service--mkt  .service__title { color: #2f6bed; }
.service--tech .service__title { color: #33d991; }

.service__lead {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 920px;
  margin-top: clamp(26px, 3vw, 44px);
}
.service__dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 0.35em;
  border-radius: 50%;
  animation: dot-live 2s ease-in-out infinite;
}
.service--comm .service__dot { background: #ee5b39; --dot-glow: rgba(238, 91, 57, 0.65); }
.service--mkt  .service__dot { background: #2f6bed; --dot-glow: rgba(47, 107, 237, 0.65); }
.service--tech .service__dot { background: #33d991; --dot-glow: rgba(51, 217, 145, 0.65); }

@keyframes dot-live {
  0%, 100% { box-shadow: 0 0 0 0 var(--dot-glow); opacity: 1; }
  50%      { box-shadow: 0 0 10px 4px var(--dot-glow); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .service__dot { animation: none; }
}
.service__lead p {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.3;
  color: var(--white);
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(34px, 5vw, 60px) 0 0;
  padding: 0;
  list-style: none;
}
.service__tags li {
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  font-size: clamp(14px, 1.3vw, 18px);
  padding: 11px 22px;
  border-radius: 40px;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.service--comm .service__tags li:hover { background: #ee5b39; color: #1a1a1a; transform: translateY(-2px); }
.service--mkt  .service__tags li:hover { background: #2f6bed; color: var(--white); transform: translateY(-2px); }
.service--tech .service__tags li:hover { background: #33d991; color: #1a1a1a; transform: translateY(-2px); }

/* ============================================================
   METHOD  (scroll-revealed BEFORE / DURING / AFTER journey)
   ============================================================ */
.method {
  background: var(--white);
  color: var(--dark);
  padding-block: clamp(64px, 9vw, 130px);
}
.method__title {
  margin: 0;
  max-width: 1183px;
  font-family: 'Work Sans', var(--font);
  font-weight: 700;                       /* Bold */
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.1;
}
.method__subtitle {
  margin: 22px 0 0;
  max-width: 795px;
  font-family: var(--font);               /* Inter */
  font-size: clamp(22px, 2.9vw, 40px);
  line-height: 1.25;
}
.method__sub-line { display: block; font-weight: 400; }
.method__sub-line--bold { font-weight: 700; }

/* ----- Diagram ----- */
.method__diagram {
  position: relative;
  margin-top: clamp(36px, 5vw, 72px);
  height: clamp(680px, 60vw, 820px);
  --marker-x: 27%;
  --trail-w: 25%;
}
.method__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.method__path-line {
  fill: none;
  stroke: var(--dark);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

/* Green trail: the part of the line the marker has already covered */
.method__trail {
  position: absolute;
  left: 2%;
  top: 11%;
  height: 3px;
  margin-top: -1.5px;
  width: 0;
  background: var(--green);
  transform-origin: left center;
  z-index: 2;
  pointer-events: none;
}

/* Pulsing green start marker */
.method__marker {
  position: absolute;
  left: 27%;
  top: 11%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--green);
  z-index: 3;
}
.js-journey .method__marker { left: var(--marker-x); }
.js-journey .method__trail { width: var(--trail-w); }
.method__marker::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: markerPulse 2s ease-out infinite;
}
@keyframes markerPulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ----- Stages ----- */
.stage {
  position: absolute;
  width: min(40%, 400px);
  z-index: 2;
}
.stage--before { left: 2%;  top: 16%; }
.stage--during { left: 37%; top: 45%; }
.stage--after  { left: 66%; top: 70%; }

/* Stage dims until the marker reaches it */
.js-journey .stage__title,
.js-journey .stage__list {
  opacity: 0.32;
  transition: opacity 0.45s ease;
}
.js-journey .stage.is-active .stage__title,
.js-journey .stage.is-active .stage__list { opacity: 1; }
.js-journey .stage.is-active .stage__title { border-bottom-color: var(--green); }

.stage__title {
  display: inline-block;
  margin: 0 0 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--dark);
  font-family: 'Work Sans', var(--font);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.stage__list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.stage__list li {
  font-family: var(--font);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.4;
  margin-bottom: 6px;
}

/* ----- Scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   CLIENTS  (three logo marquees)
   ============================================================ */
.clients {
  background: var(--white);
  color: var(--dark);
  padding-block: clamp(64px, 9vw, 120px);
  overflow: hidden;
}

/* ----- Header ----- */
.clients__title {
  margin: 0;
  font-family: 'Work Sans', var(--font);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}
.clients__meta {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  margin-top: 30px;
}
.clients__rule {
  position: relative;
  flex: 1 1 auto;
  height: 0;
  border-top: 1.5px solid var(--dark);
}
.clients__rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dark);
  transform: translate(-1px, -50%);
}
.clients__subtitle {
  flex: 0 1 auto;
  max-width: 560px;
  margin: 0;
  text-align: right;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(22px, 2.9vw, 40px);
  line-height: 1.22;
}
.clients__subtitle strong { font-weight: 700; }

/* ----- Marquee rows ----- */
.clients__rows {
  margin-top: clamp(48px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 52px);
  /* soft fade at both edges for a prestige feel */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee {
  overflow: hidden;
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
  animation: marquee-left 70s linear infinite;
}
.marquee[data-dir="ltr"] .marquee__track {
  animation-name: marquee-right;
}
.marquee__item {
  flex: 0 0 auto;
  padding-inline: clamp(28px, 4vw, 60px);
}
.marquee__item img {
  height: clamp(38px, 4vw, 54px);
  width: auto;
  /* muted monochrome by default, full colour on hover — subtle, elegant */
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}
.marquee__item img:hover {
  filter: grayscale(0);
  opacity: 1;
}
/* Pause all rows while hovering the block */
.clients__rows:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ============================================================
   TEAM
   ============================================================ */
.team__intro {
  background: var(--dark);
  color: var(--white);
  padding-block: clamp(56px, 8vw, 110px);
}
.team__title {
  margin: 0;
  font-family: 'Work Sans', var(--font);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.team__intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(32px, 4vw, 56px);
}
/* the rule bleeds past the container's own gutter so it reaches the true
   edges of the layout, not just the inset content column */
.team__intro-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.team__intro-text { max-width: 560px; }
.team__lead {
  margin: 0 0 26px;
  font-family: 'Work Sans', var(--font);
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.22;
}
.team__goals { margin: 0; padding: 0; list-style: none; }
.team__goals li {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  animation: team-goal-color 8s ease-in-out infinite;
}
.team__goals li:nth-child(1) { animation-delay: 0s; }
.team__goals li:nth-child(2) { animation-delay: 2s; }
.team__goals li:nth-child(3) { animation-delay: 4s; }
.team__goals li:nth-child(4) { animation-delay: 6s; }

@keyframes team-goal-color {
  0%, 100% { color: rgba(255, 255, 255, 0.82); }
  12.5%    { color: var(--green); }
  37.5%    { color: var(--blue); }
  62.5%    { color: var(--cream); }
  87.5%    { color: var(--white); }
}
/* the drawing is one piece with the rules: it hangs off the top border and
   its connector lines run into the vertical rule on the left */
.team__graphic {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: calc(-1 * clamp(32px, 4vw, 56px));
  /* bleed past the container's right gutter so the drawing's connector
     lines can reach the true edge, matching the rule above */
  margin-right: calc(-1 * var(--gutter));
}
/* out of flow so the row height stays driven by the text column */
.team__graphic svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.team__graphic svg :is(rect, line) { vector-effect: non-scaling-stroke; }

/* ----- Members block (same dark block as the intro above) ----- */
.team__members {
  background: var(--dark);
  color: var(--white);
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(56px, 8vw, 100px);
}
.team__list {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* thin line running through the middle of the photos */
.team__list::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(clamp(120px, 13vw, 180px) / 2);
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}
.member {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  text-align: center;
}
.member__photo {
  width: clamp(120px, 13vw, 180px);
  height: clamp(120px, 13vw, 180px);
  margin: 0 auto 20px;
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
}
.member__name {
  margin: 0;
  font-family: 'Work Sans', var(--font);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 20px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 76px);
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__link {
  font-family: var(--font);
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--white);
  width: fit-content;
  transition: color 0.2s var(--ease);
}
.footer__link:hover { color: var(--green); }

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.language-switcher--footer {
  gap: 18px;
}
.language-switcher--footer .language-switcher__item {
  font-size: 20px;
  letter-spacing: 0;
}
.language-switcher--footer .language-switcher__item + .language-switcher__item::before {
  right: calc(100% + 9px);
}
.language-switcher--mobile {
  display: none;
}
.footer__legal {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.footer__legal a { color: inherit; text-decoration: none; }
.footer__legal a:hover { color: var(--white); }

/* ----- Oversized wordmark with a blurred fade at its base ----- */
.footer__brand {
  position: relative;
  margin-top: clamp(24px, 4vw, 48px);
  /* clip the very bottom of the letters against the section edge */
  height: calc(min(100vw, 1600px) / 5.13 * 0.82);
  overflow: hidden;
}
.footer__wordmark {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100vw, 1600px);
  height: auto;
  display: block;
}
.footer__blur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(40px, 6.4vw, 74px);
  background: rgba(33, 33, 33, 0.42);      /* #212121 @ 42% */
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Five nav links plus the CTA crowd the logo before the mobile breakpoint */
@media (max-width: 1120px) {
  .nav__list { gap: 24px; }
  .nav__link { font-size: 18px; }
  .nav__link--cta { gap: 9px; }
  .nav__cta-icon { width: 30px; height: 30px; }
}

/* Method diagram stacks vertically before the diagonal gets cramped */
@media (max-width: 1024px) {
  .method__diagram { height: auto; padding-left: 34px; }
  .method__path { display: none; }
  .method__diagram::before {
    content: '';
    position: absolute;
    left: 12px; top: 8px; bottom: 8px;
    width: 2px;
    background: var(--dark);
  }
  /* 12px, not 5px: the marker's pulse ring extends 10px past its own box and
     would otherwise be clipped against the viewport edge. */
  .method__marker,
  .js-journey .method__marker { left: 12px; top: 0; }
  .method__trail { display: none; }
  .js-journey .stage__title,
  .js-journey .stage__list { opacity: 1; }
  .stage {
    position: relative;
    left: auto; top: auto;
    width: 100%;
    max-width: 640px;
    margin-bottom: 44px;
  }
  .stage:last-child { margin-bottom: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 80px; --gutter: 22px; }

  .header__actions { display: none; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
  .language-switcher--mobile {
    display: inline-flex;
    margin: 0 var(--gutter) 28px;
  }

  .logo__img { height: 28px; }

  /* Wingman: stack copy over the planes */
  .wingman { min-height: 0; }
  .wingman__body { flex-direction: column; gap: 48px; }
  .wingman__left { max-width: 100%; flex: 1 1 auto; }
  .wingman__text { max-width: 100%; }
  .wingman__planes {
    /* `flex: 0 0 480px` from the desktop rule becomes a *height* basis once the
       body switches to a column, overriding `height` — reset it explicitly. */
    flex: 0 0 auto;
    width: 100%;
    max-width: 360px;
    height: 290px;   /* 145px wingman row + 145px plane height */
    margin-inline: auto;
  }
  /* Same idea as desktop, scaled to this shorter, content-sized section: the
     formation still starts hidden below the fold, but with a shorter climb so
     it settles while the section is on screen. */
  .plane {
    width: 100px;
    --plane-start: 62vh;
    --plane-exit: 18vh;
  }
  .plane--1 { margin-left: -50px; top: 0; }
  .plane--2 { top: 145px; left: 4px;  right: auto; }
  .plane--3 { top: 145px; right: 4px; left: auto; }

  /* Footer: stack nav over language/legal */
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__meta { align-items: flex-start; text-align: left; }
  /* Comfortable touch targets (the desktop links are ~24px tall) */
  .footer__nav { gap: 0; }
  .footer__link { padding-block: 10px; }
  /* Comfortable language targets while keeping their baseline aligned with the links. */
  .language-switcher--footer { gap: 8px; margin-inline-start: -12px; }
  .language-switcher--footer .language-switcher__item { padding: 10px 12px; }
  .language-switcher--footer .language-switcher__item + .language-switcher__item::before { right: calc(100% + 5px); }

  /* Team: single-column intro, 2x2 member grid */
  .team__intro-grid { grid-template-columns: 1fr; }
  .team__graphic {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin-top: 0;
    margin-right: 0;
  }
  .team__graphic svg {
    position: static;
    height: clamp(180px, 46vw, 260px);
  }
  .team__list { flex-wrap: wrap; row-gap: 40px; }
  .team__list::before { display: none; }
  .member { flex: 0 0 calc(50% - 20px); }

  /* Clients: stack the subtitle under the rule */
  .clients__meta { flex-direction: column; align-items: stretch; gap: 22px; }
  .clients__subtitle { text-align: left; max-width: 100%; }

  /* Human: keep the title within the viewport */
  .human__title { white-space: normal; text-align: center; width: min(92vw, 420px); top: 60%; }
  .human__gif { height: clamp(420px, 68vh, 620px); }

  /* Size to content instead of 96vh — the fixed min-height left a tall band of
     dead black below the arm once the gif got shorter. */
  .human {
    min-height: 0;
    padding-bottom: clamp(48px, 7vw, 96px);
  }

  /* Services: gentler stack offsets, cards size to content */
  .service {
    top: calc(var(--header-h) + 10px + var(--i) * 84px);
    border-radius: 22px;
    padding-top: 28px;
  }
  /* Gentler pyramid + content-height cards on small screens */
  .service--comm { width: 90%;  min-height: 0; }
  .service--mkt  { width: 95%;  min-height: 0; }
  .service--tech { width: 100%; min-height: 0; }
  .service__lead { max-width: 100%; }

  .service__tags li { white-space: normal; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  /* Generous top/bottom padding so the block reads as a tall portrait panel
     instead of a thin banner — width-based clamp keeps it proportional
     across phone sizes. */
  .statement { padding-block: clamp(100px, 42vw, 220px); }

  /* Services keep the desktop pile: each card sticks a little lower than the
     one behind it, so every title stays readable once the stack is complete.
     The 62px step is just over the title band (24px padding + ~30px title),
     which is what makes the whole card fit under the header while pinned. */
  .service {
    top: calc(var(--header-h) + 8px + var(--i) * 62px);
    padding: 24px 20px 28px;
    margin-bottom: 26px;
    border-radius: 20px;
  }
  /* Shallower pyramid than desktop's 83/93/100 — at this width the back card
     would otherwise be too narrow to hold its content. */
  .service--comm { width: 92%; }
  .service--mkt  { width: 96%; }
  .service--tech { width: 100%; }
  /* Sticky is bounded by the container's *content* box, and the last card's
     bottom is that boundary — so without runway the completed pile appears and
     scrolls away in the same frame. A spacer child (not padding, which sits
     outside the content box and would not extend the sticky range) holds the
     finished stack on screen for a beat. */
  .services__stack::after {
    content: '';
    display: block;
    height: 170px;
  }

  .service__title { font-size: clamp(26px, 7.4vw, 38px); }
  .service__lead { gap: 12px; margin-top: 16px; }
  .service__dot { width: 14px; height: 14px; margin-top: 0.3em; }
  .service__lead p { font-size: 16px; line-height: 1.4; }
  .service__tags { gap: 7px; margin-top: 18px; }
  .service__tags li { font-size: 12.5px; padding: 7px 13px; }

  /* Wingman: tighter plane box so the formation reads on a narrow screen.
     Row pitch (120px) stays clear of the plane height (105px). */
  .wingman__planes { max-width: 260px; height: 230px; }
  .plane { width: 80px; }
  .plane--1 { margin-left: -40px; }
  .plane--2 { top: 120px; left: 0; }
  .plane--3 { top: 120px; right: 0; }

  /* Human: drive the gif off width so it can't be squashed by max-width */
  .human { padding-inline: 0; }
  .human__gif {
    width: min(100%, 420px);
    height: auto;
    max-width: min(100%, 420px);
  }

  /* Team: keep the 2-up grid from getting cramped */
  .member { flex: 0 0 calc(50% - 10px); }
  .team__list { gap: 20px; }
  .member__photo { width: min(100%, 150px); height: auto; aspect-ratio: 1; }

  /* Footer: the wordmark band was shorter than the wordmark itself, so the
     letter tops were clipped and the blur covered most of what remained. */
  .footer__brand { height: calc(100vw / 5.13); }
  .footer__blur { height: 20px; }
  .footer { padding-bottom: var(--safe-b); }
}

/* Very small phones (iPhone SE and similar) */
@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .service { padding-inline: 18px; }
  .service__tags li { font-size: 12px; padding: 8px 14px; }
}

/* Short phones: the pile only works while a pinned card still fits under the
   header, so tighten the step and the card's own metrics on stubby viewports.
   Step (52px) stays above the title band (18px padding + ~30px title). */
@media (max-width: 600px) and (max-height: 640px) {
  .service {
    top: calc(var(--header-h) + 6px + var(--i) * 52px);
    padding: 18px 16px 20px;
    margin-bottom: 20px;
  }
  .service__title { font-size: 24px; }
  .service__lead { gap: 10px; margin-top: 12px; }
  .service__dot { width: 12px; height: 12px; }
  .service__lead p { font-size: 15px; line-height: 1.35; }
  .service__tags { gap: 6px; margin-top: 14px; }
  .service__tags li { font-size: 11.5px; padding: 6px 11px; }
}

/* Landscape phones: the hero keeps its viewport height, but the nucleus has to
   be sized off that height (not the width) or the 16:9 field overflows the few
   hundred pixels left under the header. Width-bounded so a short desktop
   window is not affected. */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .hero-nucleus {
    width: min(100%, calc((100svh - var(--header-h)) * 0.86 * 16 / 9));
  }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: calc(clamp(16px, 4vw, 32px) + var(--safe-b));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float svg { width: 34px; height: 34px; }
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
