/* ==========================================================================
   Apexa Capital — styles
   ========================================================================== */


@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("assets/fonts/manrope-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/manrope-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/manrope-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/manrope-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/manrope-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Apexa Capital brand manual V2: black grounds, electric blue, light grey */
  --bg: #000000;
  --bg-2: #0d0d0d;
  --bg-3: #191919;
  --bg-4: #333333;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #ffffff;
  --ink-2: #dbe2ea;
  --muted: #9aa3ad;
  --dark-ink: #191919;
  --dark-muted: #4c4c4c;
  --light: #dbe2ea;
  --light-2: #eef1f5;
  --brand: #2960f8;
  --brand-2: #6d95ff;
  --brand-mid: #2254c4;
  --brand-deep: #193e91;
  --orange: #f16f33;
  --red: #e5383b;
  --glow: rgba(41, 96, 248, 0.38);

  --font: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --radius-sm: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.9s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--brand); color: #fff; }
.section--light { color: var(--dark-ink); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; overflow: hidden; }
[id] { scroll-margin-top: 72px; }
.section--light ::selection { background: var(--brand); color: #fff; }
.section--light { color: var(--dark-ink); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--brand); }
.eyebrow--light { color: rgba(255,255,255,0.75); }

.h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 18ch;
}
.h2--dark { color: var(--dark-ink); }
.h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.section__note { color: var(--muted); max-width: 34ch; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-x: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 var(--pad-x);
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.45s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.45s var(--ease-out);
  will-change: transform;
}
.btn .arrow { transition: transform 0.45s var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { height: 40px; --pad-x: 20px; font-size: 13.5px; }
.btn--solid { background: var(--ink); color: var(--dark-ink); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(255,255,255,0.35); }
.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn--dark { background: var(--dark-ink); color: #fff; }
.btn--dark:hover { background: var(--brand); transform: translateY(-2px); box-shadow: 0 16px 36px -14px var(--brand); }
.btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(100% - 2 * var(--gutter), 1320px);
  margin-inline: auto;
  height: 76px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: height 0.4s var(--ease-out);
}
.nav.is-scrolled .nav__inner { height: 64px; }
.nav__logo img { height: 30px; width: auto; transition: opacity 0.3s; }
.nav__logo:hover img { opacity: 0.8; }
.nav__links { display: flex; gap: 36px; justify-self: center; }
.nav__links a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { justify-self: end; display: flex; align-items: center; gap: 12px; }

.nav__burger {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__burger span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 48px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease-out), visibility 0s 0.45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.45s var(--ease-out); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-size: clamp(36px, 10vw, 56px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(0.08s + var(--i) * 0.07s);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu__foot { margin-top: auto; display: flex; gap: 24px; color: var(--muted); font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; overflow: hidden;
  padding: 140px 0 120px;
  background: radial-gradient(120% 80% at 50% 110%, #0b1a4a 0%, var(--bg) 58%);
  isolation: isolate;
}
.hero__field {
  position: absolute; inset: -6%; z-index: 0; overflow: hidden;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  will-change: transform;
}
.hero__field picture { display: block; width: 100%; height: 100%; }
.hero__field img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  opacity: 0.62;
  transform-origin: 50% 46%;
  animation: expand 60s linear infinite alternate;
}
@keyframes expand { from { transform: scale(1); } to { transform: scale(1.14); } }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; z-index: 0; left: 50%; top: 58%;
  width: min(1100px, 130vw); aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,255,255,0.22), rgba(109,149,255,0.16) 25%, rgba(41,96,248,0.08) 50%, transparent 72%);
  filter: blur(22px); mix-blend-mode: screen;
  animation: breathe 9s var(--ease-in-out) infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
.hero__vignette {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(0,0,0,0.55), rgba(0,0,0,0.15) 60%, transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.65), transparent 25%, transparent 68%, var(--bg) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 1040px; }
.hero__eyebrow { opacity: 0; animation: fadeUp 1s var(--ease-out) 0.2s forwards; }
.hero__title {
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.hero__title .w {
  display: inline-block;
  vertical-align: bottom;
  margin-right: 0;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero__title .w { animation: wordIn 1.2s var(--ease-out) forwards; opacity: 0; transform: translateY(60%); }
.hero__title .w:nth-child(1) { animation-delay: 0.35s; }
.hero__title .w:nth-child(2) { animation-delay: 0.45s; }
.hero__title .w:nth-child(3) { animation-delay: 0.55s; }
.hero__title .w:nth-child(4) { animation-delay: 0.65s; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }
.hero__lede {
  text-shadow: 0 1px 24px rgba(0,0,0,0.8);
  max-width: 62ch; margin-inline: auto;
  font-size: clamp(15px, 1.25vw, 17px); line-height: 1.7; color: var(--ink-2);
  opacity: 0; animation: fadeUp 1.1s var(--ease-out) 1s forwards;
}
.hero__actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px;
  opacity: 0; animation: fadeUp 1.1s var(--ease-out) 1.2s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; z-index: 1; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0; animation: fadeUp 1s var(--ease-out) 1.8s forwards;
}
.hero__scroll-line {
  width: 1px; height: 54px; background: linear-gradient(to bottom, transparent, var(--ink-2));
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--bg);
  animation: scrollLine 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(0); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Section tones ---------- */
.section--light { background: var(--light-2); color: var(--dark-ink); }
.section--light .eyebrow { color: var(--brand); }

/* ---------- About (light) ---------- */
.about { overflow: hidden; }
.about::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 55vw; height: 55vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(41,96,248,0.10), transparent 70%); pointer-events: none;
}
.about__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.about__text .h2 { margin-bottom: 28px; }
.about__text p { color: #333333; font-size: 15.5px; line-height: 1.75; margin-bottom: 18px; max-width: 58ch; }
.about__text .btn { margin-top: 14px; }
.about__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.45);
}
.about__media img {
  width: 100%; height: 114%; object-fit: cover; object-position: 55% 45%;
  will-change: transform; transform: translateY(var(--py, 0));
}

/* ---------- Mandate ---------- */
.mandate { background: var(--bg); }
.mandate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 0%, rgba(41,96,248,0.14), transparent 70%);
}
.mandate .container { position: relative; }
.mandate__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.mandate__item {
  padding: 40px 32px 44px; position: relative;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.mandate__item:nth-child(3n+1) { padding-left: 0; }
.mandate__item:nth-child(3n) { border-right: 0; padding-right: 0; }
.mandate__item::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--brand-2); transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.mandate__item:hover::before { transform: scaleX(1); }
.mandate__num { font-size: 12px; letter-spacing: 0.18em; color: var(--brand-2); display: block; margin-bottom: 40px; }
.mandate__item h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 12px; }
.mandate__item p { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 34ch; }

/* ---------- Team ---------- */
.team { background: var(--bg-3); }
.team .container { position: relative; }
.person {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  align-items: center; padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.person--rev { direction: rtl; }
.person--rev > * { direction: ltr; }
.person__photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--bg-3);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.person__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  transition: transform 1.4s var(--ease-out); filter: saturate(0.92);
}
.person:hover .person__photo img { transform: scale(1.04); }
.person__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px;
  background: linear-gradient(to top, rgba(7,10,18,0.85), transparent);
  display: flex; flex-direction: column; gap: 2px;
}
.person__photo strong { font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.person__photo span { color: var(--ink-2); font-size: 14px; }
.person__bio .eyebrow { margin-bottom: 10px; }
.person__photo figcaption { display: none; }
.person__bio p { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; max-width: 60ch; }
.person__bio p:last-child { margin-bottom: 0; }

/* ---------- Portfolio ---------- */
.portfolio { background: linear-gradient(180deg, #0b1a4a 0%, #050a1c 26%, var(--bg) 55%); }
.portfolio__group { margin-top: clamp(40px, 5vw, 64px); }
.portfolio__group:first-of-type { margin-top: 0; }
.portfolio__label {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500;
  margin: 0 0 20px; display: flex; align-items: center; gap: 16px;
}
.portfolio__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
#logos-direct { grid-template-columns: repeat(5, 1fr); }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 2; padding: 18%;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; isolation: isolate;
  transition: transform 0.6s var(--ease-out), border-color 0.4s, background 0.4s, box-shadow 0.6s var(--ease-out);
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(109,149,255,0.22), transparent 60%);
  transition: opacity 0.4s;
}
.tile img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.6s var(--ease-out), opacity 0.4s; opacity: 0.86;
}
.tile img.tile__img--tall { width: 62%; height: 62%; }
.tile img.tile__img--sq { width: 64%; height: 64%; }
.tile img.tile__img--lg { width: 84%; height: 84%; }
.tile img.tile__img--mono { filter: brightness(0) invert(1); }
a.tile:hover { transform: translateY(-4px); border-color: rgba(109,149,255,0.5); background: var(--panel-strong); box-shadow: 0 24px 50px -24px rgba(41,96,248,0.55); }
a.tile:hover::before { opacity: 1; }
a.tile:hover img { opacity: 1; transform: scale(1.04); }
a.tile::after {
  content: "↗"; position: absolute; top: 10px; right: 12px; z-index: 2;
  font-size: 12px; color: var(--brand-2); opacity: 0; transform: translate(-4px, 4px);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
a.tile:hover::after { opacity: 1; transform: none; }
.tile--static { cursor: default; }
.tile__badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  color: #fff; background: var(--red); padding: 6px 8px 5px; border-radius: 4px;
  box-shadow: 0 6px 16px -6px rgba(229,56,59,0.7);
}
a.tile:has(.tile__badge)::after { display: none; }

/* ---------- Contact (flat brand blue, per manual) ---------- */
.contact { background: var(--brand); color: #fff; }
.contact__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact__glow { display: none; }
.contact__intro { position: relative; }
.contact__intro .eyebrow { color: rgba(255,255,255,0.8); }
.contact__intro .h2 { margin-bottom: 20px; }
.contact__text { color: rgba(255,255,255,0.86); max-width: 40ch; margin-bottom: 36px; }
.contact__social { display: flex; gap: 22px; }
.contact__social a {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 3px; transition: border-color 0.3s;
}
.contact__social a:hover { border-color: #fff; }

.form {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--dark-ink); color: #fff; padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.55);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15px; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 13px 14px; outline: none;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field select option { color: var(--dark-ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  background: rgba(255,255,255,0.09); border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(41,96,248,0.25);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.hidden-field { position: absolute; left: -9999px; opacity: 0; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form .btn--solid { background: var(--brand); color: #fff; }
.form .btn--solid:hover { box-shadow: 0 14px 40px -12px var(--brand); }
.form__status { font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }

/* ---------- Brand "grafismo": stacked block mosaic ---------- */
.blocks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.blocks i { position: absolute; display: block; }
.blocks--hero i:nth-child(1) { right: 0; top: 18%; width: 22vw; height: 9vw; background: linear-gradient(90deg, transparent, rgba(41,96,248,0.16)); }
.blocks--hero i:nth-child(2) { right: 8vw; top: 27%; width: 14vw; height: 5vw; background: linear-gradient(90deg, transparent, rgba(41,96,248,0.10)); }
.blocks--hero i:nth-child(3) { left: 0; bottom: 22%; width: 18vw; height: 7vw; background: linear-gradient(270deg, transparent, rgba(41,96,248,0.12)); }
.blocks--hero i:nth-child(4) { left: 6vw; bottom: 29%; width: 10vw; height: 4vw; background: linear-gradient(270deg, transparent, rgba(41,96,248,0.08)); }

.blocks--team i:nth-child(1) { left: 0; top: 0; width: 30vw; height: 20%; background: linear-gradient(90deg, rgba(41,96,248,0.8), rgba(41,96,248,0.12)); }
.blocks--team i:nth-child(2) { left: 0; top: 22%; width: 18vw; height: 12%; background: linear-gradient(90deg, var(--brand-deep), transparent); opacity: 0.7; }
.blocks--team i:nth-child(4) { right: 0; bottom: 0; width: 24vw; height: 16%; background: linear-gradient(270deg, rgba(41,96,248,0.6), transparent); }

.blocks--contact i:nth-child(1) { right: 0; top: 0; width: 30vw; height: 30%; background: rgba(0,0,0,0.22); }
.blocks--contact i:nth-child(2) { right: 30vw; top: 0; width: 12vw; height: 14%; background: rgba(0,0,0,0.12); }
.blocks--contact i:nth-child(3) { left: 0; bottom: 0; width: 22vw; height: 26%; background: rgba(255,255,255,0.10); }
.blocks--contact i:nth-child(4) { left: 22vw; bottom: 0; width: 9vw; height: 12%; background: rgba(0,0,0,0.14); }
.contact .container, .team .container { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 36px; background: var(--bg); }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; padding-bottom: 40px;
}
.footer__brand img { height: 34px; width: auto; margin-bottom: 14px; }
.footer__brand p { color: var(--muted); font-size: 14px; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.footer__nav a:hover { color: #fff; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2); transition: border-color 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}
.footer__social a:hover { border-color: var(--brand-2); color: #fff; transform: translateY(-2px); }
.footer__legal {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px;
  color: var(--muted); font-size: 12.5px; line-height: 1.65;
}
.footer__disclaimer { max-width: 80ch; opacity: 0.85; }
@media (max-width: 900px) { .footer__legal { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  #logos-direct { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  /* Hero: let the deep field read on small screens */
  .hero__field img { opacity: 0.85; object-position: 50% 45%; }
  .hero__vignette {
    background:
      radial-gradient(70% 45% at 50% 48%, rgba(0,0,0,0.5), rgba(0,0,0,0.1) 65%, transparent 100%),
      linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 22%, transparent 72%, var(--bg) 100%);
  }
  .hero__glow { width: 140vw; opacity: 0.8; }
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { grid-template-columns: 1fr auto; }

  .about { padding-top: 56px; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__media { order: -1; aspect-ratio: 4 / 3; }
  .team .person { padding: 40px 0; }
  .person__photo { max-width: 100%; aspect-ratio: 1 / 1; }
  .person__photo img { object-position: 50% 12%; }

  .person, .person--rev { grid-template-columns: 1fr; direction: ltr; gap: 28px; }
  .person__photo { max-width: 420px; aspect-ratio: 4 / 5; }

  .contact__panel { grid-template-columns: 1fr; }
  .blocks--team i, .blocks--contact i { opacity: 0.5; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .hero { padding: 120px 0 80px; }
  .hero__scroll { display: none; }
  .hero__lede { font-size: 15px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .logos, #logos-direct { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mandate__grid { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .mandate__item, .mandate__item:nth-child(3n+1), .mandate__item:nth-child(3n) { padding: 24px 16px 26px 0; border-right: 0; }
  .mandate__item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 16px; }
  .mandate__item:nth-child(even) { padding-left: 16px; }
  .mandate__num { margin-bottom: 14px; }
  .mandate__item h3 { font-size: 16px; margin-bottom: 8px; }
  .mandate__item p { font-size: 13px; line-height: 1.55; }
  .tile { padding: 14%; aspect-ratio: 3 / 2; }
  .tile img.tile__img--sq { width: 58%; height: 58%; }
  .tile__badge { top: 8px; right: 8px; font-size: 9px; padding: 5px 6px 4px; }
  .hero__title { font-size: clamp(38px, 11vw, 48px); margin-bottom: 22px; }
  .hero__lede { font-size: 14.5px; line-height: 1.65; }
  .h2 { font-size: clamp(28px, 8vw, 34px); }
  .section { padding-block: 64px; }
  .contact .form { padding: 22px 18px; }
  .footer { padding: 44px 0 28px; }
  .mandate__num { margin-bottom: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .section__head--split { align-items: flex-start; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .w { opacity: 1 !important; transform: none !important; }
  .hero__eyebrow, .hero__lede, .hero__actions, .hero__scroll { opacity: 1; }
  .hero__stars { display: none; }
}
