/* =========================================================
   GOATS — Homepage
   Layout concept: a dark teal stage; huge condensed type on the left,
   duotone imagery bleeding off the right; sections slide in sideways.
   Structure mirrors future WP template parts (one block = one section).
   ========================================================= */

:root {
  /* Brand palette (Branding Presentation) */
  --teal-900: #002424;      /* primary dark */
  --teal-950: #001717;      /* deeper stage for contrast */
  --mint:     #E3F6C6;      /* accent */
  --sage:     #9AAA8E;      /* secondary / muted */
  --bone:     #F3F7EE;      /* text, mint-biased white */
  --line:     rgba(227, 246, 198, .16);
  --mint-a10: rgba(227, 246, 198, .10);

  /* Semantic tokens */
  --bg: var(--teal-900);
  --bg-deep: var(--teal-950);
  --fg: var(--bone);
  --muted: var(--sage);
  --accent: var(--mint);
  --on-accent: var(--teal-900);

  /* Type */
  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-brush: "Permanent Marker", "Segoe Print", "Comic Sans MS", cursive;
  --font-pixel: "Silkscreen", "Courier New", monospace;

  --fs-hero: clamp(3.6rem, 12.5vw, 12.5rem);
  --fs-display: clamp(2.8rem, 8vw, 7.5rem);
  --fs-h3: clamp(1.4rem, 2.2vw, 2rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.35rem);
  --fs-body: 1rem;
  --fs-small: .8rem;

  --gutter: clamp(16px, 4vw, 64px);
  --section-y: clamp(96px, 10vw, 150px); /* one vertical rhythm for every section */
  --maxw: 1440px;
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --logo-ratio: 321.66 / 119.14;

  color-scheme: dark;
}

/* Arabic (planned): swap families + keep everything else logical-property based */
[dir="rtl"] {
  --font-display: "Alexandria", "Oswald", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Montserrat", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.dash { display: inline-block; width: 32px; height: 1px; background: currentColor; vertical-align: middle; margin-inline: .6em; opacity: .7; }
.display {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: var(--fs-display); line-height: .9; letter-spacing: -.01em;
}
.brush { font-family: var(--font-brush); font-style: normal; text-transform: none; color: var(--accent); font-weight: 400; }

/* ---------- Logo (mask so it takes any color) ---------- */
.logo-mask {
  display: inline-block; background: currentColor; aspect-ratio: var(--logo-ratio);
  -webkit-mask: url("../img/goats-logo.svg") center / contain no-repeat;
          mask: url("../img/goats-logo.svg") center / contain no-repeat;
}

/* ---------- Duotone image treatment (teal shadows, mint highlights) ---------- */
.duo { position: relative; overflow: hidden; background: var(--bg-deep); isolation: isolate; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.duo::before, .duo::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.duo::before { background: var(--teal-900); mix-blend-mode: lighten; }
.duo::after  { background: var(--mint); mix-blend-mode: multiply; }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2.2rem;
  min-height: var(--h); padding: 0 1.4rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn__arrow { display: inline-block; transition: transform .4s var(--ease); }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
.btn:hover .btn__arrow { transform: translateX(6px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary::before { background: var(--bone); }
.btn--outline { border: 1px solid var(--line); color: var(--fg); border-color: rgba(243, 247, 238, .55); }
.btn--outline::before { background: var(--accent); }
.btn--outline:hover { color: var(--on-accent); border-color: var(--accent); }
.btn--sm { --h: 42px; font-size: .95rem; gap: 1rem; padding: 0 1rem; }
.btn--lg { --h: 72px; font-size: 1.4rem; padding: 0 2rem; gap: 4rem; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg-deep);
  display: grid; place-items: center; align-content: center; gap: 1.2rem; color: var(--accent);
}
.preloader__logo { width: min(320px, 60vw); }
.preloader__count { font-family: var(--font-pixel); font-size: .9rem; color: var(--muted); letter-spacing: .1em; }
.preloader__tag { position: absolute; bottom: 32px; font-size: .7rem; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); }

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: grid; place-items: center; position: fixed; top: 0; left: 0; z-index: 90;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--accent); pointer-events: none; mix-blend-mode: difference;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
  }
  .cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; }
  .cursor__label { font-family: var(--font-display); text-transform: uppercase; font-size: .9rem; color: var(--on-accent); opacity: 0; transition: opacity .3s; }
  .cursor.is-view .cursor__label { opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 18px;
  transition: transform .5s var(--ease), background .4s, padding .4s;
}
.site-header.is-scrolled { background: rgba(0, 23, 23, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; }
.site-header.is-hidden, .js .site-header.is-intro { transform: translateY(-110%); }
.site-header__logo { display: inline-flex; align-items: flex-start; color: var(--fg); }
.site-header__logo .logo-mask { width: 104px; }
.site-header__logo sup { font-size: .55rem; margin-inline-start: 2px; color: var(--muted); }
.site-nav { display: flex; gap: 2.2rem; }
.site-nav a {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  position: relative; padding-block: 4px;
}
.site-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header__actions { display: flex; align-items: center; gap: 1.2rem; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang-switch button { min-width: 34px; height: 28px; border-radius: 99px; font-size: .75rem; font-weight: 600; letter-spacing: .05em; color: var(--muted); }
.lang-switch button.is-active { background: var(--accent); color: var(--on-accent); }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span:not(.sr-only) { position: absolute; inset-inline: 10px; height: 2px; background: var(--fg); transition: transform .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
  padding: calc(88px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
}
@media (max-height: 640px) { .mobile-menu { justify-content: flex-start; } }
.mobile-menu nav { display: grid; gap: .4rem; }
.mobile-menu nav a { font-family: var(--font-display); font-size: clamp(1.75rem, min(8vw, 6.5svh), 3rem); text-transform: uppercase; line-height: 1.15; }
.mobile-menu__foot { color: var(--muted); font-size: var(--fs-small); letter-spacing: .2em; text-transform: uppercase; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-block: 120px 120px; overflow: hidden; background: var(--bg-deep);
}
.hero__media { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(62vw, 980px); z-index: 0; }
.hero__media .duo { height: 100%; }
.hero__media img { object-position: 30% 30%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, var(--bg-deep) 0%, rgba(0, 23, 23, .55) 28%, rgba(0, 23, 23, 0) 55%),
              linear-gradient(0deg, var(--bg-deep) 0%, rgba(0, 23, 23, 0) 30%);
}
[dir="rtl"] .hero__media::after { transform: scaleX(-1); }
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { color: var(--bone); margin-bottom: 1.6rem; letter-spacing: .3em; }
.hero__eyebrow::before { display: none; }
.hero__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fs-hero); line-height: .86; letter-spacing: -.015em; }
.hero__line { display: block; }
.hero__line--brush { font-family: var(--font-brush); font-weight: 400; text-transform: none; color: var(--accent); font-size: .88em; line-height: 1.12; margin-top: .02em; letter-spacing: 0; }
.hero__pillars { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; font-size: .8rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__side { position: absolute; z-index: 2; inset-inline-end: var(--gutter); top: 130px; text-align: start; }
.hero__values { font-family: var(--font-display); font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; line-height: 1.9; color: var(--bone); }
.hero__rule { display: block; width: 56px; height: 1px; background: var(--accent); margin-top: 14px; }
.hero__note {
  position: absolute; z-index: 2; inset-inline-end: 30%; bottom: 22%;
  font-family: var(--font-brush); font-size: clamp(1.1rem, 1.8vw, 1.6rem); line-height: 1.15; color: var(--bone);
  transform: rotate(-8deg); opacity: .9;
}
.hero__bottom { position: absolute; z-index: 2; inset-inline: 0; bottom: 28px; display: flex; justify-content: space-between; align-items: center; }
.hero__force { font-family: var(--font-display); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__force span:last-child { color: var(--fg); }
.scroll-cue { width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 20px; position: relative; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 2. Ticker ---------- */
.ticker { background: var(--accent); color: var(--on-accent); overflow: hidden; padding-block: 1.1rem; transform: rotate(-1.5deg) scale(1.02); margin-block: -14px; position: relative; z-index: 3; }
.ticker__track, .partners__track { display: flex; width: max-content; will-change: transform; }
.ticker__group { display: flex; align-items: center; gap: 2.4rem; padding-inline-end: 2.4rem; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.ticker__group i { font-style: normal; font-size: .5em; }
.t-bold { font-family: var(--font-display); font-weight: 700; }
.t-light { font-family: var(--font-display); font-weight: 300; }
.t-serif { font-family: var(--font-serif); font-style: italic; text-transform: none; }
.t-pixel { font-family: var(--font-pixel); font-size: .8em; }

/* ---------- 3. Manifesto ---------- */
.manifesto { padding-block: calc(var(--section-y) + 24px) var(--section-y); }
.manifesto__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.manifesto__title { margin-top: 1.4rem; }
.manifesto__tags { margin-top: 2.4rem; display: grid; gap: .3rem; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.manifesto__body { min-width: 0; }
.manifesto__text { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.22; text-transform: uppercase; max-width: 22ch; }
.manifesto__text .word { opacity: .18; transition: none; }
.no-js .manifesto__text .word, .reduced .manifesto__text .word { opacity: 1; }
.manifesto__images { position: relative; margin-top: 4rem; height: clamp(320px, 34vw, 480px); }
.manifesto__img { position: absolute; }
.manifesto__img .duo { height: 100%; }
.manifesto__img--a { inset-inline-start: 0; top: 0; width: 58%; aspect-ratio: 517 / 503; max-width: 100%; }
.manifesto__img--b { inset-inline-end: 0; bottom: -40px; width: 34%; aspect-ratio: 204 / 237; border: 6px solid var(--bg); }

/* ---------- 4. Services (horizontal) ---------- */
.services { background: var(--bg-deep); position: relative; }
.services__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; position: relative; }
.services__track { display: flex; gap: clamp(20px, 2.4vw, 40px); padding-inline: var(--gutter); width: max-content; align-items: stretch; will-change: transform; }
.services__intro { width: min(520px, 80vw); display: flex; flex-direction: column; justify-content: center; padding-inline-end: 4vw; }
.services__heading { margin-top: 1.4rem; }
.services__heading .brush { text-transform: lowercase; font-size: .85em; }
.services__lead { margin-top: 1.6rem; color: var(--muted); font-size: var(--fs-lead); max-width: 32ch; }
.services__hint { margin-top: 2.6rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; color: var(--accent); }
.services__hint span { display: inline-block; animation: nudge 1.6s var(--ease) infinite; }
[dir="rtl"] .services__hint span { transform: scaleX(-1); animation: none; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.svc-card {
  width: clamp(300px, 30vw, 440px); min-height: min(640px, 76svh); flex: none;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; position: relative; background: linear-gradient(180deg, rgba(0, 36, 36, .7), rgba(0, 23, 23, .4));
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.svc-card:hover { border-color: rgba(227, 246, 198, .5); background: linear-gradient(180deg, rgba(0, 48, 48, .9), rgba(0, 23, 23, .5)); }
.svc-card__num { font-family: var(--font-pixel); font-size: .85rem; color: var(--accent); }
.svc-card__num::after { content: ""; display: block; width: 26px; height: 1px; background: var(--accent); margin-top: 8px; }
.svc-card__art { flex: 1; display: grid; place-items: center; margin-block: 18px; min-height: 180px; }
.svc-card__art img { width: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: screen; filter: grayscale(1) contrast(1.1) brightness(1.05); transition: transform .8s var(--ease); }
.svc-card:hover .svc-card__art img { transform: scale(1.06) rotate(-2deg); }
.svc-card__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); letter-spacing: .12em; text-transform: uppercase; line-height: 1.15; }
.svc-card__tag { margin-top: .4rem; font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--accent); }
.svc-card__list { margin-top: 1.2rem; display: grid; gap: .45rem; font-size: .9rem; color: var(--muted); }
.svc-card__list li { display: flex; gap: .7rem; align-items: center; border-top: 1px solid var(--line); padding-top: .45rem; }
.svc-card__list li::before { content: "+"; color: var(--accent); }
.services__progress { position: absolute; inset-inline: var(--gutter); bottom: 34px; height: 1px; background: var(--line); }
.services__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .services__progress span { transform-origin: right; }

/* ---------- 5. Statement ---------- */
.statement { padding-block: var(--section-y); overflow: hidden; }
.statement__grid { display: grid; grid-template-columns: 1fr minmax(0, 1.05fr) 1fr; gap: clamp(24px, 3vw, 56px); align-items: center; }
.statement__img { aspect-ratio: 3 / 4; max-width: 100%; }
.statement__img .duo { height: 100%; }
.statement__img--left { margin-top: 8vh; }
.statement__img--right { margin-bottom: 8vh; }
.statement__copy { text-align: center; }
.statement__title { margin-top: 1.4rem; font-family: var(--font-serif); font-weight: 400; font-size: clamp(3.4rem, 7.4vw, 7.2rem); line-height: .92; letter-spacing: -.01em; }
.statement__list { margin-top: 2.4rem; display: grid; gap: .6rem; color: var(--muted); font-size: .95rem; }
.statement__list b { color: var(--accent); font-family: var(--font-display); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-inline-end: .4em; }

/* ---------- 6. Work ---------- */
.work { padding-block: var(--section-y); background: var(--bg-deep); overflow: hidden; }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.work__title { margin-top: 1.2rem; }
.work__lead { max-width: 30ch; color: var(--muted); font-size: var(--fs-lead); }
.work__rows { margin-top: clamp(48px, 6vw, 90px); display: grid; gap: clamp(16px, 2vw, 28px); }
.work__row { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; will-change: transform; }
.work__row[data-row="1"] { margin-inline-start: -6vw; }
.work__row[data-row="-1"] { margin-inline-start: -30vw; }
.project { position: relative; display: block; width: clamp(280px, 30vw, 460px); flex: none; }
.project--tall { width: clamp(220px, 21vw, 320px); }
.project__media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.project--tall .project__media { aspect-ratio: 3 / 4; }
.project:not(.project--tall) .project__media { height: 100%; }
.project__media img { transition: transform 1s var(--ease); }
.project:hover .project__media img { transform: scale(1.07); }
.project__meta {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(0deg, rgba(0, 23, 23, .9), rgba(0, 23, 23, 0));
}
.project__client { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; }
.project__name { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.work__row .project { align-self: center; }
.work__more { margin-top: clamp(48px, 5vw, 80px); display: flex; justify-content: center; }

/* ---------- 7. Numbers ---------- */
.numbers { padding-block: var(--section-y); border-block: 1px solid var(--line); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: .6rem; padding: 10px 24px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6.5vw, 6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.stat--accent .stat__num { color: var(--accent); }

/* ---------- 8. Herd ---------- */
.herd { padding-block: var(--section-y); overflow: hidden; }
.herd__title { margin-top: 1.2rem; }
.herd__grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.member:nth-child(even) { margin-top: 70px; }
.member__img { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.member__img img { transition: transform 1s var(--ease); }
.member:hover .member__img img { transform: scale(1.06); }
.member figcaption { margin-top: 1rem; display: grid; gap: .2rem; }
.member figcaption b { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; }
.member figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- 9. Partners ---------- */
.partners { padding-block: calc(var(--section-y) * .6); background: var(--bg-deep); overflow: hidden; }
.partners__track { margin-top: 2.2rem; }
.partners__group { display: flex; gap: 1.2rem; padding-inline-end: 1.2rem; }
.partner {
  display: grid; place-items: center; width: 220px; height: 120px; flex: none;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--bone);
  transition: color .4s, border-color .4s;
}
.partner i {
  display: block; width: 100%; height: 100%; background: currentColor; opacity: .75;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 92%; mask-size: 92%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: opacity .4s;
}
.partner:hover { color: var(--accent); border-color: rgba(227, 246, 198, .5); }
.partner:hover i { opacity: 1; }

/* ---------- 10. Contact ---------- */
.contact { position: relative; padding-block: calc(var(--section-y) * 1.25); overflow: hidden; text-align: center; }
.contact__bg { position: absolute; inset: 0; z-index: 0; opacity: .45; }
.contact__bg::after { mix-blend-mode: multiply; }
.contact__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.contact__title { margin-top: 1.6rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(3rem, 9vw, 8.6rem); line-height: .9; }
.contact__title > span { display: block; }
.contact__title .brush { font-size: .85em; line-height: 1.15; }
.contact__actions { margin-top: 3rem; }
.contact__info { margin-top: 4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 4rem; }
.contact__info div { display: grid; gap: .3rem; }
.contact__info dt { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.contact__info dd { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; user-select: all; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); padding-block: 80px calc(28px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer__slogan { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); text-transform: uppercase; line-height: 1.05; }
.site-footer__nav, .site-footer__social { display: grid; gap: .6rem; align-content: start; font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.site-footer__nav a:hover, .site-footer__social a:hover, .site-footer__bottom a:hover { color: var(--accent); }
.site-footer__mark { color: var(--accent); max-width: var(--maxw); margin: 64px auto 32px; padding-inline: var(--gutter); }
.site-footer__mark .logo-mask { width: min(440px, 62%); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .78rem; color: var(--muted); }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--gutter); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 12, 12, .75); backdrop-filter: blur(6px); }
.modal__box { position: relative; width: min(480px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 32px 32px; }
.modal__close { position: absolute; top: 10px; inset-inline-end: 14px; font-size: 2rem; line-height: 1; color: var(--muted); width: 40px; height: 40px; }
.modal__title { font-family: var(--font-display); font-size: 2.4rem; text-transform: uppercase; line-height: 1; }
.modal__text { margin-top: .6rem; color: var(--muted); }
.modal__form { margin-top: 1.6rem; display: grid; gap: .8rem; }
.modal__form input { height: 54px; padding: 0 16px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); font: inherit; }
.modal__form input:focus { outline: none; border-color: var(--accent); }
.modal__error { color: #ffb4a8; font-size: .85rem; }
.modal__done { margin-top: 1.4rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); text-transform: uppercase; }
.toast { position: fixed; z-index: 85; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: 99px; font-weight: 600; font-size: .85rem; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .statement__grid { grid-template-columns: 1fr 1fr; }
  .statement__copy { grid-column: 1 / -1; grid-row: 1; }
  .statement__img--left, .statement__img--right { margin: 0; }
  .herd__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member:nth-child(even) { margin-top: 40px; }
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 760px) {
  .site-header .btn--sm { display: none; }
  .hero { padding-block: 110px 100px; justify-content: flex-end; }
  .hero__media { width: 100%; opacity: .6; }
  .hero__media img { object-position: 72% 20%; }
  .hero__eyebrow { flex-wrap: wrap; letter-spacing: .22em; gap: .2rem .6rem; font-size: .7rem; }
  .hero__eyebrow .dash { display: none; }
  .work__row { width: auto; margin-inline: 0 !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scrollbar-width: none; }
  .work__row::-webkit-scrollbar { display: none; }
  .work__row .project { scroll-snap-align: start; }
  .hero__media::after { background: linear-gradient(0deg, var(--bg-deep) 8%, rgba(0, 23, 23, .3) 60%, rgba(0, 23, 23, .6) 100%); }
  .hero__side, .hero__note { display: none; }
  .hero__pillars { letter-spacing: .18em; gap: .3rem 1rem; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__force { font-size: .75rem; }
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__images { height: 360px; }
  /* Services become a native swipe row on small screens */
  .services__pin { height: auto; padding-block: var(--section-y); }
  .services__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
  .services__track::-webkit-scrollbar { display: none; }
  .services__intro { width: 84vw; flex: none; padding-inline-end: 0; scroll-snap-align: start; }
  .svc-card { width: 82vw; min-height: 520px; scroll-snap-align: start; }
  .services__track { scroll-padding-inline: var(--gutter); }
  .services__progress, .services__hint { display: none; }
  .statement__title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .project { width: 72vw; }
  .project--tall { width: 52vw; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__slogan { grid-column: 1 / -1; }
  .btn--lg { gap: 2rem; font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding-inline: 14px; }
  .herd__grid { gap: 12px; }
  .member figcaption b { font-size: 1rem; }
  .member figcaption span { font-size: .8rem; }
}

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

/* Lift very dark mood images so they read on the teal stage */
.statement__img img, .contact__bg img { filter: grayscale(1) contrast(1.05) brightness(1.45); }
