/* =====================================================================
   AUDIENCE IN MOTION — brand site · layout / motion
   ---------------------------------------------------------------------
   1. Tokens        2. Base        3. Tipografía   4. Botones
   5. Header        6. Hero        7. Text-tout    8. Trabajo
   9. Clientes     10. Servicios  11. Premios     12. Propósito
   13. Noticias    14. Footer     15. Utilidades / motion
   ===================================================================== */

/* ── 1. TOKENS ─────────────────────────────────────────────────────── */
@font-face{
  font-family:"Instrument Sans";
  src:url("../fonts/InstrumentSans-normal-400_700.woff2") format("woff2");
  font-weight:400 700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Instrument Sans";
  src:url("../fonts/InstrumentSans-italic-400_700.woff2") format("woff2");
  font-weight:400 700; font-style:italic; font-display:swap;
}
@font-face{
  font-family:"Instrument Serif";
  src:url("../fonts/InstrumentSerif-normal-400.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Instrument Serif";
  src:url("../fonts/InstrumentSerif-italic-400.woff2") format("woff2");
  font-weight:400; font-style:italic; font-display:swap;
}

:root{
  /* color */
  --ink:#070708;
  --paper:#FFFFFF;
  --stone:#E8E8E9;
  --grey:#808080;

  /* Brand palette, taken from the official AIM logo variations.
     ORANGE IS THE BRAND COLOUR and carries every large surface and UI
     affordance. The remaining hues are supporting accents: they appear only
     in small marks or in a single chapter, never as a full-page background,
     so the site does not read as green/cyan/blue. */
  --aim-orange:#F07F1E;
  /* Accent text on light surfaces. Kept dark enough to clear AA for small
     text on the warm sand too, not just on white: 5.25:1 on #F6EFE6. */
  --aim-orange-deep:#A04B09;
  --aim-lime:#8CD000;
  --aim-cyan:#00B4E0;
  --aim-magenta:#E4007C;
  --aim-navy:#1B1B8C;

  /* The raw navy is unreadable on --ink (1.5:1), so any navy surface that sits
     on a dark section uses this tint instead: 5.7:1 against #070708. */
  --aim-navy-on-dark:#8282C0;

  /* --lime is the legacy name for the UI accent. It now points at the brand
     orange so every rule that used it inherits the real brand colour. */
  --lime:var(--aim-orange);

  /* Warm neutral derived from the brand orange: the same hue family, dropped to
     a surface tone. Used where a section needs to feel warm rather than white
     without introducing a second accent. Ink on it reads 17.6:1. */
  --sand:#F6EFE6;
  --olive:#3C3D24;
  --cream:#EFEAC2;

  /* One tint per buyer persona, used by the Who We Help surface as it scrolls.
     All three are the same surface tone, taken from the green that worked and
     applied to three hues from the logo sheet: cyan, navy and lime. Matching
     the lightness and saturation is what makes them read as one family rather
     than three unrelated swatches.

     The previous warm pair (sand, blush) sat 17 degrees apart in hue, so they
     were indistinguishable in use; these are 48 degrees apart at the closest
     and still keep body copy well clear of the contrast floor (10.9:1 on ink
     at worst). */
  --who-1:#BCD9E0;  /* Media Owners & Platforms  · logo cyan */
  --who-2:#BCBCE0;  /* Brands & Agencies         · logo navy */
  --who-3:#D6E0BC;  /* Business & Sales Leaders  · logo lime */

  /* type */
  --sans:"Instrument Sans",Helvetica,Arial,sans-serif;
  --serif:"Instrument Serif",Times,serif;

  --fs-overline:12px;
  --fs-micro:10px;
  --fs-body-1:clamp(14px,1.05vw,15px);
  --fs-body-2:clamp(16px,1.46vw,21px);
  --fs-body-3:clamp(19px,2.08vw,30px);
  --fs-h-3:clamp(22px,2.5vw,36px);
  --fs-h-4:clamp(26px,3.06vw,44px);
  --fs-h-5:clamp(30px,3.61vw,52px);
  --fs-h-6:clamp(34px,4.17vw,60px);
  --fs-h-7:clamp(52px,11.1vw,160px);
  --fs-d-1:clamp(38px,5.42vw,78px);
  --fs-d-2:clamp(56px,11.67vw,168px);
  --fs-d-3:clamp(68px,16.67vw,240px);

  /* métrica */
  --ease:cubic-bezier(.73,.24,.68,.82);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --t:.3s;
  --side:clamp(16px,3.34vw,48px);
  --radius:24px;
  --radius-sm:16px;
  --hdr:50px;
  /* Height of the SVG wordmark: it fills the available width, so its height is
     (100vw - 2*side) * viewBox aspect (1000:108). Keep in sync with the wordmark. */
  --gap:8px;
}

/* ── 2. BASE ───────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--sans); font-size:var(--fs-body-1);
  font-weight:400; line-height:1.6; letter-spacing:.02em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
body.is-locked{overflow:hidden}
.hdr.is-menu-open .hdr__mark,
.hdr.is-menu-open .burger span{color:#fff}
.hdr.is-menu-open .burger span{background:#fff}
img,svg,video{display:block;max-width:100%}
img{height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
ul{list-style:none;margin:0;padding:0}
h1,h2,h3,h4,p{margin:0}
::selection{background:var(--lime);color:var(--ink)}

.skip{
  position:fixed;top:-60px;left:16px;z-index:999;
  background:var(--ink);color:#fff;padding:10px 16px;border-radius:999px;
  transition:top .2s;
}
.skip:focus{top:12px}

:focus-visible{
  outline:2px solid currentColor;
  outline-offset:3px;
  border-radius:4px;
}
.pill:focus-visible,.chip:focus-visible,.btn:focus-visible{
  outline-offset:3px;border-radius:999px;
}

/* grano global muy sutil, como el original */
.grain-overlay{
  position:fixed;inset:0;z-index:9;pointer-events:none;
  background-image:url("../img/grain.png");
  background-size:200px 200px;
  opacity:.045;mix-blend-mode:multiply;
}

/* scrim de página (se activa con el desplegable del nav) */
.page-scrim{
  position:fixed;inset:0;z-index:100;pointer-events:none;
  background:rgba(255,255,255,.78);
  opacity:0;transition:opacity .35s var(--ease);
}
body.has-dropdown .page-scrim{opacity:1}

/* scrim de entrada */
.boot{
  position:fixed;inset:0;z-index:900;background:var(--paper);
  transform-origin:50% 100%;
  transition:opacity .5s var(--ease),visibility .5s;
}
.boot.is-done{opacity:0;visibility:hidden}

/* ── 3. TIPOGRAFÍA ─────────────────────────────────────────────────── */
.serif{font-family:var(--serif);font-weight:400;letter-spacing:-.01em}
.serif-i{font-family:var(--serif);font-style:italic;font-weight:400;letter-spacing:-.01em}

.overline{
  display:block;font-size:var(--fs-overline);line-height:1.7;
  letter-spacing:.11em;text-transform:uppercase;
  color:currentColor;font-feature-settings:"ss12" on;
}
.overline--inv{color:rgba(255,255,255,.55)}

/* ── 4. BOTONES ────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;gap:.6em;
  background:var(--ink);color:#fff;
  border-radius:999px;padding:.85em 1.5em;
  font-size:var(--fs-body-1);letter-spacing:.01em;
  transition:background-color .25s ease,color .25s ease,transform .3s var(--ease-out);
  will-change:transform;
}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0) scale(.985)}
.btn__arrow{display:inline-block;transition:transform .35s var(--ease)}
.btn:hover .btn__arrow{transform:translateX(4px)}
.btn--light{background:var(--stone);color:var(--ink)}
.btn--dark{background:var(--ink);color:#fff}
.btn--outline{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px currentColor}
.btn--lime{background:var(--lime);color:var(--ink)}
.btn--lime:hover{background:#fff}
.btn--orange{background:var(--aim-orange);color:var(--ink)}
.btn--orange:hover{background:#fff}
/* Solid navy is unreadable on --ink, so the on-dark tint carries a dark label. */
.btn--navy{background:var(--aim-navy-on-dark);color:var(--ink)}
.btn--navy:hover{background:#fff;color:var(--ink)}
.btn--outline:hover{background:var(--ink);color:#fff}
.btn--sm{
  /* Navbar CTA. The chips take a fixed height, so this one has to as well or it
     overhangs the row. 26px matched them exactly but left only 5px of air
     around a 13px label, which read as cramped; 32px gives the label room
     while staying inside the 50px bar. The label also steps down a little so
     the pill does not grow wider than it needs to. */
  height:32px;
  padding:0 1.15em;
  font-size:12.5px;gap:0;
}

/* píldoras de navegación */
.pill{
  display:inline-flex;align-items:center;justify-content:center;
  height:26px;padding:0 13px;border-radius:999px;
  font-size:11px;font-weight:500;letter-spacing:.055em;text-transform:uppercase;
  background:rgba(7,7,8,.055);color:var(--ink);
  transition:background-color .25s ease,color .25s ease,transform .25s var(--ease-out);
  white-space:nowrap;
}
.pill:hover{background:var(--ink);color:#fff}
.pill:active{transform:scale(.96)}

.chip{
  height:26px;padding:0 14px;border-radius:999px;
  font-size:11px;font-weight:500;letter-spacing:.055em;text-transform:uppercase;
  background:rgba(7,7,8,.055);color:var(--ink);
  transition:background-color .25s ease,color .25s ease;
}
.chip:hover{background:rgba(7,7,8,.12)}
.chip.is-active{background:var(--ink);color:#fff}

/* ── 5. HEADER ─────────────────────────────────────────────────────── */
.hdr{
  position:fixed;top:0;left:0;right:0;z-index:120;
  padding:0 var(--side);
  transform:translateY(0);
  transition:transform .55s var(--ease),background-color .4s ease;
}
.hdr__bar{
  position:relative;z-index:3;
  display:flex;align-items:center;justify-content:space-between;
  height:var(--hdr);gap:16px;
  /* Symmetrical inset: the bar used to carry only a top margin, which left the
     lockup hugging the bottom edge of the header once the bar gained height. */
  margin-block:16px;
}
.pillnav{display:flex;align-items:center;gap:6px}
/* Menu and CTA travel together on the right, so the nav reads as one cluster
   next to the button rather than floating in the middle of the bar. */
.hdr__right{
  display:flex;align-items:center;
  gap:clamp(12px,1.6vw,26px);
  margin-left:auto;
  min-width:0;
}
.pillnav--end{justify-content:flex-end}

/* Brand lockup: the AM emblem from the official artwork, paired with the
   wordmark set in HTML so the name stays crisp at any size. It sits in normal
   flow at the left edge; it used to be centred absolutely, which made it
   collide with the pills as the viewport narrowed. */
.hdr__mark{
  display:flex;align-items:center;gap:10px;
  white-space:nowrap;flex:none;
  color:var(--ink);
  transition:opacity .4s var(--ease);
}
.hdr__emblem{
  height:40px;width:auto;flex:none;
  /* The artwork carries metallic greys; a slight drop shadow keeps the dark
     strokes from dissolving into the dark hero behind the header. */
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.22));
}
.hdr__word{
  font-family:var(--sans);font-weight:700;
  font-size:19px;line-height:1;letter-spacing:-.025em;
}
.hdr__word em{font-style:normal;color:var(--aim-orange)}

/* estados */
.hdr.is-hidden{transform:translateY(-110%)}
.hdr.is-solid{background:rgba(255,255,255,.72);backdrop-filter:blur(14px) saturate(1.4)}

/* dropdown de servicios */
.pill-wrap{position:relative}
.pill-stack{
  position:absolute;top:calc(100% + 6px);left:0;
  display:flex;flex-direction:column;gap:4px;
  padding:0;pointer-events:none;
}
.pill--stack{
  background:#EDEDED;box-shadow:0 6px 18px -10px rgba(0,0,0,.45);
  opacity:0;transform:translateY(-10px) scale(.94);
  transform-origin:top left;
  transition:opacity .3s var(--ease),transform .35s var(--ease);
}
.pill-wrap:hover .pill--stack,
.pill-wrap:focus-within .pill--stack{opacity:1;transform:none;pointer-events:auto}
.pill-wrap:hover .pill--stack:nth-child(2){transition-delay:.03s}
.pill-wrap:hover .pill--stack:nth-child(3){transition-delay:.06s}
.pill-wrap:hover .pill-stack{pointer-events:auto}
.pill-wrap:hover > .pill{background:var(--ink);color:#fff}

/* hamburguesa (solo móvil) */
.burger{
  display:none;width:44px;height:44px;margin-right:-10px;
  position:relative;justify-self:end;
}
.burger span{
  position:absolute;left:10px;right:10px;height:2px;background:var(--ink);
  border-radius:2px;transition:transform .4s var(--ease),opacity .3s;
}
.burger span:nth-child(1){top:19px}
.burger span:nth-child(2){top:26px}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(3.5px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){transform:translateY(-3.5px) rotate(-45deg)}

/* ── 6. HERO ───────────────────────────────────────────────────────── */
/* Solid brand hero. When production delivers footage, reintroduce a
   muted looping <video> layer behind the copy. */
/* Full-viewport hero. dvh rather than vh so mobile browser chrome collapsing
   does not leave the section taller than the screen; svh is the fallback for
   engines without dvh. */
.hero{
  position:relative;
  background:var(--ink);color:#fff;
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;
  display:flex;flex-direction:column;justify-content:center;
  /* Bottom padding is deliberately small: the scroll cue is pinned 40px from
     the bottom edge, so a large padding-bottom would hold the copy above the
     cue no matter how the spacers are tuned. */
  padding:calc(var(--hdr) + clamp(40px,7vw,96px)) var(--side) clamp(16px,2.4vw,40px);
  overflow:hidden; /* contain the video layer */
}
/* Seats the copy low in the frame instead of dead centre, which reads calmer
   and leaves the footage room to breathe above it. The spacer above carries a
   larger share of the free space than the one below, so the block sits in the
   lower third without crowding the scroll cue. Shares rather than fixed
   offsets keep the balance as the viewport changes. */
.hero::before,
.hero::after{
  content:"";flex:0 1 auto;
}
/* The split below is solved, not eyeballed: the copy's bottom edge should land
   on the cue's baseline. Both spacers are plain flex items, so the ratio sets
   where the copy sits. 322/16 at 1440x900 puts the two within a few px; the
   clamp keeps it close on other heights without the spacers collapsing. */
.hero::before{flex-grow:26;min-height:clamp(16px,6vh,80px)}
.hero::after{flex-grow:1;min-height:clamp(8px,1.6vh,20px)}
/* Decorative background footage. object-fit covers without distorting, and the
   clip is hidden until it can actually play (see fadein in main.js) so a slow
   connection shows the poster instead of a black flash. */
.hero__video{
  position:absolute;inset:0;z-index:0;
  width:100%;height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1.2s var(--ease);
  pointer-events:none;
}
.hero__video.is-ready{opacity:1}
/* Reduced motion: the clip is never loaded (see main.js), so the poster frame
   shows through and supplies the texture instead of flat black. */
@media (prefers-reduced-motion:reduce){
  .hero__video{opacity:1}
}
/* Keeps the copy readable over the brightest part of the footage. Weighted to
   the left, where the text sits, and to the bottom for the scroll cue. */
.hero__scrim{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(7,7,8,.86) 0%,rgba(7,7,8,.62) 42%,rgba(7,7,8,.18) 72%,rgba(7,7,8,.35) 100%),
    linear-gradient(180deg,rgba(7,7,8,.55) 0%,rgba(7,7,8,0) 28%,rgba(7,7,8,.25) 78%,rgba(7,7,8,.7) 100%);
}
/* On narrow screens the copy spans the full width, so the left-weighted
   gradient no longer protects it. Darken the whole plate instead and let the
   footage read as texture behind the type. */
@media (max-width:767px){
  .hero__scrim{
    background:
      linear-gradient(180deg,rgba(7,7,8,.72) 0%,rgba(7,7,8,.58) 35%,rgba(7,7,8,.66) 70%,rgba(7,7,8,.86) 100%);
  }
}
.hero__copy,.hero__cue{position:relative;z-index:2}
.hero__copy{
  display:flex;flex-direction:column;gap:clamp(14px,1.6vw,22px);
  max-width:min(100%,940px);
}
.hero__h1{
  font-size:clamp(30px,5.4vw,84px);line-height:1.02;letter-spacing:-.035em;
  font-weight:400;text-wrap:balance;
}
.hero__line{display:block}
.hero__swap{
  font-family:var(--serif);font-style:italic;font-weight:400;
  position:relative;display:inline-block;
  transition:opacity .4s var(--ease),transform .5s var(--ease);
}
.hero__swap.is-out{opacity:0;transform:translateY(-.35em)}
.hero__p{
  font-size:var(--fs-body-2);line-height:1.45;letter-spacing:0;
  /* Two full lines and a short third, the classic editorial shape, rather than
     three even ones. That needs a narrower measure and natural wrapping:
     `balance` would level the three lines out and lose the shape, and 56ch
     pushes the paragraph to within 9% of a third line being one word long.
     At 48ch the split lands near 94/92/44. */
  max-width:48ch;color:rgba(255,255,255,.82);
}
.hero__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.btn--ghost{
  background:rgba(255,255,255,.14);color:#fff;
  backdrop-filter:blur(10px);
}
.btn--ghost:hover{background:rgba(255,255,255,.24)}

/* scroll cue */
.hero__cue{
  position:absolute;right:var(--side);bottom:clamp(24px,3vw,40px);
  display:flex;flex-direction:column;align-items:center;gap:10px;
  color:rgba(255,255,255,.72);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
}
.hero__cue-line{
  width:1px;height:clamp(28px,4vw,48px);
  background:linear-gradient(to bottom,rgba(255,255,255,.1),rgba(255,255,255,.8));
  animation:cue 2.2s var(--ease) infinite;
  transform-origin:top;
}
@keyframes cue{0%,100%{transform:scaleY(.4);opacity:.4}50%{transform:scaleY(1);opacity:1}}

/* El header flota sobre el hero negro hasta ganar fondo sólido:
   en esa fase usa variante clara. */
body.ondark-hero .hdr:not(.is-solid) .pill{background:rgba(255,255,255,.14);color:#fff}
body.ondark-hero .hdr:not(.is-solid) .pill:hover{background:#fff;color:var(--ink)}
body.ondark-hero .hdr:not(.is-solid) .hdr__mark{color:#fff}
body.ondark-hero .hdr:not(.is-solid) .burger span{background:#fff}
body.ondark-hero .hdr:not(.is-solid) .hdr__bar .btn{background:#fff;color:var(--ink)}
body.ondark-hero .hdr:not(.is-solid) .hdr__bar .btn:hover{background:var(--lime)}

/* ── 7. TEXT-TOUT ──────────────────────────────────────────────────── */
.tout{
  padding:clamp(52px,7.6vw,112px) var(--side);
  display:flex;flex-direction:column;align-items:center;gap:clamp(24px,3vw,40px);
  text-align:center;
}
.tout__text{
  font-family:var(--serif);font-weight:400;
  font-size:var(--fs-d-1);line-height:1.06;letter-spacing:-.012em;
  max-width:min(100%,860px);text-wrap:balance;
}
.tout--lg .tout__text{font-size:var(--fs-d-1)}
.tout--md .tout__text{
  font-family:var(--sans);font-size:var(--fs-h-5);line-height:1.1;
  letter-spacing:-.03em;font-weight:400;
  text-align:left;align-self:flex-start;max-width:min(100%,940px);
}
.tout--md{align-items:flex-start;text-align:left;
  background:var(--ink);color:#fff;
  padding-bottom:clamp(72px,10vw,140px)}

/* ── 8. TRABAJO ────────────────────────────────────────────────────── */
.work{padding:0 var(--side) clamp(56px,7vw,96px)}
.work__head{
  display:flex;align-items:center;justify-content:flex-start;gap:26px;
  border-top:1px solid rgba(7,7,8,.12);
  padding-top:26px;margin-bottom:26px;flex-wrap:wrap;
}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.work__grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:clamp(8px,0.7vw,10px) clamp(8px,0.7vw,10px);
}
.card{display:block;position:relative}
.card__media{
  position:relative;border-radius:var(--radius-sm);overflow:hidden;
  aspect-ratio:1/1;background:var(--stone);
}
.card__media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.16),transparent 45%);
  opacity:0;transition:opacity .4s ease;
}
.card__media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .8s var(--ease),filter .5s ease;
}
.card:hover .card__media img{transform:scale(1.05)}
.card:hover .card__media::after{opacity:1}
.card__title{
  font-size:var(--fs-body-2);font-weight:400;line-height:1.35;
  letter-spacing:-.005em;margin-top:14px;
}
.card__tag{
  display:block;margin-top:4px;
  font-size:var(--fs-micro);letter-spacing:.07em;text-transform:uppercase;
  color:rgba(7,7,8,.42);
}
.card.is-hidden{display:none}

/* ── 9. CLIENTES ───────────────────────────────────────────────────── */
.roster{
  padding:26px 0 clamp(40px,5vw,68px);
  overflow:hidden;
}
.roster .overline{padding-inline:var(--side);opacity:.8;margin-bottom:clamp(32px,4vw,56px)}
.marquee{position:relative;overflow:hidden;
  mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent)}
.marquee__track{display:flex;width:max-content;animation:slide 38s linear infinite}
.marquee:hover .marquee__track{animation-play-state:paused}
.marquee__set{
  display:flex;align-items:center;
  gap:clamp(44px,6vw,104px);
  padding-right:clamp(44px,6vw,104px);
}
@keyframes slide{to{transform:translateX(-50%)}}

.client{
  font-size:clamp(16px,1.85vw,26px);letter-spacing:-.02em;white-space:nowrap;
  color:var(--ink);opacity:.9;
  transition:opacity .3s;
}
.client:hover{opacity:1}
.client--wide{font-weight:500;letter-spacing:.14em;font-size:clamp(14px,1.5vw,22px)}
.client--serif{font-family:var(--serif);font-size:clamp(24px,2.6vw,38px)}
.client--soft{font-weight:600;letter-spacing:-.04em}
.client--caps{font-weight:700;letter-spacing:.02em;font-size:clamp(17px,1.9vw,27px)}
.client--mark{font-weight:600}

/* ── 14. FOOTER ────────────────────────────────────────────────────── */
.foot{
  background:var(--stone);color:var(--ink);
  padding:clamp(40px,5vw,64px) var(--side) 0;
  position:relative;overflow:hidden;
}
.foot__top{
  display:grid;grid-template-columns:5fr 7fr;gap:clamp(32px,5vw,80px);
  padding-bottom:clamp(48px,6vw,80px);
}
.foot__h{
  font-size:var(--fs-h-3);line-height:1.12;letter-spacing:-.02em;font-weight:400;
  max-width:16ch;
}
.foot__news .btn{margin-top:clamp(20px,2.4vw,30px)}
.foot__cols{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.foot__col .overline{opacity:.5;margin-bottom:16px;font-size:10px;letter-spacing:.12em}
.foot__col li{margin-bottom:9px}
.foot__col a{
  font-size:var(--fs-body-2);color:rgba(7,7,8,.62);
  transition:color .25s;
}
.foot__col a:hover{color:var(--ink)}
.foot__legal{
  display:flex;gap:28px;flex-wrap:wrap;align-items:center;
  border-top:1px solid rgba(7,7,8,.12);
  padding:22px 0 26px;
  font-size:11px;color:rgba(7,7,8,.6);
}
.foot__legal span{margin-left:auto}
.foot__legal a:hover{color:var(--ink)}
.foot__big{
  width:100%;color:var(--ink);opacity:.06;
  margin-top:-2vw;margin-bottom:-1.2vw;
}
.foot__big text{font-family:var(--sans);font-weight:700;font-size:136px;fill:currentColor}

/* ═══════════════════════════════════════════════════════════════════
   AIM SECTIONS — added for the production content restructure
   ═══════════════════════════════════════════════════════════════════ */

/* ── ABOUT ─────────────────────────────────────────────────────────── */
.about{padding:clamp(72px,10vw,150px) var(--side)}
.about__intro{max-width:min(100%,1100px)}
.about__h{margin-top:clamp(18px,2.4vw,32px);font-weight:400}
.about__h-line{
  display:block;
  font-size:clamp(34px,4.6vw,72px);line-height:1.04;letter-spacing:-.03em;
}
.about__h-line--serif{
  font-family:var(--serif);font-style:italic;font-weight:400;
  letter-spacing:-.02em;color:rgba(7,7,8,.9);
  padding-bottom:.06em; /* room for serif descenders */
}
.about__grid{
  margin-top:clamp(44px,6vw,88px);
  display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:clamp(24px,4vw,72px);
  align-items:start;
}
.about__lede{
  font-size:var(--fs-body-3);line-height:1.4;letter-spacing:-.01em;
  font-weight:400;max-width:24ch;
}
.about__body{
  display:flex;flex-direction:column;gap:clamp(14px,1.6vw,20px);
  font-size:var(--fs-body-2);line-height:1.5;letter-spacing:0;
  color:rgba(7,7,8,.78);max-width:54ch;
}
/* These paragraphs run two to four lines in a narrow measure, and plain
   wrapping kept stranding a word or two on the last line — down to 6% of the
   measure in the FAQ. balance evens the lines and is measurably better on
   every one of them. */
.about__body p,
.who__block p,
.lead__bio p,
.qa__a p{text-wrap:balance}
.about__needs{margin-top:clamp(60px,8vw,120px)}
.need{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:clamp(16px,2.4vw,40px);
  border-top:1px solid rgba(7,7,8,.12);
  padding:clamp(20px,2.6vw,34px) 0;
}
.need:last-child{border-bottom:1px solid rgba(7,7,8,.12)}
.need__meta{display:flex;align-items:baseline;gap:clamp(12px,1.4vw,20px)}
.need__num{
  display:inline-flex;align-items:center;gap:9px;
  font-size:var(--fs-micro);letter-spacing:.14em;color:rgba(7,7,8,.45);
}
.need__num::before{content:"";width:7px;height:7px;background:var(--lime);flex:0 0 auto}
.need__k{
  font-size:var(--fs-overline);letter-spacing:.12em;text-transform:uppercase;
  color:rgba(7,7,8,.55);
}
.need__v{
  font-size:clamp(38px,5vw,76px);line-height:.95;letter-spacing:-.02em;
  text-align:right;white-space:nowrap;
  transition:transform .5s var(--ease-out);
}
.need:hover .need__v{transform:translateX(-8px)}
/* ── MOMENTUM (pinned scroll statement) ────────────────────────────── */
.momentum{
  /* El margen negativo superpone el stage pineado con la salida de About:
     el pin arranca mientras About aún es visible y el crossfade es limpio. */
  height:260vh;
  margin-top:-55vh;
  pointer-events:none;
  position:relative;
}
.momentum__stage{
  position:sticky;top:0;height:100svh;
  display:grid;place-items:center;
  padding-inline:var(--side);
}
.momentum__text{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(40px,6vw,96px);line-height:1.08;letter-spacing:-.02em;
  text-align:center;max-width:24ch;text-wrap:balance;
  margin:0;will-change:transform,opacity;
}
.mw{
  display:inline-block;overflow:hidden;vertical-align:bottom;
  /* el relleno amplía la caja de recorte: no se comen los rasgos */
  padding:.14em .04em .2em;margin:-.14em -.04em -.2em;
}
.mw__w{display:inline-block;opacity:0;transform:translateY(118%);will-change:opacity,transform}
.mw__w--hl{
  font-style:italic;
  background:linear-gradient(to top,var(--lime) 30%,transparent 30%);
  padding-inline:.05em;
}
/* sin JS el statement es texto normal */
html:not(.js) .mw__w{opacity:1;transform:none}

@media (max-width:679px){
  .momentum{height:220vh}
}

@media (prefers-reduced-motion:reduce){
  .momentum{height:auto;margin-top:0}
  .momentum__stage{position:static;height:auto;min-height:60svh;padding-block:clamp(64px,10vw,120px)}
  .mw__w{opacity:1!important;transform:none!important}
}
/* sin JS: sin solape ni pin */
html:not(.js) .momentum{height:auto;margin-top:0}
html:not(.js) .momentum__stage{position:static;min-height:70svh}

/* ── SERVICES ──────────────────────────────────────────────────────── */
.services{
  background:var(--ink);color:#fff;
  padding:clamp(64px,9vw,140px) var(--side);
  border-radius:var(--radius) var(--radius) 0 0;
}
/* Wide headings were breaking with a single short word on the last line:
   measured at 1440px, "next." filled 14% of the line, "represent." 28%, and
   "forward." 25%. Balancing the lines removes all of them. This still applies
   even though main.js wraps each word in its own inline-block span for the
   reveal, which is worth stating because the natural assumption is that it
   would not. */
.services__h,
.who__h,
.partners__h,
.lead__h,
.faq__h,
.contact__h{text-wrap:balance}

.services__head{max-width:min(100%,900px)}
.services__h{
  font-family:var(--serif);font-weight:400;
  font-size:var(--fs-d-1);line-height:1.04;letter-spacing:-.025em;
  margin-top:clamp(18px,2.4vw,32px);
}
.services__p{
  margin-top:clamp(18px,2.2vw,30px);
  font-size:var(--fs-body-2);line-height:1.5;letter-spacing:0;
  color:rgba(255,255,255,.72);max-width:56ch;
  text-wrap:balance;
}
/* ── run: tres capítulos, cada uno con su propia composición ──────── */
.services__run{
  /* ~3 pantallas de scroll: una por capítulo */
  height:300vh;
  margin-top:clamp(40px,5vw,72px);
  position:relative;
}
.run__stage{
  position:sticky;top:0;height:100svh;
  display:grid;align-items:center;
  padding:calc(var(--hdr) + 16px) var(--side) 16px;
  overflow:hidden;
}
.chap{
  position:absolute;inset:0;
  display:grid;align-items:center;justify-items:stretch;
  align-content:center;
  padding:calc(var(--hdr) + 16px) var(--side) 16px;
  opacity:0;
  pointer-events:none;
  transition:opacity .6s var(--ease);
}
.chap.is-live{opacity:1;pointer-events:auto}
.chap__inner{
  position:relative;
  width:min(100%,1320px);margin:0 auto;
  display:grid;grid-template-columns:minmax(0,.42fr) minmax(0,1fr);
  gap:clamp(20px,4vw,64px);align-items:start;
}
.chap__aside{position:relative;padding-top:clamp(8px,1vw,16px)}

/* el numeral, enorme y detrás del contenido */
.chap__num{
  display:block;
  font-family:var(--serif);font-weight:400;
  font-size:clamp(120px,20vw,280px);line-height:.78;
  letter-spacing:-.05em;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.34);
  transform:translateY(-.06em);
  pointer-events:none;
  user-select:none;
}
/* Each chapter keeps the same skeleton. Only the accent shifts, so the three
   read as one system while still signalling a different audience. */
/* One brand colour across all three chapters. They are told apart by layout
   and numeral, not by hue, which keeps the page calm and unmistakably AIM.
   The supporting logo hues remain available as tokens for future pages. */
.chap{--acc:var(--aim-orange)}
/* The numeral is a graphic, not text, so it is tuned for presence rather than
   for text contrast: below ~.6 the orange composites to a muddy brown on ink. */
.chap__num{color:var(--acc);-webkit-text-stroke:0;opacity:.72}

.chap__meta{
  position:relative;margin-top:clamp(16px,2vw,28px);
  display:flex;flex-direction:column;gap:6px;
}
.chap__kicker{
  font-size:var(--fs-overline);letter-spacing:.12em;text-transform:uppercase;
  color:var(--acc);
}
.chap__aud{
  font-size:var(--fs-micro);letter-spacing:.1em;text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
.chap__main{position:relative;min-width:0}

.chap__h{
  font-family:var(--serif);font-weight:400;
  font-size:var(--fs-h-5);line-height:1.02;letter-spacing:-.03em;
  max-width:18ch;
}
.chap__p{
  margin-top:clamp(16px,1.8vw,26px);
  font-size:var(--fs-body-2);line-height:1.45;letter-spacing:0;
  color:rgba(255,255,255,.72);max-width:56ch;
}
.chap__list{
  margin-top:clamp(22px,2.6vw,38px);
  display:grid;gap:10px clamp(24px,3.4vw,56px);
  font-size:var(--fs-body-1);line-height:1.4;
}
.chap__list--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.chap__list li{
  position:relative;padding-left:18px;
  color:rgba(255,255,255,.82);
}
.chap__list li::before{
  content:"";position:absolute;left:0;top:.62em;
  width:8px;height:1px;background:var(--acc);
}
.chap__cta{margin-top:clamp(26px,3vw,44px)}

/* 02 — mirrored, so the three chapters alternate left/right/left instead of
   repeating one composition. The grid is flipped with explicit column widths
   rather than `direction:rtl` or `order`: those swap which side a column sits
   on but hand the copy column the numeral's narrow track, which wrapped the
   paragraph to seven lines. Here the tracks are re-declared so the copy keeps
   the wide one, and the numeral and its kicker stay together in the same
   column instead of splitting apart. */
.chap--02 .chap__inner{grid-template-columns:minmax(0,1fr) minmax(0,.42fr)}
.chap--02 .chap__aside{order:2}
.chap--02 .chap__main{order:1}
.chap--02 .chap__h{max-width:16ch}

/* 03 shares the 01/02 list treatment. The three chapters are told apart by
   composition — 02 is mirrored — not by how their bullets are drawn, so a
   numbered variant here read as a different component rather than a sibling. */

/* Breadcrumb of the run: three segments, bottom right, visible for the whole
   pinned sequence. The active segment is widest and sits in the brand orange,
   and because the segments keep their order the lit one travels from the first
   to the third as the chapters advance — a progress read, not a step indicator.
   Anchored inside .run__stage (100vh, pinned); anchoring to .services__run
   would drop it at the bottom of the 300vh runway, off screen. */
.run__meter{
  position:absolute;right:var(--side);bottom:clamp(16px,2.5vh,30px);
  display:flex;align-items:center;gap:7px;list-style:none;margin:0;padding:0;
}
.run__dot{
  width:22px;height:2px;flex:none;
  background:rgba(255,255,255,.22);
  transition:background-color .45s var(--ease),width .55s var(--ease-out);
}
/* Visited: the chapter is behind us. */
.run__dot.is-done{background:rgba(240,127,30,.55)}
/* Current: the widest segment, in the brand orange. */
.run__dot.is-on{background:var(--aim-orange);width:44px}
@media (prefers-reduced-motion:reduce){
  .run__dot{transition:none}
}


/* ── WHO WE HELP ───────────────────────────────────────────────────────
   The section surface shifts to a tint per buyer persona as you scroll, so the
   colour reinforces which audience is on screen. The three tints are pale
   enough to keep ink readable (14:1 or better) while staying clearly apart in
   hue: warm sand -> blush -> sage, 60deg apart at the green end.

   The custom property is written every frame by JS as an interpolated value,
   which is what makes the change glide instead of snapping when the active
   persona changes. Without JS the surface falls back to --sand. */
.who{
  position:relative;
  padding:clamp(64px,9vw,140px) var(--side);
  background:var(--who-bg, var(--sand));
}
.who__head{max-width:min(100%,900px)}
.who__h{
  font-family:var(--serif);font-weight:400;
  font-size:var(--fs-d-1);line-height:1.04;letter-spacing:-.025em;
  margin-top:clamp(18px,2.4vw,32px);
}
.who__p{
  margin-top:clamp(18px,2.2vw,30px);
  font-size:var(--fs-body-2);line-height:1.5;letter-spacing:0;
  color:rgba(7,7,8,.72);max-width:56ch;
}
.who__body{
  margin-top:clamp(44px,6vw,92px);
  display:grid;grid-template-columns:minmax(200px,3fr) minmax(0,7fr);
  gap:clamp(24px,5vw,80px);
  align-items:start;
}
.who__sticky,.who__panels,.who__panel{min-width:0}
.who__sticky{position:sticky;top:calc(var(--hdr) + 32px)}
.who__tabs{display:flex;flex-direction:column;gap:2px;min-width:0}
.who__tab{
  display:block;padding:12px 0;
  font-size:var(--fs-body-2);letter-spacing:-.01em;
  color:rgba(7,7,8,.4);
  border-bottom:1px solid rgba(7,7,8,.1);
  transition:color .3s,padding-left .35s var(--ease-out);
}
.who__tab:hover{color:var(--ink)}
.who__tab.is-active{color:var(--ink);padding-left:14px;position:relative}
.who__tab.is-active::before{
  content:"";position:absolute;left:0;top:50%;translate:0 -50%;
  width:6px;height:6px;border-radius:50%;background:var(--ink);
}
.who__panels{display:flex;flex-direction:column;gap:clamp(48px,7vw,120px)}
.who__panel{
  scroll-margin-top:calc(var(--hdr) + 40px);
}
.who__idx{
  display:block;font-size:var(--fs-micro);letter-spacing:.14em;
  color:rgba(7,7,8,.4);margin-bottom:14px;
}
.who__title{
  font-size:var(--fs-h-4);line-height:1.08;letter-spacing:-.03em;font-weight:400;
  max-width:22ch;text-wrap:balance;
}
.who__block{margin-top:clamp(22px,2.6vw,36px);max-width:60ch}
.who__label{
  display:block;font-size:var(--fs-micro);letter-spacing:.12em;
  text-transform:uppercase;color:rgba(7,7,8,.45);margin-bottom:8px;
}
.who__block p{font-size:var(--fs-body-2);line-height:1.48;letter-spacing:0;color:rgba(7,7,8,.8)}
.who__benefits{
  margin-top:clamp(22px,2.6vw,36px);
  display:grid;grid-template-columns:repeat(2,1fr);
  gap:10px clamp(16px,2vw,32px);
  max-width:64ch;
}
.who__benefits li{
  position:relative;padding-left:18px;
  font-size:var(--fs-body-1);line-height:1.45;color:rgba(7,7,8,.78);
}
.who__benefits li::before{
  content:"";position:absolute;left:0;top:.62em;
  width:7px;height:7px;border-radius:50%;background:var(--lime);
  box-shadow:inset 0 0 0 1px rgba(7,7,8,.25);
}
.who__panel .btn{margin-top:clamp(26px,3vw,40px)}

/* ── MEDIA PARTNERS ────────────────────────────────────────────────── */
/* This is the only light section between two dark ones (services above, FAQ
   below), so it is the page's breather and needs presence of its own. A warm
   sand carries that without competing with the partner artwork, which is
   already saturated yellow and black. Ink reads 17.6:1 on it. */
.partners{
  background:var(--sand);
  padding:clamp(64px,9vw,140px) var(--side);
}
.partners .overline{color:var(--aim-orange-deep)}
.partners__head{max-width:min(100%,900px)}
.partners__h{
  font-family:var(--serif);font-weight:400;
  font-size:var(--fs-d-1);line-height:1.04;letter-spacing:-.025em;
  margin-top:clamp(18px,2.4vw,32px);
}
.partners__p{
  margin-top:clamp(18px,2.2vw,30px);
  font-size:var(--fs-body-2);line-height:1.5;letter-spacing:0;
  color:rgba(7,7,8,.68);max-width:58ch;
}
.partners__grid{
  margin-top:clamp(44px,6vw,88px);
  display:grid;grid-template-columns:repeat(2,1fr);
  gap:clamp(14px,1.8vw,26px);
}
.partner{
  background:var(--paper);
  border-radius:var(--radius-sm);
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .5s var(--ease-out);
}
.partner:hover{transform:translateY(-5px)}
.partner__media{
  position:relative;aspect-ratio:16/10;background:var(--stone);overflow:hidden;
}
.partner__media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .9s var(--ease);
}
.partner:hover .partner__media img{transform:scale(1.04)}
.partner__badge{
  position:absolute;top:12px;left:12px;
  height:22px;display:inline-flex;align-items:center;padding:0 10px;
  border-radius:999px;background:rgba(255,255,255,.94);color:var(--ink);
  font-size:10px;letter-spacing:.08em;text-transform:uppercase;
}
.partner__body{
  padding:clamp(20px,2.2vw,32px);
  display:flex;flex-direction:column;flex:1;
}
.partner__h{
  font-size:var(--fs-h-4);line-height:1.06;letter-spacing:-.03em;font-weight:400;
}
.partner__p{
  margin-top:12px;
  font-size:var(--fs-body-1);line-height:1.5;letter-spacing:0;
  color:rgba(7,7,8,.7);text-wrap:balance;
}
.partner__actions{
  margin-top:auto;padding-top:clamp(20px,2.2vw,30px);
  display:flex;gap:10px;flex-wrap:wrap;
}

/* ── LEADERSHIP ────────────────────────────────────────────────────── */
.lead{padding:clamp(64px,9vw,140px) var(--side)}
.lead__head{max-width:min(100%,900px)}
.lead__h{
  font-family:var(--serif);font-weight:400;
  font-size:var(--fs-d-1);line-height:1.04;letter-spacing:-.025em;
  margin-top:clamp(18px,2.4vw,32px);
}
.lead__grid{
  margin-top:clamp(44px,6vw,88px);
  display:grid;grid-template-columns:5fr 7fr;
  gap:clamp(24px,4vw,72px);align-items:start;
}
.lead__portrait{
  margin:0;border-radius:var(--radius);overflow:hidden;
  aspect-ratio:4/5;background:var(--stone);
}
.lead__portrait img{width:100%;height:100%;object-fit:cover}
.lead__name{
  font-size:var(--fs-h-4);line-height:1.05;letter-spacing:-.03em;font-weight:400;
}
.lead__last{opacity:.4}
.lead__role{
  display:block;margin-top:8px;
  font-size:var(--fs-micro);letter-spacing:.12em;text-transform:uppercase;
  color:rgba(7,7,8,.5);
}
.lead__bio{
  display:flex;flex-direction:column;gap:clamp(14px,1.6vw,20px);
  font-size:var(--fs-body-2);line-height:1.5;letter-spacing:0;
  color:rgba(7,7,8,.8);
}
.lead__bio .lead__name,
.lead__bio .lead__role,
.lead__bio .lead__quote,
.lead__bio .btn{gap:0}
.lead__bio .btn{align-self:flex-start;color:#fff}
.lead__quote{
  margin:clamp(18px,2.4vw,30px) 0 0;
  font-family:var(--serif);font-style:italic;
  font-size:var(--fs-h-3);line-height:1.25;letter-spacing:-.015em;
  color:var(--ink);max-width:26ch;
}
.lead__exp{
  margin-top:clamp(52px,7vw,110px);
  border-top:1px solid rgba(7,7,8,.12);
  padding-top:clamp(26px,3vw,44px);
}
.lead__exp .overline{opacity:.6;margin-bottom:clamp(20px,2.6vw,34px);text-align:center}

/* ── FAQs ──────────────────────────────────────────────────────────── */
.faq{
  background:var(--ink);color:#fff;
  padding:clamp(64px,9vw,140px) var(--side);
  border-radius:var(--radius) var(--radius) 0 0;
}
.faq__head{max-width:min(100%,900px)}
.faq__h{
  font-family:var(--serif);font-weight:400;
  font-size:var(--fs-d-1);line-height:1.04;letter-spacing:-.025em;
  margin-top:clamp(18px,2.4vw,32px);
}
.faq__list{
  margin-top:clamp(40px,5vw,76px);
  border-top:1px solid rgba(255,255,255,.16);
}
.qa{border-bottom:1px solid rgba(255,255,255,.16)}
.qa__q{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:clamp(18px,2.2vw,28px) 0;
  cursor:pointer;list-style:none;
  font-size:var(--fs-body-3);line-height:1.25;letter-spacing:-.02em;
  transition:opacity .3s;
}
.qa__q::-webkit-details-marker{display:none}
.qa__q:hover{opacity:.72}
.qa__icon{
  position:relative;flex:0 0 auto;
  width:22px;height:22px;border-radius:50%;
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.5);
  transition:transform .45s var(--ease-out),background-color .3s;
}
.qa__icon::before,.qa__icon::after{
  content:"";position:absolute;left:50%;top:50%;translate:-50% -50%;
  background:#fff;transition:opacity .3s,transform .45s var(--ease-out);
}
.qa__icon::before{width:9px;height:1.5px}
.qa__icon::after{width:1.5px;height:9px}
.qa[open] .qa__icon{transform:rotate(90deg);background:var(--lime)}
.qa[open] .qa__icon::before,
.qa[open] .qa__icon::after{background:var(--ink)}
.qa[open] .qa__icon::after{opacity:0;transform:translate(-50%,-50%) scaleY(0)}
/* <details> snaps to its full height the moment it opens. Plain CSS can only
   ease this via grid-template-rows 0fr -> 1fr, but measured in Chrome that
   showed no movement at all for the first ~370ms of a 620ms transition, which
   reads as a jump landing late. main.js therefore animates the pixel height
   instead and clears the inline style when finished; these rules remain the
   fallback for no-JS and are what the JS measures against.
   The measure is set in px, not ch: `ch` resolves off the width of "0" in the
   heading font and produced a 619px box inside 1344px of available width, which
   is what made the answers look cramped.
   Padding lives on the inner element, because padding does not collapse with
   0fr and would otherwise reserve the answer's space while the item is closed. */
.qa__a{
  display:grid;
  grid-template-rows:0fr;
  opacity:0;
  max-width:min(100%,860px);
}
/* The answer had only bottom padding, so line one sat flush against — in fact
   6px above — the bottom of the question. The top space is what separates
   question from answer; the bottom is a little tighter so the open row does
   not look bottom-heavy. */
.qa__a > *{
  overflow:hidden;min-height:0;
  padding:clamp(8px,1.1vw,14px) 0 clamp(22px,2.6vw,34px);
}
.qa__a p{
  font-size:var(--fs-body-2);line-height:1.6;letter-spacing:0;
  color:rgba(255,255,255,.72);
}
.qa[open] .qa__a{grid-template-rows:1fr;opacity:1}
@media (prefers-reduced-motion:reduce){
  .qa__a{transition:none}
}

/* ── CONTACT ───────────────────────────────────────────────────────── */
.contact{
  padding:clamp(64px,9vw,140px) var(--side);
  display:grid;grid-template-columns:5fr 7fr;
  gap:clamp(32px,5vw,88px);align-items:start;
}
.contact__h{
  font-family:var(--serif);font-weight:400;
  font-size:var(--fs-d-1);line-height:1.04;letter-spacing:-.025em;
  margin-top:clamp(18px,2.4vw,32px);
}
.contact__p{
  margin-top:clamp(18px,2.2vw,30px);
  font-size:var(--fs-body-2);line-height:1.5;letter-spacing:0;
  color:rgba(7,7,8,.72);max-width:44ch;
  /* The sentence runs three lines and broke with only "move." on the last one
     (11% of the measure). `pretty` was tried first and still left 21%; balance
     evens the three lines to 88/100/89 and holds at every width. */
  text-wrap:balance;
}
.form{display:flex;flex-direction:column;gap:clamp(16px,2vw,26px)}
.form__row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(14px,1.8vw,24px)}
.field{display:flex;flex-direction:column;gap:8px}
.field__label{
  font-size:var(--fs-micro);letter-spacing:.12em;text-transform:uppercase;
  color:rgba(7,7,8,.55);
}
.field__label em{font-style:normal;text-transform:none;letter-spacing:.02em;opacity:.7}
.field__input{
  font:inherit;color:inherit;
  background:transparent;
  border:0;border-bottom:1px solid rgba(7,7,8,.2);
  padding:10px 0;
  transition:border-color .3s;
  border-radius:0;
}
.field__input:focus{outline:none;border-color:var(--ink)}
.field__input--area{resize:vertical;min-height:96px;border:1px solid rgba(7,7,8,.2);border-radius:var(--radius-sm);padding:14px}
.field__input--area:focus{border-color:var(--ink)}
.field__input.is-invalid{border-color:#C0392B}
.form__set{border:0;padding:0;margin:0}
.form__set .field__label{margin-bottom:14px}
.choices{display:flex;flex-wrap:wrap;gap:8px}
.choice{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 15px;border-radius:999px;
  background:rgba(7,7,8,.055);
  font-size:var(--fs-body-1);
  cursor:pointer;
  transition:background-color .25s,color .25s;
}
.choice:hover{background:rgba(7,7,8,.11)}
.choice input{
  appearance:none;width:0;height:0;position:absolute;opacity:0;
}
.choice:has(input:checked){background:var(--ink);color:#fff}
.choice:has(input:focus-visible){outline:2px solid currentColor;outline-offset:3px}
.form__foot{
  display:flex;align-items:center;gap:20px;flex-wrap:wrap;
  margin-top:6px;
}
.form__note{
  font-size:11px;line-height:1.5;letter-spacing:.01em;
  color:rgba(7,7,8,.5);max-width:46ch;
}
.form__status{
  font-size:var(--fs-body-1);color:#1E7A46;min-height:1.2em;
}
.form__status.is-error{color:#C0392B}

/* ── FOOTER additions ──────────────────────────────────────────────── */
.foot__top{grid-template-columns:4fr 8fr}
.foot__brand{display:flex;flex-direction:column;gap:10px;max-width:30ch}
/* The brand column is 300px, so the lockup is sized to sit on one line:
   the wordmark is text, which keeps it crisp and avoids a third image. */
.foot__mark{
  display:flex;align-items:center;gap:10px;
  font-size:clamp(19px,1.6vw,26px);line-height:1;letter-spacing:-.03em;font-weight:400;
  white-space:nowrap;
}
.foot__emblem{height:30px;width:auto;flex:none}
.foot__mark em{font-style:normal;color:var(--aim-orange)}
.foot__blurb{
  font-size:var(--fs-body-1);line-height:1.5;letter-spacing:0;
  color:rgba(7,7,8,.6);
}
.foot__cols{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.foot__col li{white-space:normal}
.foot__col a{font-size:var(--fs-body-1)}
.foot__col li span{font-size:var(--fs-body-1);color:rgba(7,7,8,.62)}
.mmenu__cta{padding-top:24px}



/* Red de seguridad contra desbordes horizontales en grids y flex. */
.partners__grid > *,.lead__grid > *,.contact > *,
.form__row > *,.foot__top > *,.foot__cols > *,
.who__benefits > *,.form__set,.field{min-width:0}
.marquee,.marquee__track{max-width:100%}
img,svg,video{max-width:100%}
body{overflow-x:clip}

/* ── mobile menu ──────────────────────────────────────────────────── */
.mmenu{
  position:fixed;inset:0;z-index:110;
  background:rgba(9,9,10,.86);backdrop-filter:blur(26px) saturate(1.2);
  padding:calc(var(--hdr) + 24px) var(--side) 32px;
  display:flex;flex-direction:column;justify-content:space-between;
  opacity:0;visibility:hidden;transition:opacity .45s var(--ease),visibility .45s;
}
.mmenu.is-open{opacity:1;visibility:visible}
.mmenu__nav{display:flex;flex-direction:column;gap:2px}
.mmenu__link,.mmenu__sub{
  display:flex;align-items:center;justify-content:space-between;
  color:#fff;
}
.mmenu__link{
  font-size:clamp(30px,8vw,40px);font-weight:400;line-height:1.35;letter-spacing:-.02em;
  padding:14px 0;border-bottom:1px solid rgba(255,255,255,.14);
  opacity:0;transform:translateY(14px);
  transition:opacity .5s var(--ease),transform .6s var(--ease);
}
.mmenu.is-open .mmenu__link{opacity:1;transform:none}
.mmenu.is-open .mmenu__link:nth-child(1){transition-delay:.06s}
.mmenu.is-open .mmenu__link:nth-child(2){transition-delay:.1s}
.mmenu.is-open .mmenu__group .mmenu__link{transition-delay:.14s}
.mmenu.is-open .mmenu__link:nth-child(4){transition-delay:.18s}
.mmenu.is-open .mmenu__link:nth-child(5){transition-delay:.22s}
.mmenu.is-open .mmenu__link:nth-child(6){transition-delay:.26s}
.mmenu__arrow{opacity:.8;font-weight:300}
.mmenu__group{border-bottom:1px solid rgba(255,255,255,.14)}
.mmenu__group .mmenu__link{border-bottom:0}
.mmenu__sub{
  display:block;font-size:clamp(20px,5.6vw,26px);color:rgba(255,255,255,.55);
  padding:6px 0 6px 4px;
}
.mmenu__sub:hover{color:#fff}
.mmenu__foot{display:flex;gap:24px;color:rgba(255,255,255,.6);font-size:13px}
.mmenu__foot a:hover{color:#fff}

/* ── 16. RESPONSIVE ────────────────────────────────────────────────── */
/* The lockup sits in normal flow at the left and the nav cluster is pushed
   right, so the two no longer meet in the middle. The sizes step down only to
   buy room before the bar collapses to the burger. */
@media (max-width:1319px){
  .hdr__emblem{height:36px}
  .hdr__word{font-size:17px}
  .pill{height:24px;padding:0 10px;font-size:10px;letter-spacing:.04em}
  .pillnav{gap:4px}
  .btn--sm{height:29px;font-size:12px}
}
@media (max-width:1159px){
  .hdr__emblem{height:32px}
  .hdr__word{font-size:16px}
  .pill{height:23px;padding:0 8px;font-size:9.5px}
  .btn--sm{height:27px;font-size:11.5px}
}
@media (max-width:1099px){
  :root{--hdr:56px;--side:24px}
  /* Three children now (lockup, right cluster, burger). The cluster keeps the
     CTA and drops only the pills, so it still needs its own column. */
  .hdr__bar{display:flex}
  .hdr__right{gap:10px}
  .hdr__right .pillnav{display:none}
  .hdr__mark{flex:0 0 auto}
  .burger{display:block;margin-left:0}
  .hdr__emblem{height:34px}
  .hdr__word{font-size:17px}
  .hero__cue{display:none}
  .work__grid{grid-template-columns:repeat(2,1fr)}
  .diptych{grid-template-columns:1fr;gap:40px}
  .diptych__copy{max-width:none}
  .collage__stage{aspect-ratio:4/3.4}
  .purpose{height:168vh}
  .purpose__layer--2{font-size:clamp(56px,15vw,120px);top:26%}
  .purpose__copy{width:min(420px,86vw);bottom:auto;top:52%}
  .news__rail{grid-auto-columns:74vw}
  .foot__top{grid-template-columns:1fr;gap:40px}
  .foot__cols{grid-template-columns:repeat(3,1fr)}
  .foot__legal{gap:16px;font-size:10px}
  .foot__legal span{margin-left:0;width:100%}

  /* AIM sections */

  /* servicios: capítulos apilados en columna */
  /* Below 1100px the pinned run is dropped entirely. Measured at 375x1019 the
     chapter content is 505px tall inside a 1019px stage, and centring it split
     the surplus into 285px above and 229px below — over half the screen empty.
     Pinning only earns its keep when the copy fills the viewport, which it does
     on desktop. Here the three chapters simply flow, each with its own space. */
  .services__run{height:auto;margin-top:clamp(32px,5vw,56px)}
  .run__stage{
    position:static;height:auto;overflow:visible;
    display:block;padding:0;
  }
  .chap{
    position:static;inset:auto;
    display:block;padding:0;
    opacity:1;pointer-events:auto;
    transition:none;
  }
  /* Chapters need real air between them. At 56px the gap from a chapter's CTA
     to the next numeral measured 51px, which read as one continuous block
     rather than three separate services. The floor is raised and the curve
     steepened so it keeps breathing at every width in this range. */
  .chap + .chap{margin-top:clamp(88px,12vw,140px)}
  .run__meter{display:none}
  .chap__inner{grid-template-columns:1fr;gap:clamp(16px,3vw,28px)}
  .chap__aside{display:flex;align-items:flex-end;gap:16px;padding-top:0}
  .chap__aside .chap__num{font-size:clamp(84px,17vw,140px)}
  .chap__meta{margin-top:0;padding-bottom:6px}
  /* One column on small screens, so there is no side to alternate to: undo the
     mirror and let all three chapters stack the same way. */
  .chap--02 .chap__inner{grid-template-columns:1fr}
  .chap--02 .chap__aside,
  .chap--02 .chap__main{order:0}
  .chap__list--2{grid-template-columns:1fr}
  .chap__h{font-size:var(--fs-h-4)}
  .run__meter{right:var(--side);left:auto}
  .who__body{grid-template-columns:1fr;gap:32px}
  .who__sticky{position:sticky;top:var(--hdr);z-index:5;background:none;padding:12px 0}
  /* A pill-shaped group that hugs its tabs and sits centred, not a full-width
     banner: the band read as a separate section rather than as a control, and
     centring it keeps the group optically tied to the column below. The row
     scrolls on its own when the tabs exceed the width, so the pill stays a pill
     at every size instead of stretching. */
  .who__tabs{
    flex-direction:row;gap:6px;
    overflow-x:auto;scrollbar-width:none;
    background:rgba(7,7,8,.055);
    border-radius:999px;
    padding:5px;
    width:max-content;max-width:100%;
    margin-inline:auto;
    scroll-snap-type:x proximity;
    scroll-padding-left:5px;
    -webkit-overflow-scrolling:touch;
  }
  .who__tabs::-webkit-scrollbar{display:none}
  .who__tab{
    white-space:nowrap;border-bottom:0;
    padding:9px 18px;border-radius:999px;
    /* Each inactive tab needs its own surface. With background:transparent they
       vanished into the container tint and read as loose text rather than as
       tabs, which left the group looking like one button and a label. The fill
       is paper at full opacity so they sit as raised chips on the tint. */
    background:var(--paper);
    color:rgba(7,7,8,.62);font-size:var(--fs-body-1);scroll-snap-align:start;
    display:flex;align-items:center;
    transition:background-color .3s,color .3s;
  }
  .who__tab:hover{color:var(--ink);background:#fff}
  /* .who__tab.is-active keeps a left padding for the desktop dot; without
     resetting all four sides here the active pill stayed 14px wider on its
     left than the others, which is what made the row look off-centre. */
  .who__tab.is-active{
    padding:9px 18px;background:var(--ink);color:#fff;
  }
  .who__tab.is-active::before{display:none}
  .who__panels{gap:56px}
  .who__benefits{grid-template-columns:1fr}
  .partners__grid{grid-template-columns:1fr}
  .lead__grid{grid-template-columns:1fr;gap:32px}
  /* One column here, so the 26ch desktop cap leaves the quote in a 264px box
     while the paragraphs above run the full 720px — it reads as pinched. A
     wider measure lets it stand as a statement without spanning the whole
     column, and it needs more space above to separate it from the bio. */
  .lead__quote{max-width:42ch;margin-top:clamp(24px,3.2vw,40px)}
  /* One column here, so the portrait has room to fill it. It keeps its own 4/5
     ratio rather than being forced into a wide 4/3: the source is 1000x1250,
     and object-fit:cover on any landscape box throws away 45-55% of the height
     and crops into the face. Capped at 560px so a 1050px column at the top of
     this range does not turn it into a full-screen image. */
  .lead__portrait{aspect-ratio:4/5;max-width:min(100%,560px)}
  .contact{grid-template-columns:1fr;gap:40px}
  .form__row{grid-template-columns:1fr}
  .hero__copy{bottom:clamp(20px,4vw,40px)}
  .hero__cue{display:none}
  .foot__cols{grid-template-columns:repeat(2,1fr)}
  .foot__top{grid-template-columns:1fr;gap:36px}
}

@media (max-width:679px){
  :root{--side:16px;--radius:20px}
  .hdr{--hdr:56px}
  .hdr__emblem{height:30px}
  .hdr__word{font-size:15px}
  .tout{padding-block:56px}
  .tout__text{font-size:clamp(34px,10.4vw,52px)}
  .tout--md .tout__text{font-size:clamp(26px,7.4vw,34px)}
  .work__grid{grid-template-columns:1fr 1fr;gap:10px 8px}
  .card__title{font-size:14px;margin-top:10px}
  .client{font-size:19px}
  .awards__row{gap:18px 22px;justify-content:center}
  .news__rail{grid-auto-columns:80vw}
  .news{border-radius:20px 20px 0 0}
  .foot__cols{grid-template-columns:1fr 1fr;gap:28px 16px}
  .foot__big{margin-bottom:-2vw}

  /* AIM sections */
  .hero__h1{font-size:clamp(28px,8.6vw,44px)}
  .hero__p{font-size:15px}
  .hero__actions{gap:8px}
  .hero__actions .btn{padding:.75em 1.15em}
  .hero__copy{gap:10px}
  /* No .btn--sm rule here: the secondary nav (and so the bar CTA) is
     hidden behind the burger below 1100px, so it never renders at this
     width. A padding override here would also drop the fixed height that
     keeps the CTA aligned with the nav chips. */
  .about,.services,.who,.partners,.lead,.faq,.contact{
    padding-block:clamp(52px,13vw,72px);
  }
  .about__grid{grid-template-columns:1fr;gap:24px}
  .need{flex-direction:column;align-items:flex-start;gap:12px;padding:22px 0}
  .need__v{text-align:left;font-size:clamp(42px,11vw,64px)}
  .need:hover .need__v{transform:none}
  .partner__actions{flex-direction:column;align-items:stretch}
  .partner__actions .btn{justify-content:center}
  .qa__q{font-size:clamp(18px,5.2vw,24px);gap:16px}
  .choices{gap:6px}
  .choice{padding:8px 13px;font-size:13px}
  .form__foot{flex-direction:column;align-items:flex-start;gap:14px}
  .lead__quote{font-size:clamp(19px,5.6vw,26px);max-width:none}
  .mmenu__cta{padding-top:20px}
}

/* ── 17. MOTION / ACCESIBILIDAD ────────────────────────────────────── */
[data-reveal]{
  opacity:0;transform:translateY(18px);
  transition:opacity .8s var(--ease),transform .9s var(--ease);
  transition-delay:calc(var(--d,0) * 60ms);
}
[data-reveal].is-in{opacity:1;transform:none}

/* split de palabras */
.sw{
  display:inline-block;overflow:hidden;vertical-align:bottom;
  /* el relleno amplía la caja de recorte: no se comen los rasgos */
  padding:.14em .04em .2em;margin:-.14em -.04em -.2em;
}
.sw > span{
  display:inline-block;
  transform:translateY(118%);
  transition:transform .9s var(--ease);
  transition-delay:calc(var(--i,0) * 22ms);
}
.is-split-done .sw > span,
[data-split].is-in .sw > span{transform:none}

/* sin JS no se oculta nada */
html:not(.js) [data-reveal]{opacity:1;transform:none}
html:not(.js) .sw > span{transform:none}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important;
  }
  .sw > span{transform:none!important}
  [data-reveal]{opacity:1!important;transform:none!important}
  .marquee__track{animation:none}
}

/* ==========================================================================
   Cinematic letterbox intro — homepage only, once per session.
   TIMELINE (source of truth, seconds):
     0.3  logo fade-in (1.1s)
     1.9  bars open (0.8s)   -> land at 2.7
     2.0  logo fade-out (0.6s)
     2.4  hero h1 rises (0.7s) · 2.55 p · 2.7 CTA
     3.1  navbar drops in (0.6s) -> lands at 3.7
   The overlay is removed at 3.0s (INTRO_OVERLAY_MS in main.js).
   <html data-intro="skip"|"playing"> is set pre-paint by the gate script in
   Base.astro; the skip path neutralises every animation below.
   ========================================================================== */
@keyframes cineBarTop { to { transform: translateY(-100%); } }
@keyframes cineBarBottom { to { transform: translateY(100%); } }
@keyframes cineLogoIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes cineLogoOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.04); }
}
@keyframes cineRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cineNavbarDrop {
  from { transform: translateY(-110%); }
  to { transform: translateY(0); }
}

.cine-bar-top { animation: cineBarTop 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.9s both; }
.cine-bar-bottom { animation: cineBarBottom 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.9s both; }
.cine-logo-in { animation: cineLogoIn 1.1s ease-out 0.3s both; }
/* Fades the whole lockup — spinning mark plus tagline — as one piece, so the
   tagline cannot outlive the logo it belongs to. */
.cine-logo-out { animation: cineLogoOut 0.6s ease-in 2.0s both; }
.cine-rise {
  animation: cineRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--cine-delay, 2.4s);
}
/* `both` fill on the intro drop would retain transform: translateY(0) forever
   and lock the header, so the scroll hide/show (.hdr.is-hidden) could never
   move it again — measured as transform: none while is-hidden was applied.
   The fill is dropped after the animation instead, handing transform back to
   the scroll behaviour. */
.cine-navbar-drop { animation: cineNavbarDrop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 3.1s backwards; }

/* Skip path: returning visitor / other pages / reduced motion. */
html[data-intro="skip"] .cine-overlay { display: none; }
html[data-intro="skip"] .cine-rise { animation: none; opacity: 1; transform: none; }
/* Deliberately no `transform` on the navbar here. It would outrank
   .hdr.is-hidden (two selectors against one), freezing the header so the
   scroll hide/show worked on a first visit and then never again for the rest
   of the session. Disabling the drop animation is enough. */
html[data-intro="skip"] .cine-navbar-drop { animation: none; }

/* The overlay: two bars with the brand mark centred between them, over the
   running hero footage. pointer-events-none so it can never block a click. */
.cine-overlay{
  position:fixed;inset:0;z-index:130;
  pointer-events:none;
}
.cine-bar-top,
.cine-bar-bottom{
  position:absolute;left:0;width:100%;height:22vh;background:var(--ink);
}
.cine-bar-top{top:0}
.cine-bar-bottom{bottom:0}
.cine-logo-wrap{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
}
/* In and out wrappers stack the mark over its tagline so the fade applies to
   the lockup as a whole. */
.cine-logo-in,
.cine-logo-out{
  display:flex;flex-direction:column;align-items:center;
  gap:clamp(14px,2.2vh,24px);
}
/* The mark spins for as long as it is on screen, which is the point: the brand
   is "in motion" before a single word of the page arrives. `linear` keeps it
   even — an eased spin reads as a wobble rather than a rotation. */
.cine-logo-spin{
  animation: cineLogoSpin 2.6s linear both;
  transform-origin:50% 50%;
}
@keyframes cineLogoSpin { to { transform: rotate(360deg); } }
/* The emblem ships as a dark metallic PNG, so on the dark hero it needs a lift
   to stay legible: the mark sits on the video band, not on a light surface. */
.cine-logo{
  height:clamp(84px,13vh,132px);width:auto;
  filter:drop-shadow(0 8px 28px rgba(0,0,0,.55));
}
/* Tagline rides in under the mark and leaves with it, so the intro reads as one
   unit rather than a logo with page text behind it. */
.cine-tag{
  font-family:var(--sans);font-weight:500;
  font-size:clamp(9px,1.15vw,12px);
  letter-spacing:.28em;text-transform:uppercase;
  color:rgba(255,255,255,.62);
  white-space:nowrap;
}
@media (max-width:679px){
  .cine-logo{height:clamp(64px,10vh,92px)}
  .cine-tag{letter-spacing:.2em}
}

/* During the intro the hero shell keeps its own entrance animation out of the
   way: the children stagger instead (see .cine-rise), and the footage has to be
   visible behind the bars from t=0. This project's hero shell is `.hero`. */
html[data-intro="playing"] .hero { animation: none; opacity: 1; transform: none; }
/* The overline is not part of the stagger, so it would sit visible behind the
   bars and read as a stray line of text above the hero. It rises with the h1
   instead. */
html[data-intro="playing"] .hero__copy .overline { opacity: 0; }
html[data-intro="playing"] .hero__copy .overline { animation: cineRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.3s both; }
/* The footage must be fully visible the moment the bars sit over it. Its own
   1.2s fade is meant for a normal page load; during the intro it would still be
   near-transparent while the bars are on screen, which reads as a black page. */
html[data-intro="playing"] .hero__video { opacity: 1; transition: none; }
/* The page's own white entry scrim would sit on top of the letterbox bars and
   hide them, so it stands down while the intro plays. */
html[data-intro="playing"] .boot { display: none; }
