/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

/* ── Brand system ───────────────────────────────────────── */
:root {
  /* Foundation: black, white, neutral. */
  --paper:    #FBFAF7;
  --ink:      #141414;
  --muted:    #6E6C66;
  --neutral:  #EDEAE2;
  --neutral-2:#DDD9CF;
  --rule:     rgba(20,20,20,0.12);

  /* The whole colour wheel is ours - one hue per surface. Saturated, so the
     colour blocks read as deliberate interruptions in the warm white. */
  --c-coral:  #E0625A;   /* tomato */
  --c-yellow: #F0CE5B;   /* butter */
  --c-sage:   #8FA97C;   /* sage   */
  --c-lilac:  #E3B7E5;   /* lilac  */
  --c-peri:   #9FC4E8;   /* sky    */
  --c-pink:   #F0C3D2;   /* blush  */

  /* Neutrals and two derived tones, kept in step with the five above. */
  --c-cream:  #F3EAD6;
  --c-stone:  #D9D5CC;
  --c-orange: #FB9A5A;
  --c-teal:   #9BD4CE;

  /* Neue Haas Grotesk Display Pro where it's licensed and installed;
     Helvetica Neue is the closest system stand-in, Inter the web fallback. */
  --sans: "Neue Haas Grotesk Display Pro", "Neue Haas Grotesk Display",
          "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont,
          Helvetica, Arial, sans-serif;

  --mark: url("assets/mark.png");
  --gutter: clamp(20px, 4.4vw, 68px);
  --radius: 22px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Display type is sentence case: Roman for the lead-in, Heavy for the point. */
.hero__line, .team__title, .contact__line, .card__title, .manifesto p {
  font-weight: 400;
  letter-spacing: -0.032em;
  line-height: 1.02;
}
.hero__line strong, .team__title strong,
.contact__line strong, .manifesto strong { font-weight: 800; }
.card__title { font-weight: 500; }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Pills ──────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  /* Form controls don't inherit font-family, so <button class="pill"> fell
     back to the UA font and rendered the arrow from a different face. */
  font-family: inherit;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.pill--ink   { background: var(--ink); color: var(--paper); }
.pill--ghost { background: transparent; color: var(--ink); }
.pill:hover  { transform: translateY(-1px); }
.pill--ink:hover   { background: #2E2E2E; }
.pill--ghost:hover { background: var(--ink); color: var(--paper); }
.pill__arrow {
  font-size: 1.3em;
  line-height: 1;
  transition: transform 220ms cubic-bezier(.16,.84,.44,1);
}
.pill:hover .pill__arrow { transform: translate(2px, -2px); }

/* ── Nav ────────────────────────────────────────────────── */
/* Transparent and overlaid on the hero photo. */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 30px) var(--gutter);
}
.nav__logo { width: clamp(40px, 3.4vw, 52px); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 160ms ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links .pill { color: var(--paper); background: var(--ink); padding: 10px 18px; }
.nav__links .pill:hover { color: var(--paper); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 780px);
  padding: clamp(120px, 13vw, 170px) var(--gutter) clamp(48px, 7vw, 90px);
  background: var(--paper) url("images/hero-bg.webp") center right / cover no-repeat;
}

/* The sculpture sits centre-right in the frame, so the scrim lifts from the
   left and leaves it and the walker clear. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(96deg,
    rgba(251,250,247,0.95) 0%, rgba(251,250,247,0.86) 26%,
    rgba(251,250,247,0.42) 52%, rgba(251,250,247,0.00) 82%);
}

.hero__copy { max-width: 620px; }

.hero__line { font-size: clamp(40px, 6vw, 94px); }

.hero__sub {
  max-width: 46ch;
  margin-top: clamp(18px, 2.4vw, 30px);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3.2vw, 40px);
}

/* The mark as a physical object rather than a logo. */
/* ── Marquee ────────────────────────────────────────────── */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 15px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__set {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 100vw;
}
.marquee b { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.marquee i { font-style: normal; margin: 0 clamp(16px, 2.4vw, 34px); font-size: 8px; opacity: 0.55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Section heads ──────────────────────────────────────── */
.section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.section-lede {
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.025em;
  color: var(--muted);
}

/* ── Service cards ──────────────────────────────────────── */
.services { padding: clamp(52px, 7vw, 104px) var(--gutter); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: clamp(280px, 27vw, 380px);
  padding: clamp(20px, 2.2vw, 32px);
  border-radius: 0;
  background: var(--card-bg, var(--c-stone));
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04),
              0 8px 20px rgba(20, 20, 20, 0.06);
  transition: transform 320ms cubic-bezier(.16,.84,.44,1),
              box-shadow 320ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(20, 20, 20, 0.05),
              0 14px 30px rgba(20, 20, 20, 0.09);
}

.card--coral  { --card-bg: var(--c-coral); }
.card--yellow { --card-bg: var(--c-yellow); }
.card--sage   { --card-bg: var(--c-sage); }
.card--lilac  { --card-bg: var(--c-lilac); }
.card--peri   { --card-bg: var(--c-peri); }
.card--orange { --card-bg: var(--c-orange); }
.card--teal   { --card-bg: var(--c-teal); }
.card--pink   { --card-bg: var(--c-pink); }

.card__title { font-size: clamp(21px, 1.9vw, 30px); }
.card__body {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(16,16,16,0.78);
  text-wrap: pretty;
}

/* The mark, oversized and bleeding off the corner - the brand's shape
   doing the work a stock illustration usually would. */
.card__blob {
  position: absolute;
  z-index: -1;
  inset: var(--blob-t, auto) var(--blob-r, -16%) var(--blob-b, -22%) var(--blob-l, auto);
  width: var(--blob-w, 78%);
  aspect-ratio: 1.16 / 1;
  transform: rotate(var(--blob-rot, 0deg))
             scale(var(--blob-flip, 1), var(--blob-flipy, 1));
  background: var(--paper);
  -webkit-mask-image: var(--mark);
          mask-image: var(--mark);
  -webkit-mask-size: contain;     mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  transition: transform 520ms cubic-bezier(.16,.84,.44,1);
}
.card:hover .card__blob {
  transform: rotate(calc(var(--blob-rot, 0deg) + var(--blob-turn, -6deg)))
             scale(var(--blob-flip, 1), var(--blob-flipy, 1))
             translate(-3%, -4%);
}

/* Each card throws the mark to a different corner at a different angle and
   flip, so four cards in a row read as hand-placed rather than one asset
   pasted four times. */
.cards .card:nth-child(1) {
  --blob-rot: -16deg;  --blob-w: 96%;
  --blob-r: -34%; --blob-b: 4%;
}
.cards .card:nth-child(2) {
  --blob-rot:  26deg;  --blob-w: 88%; --blob-flip: -1; --blob-turn: 6deg;
  --blob-r: -48%; --blob-b: 22%;
}
.cards .card:nth-child(3) {
  --blob-rot: -42deg;  --blob-w: 100%; --blob-flipy: -1;
  --blob-r: -26%; --blob-b: -8%;
}
.cards .card:nth-child(4) {
  --blob-rot:  12deg;  --blob-w: 92%; --blob-flip: -1; --blob-flipy: -1; --blob-turn: 5deg;
  --blob-r: -54%; --blob-b: 10%;
}

/* Small solid mark, bottom-left, as on the brand boards. */
.card__mark {
  margin-top: auto;
  width: 26px;
  aspect-ratio: 1.16 / 1;
  background: var(--ink);
  -webkit-mask-image: var(--mark);
          mask-image: var(--mark);
  -webkit-mask-size: contain;     mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* ── Manifesto ──────────────────────────────────────────── */
.manifesto {
  background: var(--neutral);
  padding: clamp(56px, 8vw, 120px) var(--gutter);
}
.manifesto p {
  max-width: 1020px;
  margin: 0 auto;
  font-size: clamp(22px, 3vw, 46px);
  line-height: 1.14;
  text-align: center;
  text-wrap: balance;
}
.manifesto em { font-style: normal; color: var(--c-coral); }

/* ── Team ───────────────────────────────────────────────── */
.team { padding: clamp(52px, 7vw, 104px) var(--gutter); }

.team__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 64px);
}
.team__intro { flex: 1 1 380px; max-width: 52ch; }
.team__title { font-size: clamp(30px, 4vw, 60px); }
.team__copy {
  max-width: 48ch;
  margin-top: 16px;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* Metrics and crew share one row, the portraits reading as a small
   supporting group rather than a section of their own. */
.team__side {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(26px, 3.4vw, 52px);
}

.stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 2.6vw, 40px); }
.stat__num {
  display: flex;
  align-items: flex-start;
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.stat__num i {
  font-weight: 600;
  font-style: normal;
  font-size: 0.4em;
  color: var(--c-coral);
  margin-left: 0.06em;
  margin-top: 0.12em;
}
.stat__label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.crew { display: flex; gap: clamp(12px, 1.4vw, 20px); }
.person { width: clamp(92px, 8.2vw, 116px); text-align: center; }

.person__frame {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--neutral);
}
/* Cut-outs, so they're scaled up and dropped to sit inside the circle. */
.person__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.24) translateY(11%);
  transition: transform 620ms cubic-bezier(.16,.84,.44,1);
}
.person:hover .person__frame img,
.person:focus-within .person__frame img {
  transform: scale(1.3) translateY(10%);
}

.person__name { margin-top: 11px; font-size: 13px; font-weight: 600; letter-spacing: -0.015em; }
.person__role { margin-top: 2px; font-size: 11px; line-height: 1.35; color: var(--muted); }

/* ── Contact ────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(56px, 7vw, 110px) var(--gutter);
}
.contact__line { font-size: clamp(28px, 3.4vw, 54px); }

.contact__email {
  display: inline-block;
  margin-top: clamp(20px, 2.6vw, 32px);
  font-size: clamp(15px, 1.3vw, 19px);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: border-color 180ms ease;
}
.contact__email:hover { border-bottom-color: var(--ink); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.2vw, 28px) clamp(18px, 2.4vw, 32px);
  padding-top: 8px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 500; color: var(--muted); }

input, textarea {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
  transition: border-color 180ms ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--c-coral); }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form__actions { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-size: 13px; color: var(--muted); }
.form__status[data-state="error"] { color: var(--c-coral); }
.form__status[data-state="ok"] { color: var(--ink); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  background: var(--neutral);
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(34px, 4vw, 56px);
}
.footer__logo { width: clamp(150px, 15vw, 210px); }
.footer__brand p { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--muted); }
.footer__col .eyebrow { margin-bottom: 5px; }
.footer__col a:hover { color: var(--ink); }
.footer__col--end { text-align: right; align-items: flex-end; }

/* ── Entrance ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.16,.84,.44,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .team__side { width: 100%; justify-content: space-between; }
}

@media (max-width: 720px) {
  .nav__links a:not(.pill) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .crew { gap: 10px; }
  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--end { text-align: left; align-items: flex-start; grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── WhatsApp support ───────────────────────────────────
   Self-contained floating component. Touches nothing else on the page. */
.wa {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(20, 20, 20, 0.16),
              0 2px 5px rgba(20, 20, 20, 0.10);
  transition: transform 240ms cubic-bezier(.16,.84,.44,1),
              box-shadow 240ms ease,
              background 240ms ease,
              color 240ms ease;
}

/* Sage is the closest thing in the wheel to a "messaging" green without
   reaching for WhatsApp's own brand colour. */
.wa:hover,
.wa:focus-visible {
  transform: translateY(-3px);
  background: var(--c-sage);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(20, 20, 20, 0.22),
              0 4px 8px rgba(20, 20, 20, 0.12);
}

.wa__icon {
  width: 21px;
  height: 21px;
  flex: none;
  fill: currentColor;
}

@media (max-width: 640px) {
  /* Collapses to a circle so it never sits over page content, while
     keeping a 52px target - comfortably above the 44px minimum. */
  .wa {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .wa__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .wa__icon { width: 23px; height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa, .wa:hover { transition: none; transform: none; }
}
