/* Punt Zero — sistema web compartit
   Derivat directament del design system intern (V1) */

:root {
  --pz-ink: #111111;
  --pz-bone: #F3F0EA;
  --pz-stone: #D8D2C7;
  --pz-smoke: #6E6A65;
  --pz-yellow: #F0E92A;
  --pz-magenta: #D84ACB;
  --pz-sand: #E5C8A8;
  --pz-lilac: #D7D0E8;
  --pz-teal: #1BB6A2;
  --pz-white: #FBFAF8;

  --pz-font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pz-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pz-font-serif: "EB Garamond", Georgia, serif;
  --pz-font-mono: "JetBrains Mono", "PT Mono", "DejaVu Sans Mono", ui-monospace, monospace;

  --pz-radius-1: 6px;
  --pz-radius-2: 14px;
  --pz-radius-3: 22px;
  --pz-line: 1px solid rgba(17,17,17,.12);

  --pz-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pz-ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  --pz-max: 1320px;
  --pz-pad-x: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--pz-ink); color: var(--pz-yellow); }

html { scroll-behavior: smooth; }
html, body { background: var(--pz-bone); color: var(--pz-ink); }
body {
  font-family: var(--pz-font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* === Intro / page transition overlay =============================== */
.pz-intro {
  position: fixed; inset: 0;
  background: var(--pz-ink);
  z-index: 9999;
  display: grid; place-items: center;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 900ms var(--pz-ease) 200ms;
}
.pz-intro.is-done { transform: translateY(-101%); }
.pz-intro__mark {
  width: 64px; color: var(--pz-bone);
  opacity: 0; transform: translateY(10px);
  animation: pz-fade 700ms var(--pz-ease) 80ms forwards;
}
@keyframes pz-fade { to { opacity: 1; transform: translateY(0); } }

/* === Top nav ======================================================= */
.pz-nav {
  position: sticky; top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--pz-bone) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.pz-nav.is-scrolled { border-bottom-color: rgba(17,17,17,.08); }
.pz-nav__inner {
  max-width: var(--pz-max); margin: 0 auto;
  padding: 18px var(--pz-pad-x);
  display: flex; align-items: center; gap: 28px;
}
.pz-nav__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--pz-ink);
  font-family: var(--pz-font-display);
  font-weight: 700; letter-spacing: -0.01em;
  font-size: 16px;
}
.pz-nav__brand svg { width: 22px; height: auto; }
.pz-nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.pz-nav__links a {
  text-decoration: none;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--pz-font-body);
  font-weight: 500;
  color: var(--pz-ink);
  position: relative;
  transition: background 180ms ease, color 180ms ease;
}
.pz-nav__links a:hover { background: rgba(17,17,17,.06); }
.pz-nav__links a.is-current { background: var(--pz-ink); color: var(--pz-bone); }
.pz-nav__cta {
  background: var(--pz-ink); color: var(--pz-bone) !important;
  padding: 10px 16px !important;
  font-weight: 600;
}
.pz-nav__cta:hover { background: var(--pz-ink); opacity: .9; }
.pz-nav__menu {
  display: none;
  margin-left: auto;
  background: none; border: 0;
  padding: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.pz-nav__menu-icon {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
}
.pz-nav__menu-icon::before,
.pz-nav__menu-icon::after,
.pz-nav__menu-icon span {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px; height: 1.6px;
  background: var(--pz-ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 360ms var(--pz-ease), opacity 220ms ease, top 280ms var(--pz-ease), background 200ms ease;
  margin-left: -11px;
}
.pz-nav__menu-icon::before { top: 16px; }
.pz-nav__menu-icon span    { top: 21px; }
.pz-nav__menu-icon::after  { top: 26px; }
.pz-nav.is-open .pz-nav__menu-icon::before {
  top: 21px;
  transform: rotate(45deg);
  background: var(--pz-ink);
}
.pz-nav.is-open .pz-nav__menu-icon::after {
  top: 21px;
  transform: rotate(-45deg);
}
.pz-nav.is-open .pz-nav__menu-icon span {
  opacity: 0;
  transform: scaleX(0);
}

/* === Typography ==================================================== */
.pz-kicker {
  font-family: var(--pz-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pz-smoke);
  display: inline-flex; align-items: center; gap: 10px;
}
.pz-kicker::before {
  content: ""; width: 22px; height: 1px; background: currentColor;
}
.pz-display {
  font-family: var(--pz-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.96;
}
.pz-h1 { font-size: clamp(48px, 8.6vw, 132px); }
.pz-h2 { font-size: clamp(34px, 5.4vw, 76px); line-height: 1.0; }
.pz-h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.02em; }
.pz-lead {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--pz-smoke);
  max-width: 60ch;
}

.hl {
  display: inline-block;
  padding: 0.04em 0.32em 0.12em;
  font-style: italic;
  line-height: 1;
  border-radius: 2px;
  background-color: transparent;
  background-image: linear-gradient(var(--hl-bg, transparent), var(--hl-bg, transparent));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
  color: var(--pz-ink);
  transition: background-size 900ms cubic-bezier(.7,0,.2,1), color 500ms ease 280ms;
}
.hl.yellow  { --hl-bg: var(--pz-yellow);  color: var(--pz-ink); }
.hl.magenta { --hl-bg: var(--pz-magenta); color: #fff; }
.hl.sand    { --hl-bg: var(--pz-sand);    color: var(--pz-ink); }
.hl.lilac   { --hl-bg: var(--pz-lilac);   color: var(--pz-ink); }
.hl.teal    { --hl-bg: var(--pz-teal);    color: #fff; }

/* JS-enabled paint-in animation. The body class is set on load so no-JS
   users still get the full coloured highlight. */
.js .hl.is-anim {
  background-size: 0% 100%;
}
.js .hl.is-anim.is-in {
  background-size: 100% 100%;
}
/* Lilac: text starts ink-coloured and switches to white as the bg paints in. */
.js .hl.lilac.is-anim { color: var(--pz-ink); }
.js .hl.lilac.is-anim.is-in { color: #fff; }

/* === Typewriter / wipe reveal for non-highlight titles ============== */
.js .pz-typewriter {
  position: relative;
  clip-path: inset(-8% 100% -18% -2%);
  transition: clip-path 1.2s cubic-bezier(.7,0,.2,1);
}
.js .pz-typewriter.is-in {
  clip-path: inset(-8% -4% -18% -2%);
}
.js .pz-typewriter::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 4px;
  background: var(--pz-yellow);
  opacity: 0;
  transition: opacity 200ms ease;
}
.js .pz-typewriter.is-in::after {
  animation: pz-caret 1.2s linear, pz-caret-blink 0.8s steps(1) 1.2s 3;
}
@keyframes pz-caret      { 0% { opacity: 1; } 100% { opacity: 1; } }
@keyframes pz-caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* === Layout shell ================================================== */
.pz-wrap {
  max-width: var(--pz-max);
  margin: 0 auto;
  padding: 0 var(--pz-pad-x);
}
.pz-section {
  padding: clamp(72px, 11vw, 160px) 0;
  position: relative;
}
.pz-section--tight { padding: clamp(48px, 7vw, 110px) 0; }
.pz-section--dark { background: var(--pz-ink); color: var(--pz-bone); }
.pz-section--stone { background: var(--pz-stone); }
.pz-section--white { background: var(--pz-white); }
.pz-section--dark .pz-kicker { color: rgba(243,240,234,.6); }
.pz-section--dark .pz-lead { color: rgba(243,240,234,.7); }

.pz-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.pz-section__head--single { grid-template-columns: 1fr; max-width: 880px; }

/* === Hero ========================================================== */
.pz-hero {
  padding: clamp(140px, 18vw, 220px) 0 clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.pz-hero__inner { position: relative; z-index: 2; }
.pz-hero__kicker { margin-bottom: clamp(28px, 4vw, 48px); }
.pz-hero__title {
  font-family: var(--pz-font-display);
  font-weight: 800;
  font-size: clamp(54px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 14ch;
}
.pz-hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  margin-right: 0.18em;
}
.pz-hero__title .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: pz-rise 900ms var(--pz-ease) both;
}
.pz-hero__title .word:nth-child(1) > span { animation-delay: 1100ms; }
.pz-hero__title .word:nth-child(2) > span { animation-delay: 1200ms; }
.pz-hero__title .word:nth-child(3) > span { animation-delay: 1300ms; }
.pz-hero__title .word:nth-child(4) > span { animation-delay: 1400ms; }
.pz-hero__title .word:nth-child(5) > span { animation-delay: 1500ms; }
.pz-hero__title .word:nth-child(6) > span { animation-delay: 1600ms; }
.pz-hero__title .word:nth-child(7) > span { animation-delay: 1700ms; }
.pz-hero__title .word:nth-child(8) > span { animation-delay: 1800ms; }
@keyframes pz-rise { to { transform: translateY(0); } }

.pz-hero__sub {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.45;
  max-width: 52ch;
  color: var(--pz-smoke);
  opacity: 0;
  animation: pz-fade-in 800ms var(--pz-ease) 2100ms forwards;
}
@keyframes pz-fade-in { to { opacity: 1; } }

.pz-hero__bands {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 10px;
}
.pz-hero__bands .hl {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  opacity: 0;
  animation: pz-band 700ms var(--pz-ease) forwards;
}
.pz-hero__bands .hl:nth-child(1) { animation-delay: 2200ms; }
.pz-hero__bands .hl:nth-child(2) { animation-delay: 2350ms; }
.pz-hero__bands .hl:nth-child(3) { animation-delay: 2500ms; }
.pz-hero__bands .hl:nth-child(4) { animation-delay: 2650ms; }
@keyframes pz-band {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pz-hero__meta {
  position: absolute;
  right: var(--pz-pad-x);
  bottom: clamp(80px, 10vw, 140px);
  max-width: 280px;
  text-align: right;
  font-family: var(--pz-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pz-smoke);
  opacity: 0;
  animation: pz-fade-in 800ms var(--pz-ease) 2400ms forwards;
}

/* Decorative big O behind hero — separated circles with independent motion */
.pz-hero__shape {
  position: absolute;
  right: -10vw;
  top: -8vw;
  width: 70vw;
  max-width: 900px;
  color: var(--pz-ink);
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
  transition: transform 1.6s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.pz-hero__shape circle { transform-box: fill-box; transform-origin: center; }
.pz-hero__c1 {
  stroke-dasharray: 3 9;
  animation: pz-spin 38s linear infinite;
}
.pz-hero__c2 {
  stroke-dasharray: 14 6;
  animation: pz-spin-rev 24s linear infinite, pz-pulse-stroke 7s ease-in-out infinite;
}
.pz-hero__c3 {
  animation: pz-pulse-dot 5s ease-in-out infinite;
}
@keyframes pz-spin     { to { transform: rotate(360deg); } }
@keyframes pz-spin-rev { to { transform: rotate(-360deg); } }
@keyframes pz-pulse-stroke {
  0%, 100% { stroke-width: 2; opacity: 1; }
  50%      { stroke-width: 3; opacity: 0.5; }
}
@keyframes pz-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.72; }
}

/* Floating orbs in hero — drift slowly across the canvas */
.pz-hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.pz-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.25;
  will-change: transform;
}
.pz-hero__orb--y {
  width: 320px; height: 320px;
  background: var(--pz-yellow);
  top: 15%; left: -6%;
  animation: pz-drift-1 22s ease-in-out infinite alternate;
}
.pz-hero__orb--m {
  width: 260px; height: 260px;
  background: var(--pz-magenta);
  bottom: -8%; left: 28%;
  opacity: 0.18;
  animation: pz-drift-2 28s ease-in-out infinite alternate;
}
.pz-hero__orb--l {
  width: 360px; height: 360px;
  background: var(--pz-lilac);
  top: -10%; right: -8%;
  opacity: 0.4;
  animation: pz-drift-3 32s ease-in-out infinite alternate;
}
@keyframes pz-drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(80px, 40px, 0) scale(1.18); }
}
@keyframes pz-drift-2 {
  from { transform: translate3d(0, 0, 0) scale(0.9); }
  to   { transform: translate3d(-60px, -80px, 0) scale(1.2); }
}
@keyframes pz-drift-3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-90px, 60px, 0) scale(0.85); }
}

/* === Reveals ======================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--pz-ease), transform 800ms var(--pz-ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--pz-ease), transform 700ms var(--pz-ease);
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }

/* Big line reveal — masking each line of text */
.line-reveal {
  display: block;
  overflow: hidden;
}
.line-reveal > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms var(--pz-ease);
}
.line-reveal.is-in > span { transform: translateY(0); }

/* === Cards ========================================================= */
.pz-card {
  background: var(--pz-white);
  border: 1px solid rgba(17,17,17,.10);
  border-radius: var(--pz-radius-2);
  padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column;
  gap: 14px;
  transition: transform 400ms var(--pz-ease), box-shadow 400ms var(--pz-ease), border-color 400ms ease;
}
.pz-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17,17,17,.18);
  box-shadow: 0 18px 40px -20px rgba(17,17,17,.18);
}
.pz-card__no {
  font-family: var(--pz-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--pz-smoke);
  text-transform: uppercase;
}
.pz-card__title {
  font-family: var(--pz-font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pz-card__body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--pz-smoke);
}
.pz-card--dark {
  background: var(--pz-ink);
  color: var(--pz-bone);
  border-color: rgba(255,255,255,.08);
  position: relative;
  isolation: isolate;
}
.pz-card--dark .pz-card__body { color: rgba(243,240,234,.7); }
.pz-card--dark .pz-card__no { color: rgba(243,240,234,.55); }

/* Cancel the lifting hover for nucli cards — border-draw effect replaces it. */
.pz-card--dark:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
.pz-card__stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
  overflow: visible;
  z-index: 2;
}
.pz-card__stroke rect {
  fill: none;
  stroke: var(--pz-yellow);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 900ms cubic-bezier(.7,0,.25,1);
}
.pz-card--dark:hover .pz-card__stroke rect {
  stroke-dashoffset: 0;
}

.pz-card--accent-y { border-top: 4px solid var(--pz-yellow); }
.pz-card--accent-m { border-top: 4px solid var(--pz-magenta); }
.pz-card--accent-s { border-top: 4px solid var(--pz-sand); }
.pz-card--accent-l { border-top: 4px solid var(--pz-lilac); }
.pz-card--accent-t { border-top: 4px solid var(--pz-teal); }

/* === Grids ========================================================= */
.pz-grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}
.pz-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pz-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pz-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .pz-grid--3, .pz-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pz-grid--2, .pz-grid--3, .pz-grid--4 { grid-template-columns: 1fr; }
}

/* === Button ======================================================== */
.pz-btn {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--pz-font-body);
  font-weight: 600; font-size: 15.5px;
  text-decoration: none;
  border: 1px solid var(--pz-ink);
  background: var(--pz-ink); color: var(--pz-bone);
  cursor: pointer;
  transition: transform 200ms var(--pz-ease), background 200ms ease, color 200ms ease;
}
.pz-btn:hover { transform: translateY(-2px); }
.pz-btn--ghost {
  background: transparent; color: var(--pz-ink);
}
.pz-btn--ghost:hover { background: var(--pz-ink); color: var(--pz-bone); }
.pz-btn__arrow { display: inline-block; transition: transform 250ms var(--pz-ease); }
.pz-btn:hover .pz-btn__arrow { transform: translateX(4px); }

.pz-section--dark .pz-btn {
  background: var(--pz-bone); color: var(--pz-ink); border-color: var(--pz-bone);
}
.pz-section--dark .pz-btn--ghost {
  background: transparent; color: var(--pz-bone);
}

/* === Marquee belt (full bleed running text) ========================= */
.pz-marquee {
  background: var(--pz-ink); color: var(--pz-bone);
  padding: clamp(20px, 2vw, 32px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pz-marquee__track {
  display: flex; gap: 0;
  animation: pz-scroll 38s linear infinite;
  will-change: transform;
}
.pz-marquee__item {
  font-family: var(--pz-font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 90px);
  letter-spacing: -0.04em;
  white-space: nowrap;
  padding-right: 0.6em;
  display: inline-flex; align-items: center; gap: 0.4em;
}
.pz-marquee__item .dot {
  display: inline-block; width: 0.32em; height: 0.32em; border-radius: 999px;
  background: var(--pz-yellow);
}
@keyframes pz-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === List rows (project lists) ===================================== */
.pz-row {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(20px, 3vw, 48px);
  padding: 22px 0;
  border-top: 1px solid rgba(17,17,17,.12);
  transition: padding 250ms var(--pz-ease);
}
.pz-row:last-child { border-bottom: 1px solid rgba(17,17,17,.12); }
.pz-row:hover { padding-left: 14px; padding-right: 14px; background: rgba(17,17,17,.025); }
.pz-row__client {
  font-family: var(--pz-font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.pz-row__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--pz-smoke);
}
.pz-row__year {
  font-family: var(--pz-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--pz-smoke);
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .pz-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
  .pz-row__year { order: -1; }
}

/* === Project rows (redesigned, project-name dominant) ============== */
.pz-projects {
  border-top: 1px solid rgba(17,17,17,.12);
}
.pz-section--dark .pz-projects,
.pz-section--dark .pz-projects + .pz-projects {
  border-top-color: rgba(255,255,255,.14);
}

.pz-project {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(18px, 2.6vw, 40px);
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-bottom: 1px solid rgba(17,17,17,.12);
  position: relative;
  transition: padding 320ms var(--pz-ease), background 320ms var(--pz-ease);
}
.pz-section--dark .pz-project { border-bottom-color: rgba(255,255,255,.14); }

/* hover: subtle inset + yellow underline grows */
.pz-project::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--pz-yellow);
  transition: right 520ms var(--pz-ease);
}
.pz-project:hover::after { right: 0; }
.pz-project:hover { padding-left: clamp(14px, 1.6vw, 22px); padding-right: clamp(14px, 1.6vw, 22px); background: rgba(17,17,17,.025); }
.pz-section--dark .pz-project:hover { background: rgba(255,255,255,.04); }

.pz-project__num {
  font-family: var(--pz-font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--pz-smoke);
  padding-top: 0.6em;
  font-variant-numeric: tabular-nums;
  transition: color 320ms var(--pz-ease);
}
.pz-section--dark .pz-project__num { color: rgba(243,240,234,.5); }
.pz-project:hover .pz-project__num { color: var(--pz-magenta); }

.pz-project__body { min-width: 0; }

.pz-project__name {
  font-family: var(--pz-font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 12px;
  color: var(--pz-ink);
}
.pz-section--dark .pz-project__name { color: var(--pz-bone); }

.pz-project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--pz-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pz-smoke);
  margin-bottom: 14px;
}
.pz-section--dark .pz-project__meta { color: rgba(243,240,234,.65); }
.pz-project__client { color: var(--pz-magenta); font-weight: 500; }
.pz-project__sep { opacity: 0.5; }

.pz-project__desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--pz-smoke);
  max-width: 64ch;
}
.pz-section--dark .pz-project__desc { color: rgba(243,240,234,.72); }

.pz-project__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  padding-top: 0.4em;
}
.pz-project__year {
  font-family: var(--pz-font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--pz-smoke);
  text-transform: uppercase;
  white-space: nowrap;
}
.pz-section--dark .pz-project__year { color: rgba(243,240,234,.55); }

.pz-project__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--pz-line);
  color: var(--pz-ink);
  text-decoration: none;
  transition: transform 420ms var(--pz-ease), background 420ms var(--pz-ease), color 320ms var(--pz-ease), border-color 320ms var(--pz-ease);
  position: relative;
  overflow: hidden;
}
.pz-section--dark .pz-project__link {
  border-color: rgba(255,255,255,.18);
  color: var(--pz-bone);
}
.pz-project__link svg {
  width: 16px; height: 16px;
  transition: transform 420ms var(--pz-ease);
}
.pz-project:hover .pz-project__link {
  background: var(--pz-yellow);
  border-color: var(--pz-yellow);
  color: var(--pz-ink);
  transform: translateY(-2px);
}
.pz-project:hover .pz-project__link svg {
  transform: translate(2px, -2px);
}

@media (max-width: 820px) {
  .pz-project {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px 16px;
    padding: 20px 0;
  }
  .pz-project__name { font-size: clamp(22px, 6vw, 30px); }
  .pz-project__aside {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    width: 100%;
  }
  .pz-project__year { order: 1; }
  .pz-project__link { width: 40px; height: 40px; }
}

/* Featured block (sistemes conversacionals) */
.pz-feature {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(36px, 5vw, 64px);
  background: var(--pz-bone);
  color: var(--pz-ink);
  border-radius: var(--pz-radius-2);
  position: relative;
  overflow: hidden;
}
.pz-feature::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--pz-yellow);
  opacity: 0.6;
  filter: blur(40px);
}
.pz-feature__inner { position: relative; }
.pz-feature__kicker {
  font-family: var(--pz-font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pz-magenta);
  margin-bottom: 16px;
}
.pz-feature__title {
  font-family: var(--pz-font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 14px;
}
.pz-feature__lead {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--pz-smoke);
  max-width: 56ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* Sub-group label inside Producció */
.pz-projects-group {
  margin-top: clamp(40px, 5vw, 56px);
}
.pz-projects-group:first-of-type { margin-top: 0; }
.pz-projects-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17,17,17,.18);
}
.pz-section--dark .pz-projects-group__head { border-bottom-color: rgba(255,255,255,.22); }
.pz-projects-group__title {
  font-family: var(--pz-font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.015em;
}
.pz-projects-group__count {
  font-family: var(--pz-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pz-smoke);
}
.pz-section--dark .pz-projects-group__count { color: rgba(243,240,234,.55); }

/* === Big number stat ============================================== */
.pz-stat {
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  padding-left: 18px;
}
.pz-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--pz-yellow);
  transition: height 800ms cubic-bezier(.7,0,.2,1) 200ms;
}
.pz-stat.is-in::before { height: 60%; }
.pz-stat__num {
  font-family: var(--pz-font-display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.js .pz-stat__num {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.16,1,.3,1);
}
.js .pz-stat.is-in .pz-stat__num {
  opacity: 1;
  transform: translateY(0);
}
.pz-stat__label {
  font-family: var(--pz-font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pz-smoke);
}
.pz-section--stone .pz-stat::before { background: var(--pz-magenta); }

/* === Footer ======================================================== */
.pz-footer {
  background: var(--pz-ink);
  color: var(--pz-bone);
  padding: clamp(72px, 10vw, 140px) 0 56px;
}
.pz-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.pz-footer__msg {
  font-family: var(--pz-font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.pz-footer__msg .hl { padding: 0 0.3em 0.05em; }
.pz-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  font-size: 15px;
}
.pz-footer__links a {
  text-decoration: none;
  color: rgba(243,240,234,.65);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 200ms ease, border-color 200ms ease;
}
.pz-footer__links a:hover { color: var(--pz-bone); border-bottom-color: var(--pz-yellow); }
.pz-footer__bottom {
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--pz-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243,240,234,.55);
  flex-wrap: wrap; gap: 16px;
}

/* === Quote ========================================================= */
.pz-quote {
  font-family: var(--pz-font-serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
  color: var(--pz-ink);
}
.pz-quote__mark {
  font-family: var(--pz-font-serif);
  font-size: clamp(80px, 10vw, 140px);
  line-height: 0.5;
  display: block;
  color: var(--pz-magenta);
  margin-bottom: 8px;
}

/* === Approach list (numbered) ====================================== */
.pz-numbered {
  list-style: none;
  display: grid;
  gap: 0;
}
.pz-numbered li {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: clamp(16px, 2vw, 32px);
  padding: 22px 0;
  border-top: 1px solid rgba(17,17,17,.12);
}
.pz-numbered li:last-child { border-bottom: 1px solid rgba(17,17,17,.12); }
.pz-numbered .num {
  font-family: var(--pz-font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--pz-magenta);
  text-transform: uppercase;
  font-weight: 600;
}
.pz-numbered .item-title {
  font-family: var(--pz-font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.pz-section--dark .pz-numbered li { border-color: rgba(255,255,255,.12); }
.pz-section--dark .pz-numbered .num { color: var(--pz-yellow); }

/* === Tag pills ===================================================== */
.pz-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pz-pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.18);
  font-size: 13.5px;
  font-family: var(--pz-font-body);
  background: transparent;
  color: var(--pz-ink);
}
.pz-section--dark .pz-pill {
  border-color: rgba(255,255,255,.2);
  color: var(--pz-bone);
}

/* === Responsive nav =============================================== */
@media (max-width: 900px) {
  .pz-nav__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 110;
    position: relative;
  }
  .pz-nav.is-open .pz-nav__menu-icon::before,
  .pz-nav.is-open .pz-nav__menu-icon::after { background: var(--pz-bone); }

  .pz-nav__links {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--pz-ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 0 clamp(28px, 8vw, 56px);
    margin: 0;
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 360ms var(--pz-ease), transform 420ms var(--pz-ease), visibility 0s linear 380ms;
  }
  .pz-nav.is-open .pz-nav__links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 360ms var(--pz-ease), transform 420ms var(--pz-ease), visibility 0s linear 0s;
  }
  .pz-nav__links a {
    font-family: var(--pz-font-display);
    font-weight: 700;
    font-size: clamp(36px, 9vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    padding: 10px 0;
    background: none !important;
    color: var(--pz-bone) !important;
    border-radius: 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 480ms var(--pz-ease), transform 520ms var(--pz-ease), color 200ms ease;
  }
  .pz-nav.is-open .pz-nav__links a {
    opacity: 1;
    transform: translateY(0);
  }
  .pz-nav.is-open .pz-nav__links a:nth-child(1) { transition-delay: 120ms; }
  .pz-nav.is-open .pz-nav__links a:nth-child(2) { transition-delay: 180ms; }
  .pz-nav.is-open .pz-nav__links a:nth-child(3) { transition-delay: 240ms; }
  .pz-nav.is-open .pz-nav__links a:nth-child(4) { transition-delay: 300ms; }
  .pz-nav__links a.is-current { color: var(--pz-yellow) !important; }
  .pz-nav__links a:hover { color: var(--pz-yellow) !important; background: none !important; }
  .pz-nav__cta {
    background: none !important;
    padding: 10px 0 !important;
    color: var(--pz-yellow) !important;
  }
  .pz-section__head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 720px) {
  .pz-hero__meta { display: none; }
  .pz-footer__top { grid-template-columns: 1fr; align-items: start; }
  .pz-footer__bottom { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 200ms !important;
  }
  .pz-hero__shape { animation: none; }
  .pz-marquee__track { animation: none; }
}

/* === Qui som — featured section =================================== */
.pz-quisom { overflow: hidden; }
.pz-quisom__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.pz-quisom__stamp {
  font-family: var(--pz-font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pz-smoke);
  text-align: right;
  line-height: 1.4;
  padding-top: 6px;
}
.pz-quisom__stamp span {
  display: block;
  font-family: var(--pz-font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pz-ink);
  margin-top: 4px;
}
.pz-quisom__title {
  max-width: 18ch;
  margin-bottom: clamp(64px, 9vw, 120px);
}

/* The big quote card — manifest with a "stage slam" entrance:
   1. card drops in heavy from below with a quick bounce
   2. magenta orb bursts out with overshoot
   3. yellow scanner stripe physically sweeps top→bottom
   4. quote mark plummets from above and lands with a bounce
   5. each word flashes yellow as it activates, then settles white

   The hidden initial state is gated on .js so non-JS readers still see
   the card. We use transforms (no clip-path) so even if the reveal
   observer never fires, the card remains visible. */
.pz-quisom__quote {
  position: relative;
  background: var(--pz-ink);
  color: var(--pz-bone);
  padding: clamp(56px, 8vw, 120px) clamp(40px, 6vw, 100px) clamp(56px, 8vw, 96px);
  margin-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(17,17,17,.25);
}
.js .pz-quisom__quote {
  opacity: 0;
  transform: translateY(80px) scale(0.96);
  box-shadow: 0 0 0 rgba(17,17,17,0);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.34, 1.32, 0.5, 1),
    box-shadow 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
  will-change: opacity, transform;
}
.js .pz-quisom__quote.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 50px 90px -30px rgba(17,17,17,.45);
}
.pz-quisom__quote::before {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 60%;
  aspect-ratio: 1 / 1;
  background: var(--pz-magenta);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0;
  z-index: -1;
  transform: translate3d(0, 0, 0) scale(0.05);
  transition:
    transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s,
    opacity 0.7s ease 0.45s;
}
.pz-quisom__quote.is-in::before {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 0.9;
  animation: pz-circle-breath 6s ease-in-out 1.8s infinite;
}
@keyframes pz-circle-breath {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  50%      { transform: translate3d(0, 0, 0) scale(1.05); opacity: 0.72; }
}
/* Yellow scanner stripe — sweeps top→bottom across the card, tinting
   whatever it overlays. Sits above text via z-index; the mix-blend-mode
   lets the dark card glow yellow as the band passes. */
.pz-quisom__quote .pz-quisom__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in oklab, var(--pz-yellow) 0%, transparent) 38%,
    color-mix(in oklab, var(--pz-yellow) 55%, transparent) 47%,
    var(--pz-yellow) 50%,
    color-mix(in oklab, var(--pz-yellow) 55%, transparent) 53%,
    color-mix(in oklab, var(--pz-yellow) 0%, transparent) 62%,
    transparent 100%
  );
  background-size: 100% 260%;
  background-position: 0 -160%;
  mix-blend-mode: hard-light;
  filter: blur(2px) saturate(1.2);
  opacity: 0;
}
.pz-quisom__quote.is-in .pz-quisom__spotlight {
  animation: pz-scanner 2.1s cubic-bezier(0.65, 0, 0.35, 1) 0.55s 1 forwards;
}
@keyframes pz-scanner {
  0%   { opacity: 0;   background-position: 0 -100%; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { opacity: 0;   background-position: 0 160%; }
}
.pz-quisom__quote::after {
  content: "";
  position: absolute;
  inset: 0 auto auto -2%;
  width: 28%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(243,240,234,.18);
  border-radius: 50%;
  transform: translateY(-40%) scale(0.5);
  opacity: 0;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s, opacity 0.9s ease 0.7s;
}
.pz-quisom__quote.is-in::after {
  transform: translateY(-40%) scale(1);
  opacity: 1;
}
.pz-quisom__quote-mark {
  font-family: var(--pz-font-serif);
  font-style: italic;
  font-size: clamp(180px, 22vw, 320px);
  line-height: 0.7;
  color: var(--pz-yellow);
  display: block;
  margin-bottom: -0.1em;
  /* plummet from above with weight, then bounce-settle */
  transform: translate3d(-0.05em, -140%, 0) rotate(-22deg) scale(0.7);
  transform-origin: 0% 80%;
  opacity: 0;
  user-select: none;
  text-shadow: 0 0 0 rgba(240,233,42,0);
  transition:
    transform 1.05s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s,
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.9s,
    text-shadow 0.6s ease 1.6s;
  will-change: transform, opacity;
}
.pz-quisom__quote.is-in .pz-quisom__quote-mark {
  transform: translate3d(-0.05em, 0, 0) rotate(0deg) scale(1);
  opacity: 1;
  text-shadow: 0 0 60px rgba(240,233,42,0.45);
}
/* Words: hidden → strike-in with a brief yellow flash background, then
   settle to white. Combined with the scanner sweep above, this reads
   like the band is illuminating each word as it lands. */
.pz-quote-word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px);
  position: relative;
  padding: 0 0.05em;
  border-radius: 2px;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform, background-color;
}
.pz-quote-word.is-in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  animation: pz-word-strike 780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pz-word-strike {
  0%   { background-color: rgba(240,233,42,0);   color: var(--pz-bone); }
  25%  { background-color: rgba(240,233,42,0.55); color: var(--pz-ink); }
  55%  { background-color: rgba(240,233,42,0.20); color: var(--pz-bone); }
  100% { background-color: rgba(240,233,42,0);   color: var(--pz-bone); }
}
@media (prefers-reduced-motion: reduce) {
  .js .pz-quisom__quote,
  .js .pz-quisom__quote.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pz-quisom__quote::before { transition: none; opacity: 0.55; transform: none; }
  .pz-quisom__quote.is-in::before { animation: none; }
  .pz-quisom__quote.is-in .pz-quisom__spotlight { animation: none; opacity: 0; }
  .pz-quisom__quote::after { transition: none; opacity: 1; transform: translateY(-40%); }
  .pz-quisom__quote-mark,
  .pz-quisom__quote.is-in .pz-quisom__quote-mark {
    transform: translateX(-0.05em);
    opacity: 1;
    text-shadow: none;
    transition: none;
  }
  .pz-quote-word,
  .pz-quote-word.is-in {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
    animation: none;
    background-color: transparent;
    color: var(--pz-bone);
  }
}
.pz-quisom__quote-text {
  font-family: var(--pz-font-serif);
  font-style: italic;
  font-size: clamp(30px, 4.2vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 clamp(28px, 4vw, 48px);
  position: relative;
}
.pz-quisom__quote-text em {
  font-style: italic;
  background: linear-gradient(transparent 62%, color-mix(in oklab, var(--pz-yellow) 70%, transparent) 62%);
  padding: 0 0.08em;
}
.pz-quisom__quote-cap {
  font-family: var(--pz-font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243,240,234,.55);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.pz-quisom__quote-cap::before {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(243,240,234,.4);
}

/* Two-column body + facts row */
.pz-quisom__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  margin-bottom: clamp(56px, 7vw, 96px);
}
.pz-quisom__body p {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--pz-smoke);
  margin: 0;
}
.pz-quisom__body p:first-child::first-letter {
  font-family: var(--pz-font-display);
  font-weight: 800;
  font-size: 3.4em;
  line-height: 0.85;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--pz-ink);
}
.pz-quisom__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(17,17,17,.14);
  border-bottom: 1px solid rgba(17,17,17,.14);
  margin: 0;
  padding: 0;
}
.pz-quisom__facts li {
  padding: clamp(28px, 3.6vw, 44px) clamp(20px, 2.4vw, 32px);
  border-right: 1px solid rgba(17,17,17,.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.4s ease;
  cursor: default;
}
.pz-quisom__facts li:last-child { border-right: 0; }
.pz-quisom__facts li:hover { background: color-mix(in oklab, var(--pz-yellow) 35%, transparent); }
.pz-quisom__facts strong {
  font-family: var(--pz-font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--pz-ink);
  display: block;
}
.pz-quisom__facts span {
  font-family: var(--pz-font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pz-smoke);
  display: block;
}

@media (max-width: 760px) {
  .pz-quisom__body { grid-template-columns: 1fr; }
  .pz-quisom__facts { grid-template-columns: 1fr; }
  .pz-quisom__facts li { border-right: 0; border-bottom: 1px solid rgba(17,17,17,.14); }
  .pz-quisom__facts li:last-child { border-bottom: 0; }
  .pz-quisom__quote-mark { font-size: clamp(140px, 32vw, 220px); }
}

/* ── Scramble/decrypt heading (arees.html hero) ─────────────────────
   Letter-by-letter cipher cascade: each char cycles through random
   glyphs before settling. Words stay together via inline-block wrap.
   Replaces .hl on this section to keep it visually distinctive. */
.pz-scramble {
  display: block;
}
.pz-scramble__word {
  display: inline-block;
  white-space: nowrap;
}
.pz-scramble__char {
  display: inline-block;
  font-variant-ligatures: none;
  font-feature-settings: "kern" 0, "liga" 0, "calt" 0;
  transform-origin: 50% 100%;
}
.js .pz-scramble:not(.is-in) .pz-scramble__char {
  opacity: 0;
  transform: translateY(0.18em);
}
.js .pz-scramble.is-in .pz-scramble__char {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 280ms ease, transform 420ms cubic-bezier(.22,.61,.36,1);
}
.pz-scramble__char.is-cipher {
  color: var(--pz-smoke);
  opacity: 0.85;
}
/* Drawn underline that replaces the yellow .hl on the scramble heading */
.pz-underline-draw {
  position: relative;
  font-style: normal;
  display: inline-block;
  isolation: isolate;
}
.pz-underline-draw > * { position: relative; z-index: 1; }
.pz-underline-draw::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.04em;
  height: 0.22em;
  background: var(--pz-yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 720ms cubic-bezier(.65,.05,.36,1);
  z-index: 0;
  border-radius: 2px;
}
.pz-scramble.is-settled .pz-underline-draw::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .js .pz-scramble:not(.is-in) .pz-scramble__char,
  .js .pz-scramble.is-in .pz-scramble__char {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pz-underline-draw::after { transition: none; transform: scaleX(1); }
}

/* === Areas index nav (arees.html, 3 tiles) === */
.pz-areas-nav__tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--pz-ink, #111);
  overflow: hidden;
  isolation: isolate;
  --pz-tile-pad-x: 24px;
}
.pz-areas-nav__tile:first-child { --pz-tile-pad-left: 0; --pz-tile-pad-right: var(--pz-tile-pad-x); }
.pz-areas-nav__tile:nth-child(2) { --pz-tile-pad-left: var(--pz-tile-pad-x); --pz-tile-pad-right: var(--pz-tile-pad-x); }
.pz-areas-nav__tile:nth-child(3) { --pz-tile-pad-left: var(--pz-tile-pad-x); --pz-tile-pad-right: 0; }
.pz-areas-nav__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px var(--pz-tile-pad-right, 0) 24px var(--pz-tile-pad-left, 0);
  transition: transform 480ms cubic-bezier(.2,.7,.2,1);
}
.pz-areas-nav__tile::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  background: var(--pz-yellow, #ffd84d);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 560ms cubic-bezier(.65,.05,.36,1);
  z-index: 0;
  pointer-events: none;
}
.pz-areas-nav__title {
  font-family: var(--pz-font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  flex-wrap: wrap;
}
.pz-areas-nav__arrow {
  display: inline-block;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.pz-areas-nav__kicker {
  transition: color 280ms ease, letter-spacing 320ms ease;
}
.pz-areas-nav__tile:hover::before,
.pz-areas-nav__tile:focus-visible::before {
  transform: scaleX(1);
}
.pz-areas-nav__tile:hover .pz-areas-nav__arrow,
.pz-areas-nav__tile:focus-visible .pz-areas-nav__arrow {
  transform: translateX(10px);
}
.pz-areas-nav__tile:hover .pz-areas-nav__kicker,
.pz-areas-nav__tile:focus-visible .pz-areas-nav__kicker {
  letter-spacing: 0.16em;
}
.pz-areas-nav__tile:focus-visible {
  outline: 2px solid var(--pz-ink, #111);
  outline-offset: -2px;
}
@media (prefers-reduced-motion: reduce) {
  .pz-areas-nav__tile::before,
  .pz-areas-nav__inner,
  .pz-areas-nav__arrow,
  .pz-areas-nav__kicker { transition: none; }
}

/* === Tablet polish (≤900px) ====================================== */
@media (max-width: 900px) {
  .pz-section__head { gap: 24px; margin-bottom: clamp(36px, 6vw, 56px); }
  .pz-hero__shape { width: 80vw; right: -20vw; }
  /* Areas nav at tablet (3 tiles laid out 2+1): only the first tile of a
     row gets a right rule, all but the last tile get a bottom rule, and
     padding becomes symmetric so the third tile aligns to the page edge. */
  .pz-areas-nav__tile {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(17,17,17,.10) !important;
    --pz-tile-pad-left: 0 !important;
    --pz-tile-pad-right: 0 !important;
  }
  .pz-areas-nav__tile:nth-child(1) {
    border-right: 1px solid rgba(17,17,17,.10) !important;
    --pz-tile-pad-right: var(--pz-tile-pad-x) !important;
  }
  .pz-areas-nav__tile:nth-child(2) {
    --pz-tile-pad-left: var(--pz-tile-pad-x) !important;
  }
  .pz-areas-nav__tile:last-child { border-bottom: 0 !important; }
}

/* === Mobile polish (≤640px) ====================================== */
@media (max-width: 640px) {
  /* Slightly tighter rhythm across all sections */
  .pz-section { padding: clamp(56px, 14vw, 96px) 0; }
  .pz-section--tight { padding: clamp(40px, 11vw, 72px) 0; }
  .pz-hero { padding: clamp(110px, 22vw, 160px) 0 clamp(56px, 14vw, 80px); }

  /* Type scales — let them go smaller than the desktop min */
  .pz-hero__title { font-size: clamp(44px, 13.5vw, 68px); max-width: none; line-height: 0.95; }
  .pz-hero__sub { font-size: 16.5px; line-height: 1.5; }
  .pz-hero__bands { gap: 8px; }
  .pz-hero__bands .hl { font-size: 15px; padding: 0.05em 0.36em 0.14em; }
  .pz-h1 { font-size: clamp(40px, 12.5vw, 56px); max-width: none !important; }
  .pz-h2 { font-size: clamp(30px, 8.6vw, 44px); line-height: 1.02; }
  .pz-h3 { font-size: clamp(20px, 5.8vw, 26px); }
  .pz-lead { font-size: 16.5px; line-height: 1.55; }

  /* Background shape and orbs — don't dominate the small canvas */
  .pz-hero__shape { width: 120vw; right: -35vw; top: -8vw; opacity: 0.05; }
  .pz-hero__orb--y { width: 200px; height: 200px; }
  .pz-hero__orb--m { width: 180px; height: 180px; }
  .pz-hero__orb--l { width: 220px; height: 220px; }

  /* Sticky nav: tighter, less padding */
  .pz-nav__inner { padding: 14px var(--pz-pad-x); gap: 14px; }
  .pz-nav__brand { font-size: 15px; }
  .pz-nav__brand svg { width: 20px; }

  /* Section head: stack early, narrower gap */
  .pz-section__head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; align-items: start; }

  /* === Qui som section === */
  .pz-quisom__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .pz-quisom__stamp { text-align: left; padding-top: 0; }
  .pz-quisom__stamp span { font-size: 26px; margin-top: 2px; }
  .pz-quisom__title { max-width: none; margin-bottom: 40px; }
  .pz-quisom__quote { padding: 40px 24px 36px; margin-bottom: 40px; border-radius: 6px; }
  .pz-quisom__quote-mark { font-size: clamp(120px, 32vw, 180px); line-height: 0.65; }
  .pz-quisom__quote-text { font-size: clamp(22px, 6.5vw, 28px); max-width: none; line-height: 1.18; margin-bottom: 24px; }
  .pz-quisom__quote-cap { font-size: 10px; letter-spacing: 0.18em; gap: 10px; }
  .pz-quisom__quote-cap::before { width: 22px; }
  .pz-quisom__body { margin-bottom: 36px; gap: 24px; }
  .pz-quisom__body p:first-child::first-letter {
    font-size: 2.6em;
    padding: 4px 10px 0 0;
    line-height: 0.85;
  }

  /* === Areas index nav (arees.html, 3 tiles) === */
  /* Override the inline border-right + per-position padding so stacked
     tiles get a horizontal bottom rule instead of an invisible right one. */
  .pz-areas-nav__tile {
    --pz-tile-pad-left: 0 !important;
    --pz-tile-pad-right: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(17,17,17,.10);
  }
  .pz-areas-nav__tile:last-child { border-bottom: 0; }
  .pz-areas-nav__inner { padding: 20px 0; gap: 8px; }
  .pz-areas-nav__title { font-size: 18px; }
  /* Arrow nudge smaller on small screens */
  .pz-areas-nav__tile:hover .pz-areas-nav__arrow,
  .pz-areas-nav__tile:focus-visible .pz-areas-nav__arrow { transform: translateX(6px); }

  /* === Numbered list (arees · 8 elements) === */
  .pz-numbered li { grid-template-columns: 44px 1fr; gap: 10px; padding: 18px 0; }
  .pz-numbered .num { font-size: 12px; letter-spacing: 0.14em; }
  .pz-numbered .item-title { font-size: 17px; line-height: 1.22; }

  /* === Featured block (sistemes conversacionals) === */
  .pz-feature { padding: 32px 22px; margin-top: 48px; border-radius: 10px; }
  .pz-feature::before { width: 220px; height: 220px; top: -90px; right: -70px; }
  .pz-feature__title { font-size: clamp(28px, 8vw, 40px); }
  .pz-feature__lead { font-size: 15.5px; margin-bottom: 28px; }

  /* === Project rows (projectes.html) === */
  .pz-projects-group { margin-top: 36px; }
  .pz-projects-group__head { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 10px; margin-bottom: 14px; }
  .pz-projects-group__title { font-size: 20px; }
  .pz-project { padding: 18px 0; gap: 8px 14px; }
  .pz-project__name { font-size: clamp(20px, 6.6vw, 28px); margin-bottom: 8px; line-height: 1.08; }
  .pz-project__meta { font-size: 10.5px; letter-spacing: 0.14em; gap: 6px 10px; margin-bottom: 10px; }
  .pz-project__desc { font-size: 14.5px; line-height: 1.55; }
  .pz-project__year { font-size: 11px; letter-spacing: 0.16em; }
  .pz-project__aside { gap: 12px; }
  /* Hover horizontal-pad effect is awkward on touch — disable */
  .pz-project:hover { padding-left: 0; padding-right: 0; background: transparent; }

  /* === Stats === */
  .pz-stat { padding-left: 14px; gap: 6px; }
  .pz-stat__num { font-size: clamp(48px, 14vw, 76px); }
  .pz-stat__label { font-size: 11px; letter-spacing: 0.16em; }

  /* === Cards === */
  .pz-card { padding: 22px 20px; gap: 12px; }
  .pz-card__title { font-size: 19px; }
  .pz-card__body { font-size: 15px; }

  /* === Marquee === */
  .pz-marquee { padding: 18px 0; }
  .pz-marquee__item { font-size: clamp(28px, 8.5vw, 44px); }

  /* === CTA dark headings — keep lines from overflowing === */
  .pz-section--dark h2.pz-display,
  .pz-section--dark .pz-display {
    font-size: clamp(34px, 10vw, 56px) !important;
    line-height: 1.02 !important;
  }
  .pz-section--dark .pz-btn { font-size: 14.5px; padding: 12px 18px; word-break: break-word; }

  /* === Footer === */
  .pz-footer { padding: 56px 0 36px; }
  .pz-footer__top { gap: 28px; }
  .pz-footer__msg { font-size: clamp(36px, 10vw, 56px); }
  .pz-footer__links { grid-template-columns: 1fr; gap: 12px; }
  .pz-footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 10px; letter-spacing: 0.16em; margin-top: 36px; padding-top: 20px; }

  /* === Pills wrap nicely === */
  .pz-pills { gap: 6px; }
  .pz-pill { font-size: 12.5px; padding: 6px 12px; }
}

/* === Ultra-narrow (≤400px) ======================================= */
@media (max-width: 400px) {
  :root { --pz-pad-x: 18px; }
  .pz-hero__title { font-size: clamp(38px, 13vw, 50px); }
  .pz-h1 { font-size: clamp(36px, 12vw, 48px); }
  .pz-h2 { font-size: clamp(26px, 8.2vw, 38px); }
  .pz-quisom__quote { padding: 32px 20px 32px; }
  .pz-quisom__quote-mark { font-size: clamp(110px, 38vw, 160px); }
  .pz-project { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 10px; }
  .pz-project__num { font-size: 11px; letter-spacing: 0.12em; }
  .pz-feature { padding: 28px 18px; }
  .pz-numbered li { grid-template-columns: 38px 1fr; }
}

/* ─── Impacte mesurable · manifest metodològic ────────────── */
.pz-impact .pz-impact__head {
  max-width: 880px;
  margin: 0 0 clamp(48px, 7vw, 80px);
}
.pz-impact .pz-impact__head .pz-kicker { margin-bottom: 28px; }

/* Claim — "L'impacte real no es declara, es demostra." */
.pz-impact__claim {
  font-family: var(--pz-font-display);
  font-weight: 800;
  font-size: clamp(48px, 6.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--pz-ink);
  max-width: 18ch;
  margin: 0 0 32px;
}
.pz-impact__claim-line {
  display: block;
  position: relative;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: clip-path;
}
.pz-impact__claim-line + .pz-impact__claim-line {
  transition-delay: 220ms;
}
.reveal.is-in .pz-impact__claim-line {
  clip-path: inset(0 0 0 0);
}
@media (prefers-reduced-motion: reduce) {
  .pz-impact__claim-line,
  .reveal.is-in .pz-impact__claim-line {
    clip-path: none;
    transition: none;
  }
}

.pz-impact__lead {
  color: var(--pz-smoke);
  max-width: 60ch;
}
.pz-impact__lead em {
  font-family: var(--pz-font-serif);
  font-style: italic;
  color: var(--pz-ink);
}
.pz-impact__lead strong {
  font-weight: 700;
  color: var(--pz-ink);
}
.pz-impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
}
.pz-impact__step {
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  border-right: 1px solid rgba(17, 17, 17, 0.10);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pz-impact__step:last-child { border-right: 0; }
.pz-impact__step:hover { background: rgba(255, 235, 110, 0.18); }
.pz-impact__step-num {
  font-family: var(--pz-font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pz-smoke);
}
.pz-impact__step-title {
  font-family: var(--pz-font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--pz-ink);
}
.pz-impact__step-body {
  color: var(--pz-smoke);
  font-size: 15px;
  line-height: 1.55;
}
.pz-impact__step-body em {
  font-family: var(--pz-font-serif);
  font-style: italic;
  color: var(--pz-ink);
}
.pz-impact__step-body strong {
  font-weight: 700;
  color: var(--pz-ink);
}
.pz-impact__quote {
  margin: clamp(56px, 8vw, 96px) 0 0;
  max-width: 920px;
}
.pz-impact__quote blockquote {
  font-family: var(--pz-font-serif);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pz-ink);
}
@media (max-width: 900px) {
  .pz-impact__grid { grid-template-columns: repeat(2, 1fr); }
  .pz-impact__step:nth-child(odd) { border-right: 1px solid rgba(17, 17, 17, 0.10); }
  .pz-impact__step:nth-child(even) { border-right: 0; }
  .pz-impact__step:nth-child(-n+2) { border-bottom: 1px solid rgba(17, 17, 17, 0.10); }
}
@media (max-width: 640px) {
  .pz-impact__grid { grid-template-columns: 1fr; }
  .pz-impact__step { border-right: 0 !important; border-bottom: 1px solid rgba(17, 17, 17, 0.10); }
  .pz-impact__step:last-child { border-bottom: 0; }
  .pz-impact__quote blockquote { font-size: clamp(22px, 6vw, 30px); }
  .pz-impact__claim { font-size: clamp(34px, 9vw, 56px); max-width: none; }
}

/* ─────────────────────────────────────────────────────────────────
   Language switcher · CA / ES pill in the nav
   ───────────────────────────────────────────────────────────────── */
.pz-lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  margin-left: 6px;
  background: rgba(17, 17, 17, 0.05);
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
}
.pz-lang__btn {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--pz-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pz-smoke);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background 220ms var(--pz-ease), color 220ms var(--pz-ease);
}
.pz-lang__btn:hover { color: var(--pz-ink); }
.pz-lang__btn.is-active {
  background: var(--pz-ink);
  color: var(--pz-bone);
}
.pz-lang__btn:focus-visible {
  outline: 2px solid var(--pz-ink);
  outline-offset: 2px;
}

/* Mobile menu open state — pills go light on dark */
.pz-nav.is-open .pz-lang {
  background: rgba(243, 240, 234, 0.08);
  border-color: rgba(243, 240, 234, 0.12);
}
.pz-nav.is-open .pz-lang__btn {
  color: rgba(243, 240, 234, 0.7);
}
.pz-nav.is-open .pz-lang__btn:hover { color: var(--pz-yellow); }
.pz-nav.is-open .pz-lang__btn.is-active {
  background: var(--pz-bone);
  color: var(--pz-ink);
}

@media (max-width: 820px) {
  .pz-lang {
    order: 99;
    margin: 12px 0 0;
  }
  .pz-lang__btn { padding: 6px 12px; font-size: 12px; }
}

/* === Per-element type tweaks (2026-05) ============================== */
/* Inici */
header .pz-nav__inner a.pz-nav__brand { font-size: 20px; }
.pz-nav__brand svg { width: 32px; }
.pz-kicker { font-size: 14.5px; }
.pz-hero__title { letter-spacing: -2pt; line-height: 102%; }
.pz-quisom__quote-cap { font-size: 13px; }
.pz-quisom__facts span { font-size: 12px; }
.pz-card__no { font-size: 13.5px; }
.pz-impact__step-num { font-size: 14px; }
.pz-footer__bottom { font-size: 12.5px; color: rgba(243, 240, 234, 1); }
.pz-pill { background: black; color: white; font-size: 14.5px; }
.pz-numbered .num { font-size: 24px; }

/* Projectes */
.pz-project__num { font-size: 14px; }
.pz-project__meta { font-size: 12px; }
.pz-project__year { font-size: 13px; }
.pz-feature__kicker { font-size: 14px; }
