/* ---------- Helvetica, pinned to upright faces ----------
   Matching exact local faces stops the browser from picking a stray
   installed variant (extended, oblique, condensed). Apple devices get
   real Helvetica Neue; Windows falls back to Arial. */
@font-face { font-family: 'Iriviri Helvetica'; font-style: normal; font-weight: 300;
  src: local('HelveticaNeue-Light'), local('Helvetica Neue Light'), local('Helvetica-Light'), local('Helvetica Light'), local('HelveticaNeue'), local('Helvetica Neue'), local('ArialMT'), local('Arial'); }
@font-face { font-family: 'Iriviri Helvetica'; font-style: normal; font-weight: 400;
  src: local('HelveticaNeue'), local('Helvetica Neue'), local('Helvetica'), local('ArialMT'), local('Arial'); }
@font-face { font-family: 'Iriviri Helvetica'; font-style: normal; font-weight: 500;
  src: local('HelveticaNeue-Medium'), local('Helvetica Neue Medium'), local('HelveticaNeue'), local('Helvetica Neue'), local('Helvetica'), local('ArialMT'), local('Arial'); }
@font-face { font-family: 'Iriviri Helvetica'; font-style: normal; font-weight: 700;
  src: local('HelveticaNeue-Bold'), local('Helvetica Neue Bold'), local('Helvetica-Bold'), local('Helvetica Bold'), local('Arial-BoldMT'), local('Arial Bold'); }

/* =========================================================
   iriviri studio — sistema de diseño
   Blanco, editorial, contenido. Coral solo como acento.
   ========================================================= */
:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-2: #555;
  --mute: #9a9a9a;
  --line: #e9e7e4;
  --surface: #f4f2ef;
  --coral: #ff6f73;

  /* Helvetica everywhere (system font: Helvetica on Apple, Arial fallback on Windows) */
  --sans: 'Iriviri Helvetica', Arial, sans-serif;
  --mono: 'Iriviri Helvetica', Arial, sans-serif;

  --pad: clamp(16px, 2.2vw, 32px);
  --gap: clamp(8px, 0.8vw, 12px);
  --header: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-xs: 12px;
  --fs-s: 14px;
  --fs-m: clamp(16px, 1.05vw, 18px);
  --fs-l: clamp(22px, 2.3vw, 36px);
  --fs-xl: clamp(34px, 4.6vw, 72px);
  --fs-xxl: clamp(46px, 8vw, 132px);
  --veil: 255, 255, 255;
  --theme-ease: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- inverse (dark) navigation ---------- */
html.is-dark {
  --bg: #0d0d0d;
  --ink: #f2f0ed;
  --ink-2: #b4b1ad;
  --mute: #7d7a76;
  --line: #2a2928;
  --surface: #1a1918;
  --veil: 13, 13, 13;
  color-scheme: dark;
}
/* colours glide when switching (class added only during the switch) */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color .6s var(--theme-ease), color .6s var(--theme-ease), border-color .6s var(--theme-ease), fill .6s var(--theme-ease) !important;
}
/* the colour-switch transition (incl. filter) must not touch the spinning star,
   otherwise its blur keyframes stall mid-turn */
html.theme-switching .theme-star img, html.theme-switching img.star { transition: none !important; }
/* keep the star's hover scale smooth while the colours switch */
html.theme-switching .theme-star { transition: transform .6s var(--ease) !important; }

.theme-star {
  order: 2; width: 30px; height: 30px; display: grid; place-items: center; flex: none;
  border-radius: 50%;
  transition: transform .6s var(--ease);
}
/* spin on hover/click comes from the shared .is-spinning animation */
.theme-star img { width: 22px; height: auto; will-change: rotate, filter; }
.theme-star:hover { transform: scale(1.28); }
.theme-star:focus-visible { outline: 1px solid var(--coral); outline-offset: 3px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-m)/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--coral); color: #fff; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }

.mono { font-family: var(--mono); font-size: var(--fs-s); letter-spacing: 0; }
.mute { color: var(--mute); }
.wrap { padding: 0 var(--pad); }

/* page fade between pages */
body { opacity: 1; transition: opacity .45s var(--ease); }
body.is-leaving { opacity: 0; }

/* ---------- link underline (coral, draws left → right) ---------- */
.ul { position: relative; display: inline-block; }
.ul::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--coral); transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.ul:hover::after, .ul[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- star ---------- */
/* brand glitter star (PNG with transparency) */
.star { display: inline-block; width: .7em; height: auto; vertical-align: .02em; }
/* hover spin for every star: one full turn, fast start, soft bouncy stop.
   Uses the individual `rotate` property so it composes with any existing transform
   (GSAP reveals, the header star's click spin). JS adds/removes .is-spinning so the
   turn always completes even if the pointer leaves early. */
/* soft start → speed peak with spin blur → soft stop with a bounce (overshoot, settle) */
@keyframes star-spin {
  0%   { rotate: 0deg;   filter: blur(0);     animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.35); } /* gentle ease-in */
  42%  { rotate: 170deg; filter: blur(1.4px); animation-timing-function: linear; }                         /* top speed */
  62%  { rotate: 320deg; filter: blur(1px);   animation-timing-function: cubic-bezier(0.15, 0.6, 0.35, 1); } /* braking */
  80%  { rotate: 378deg; filter: blur(0);     animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }   /* overshoot */
  91%  { rotate: 355deg;                      animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }   /* bounce back */
  100% { rotate: 360deg; filter: blur(0); }
}
.is-spinning { animation: star-spin 1.35s both; }
.star { cursor: default; }

/* ---------- progressive top blur (5 layers) ---------- */
.top-blur { position: fixed; inset: 0 0 auto 0; height: 120px; z-index: 40; pointer-events: none; }
/* soft white veil so the menu stays legible over dark photos */
.top-blur::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--veil),.82) 0%, rgba(var(--veil),.5) 45%, rgba(var(--veil),0) 100%); z-index: 6; }
.top-blur > div { position: absolute; inset: 0; }
.top-blur > div:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); mask-image: linear-gradient(to top, transparent 0%, #000 20%, #000 40%, transparent 60%); -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 20%, #000 40%, transparent 60%); }
.top-blur > div:nth-child(2) { backdrop-filter: blur(2px);  -webkit-backdrop-filter: blur(2px);  mask-image: linear-gradient(to top, transparent 20%, #000 40%, #000 60%, transparent 80%); -webkit-mask-image: linear-gradient(to top, transparent 20%, #000 40%, #000 60%, transparent 80%); }
.top-blur > div:nth-child(3) { backdrop-filter: blur(4.5px); -webkit-backdrop-filter: blur(4.5px); mask-image: linear-gradient(to top, transparent 40%, #000 60%, #000 80%, transparent 100%); -webkit-mask-image: linear-gradient(to top, transparent 40%, #000 60%, #000 80%, transparent 100%); }
.top-blur > div:nth-child(4) { backdrop-filter: blur(9px);  -webkit-backdrop-filter: blur(9px);  mask-image: linear-gradient(to top, transparent 60%, #000 80%, #000 100%); -webkit-mask-image: linear-gradient(to top, transparent 60%, #000 80%, #000 100%); }
.top-blur > div:nth-child(5) { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); mask-image: linear-gradient(to top, transparent 80%, #000 100%); -webkit-mask-image: linear-gradient(to top, transparent 80%, #000 100%); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px);
  padding: 0 var(--pad);
}
.header__logo { margin-right: auto; }
.nav { order: 1; }
.nav__toggle { order: 3; }
.header__logo img { height: 17px; width: auto; }
/* menu as pills — same language as the project filters */
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--bg);
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.nav a::after { display: none; }
.nav a:hover { border-color: var(--ink); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.nav a.btn { border-color: var(--ink); color: var(--ink); }
.nav a.btn:hover { background: var(--ink); color: var(--bg); }
.nav a.btn[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav__toggle { display: none; font-size: var(--fs-s); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 99px;
  font-size: var(--fs-s); white-space: nowrap; color: var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
/* main call-to-action: neutral and quiet — solid ink with paper text
   (inverts in dark mode); on hover it empties to an outline */
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--lg { height: 52px; padding: 0 26px; font-size: var(--fs-m); }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

@media (max-width: 820px) {
  .nav { position: fixed; inset: var(--header) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 24px var(--pad) 32px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .35s, transform .5s var(--ease); }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .nav a { height: 40px; padding: 0 18px; font-size: var(--fs-s); }
  .nav__toggle { display: block; }
}

/* ---------- generic sections ---------- */
main { padding-top: var(--header); }
.section { padding: clamp(80px, 11vw, 180px) var(--pad); }
.section--tight { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 80px); }
.kicker { font-family: var(--mono); font-size: 11px; font-weight: 300; text-transform: uppercase; color: var(--ink); margin-bottom: 22px; display: block; }
.display { font-size: var(--fs-xl); line-height: .86; letter-spacing: -0.075em; font-weight: 700; }
.display--xxl { font-size: var(--fs-xxl); line-height: .82; letter-spacing: -0.085em; }
.lead { font-size: var(--fs-l); line-height: .95; letter-spacing: -0.06em; font-weight: 700; }

/* all secondary titles share the same compact, slightly heavier voice */
body :is(.p-head h1, .audience h3, .outcome h3, .pack h3, .step h3, .custom p, .cv__item h3, .card__name) {
  font-weight: 700; letter-spacing: -0.04em;
}
body .p-head h1 { letter-spacing: -0.075em; line-height: .86; }
/* running text: tighter, regular weight for comfort */
body { letter-spacing: -0.012em; }
/* small labels (former typewriter details), now Helvetica */
.mono, .kicker, .chip, .nav a, .nav__toggle, .facts dt, .footer__bottom { letter-spacing: -0.005em; }
.kicker { letter-spacing: .08em; }
.body { color: var(--ink-2); max-width: 58ch; }
.body + .body { margin-top: 1em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* split words (set up by JS) */
/* breathing room on every side so tight tracking, accents (Á, Ñ) and
   overhanging glyphs (?, f, j) are never cropped by the reveal mask */
.w { display: inline-block; overflow: hidden; vertical-align: top;
  padding: .14em .1em .22em .04em; margin: -.14em -.1em -.22em -.04em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- home hero ---------- */
.hero { padding: clamp(110px, 17vh, 200px) var(--pad) clamp(56px, 7vw, 110px); }
.hero__title { max-width: 19ch; }
.hero__title .star { width: .55em; height: .55em; margin-left: .1em; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(36px, 5vw, 72px); }
.hero__meta p { max-width: 44ch; color: var(--ink-2); }

/* ---------- filters ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad) 28px; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px;
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-2);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- project grid (2 masonry columns) ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(10px, 1.4vw, 22px); row-gap: clamp(40px, 5vw, 80px); padding: 0 var(--pad); align-items: start; }
.card { display: block; }
.card.is-hidden { display: none; }
/* covers keep their natural format: no crop, height follows the image */
.card__media { overflow: hidden; background: var(--surface); }
.card__media img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.card__media video { width: 100%; height: 100%; display: block; transition: transform .9s var(--ease); }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.035); }
.card__info { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: var(--fs-s); }
.card__info .mono { color: var(--mute); font-size: var(--fs-xs); text-align: right; }
.card__name { position: relative; }
@media (max-width: 1024px) and (min-width: 721px) { .grid .card { grid-column: span 6 !important; } }
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .grid .card { grid-column: auto !important; }
}

/* ---------- CTA block ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } .cta__actions { justify-content: flex-start; } }

/* ---------- logos teaser + page ---------- */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding: 0 var(--pad); }
.logos figure { margin: 0; overflow: hidden; background: var(--surface); align-self: start; }
.logos img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.logos figure:hover img { transform: scale(1.035); }
.logos figcaption { font-family: var(--mono); font-size: var(--fs-xs); color: var(--mute); padding-top: 10px; }
.logos--page figure { aspect-ratio: auto; background: none; overflow: visible; }
.logos--page figure > div { overflow: hidden; background: var(--surface); }
/* logo carousel — each logo on its own black card with plenty of empty space;
   the front card is sharp, the others shrink, blur and fade with distance */
.logos.lcar { display: block; position: relative; padding: 0; }
.logos--page.lcar { margin: 0 var(--pad); }
.lcar__stage { position: relative; height: clamp(300px, 34vw, 560px); overflow: hidden; touch-action: pan-y; user-select: none;
  --w: clamp(260px, 40vw, 680px); --gx: clamp(180px, 30vw, 520px); }
.lcar__item { position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 16 / 10; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; background: #0d0d0d; border-radius: clamp(14px, 1.6vw, 24px);
  transform: translate(-50%, -50%) translateX(calc(var(--d) * var(--gx))) scale(calc(1 - var(--a) * .2));
  filter: blur(calc(var(--a) * 5px)); z-index: calc(10 - var(--a));
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease), opacity 1.2s var(--ease); will-change: transform, filter; }
.lcar__item.is-front { cursor: default; }
.lcar__item.is-far { opacity: 0; pointer-events: none; }
/* the logo itself stays small inside its card: lots of black air around it */
.lcar__item img { width: calc(46% * var(--s, 1)); height: calc(42% * var(--s, 1)); object-fit: contain; display: block; pointer-events: none;
  opacity: calc(1 - var(--a) * .45); transition: opacity 1.2s var(--ease); }
.lcar__item:focus-visible { outline: 2px solid var(--coral); outline-offset: 6px; }
.lcar__bar { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: clamp(18px, 2vw, 28px); color: var(--ink); }
.lcar__name { font-size: 11px; font-weight: 300; text-transform: uppercase; letter-spacing: .08em; min-width: 14ch; text-align: center; }
.lcar__arrow { width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); background: none; font-size: 15px; transition: background .3s, color .3s; }
.lcar__arrow:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 820px) { .lcar__stage { height: 62vw; --w: 76vw; --gx: 58vw; } }
@media (prefers-reduced-motion: reduce) { .lcar__item { transition: none; } }
@media (max-width: 820px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 0 var(--pad) 28px; }

/* ---------- project page ---------- */
.p-hero { padding: 0 var(--pad); }
/* main image keeps its natural format: whole image, centred, never cropped */
.p-hero__media { display: flex; justify-content: center; overflow: hidden; }
.p-hero__media img { width: auto; height: auto; max-width: 100%; max-height: calc(100svh - var(--header) - var(--pad)); }
.p-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); padding: clamp(48px, 6vw, 100px) var(--pad); }
.p-head h1 { font-size: var(--fs-xl); line-height: 1; }
.facts { margin-top: clamp(28px, 3vw, 48px); display: grid; grid-template-columns: 9ch 1fr; gap: 10px 20px; font-size: var(--fs-s); }
.facts dt { font-family: var(--mono); color: var(--mute); font-size: var(--fs-xs); padding-top: 2px; }
.facts dd { margin: 0; }
.p-copy .lead { margin-bottom: 1.2em; }
.challenge { margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.challenge .mono { color: var(--coral); display: block; margin-bottom: .6em; }
@media (max-width: 820px) { .p-head { grid-template-columns: 1fr; } }

.gallery { display: flex; flex-direction: column; gap: var(--gap); padding: 0 var(--pad); }
.gallery__row { display: flex; gap: var(--gap); }
.gallery__row figure { margin: 0; overflow: hidden; background: var(--surface); }
.gallery__row img, .gallery__row video { width: 100%; height: 100%; object-fit: cover; }

/* small item (icon size), centred in its own row */
.gallery__row:has(> figure.is-small) { justify-content: center; padding: clamp(24px, 4vw, 56px) 0; }
.gallery__row figure.is-small { flex: none; width: clamp(150px, 15vw, 230px); background: none; }
@media (max-width: 720px) { .gallery__row figure.is-small { width: 45% !important; } }

/* ---------- layered video button (background + floating cover card) ---------- */
.gallery__row figure.player { position: relative; }
.player__bg { position: absolute; inset: 0; }
.player__card {
  position: absolute; display: block; padding: 0; overflow: hidden; border-radius: 3px; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(20, 40, 45, .35), 0 34px 60px -24px rgba(20, 40, 45, .45);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.gallery__row .player__card img { width: 100%; height: 100%; object-fit: cover; }
.player__card:hover, .player__card:focus-visible {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 16px 34px -10px rgba(20, 40, 45, .4), 0 54px 90px -30px rgba(20, 40, 45, .55);
}
.player__card:focus-visible { outline: 2px solid #ff8e90; outline-offset: 4px; }
.player__cue {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.92);
  padding: 10px 20px; border-radius: 99px; background: rgba(255, 255, 255, .88); color: #141414;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: var(--fs-s); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.player__card:hover .player__cue, .player__card:focus-visible .player__cue { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .player__cue { opacity: 1; transform: translate(-50%, -50%); } }
@media (max-width: 720px) { .gallery__row figure.player { aspect-ratio: 7 / 5 !important; } }

/* video modal */
.vmodal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 5vmin;
  background: rgba(10, 10, 10, .9); opacity: 0; transition: opacity .4s var(--ease);
}
.vmodal.is-open { opacity: 1; }
.vmodal[hidden] { display: none; }
.vmodal__video { width: min(100%, 1400px); max-height: 88vh; border-radius: 6px; background: #000; transform: scale(.96); transition: transform .6s var(--ease); }
.vmodal.is-open .vmodal__video { transform: none; }
.vmodal__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; color: #fff; font-size: 34px; line-height: 1; }
.vmodal__close:focus-visible { outline: 2px solid #ff8e90; border-radius: 50%; }
/* "propuesta que sí eligió": opener + popup card */
button.cta-link { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.chosen-open { margin-top: clamp(28px, 3vw, 44px); }
.pmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(14px, 3vw, 40px);
  background: rgba(13, 13, 13, .72); opacity: 0; transition: opacity .4s var(--ease); }
.pmodal.is-open { opacity: 1; }
.pmodal[hidden] { display: none; }
.pmodal__box { position: relative; width: min(100%, 1180px); max-height: calc(100vh - 2 * clamp(14px, 3vw, 40px)); overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start;
  padding: clamp(28px, 4vw, 56px); background: var(--bg); color: var(--ink); border-radius: clamp(18px, 2vw, 28px);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .45); transform: translateY(14px) scale(.98); transition: transform .6s var(--ease); }
.pmodal.is-open .pmodal__box { transform: none; }
.pmodal__text { position: sticky; top: 0; padding-top: 8px; }
.pmodal__text .body { margin: 1.2em 0 2em; }
.pmodal__media { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.pmodal__media img { width: 100%; height: auto; display: block; border-radius: clamp(10px, 1vw, 16px); background: var(--surface); }
.pmodal__close { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; font-size: 32px; line-height: 1; color: var(--ink); z-index: 1; }
.pmodal__close:focus-visible { outline: 2px solid var(--coral); border-radius: 50%; }
@media (max-width: 820px) { .pmodal__box { grid-template-columns: 1fr; } .pmodal__text { position: static; } }

/* sound toggle over videos with music */
.gallery__row figure.has-video { position: relative; }
.sound-toggle {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px;
  border-radius: 99px; background: rgba(255, 255, 255, .82); color: #141414;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: -0.01em;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35);
  transition: background .4s var(--ease), transform .5s var(--ease);
}
.sound-toggle:hover { transform: translateY(-2px); background: #fff; }
.sound-toggle__dot { width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; transition: background .3s; }
.sound-toggle.is-on .sound-toggle__dot { background: #ff8e90; animation: sound-pulse 1.2s ease-in-out infinite; }
@keyframes sound-pulse { 50% { transform: scale(1.6); opacity: .6; } }
.sound-toggle:focus-visible { outline: 2px solid #ff8e90; outline-offset: 2px; }
@media (max-width: 720px) { .gallery__row { flex-direction: column; } .gallery__row figure { flex: none !important; width: 100%; } }

.next { display: block; padding: clamp(80px, 10vw, 160px) var(--pad) 0; }
.next__label { font-family: var(--mono); font-size: var(--fs-s); color: var(--mute); }
.next__title { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 10px; }
.next__title .display--xxl { transition: transform .8s var(--ease); }
.next:hover .next__title .display--xxl { transform: translateX(14px); }
/* next-project thumbnail: natural format, never cropped */
.next__thumb { width: clamp(120px, 16vw, 240px); overflow: hidden; flex: none; align-self: center; }
.next__thumb img, .next__thumb video { display: block; width: 100%; height: auto; transition: transform .9s var(--ease); }
.next:hover .next__thumb img, .next:hover .next__thumb video { transform: scale(1.05); }

/* ---------- services landing ---------- */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); align-items: stretch; padding-bottom: 30px; }
/* inspired by the iriviri brand pieces: orange blurred glow, coral bold
   numbers, coral outlined pills, tilted sticker, glitter star */
.audience {
  position: relative; overflow: hidden; isolation: isolate; background: var(--surface); color: var(--ink);
  padding: clamp(28px, 3.4vw, 56px); padding-top: clamp(72px, 7vw, 120px);
  display: flex; flex-direction: column; gap: 20px;
  border-radius: clamp(18px, 2vw, 28px);
  /* floating: soft layered shadow; lifts a little more on hover */
  box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 28px -8px rgba(20, 20, 20, .10), 0 32px 64px -24px rgba(20, 20, 20, .14);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.audience:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(20, 20, 20, .05), 0 20px 40px -10px rgba(20, 20, 20, .14), 0 48px 90px -30px rgba(20, 20, 20, .2);
}
/* dark mode: the cards stay white (dark text) and float over the black page */
html.is-dark .audience { background: #ffffff; color: #141414; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -8px rgba(0, 0, 0, .5), 0 36px 70px -24px rgba(0, 0, 0, .6); }
html.is-dark .audience li { color: #141414; background: rgba(255, 255, 255, .6); }
.audience::before {   /* soft corporate-orange glow, like the brand posters */
  content: ''; position: absolute; z-index: -1; width: 75%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 149, 46, .55) 0%, rgba(247, 149, 46, .22) 38%, rgba(247, 149, 46, 0) 70%);
  filter: blur(10px); top: -32%; right: -24%;
  transition: transform 1.2s var(--ease), opacity .8s;
}
.audience:nth-child(2)::before { top: auto; right: auto; bottom: -38%; left: -26%; }
.audience__num {
  position: absolute; top: clamp(18px, 2.2vw, 36px); right: clamp(22px, 2.6vw, 44px);
  font-weight: 700; font-size: clamp(64px, 7vw, 120px); line-height: .9; letter-spacing: -0.07em;
  color: #ff8e90; transition: transform 1s cubic-bezier(0.2, 1.5, 0.35, 1);
  pointer-events: none;
}
.audience h3 { position: relative; font-size: var(--fs-l); line-height: 1.08; max-width: 16ch; }
.audience ul { position: relative; list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.audience li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px; border: 1.5px solid #ff8e90; border-radius: 99px;
  background: rgba(255, 255, 255, .55); color: var(--ink); font-size: var(--fs-s); line-height: 1.3;
  transition: background-color .5s var(--ease), transform .6s var(--ease);
}
.audience li::before {
  content: ''; flex: none; width: 14px; height: 14px; background: url('../assets/img/brand/star.png') center / contain no-repeat;
  transition: transform .8s cubic-bezier(0.2, 1.5, 0.35, 1);
}
/* hover: glow grows, sticker wobbles, number bounces, stars spin */
.audience:hover::before { transform: scale(1.25) translate(-4%, 6%); }
.audience:hover .audience__num { transform: translateY(-6px) rotate(-4deg); }
.audience li:hover { background: #ff8e90; transform: translateY(-2px); }
.audience:hover li::before { transform: rotate(144deg) scale(1.15); }
.audience li:hover::before { animation: star-spin 1.35s both; }
.audience:hover li:nth-child(2)::before { transition-delay: .05s; }
.audience:hover li:nth-child(3)::before { transition-delay: .1s; }
.audience:hover li:nth-child(4)::before { transition-delay: .15s; }
@media (max-width: 820px) { .audiences { grid-template-columns: 1fr; } }

.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 40px); }
.outcome { border-top: 1px solid var(--ink); padding-top: 18px; }
.outcome .mono { color: var(--mute); }
.outcome h3 { font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.02em; margin: 26px 0 10px; }
.outcome p { color: var(--ink-2); font-size: var(--fs-s); }
@media (max-width: 960px) { .outcomes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .outcomes { grid-template-columns: 1fr; } }

.packs { border-top: 1px solid var(--line); }
.pack { display: grid; grid-template-columns: 6ch minmax(0, 4fr) minmax(0, 6fr); gap: clamp(16px, 3vw, 48px); padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.pack .mono { color: var(--mute); padding-top: .5em; }
.pack h3 { font-size: var(--fs-l); letter-spacing: -0.025em; line-height: 1.1; }
.pack h3 small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 300; color: var(--coral); text-transform: uppercase; letter-spacing: .08em; margin-top: 12px; }
.pack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pack li { border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: var(--fs-s); color: var(--ink-2); }
.pack p { color: var(--ink-2); margin-bottom: 16px; max-width: 54ch; }
@media (max-width: 820px) { .pack { grid-template-columns: 1fr; gap: 12px; } }

/* custom-quote box: same language as the audience cards */
.custom {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(28px, 3.4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: clamp(28px, 3.4vw, 56px);
  background: var(--surface); color: var(--ink); border-radius: clamp(18px, 2vw, 28px);
  box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 28px -8px rgba(20, 20, 20, .10), 0 32px 64px -24px rgba(20, 20, 20, .14);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.custom::before {
  content: ''; position: absolute; z-index: -1; width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 149, 46, .55) 0%, rgba(247, 149, 46, .22) 38%, rgba(247, 149, 46, 0) 70%);
  filter: blur(10px); top: -55%; right: -12%; transition: transform 1.2s var(--ease);
}
.custom:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(20, 20, 20, .05), 0 20px 40px -10px rgba(20, 20, 20, .14), 0 48px 90px -30px rgba(20, 20, 20, .2); }
.custom:hover::before { transform: scale(1.2) translate(-6%, 8%); }
.custom p { position: relative; font-size: var(--fs-l); font-weight: 700; letter-spacing: -0.04em; line-height: 1.12; max-width: 26ch; }
html.is-dark .custom { background: #ffffff; color: #141414; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -8px rgba(0, 0, 0, .5), 0 36px 70px -24px rgba(0, 0, 0, .6); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.step { padding: 22px 0 0; border-top: 1px solid var(--line); }
.step .mono { color: var(--coral); }
.step h3 { font-size: clamp(19px, 1.5vw, 24px); letter-spacing: -0.02em; margin: 30px 0 10px; }
.step p { color: var(--ink-2); font-size: var(--fs-s); max-width: 30ch; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 28px var(--gap); } }

.booking { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
/* calendar as a floating card, same language as the audience cards */
.booking__widget {
  min-height: 820px; background: #ffffff; overflow: hidden; isolation: isolate;
  border-radius: clamp(18px, 2vw, 28px);
  box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 28px -8px rgba(20, 20, 20, .10), 0 32px 64px -24px rgba(20, 20, 20, .14);
}
html.is-dark .booking__widget { box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -8px rgba(0, 0, 0, .5), 0 36px 70px -24px rgba(0, 0, 0, .6); }
.calendly-inline-widget { min-width: 280px; height: 820px; }
.calendly-inline-widget iframe { border-radius: inherit; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr; } }
/* booking page */
.booking-page .display .star { width: .42em; height: .42em; margin-left: .08em; }
.booking__steps { list-style: none; padding: 0; margin: 2em 0; border-top: 1px solid var(--line); max-width: 58ch; }
.booking__steps li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.booking__steps .mono { color: var(--mute); font-size: var(--fs-xs); padding-top: .25em; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.about__photo { padding: 4% 6% 8%; }
/* Sobre mí: workshop photo between the text blocks — natural format, aligned
   with the text column, soft corners like the cards, small caption */
.about__wide { margin-left: calc((100% - clamp(32px, 6vw, 120px)) * 5 / 12 + clamp(32px, 6vw, 120px)); }
.about__wide-img { border-radius: clamp(18px, 2vw, 28px); overflow: hidden; }
.about__wide-img img { display: block; width: 100%; height: auto; }
.about__wide figcaption { margin-top: 12px; font-size: var(--fs-xs); color: var(--mute); }
.disciplines--flush { margin-top: 0; }
@media (max-width: 820px) { .about__wide { margin-left: 0; } }
/* home: "who is behind" — small floating bubble + short intro */
.meet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
.meet__photo { max-width: 400px; justify-self: center; width: 100%; padding: 4% 6% 8%; }
.meet__text .lead { margin-bottom: .7em; }
.meet__text .body { margin-bottom: 2em; }
@media (max-width: 820px) { .meet { grid-template-columns: 1fr; } .meet__photo { max-width: 300px; } }
/* her story on the services landing: title left, text right */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.story .lead { margin-top: .6em; max-width: 14ch; }
.story .body + .body { margin-top: 1.1em; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }
/* floating portrait bubble: keeps the photo's format, the outline morphs slowly
   (taller than wide, rounder on top) and the whole thing floats up and down */
.bubble { aspect-ratio: 602 / 754; overflow: hidden; border-radius: 50% 50% 46% 54% / 42% 44% 30% 32%;
  box-shadow: 0 40px 80px -40px rgba(255, 142, 144, .55), 0 18px 40px -24px rgba(247, 149, 46, .35);
  animation: bubble-morph 14s ease-in-out infinite, bubble-float 7s ease-in-out infinite; will-change: border-radius, transform; }
.bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes bubble-morph {
  0%, 100% { border-radius: 50% 50% 46% 54% / 42% 44% 30% 32%; }
  25%      { border-radius: 58% 42% 52% 48% / 46% 38% 34% 28%; }
  50%      { border-radius: 44% 56% 40% 60% / 38% 46% 28% 36%; }
  75%      { border-radius: 54% 46% 58% 42% / 44% 40% 36% 30%; }
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-16px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }
.disciplines { list-style: none; padding: 0; margin: 2em 0 0; border-top: 1px solid var(--line); }
.disciplines li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.disciplines span { color: var(--ink-2); font-size: var(--fs-s); }
.cv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); }
.cv__list { border-top: 1px solid var(--line); }
.cv__item { display: grid; grid-template-columns: 16ch minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cv__item .mono { color: var(--mute); font-size: var(--fs-xs); padding-top: 3px; }
.cv__item h3 { font-size: var(--fs-m); font-weight: 500; }
.cv__item p { color: var(--ink-2); font-size: var(--fs-s); margin-top: 4px; }
@media (max-width: 820px) { .about, .cv { grid-template-columns: 1fr; } .cv__item { grid-template-columns: 1fr; gap: 4px; } .disciplines li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- footer ---------- */
.footer { padding: clamp(90px, 12vw, 190px) var(--pad) 28px; }
/* closing call: big editorial line, then two "which one are you" paths and a
   quiet text link to book — no loud button */
.footer__title { font-size: var(--fs-xxl); line-height: .82; letter-spacing: -0.085em; font-weight: 700; max-width: 12ch; }
.footer__head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); align-items: end; }
.footer__head .footer__title { grid-column: 1 / 3; }
@media (max-width: 820px) { .footer__head { grid-template-columns: 1fr; row-gap: 32px; } .footer__head .footer__title { grid-column: 1; } }
.footer__title .star { width: .42em; height: .42em; margin-left: .08em; }
.footer__paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 6vw, 96px); }
.footer__path, .footer__paths .cta-link { border-top: 1px solid var(--ink); padding-top: 18px; }
.footer__path .mono { display: block; font-size: var(--fs-xs); color: var(--mute); margin-bottom: 12px; }
.footer__path p { font-size: var(--fs-m); line-height: 1.35; color: var(--ink-2); max-width: 30ch; }

/* main call-to-action used across the site: a small grey line + a big bold text
   link that underlines on hover (↗ = opens outside, → = goes to another page) */
.cta-link { display: inline-block; color: inherit; }
.cta-link .mono { display: block; font-size: var(--fs-xs); color: var(--mute); margin-bottom: 10px; }
.cta-link__label { display: inline-flex; align-items: baseline; gap: .3em; font-size: var(--fs-l); font-weight: 700; letter-spacing: -0.042em; line-height: 1.1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 4px; transition: background-size .6s var(--ease); }
.cta-link:hover .cta-link__label { background-size: 100% 1px; }
.cta-link .arr { display: inline-block; transition: transform .5s var(--ease); }
.cta-link:hover .arr { transform: translateX(5px); }
.cta-link:hover .arr--out { transform: translate(4px, -4px); }
.footer__paths .cta-link { display: block; }
@media (max-width: 820px) { .footer__paths { grid-template-columns: 1fr; } }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 7vw, 110px); padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-s); }
.footer__grid .mono { display: block; color: var(--mute); font-size: var(--fs-xs); margin-bottom: 8px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--mute); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* text only for search engines and screen readers */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
