/* Simplified AI Solutions — mockup v2 */

:root {
  --paper: #fff;
  --ink: #041019;
  --teal: #2eabb6;
  --lime: var(--teal);
  --blue: var(--teal);
  --line: rgba(4, 16, 25, .18);
  --muted: #5c6165;
  --ease: cubic-bezier(.22, .8, .25, 1);
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* cap element pot forçar scroll horitzontal (xarxa de seguretat en mòbil) */
html, body { overflow-x: clip; }

/* navegació per teclat: mateixa visibilitat que el hover */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.desktop-nav a:focus-visible::after { transform-origin: 0; transform: scaleX(1); }
.closing-cta a:focus-visible { outline-color: var(--ink); }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ink); background: rgba(46, 171, 182, .55); }
h1, h2, h3, p { margin-top: 0; }
img, svg, canvas { display: block; }

/* ---------- overlays ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 80;
  pointer-events: none;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 92px;
  padding: 0 max(24px, calc((100% - 1500px) / 2));
  display: grid;
  background: rgba(255, 255, 255, 0);
  transition: background .3s, backdrop-filter .3s, height .3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 72px;
}

.brand { align-items: center; gap: 11px; width: max-content; display: inline-flex; }
.brand > span:last-child { flex-direction: column; line-height: .92; display: flex; }
.brand strong { letter-spacing: -.03em; font-size: 17px; }
.brand small {
  color: var(--muted);
  letter-spacing: .17em;
  text-transform: uppercase;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 700;
}

.brand-mark {
  grid-template-columns: repeat(2, 7px);
  gap: 3px;
  width: 18px;
  height: 18px;
  display: grid;
  position: relative;
  transform: rotate(45deg);
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(225deg); }
.brand-mark i { background: var(--ink); border-radius: 2px; width: 7px; height: 7px; display: block; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: var(--teal); }

.desktop-nav {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .28);
  border-radius: 999px;
  gap: 42px;
  padding: 11px 22px;
  display: flex;
}
.desktop-nav a { font-size: 12px; font-weight: 600; position: relative; }
.desktop-nav a::after {
  background: var(--ink);
  content: "";
  transform-origin: 100%;
  height: 1px;
  transition: transform .22s;
  position: absolute;
  bottom: -5px; left: 0; right: 0;
  transform: scaleX(0);
}
.desktop-nav a:hover::after { transform-origin: 0; transform: scaleX(1); }

.header-cta {
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  justify-self: end;
  align-items: center;
  gap: 27px;
  padding: 12px 14px 12px 18px;
  font-size: 12px;
  font-weight: 700;
  transition: color .18s, background .18s;
  display: flex;
}
.header-cta span[aria-hidden] {
  width: 24px; height: 24px;
  color: var(--ink);
  background: var(--teal);
  border-radius: 50%;
  place-items: center;
  display: grid;
  transition: transform .3s var(--ease);
}
.header-cta:hover { color: var(--ink); background: transparent; }
.header-cta:hover span[aria-hidden] { transform: rotate(45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 92px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  width: min(100% - 48px, 1500px);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 72px) 0 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow, .section-index {
  color: var(--muted);
  letter-spacing: .13em;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.eyebrow { align-items: center; gap: 9px; display: flex; }

.status-dot {
  background: var(--teal);
  border: 1px solid var(--ink);
  border-radius: 50%;
  width: 7px; height: 7px;
  position: relative;
}
.status-dot::after {
  border: 1px solid var(--ink);
  content: "";
  border-radius: 50%;
  animation: ping 2.2s ease-out infinite;
  position: absolute;
  inset: -5px;
}
@keyframes ping { 75%, to { opacity: 0; transform: scale(2); } }

.hero h1 {
  letter-spacing: -.05em;
  font-size: clamp(52px, 7.2vw, 116px);
  font-weight: 600;
  line-height: .92;
  margin: 26px 0 clamp(30px, 5vh, 56px);
}

.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line-inner { display: inline-block; }

.hero h1 em {
  z-index: 0;
  white-space: nowrap;
  font-style: normal;
  position: relative;
}
.hero h1 em::after {
  z-index: -1;
  background: var(--teal);
  content: "";
  height: .2em;
  position: absolute;
  bottom: .04em; left: -.01em; right: -.04em;
  transform: rotate(-1.2deg) scaleX(var(--hl, 1));
  transform-origin: 0 100%;
  transition: transform .8s var(--ease) 1s;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 560px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.hero-lede {
  color: #454b4e;
  letter-spacing: -.015em;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  margin: 0;
}

.hero-actions { align-items: center; gap: 30px; display: flex; }

.primary-button {
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  align-items: center;
  gap: 28px;
  padding: 17px 18px 17px 23px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s;
  display: flex;
}
.primary-button span[aria-hidden] {
  width: 28px; height: 28px;
  color: var(--ink);
  background: var(--teal);
  border-radius: 50%;
  place-items: center;
  display: grid;
}
.primary-button:hover {
  box-shadow: 6px 6px 0 var(--teal);
  transform: translate(-3px, -3px);
}

.text-link { border-bottom: 1px solid var(--ink); padding-bottom: 6px; font-size: 12px; font-weight: 700; }
.text-link span[aria-hidden] { margin-left: 8px; display: inline-block; transition: transform .25s var(--ease); }
.text-link:hover span[aria-hidden] { transform: translateY(3px); }

.proof-line {
  color: var(--muted);
  letter-spacing: .09em;
  text-transform: uppercase;
  align-items: center;
  gap: 15px;
  margin-top: clamp(34px, 5vh, 60px);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  display: flex;
}
.proof-line i { background: var(--line); width: 18px; height: 1px; }

/* hero entrance */
.js .intro { opacity: 0; }
.js .hero h1 .line-inner.intro { opacity: 1; transform: translateY(110%); }
.js .intro:not(.line-inner) { transform: translateY(18px); }
.js.is-loaded .intro,
.js.is-loaded .hero h1 .line-inner.intro {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * .12s);
}
.js .hero h1 em::after { --hl: 0; }
.js.is-loaded .hero h1 em::after { --hl: 1; }

/* ---------- signal strip ---------- */

.signal-strip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  position: relative;
  z-index: 1;
  background: var(--paper);
}
.signal-strip p {
  border-right: 1px solid var(--ink);
  letter-spacing: -.045em;
  text-align: center;
  margin: 0;
  padding: 31px 25px;
  font-size: clamp(25px, 2.4vw, 42px);
  font-weight: 600;
  min-width: 0;
}
.signal-strip p:last-child { border-right: 0; }
.signal-strip .signal-accent { background: var(--teal); }

/* ---------- sections ---------- */

.section-shell { width: min(100% - 48px, 1500px); margin: 0 auto; padding: 130px 0; }

.section-heading {
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 70px;
  display: grid;
}
.section-heading h2 {
  letter-spacing: -.045em;
  max-width: 850px;
  margin: 20px 0 0;
  font-size: clamp(50px, 5.8vw, 100px);
  font-weight: 600;
  line-height: .92;
}
.section-heading > p { max-width: 450px; color: var(--muted); margin: 0 0 7px; font-size: 17px; line-height: 1.5; }

/* method */

.steps-grid {
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  grid-template-columns: repeat(4, 1fr);
  display: grid;
}

.step-card {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  min-height: 370px;
  padding: 19px 20px 24px;
  transition: background .22s, transform .22s;
  position: relative;
}
.step-card:hover { z-index: 2; background: var(--teal); transform: translateY(-9px); }
.step-card:hover > p, .step-card:hover .step-top { color: var(--ink); }

.step-top {
  color: var(--muted);
  text-transform: uppercase;
  align-items: center;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  display: flex;
}
.step-top i { background: var(--line); flex: 1; height: 1px; margin: 0 11px; }
.step-top b { font-weight: 700; }

.step-card h3 {
  letter-spacing: -.03em;
  margin: 100px 0 17px;
  font-size: clamp(21px, 1.8vw, 30px);
  font-weight: 600;
  line-height: 1.08;
}
.step-card > p { max-width: 270px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.step-icon {
  border: 1px solid var(--ink);
  border-radius: 50%;
  place-items: center;
  width: 31px; height: 31px;
  font-size: 13px;
  display: grid;
  position: absolute;
  bottom: 17px; right: 18px;
  transition: transform .3s var(--ease);
}
.step-card:hover .step-icon { transform: rotate(-45deg); }

/* steps reveal: opacity only, per no trepitjar el transform del hover */
.js .steps-grid .step-card.reveal { transition: background .22s, transform .22s, opacity .9s var(--ease); transform: none; }
.js .steps-grid .step-card.reveal:hover { transform: translateY(-9px); }

/* services */

.services { padding-top: 40px; }
.service-heading h2 { max-width: 920px; }
.service-list { border-top: 1px solid var(--ink); }

.service-row {
  border-bottom: 1px solid var(--ink);
  grid-template-columns: 65px 1fr 1.1fr .75fr;
  align-items: center;
  gap: 30px;
  min-height: 190px;
  padding: 25px 20px 25px 0;
  display: grid;
  position: relative;
  overflow: hidden;
}
.service-row::before {
  z-index: -1;
  background: var(--teal);
  content: "";
  transition: transform .36s var(--ease);
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
}
.service-row.black::before { background: var(--ink); }
.service-row:hover::before { transform: translateX(0); }
.service-row.black:hover { color: #fff; }
.service-row:hover p, .service-row:hover small, .service-row:hover .service-number { color: inherit; }

.service-number { color: var(--muted); align-self: start; font-family: var(--mono); font-size: 9px; }

.service-name small {
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
}
.service-name h3 { letter-spacing: -.04em; margin: 9px 0 0; font-size: clamp(29px, 3.2vw, 50px); font-weight: 600; }

.service-row > p { max-width: 430px; color: var(--muted); margin: 0; font-size: 14px; line-height: 1.55; }

.service-meta {
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
}
.service-meta b {
  border: 1px solid;
  border-radius: 50%;
  place-items: center;
  width: 36px; height: 36px;
  display: grid;
  transition: transform .3s var(--ease);
}
.service-row:hover .service-meta b { transform: rotate(45deg); }

/* manifesto */

.manifesto {
  color: #fff;
  background: var(--ink);
  grid-template-columns: .36fr 1fr;
  min-height: 700px;
  display: grid;
}

.manifesto-side {
  border-right: 1px solid rgba(255, 255, 255, .17);
  flex-direction: column;
  justify-content: space-between;
  padding: 60px clamp(24px, 4vw, 70px);
  display: flex;
}
.manifesto-side .section-index { color: #878e92; }

.founder-card { align-items: center; gap: 15px; display: flex; }
.founder-monogram {
  width: 50px; height: 50px;
  color: var(--ink);
  background: var(--teal);
  border-radius: 50%;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  display: grid;
}
.founder-card div { flex-direction: column; display: flex; }
.founder-card strong { font-size: 13px; }
.founder-card small { color: #878e92; margin-top: 4px; font-size: 9px; }

.manifesto-copy { padding: 90px clamp(30px, 7vw, 120px); }
.manifesto-copy > p {
  letter-spacing: -.045em;
  margin-bottom: 85px;
  font-size: clamp(48px, 6.7vw, 112px);
  font-weight: 500;
  line-height: .98;
}
.manifesto-copy .mline { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.manifesto-copy .mline-inner { display: inline-block; }
.manifesto-copy .accent { color: var(--teal); }

.manifesto-detail {
  border-top: 1px solid rgba(255, 255, 255, .2);
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 80px;
  padding-top: 35px;
  display: grid;
}
.manifesto-detail > p { color: #aeb4b0; max-width: 590px; margin: 0; font-size: 16px; line-height: 1.55; }

.mini-stats { gap: 34px; display: flex; }
.mini-stats div { flex-direction: column; min-width: 67px; display: flex; }
.mini-stats strong { color: var(--teal); font-size: 30px; font-weight: 500; }
.mini-stats small { color: #767c78; text-transform: uppercase; margin-top: 4px; font-family: var(--mono); font-size: 8px; }

/* mask reveal per a les línies del manifest (s'observa el contenidor,
   no l'interior: amb overflow hidden l'interior desplaçat no interseca mai) */
.js .mline.reveal { opacity: 1; transform: none; transition: none; }
.js .mline .mline-inner { transform: translateY(110%); transition: transform .9s var(--ease); }
.js .mline.reveal.in .mline-inner { transform: none; }

/* closing */

.closing-cta {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 720px;
  padding: 100px 24px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.closing-grid {
  opacity: .32;
  background-image:
    linear-gradient(rgba(4, 16, 25, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 16, 25, .14) 1px, transparent 1px);
  background-size: 52px 52px;
  position: absolute;
  inset: -60px 0;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 67%);
  mask-image: radial-gradient(circle, #000, transparent 67%);
  will-change: transform;
}

.closing-cta .section-index, .closing-cta h2, .closing-cta a, .closing-cta p { position: relative; }

.closing-cta h2 {
  letter-spacing: -.05em;
  margin: 28px 0 45px;
  font-size: clamp(56px, 7vw, 118px);
  font-weight: 600;
  line-height: .92;
}

.closing-cta a {
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  border-radius: 999px;
  align-items: center;
  gap: 42px;
  padding: 16px 17px 16px 25px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s;
  display: flex;
}
.closing-cta a:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(4px, 4px); }
.closing-cta a span[aria-hidden] {
  width: 34px; height: 34px;
  color: var(--ink);
  background: #fff;
  border-radius: 50%;
  place-items: center;
  display: grid;
}
.closing-cta p { color: var(--muted); margin: 31px 0 0; font-size: 12px; }

/* footer */

footer {
  border-top: 1px solid var(--ink);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 48px, 1500px);
  min-height: 130px;
  margin: 0 auto;
  display: grid;
}
footer > div { gap: 28px; font-size: 11px; font-weight: 700; display: flex; }
footer > div a { border-bottom: 1px solid var(--ink); }
footer > span {
  color: var(--muted);
  text-transform: uppercase;
  justify-self: end;
  font-family: var(--mono);
  font-size: 8px;
}

/* ---------- scroll reveals ---------- */

/* l'esglaonat (--d) l'aplica app.js amb setTimeout, no transition-delay,
   perquè el delay no contamini les transicions de hover dels mateixos elements */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (width <= 1100px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 45px .85fr 1fr; }
  .service-meta { grid-column: 2 / -1; padding-bottom: 8px; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-side {
    border-bottom: 1px solid rgba(255, 255, 255, .17);
    border-right: 0;
    flex-direction: row;
    align-items: center;
    min-height: 180px;
  }
  .hero-foot { grid-template-columns: 1fr; align-items: start; }
}

@media (width <= 760px) {
  .section-shell, footer { width: min(100% - 28px, 1500px); }
  .site-header { grid-template-columns: 1fr auto; padding: 0 14px; height: 76px; }
  .site-header.scrolled { height: 64px; }
  .desktop-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    padding: 6px 14px 12px;
    box-shadow: 0 18px 30px rgba(4, 16, 25, .08);
  }
  body.nav-open .desktop-nav { display: flex; }
  .desktop-nav a { border-bottom: 1px solid var(--line); padding: 14px 2px; font-size: 15px; }
  .desktop-nav a::after { display: none; }
  .desktop-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); padding-left: 12px; }
  .desktop-nav a:last-child { border-bottom: 0; }
  .header-cta { padding: 9px 10px 9px 14px; }
  .hero { min-height: calc(100svh - 76px); }
  .hero-inner { width: min(100% - 28px, 1500px); padding-top: 54px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 62px); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 24px; }
  .proof-line { flex-wrap: wrap; margin-top: 45px; }
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .signal-strip p { border-bottom: 1px solid var(--ink); padding: 22px 10px; font-size: 25px; }
  .signal-strip p:nth-child(2) { border-right: 0; }
  .section-shell { padding: 90px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
  .section-heading h2 { font-size: 56px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 310px; }
  .step-card h3 { margin-top: 75px; }
  .services { padding-top: 0; }
  .service-row { grid-template-columns: 34px 1fr; gap: 20px; padding: 28px 0; }
  .service-row > p, .service-meta { grid-column: 2; }
  .service-name h3 { font-size: 38px; }
  .manifesto-side { min-height: 155px; padding: 30px 20px; }
  .manifesto-copy { padding: 80px 20px; }
  .manifesto-copy > p { margin-bottom: 65px; font-size: 54px; }
  .manifesto-detail { grid-template-columns: 1fr; gap: 45px; }
  .mini-stats { justify-content: space-between; }
  .closing-cta { min-height: 620px; }
  .closing-cta h2 { font-size: 48px; }
  .closing-cta h2 br { display: none; }
  footer { grid-template-columns: 1fr auto; gap: 28px; padding: 35px 0; }
  footer > div { justify-self: end; }
  footer > span { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- header dreta + selector d'idioma ---------- */

.header-right { justify-self: end; align-items: center; gap: 14px; display: flex; }

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .28);
  border-radius: 999px;
  place-items: center;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 0;
  display: none;
}
.nav-toggle b { background: var(--ink); width: 16px; height: 2px; transition: background .2s; display: block; position: relative; }
.nav-toggle b::before, .nav-toggle b::after {
  content: "";
  background: var(--ink);
  width: 16px; height: 2px;
  transition: transform .25s var(--ease);
  position: absolute;
  left: 0;
}
.nav-toggle b::before { top: -5px; }
.nav-toggle b::after { top: 5px; }
body.nav-open .nav-toggle b { background: transparent; }
body.nav-open .nav-toggle b::before { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle b::after { transform: translateY(-5px) rotate(-45deg); }

.desktop-nav .nav-cta { display: none; }

.lang-switch {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .28);
  border-radius: 999px;
  gap: 2px;
  padding: 4px;
  display: flex;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  letter-spacing: .08em;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  transition: color .18s, background .18s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); background: var(--teal); }

.desktop-nav a[aria-current="page"]::after { transform-origin: 0; transform: scaleX(1); }

/* ---------- subpàgines ---------- */

.page-hero { border-bottom: 1px solid var(--ink); position: relative; }
.page-hero-inner {
  width: min(100% - 48px, 1500px);
  margin: 0 auto;
  padding: clamp(64px, 11vh, 130px) 0 clamp(48px, 7vh, 84px);
}
.page-hero h1 {
  letter-spacing: -.05em;
  max-width: 1050px;
  margin: 24px 0 30px;
  font-size: clamp(46px, 6.6vw, 108px);
  font-weight: 600;
  line-height: .94;
}
.page-hero h1 em { z-index: 0; white-space: nowrap; font-style: normal; position: relative; }
.page-hero h1 em::after {
  z-index: -1;
  background: var(--teal);
  content: "";
  height: .2em;
  position: absolute;
  bottom: .04em; left: -.01em; right: -.04em;
  transform: rotate(-1.2deg) scaleX(var(--hl, 1));
  transform-origin: 0 100%;
  transition: transform .8s var(--ease) .7s;
}
.js .page-hero h1 em::after { --hl: 0; }
.js.is-loaded .page-hero h1 em::after { --hl: 1; }
.page-hero .hero-lede { max-width: 640px; }
.page-hero .hero-actions { margin-top: 34px; }

/* cards d'oferta (formació, consultoria, projectes) */

.offer-grid {
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  grid-template-columns: repeat(3, 1fr);
  display: grid;
}

.offer-card {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  min-height: 470px;
  flex-direction: column;
  padding: 20px 22px 24px;
  transition: background .22s, transform .22s;
  display: flex;
  position: relative;
}
.offer-card:hover { z-index: 2; background: var(--teal); transform: translateY(-9px); }
.offer-card:hover .step-top { color: var(--ink); }

.offer-card h3 {
  letter-spacing: -.035em;
  margin: 64px 0 15px;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 600;
  line-height: 1.05;
}
.offer-card > p { max-width: 380px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.offer-card:hover > p, .offer-card:hover .offer-list li { color: inherit; }

.offer-list { margin: 22px 0 40px; list-style: none; display: grid; }
.offer-list li {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 0 10px 24px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}
.offer-list li::before {
  content: "→";
  color: var(--teal);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.offer-card:hover .offer-list li::before { color: var(--ink); }

.offer-meta {
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
}
.offer-meta b {
  border: 1px solid;
  border-radius: 50%;
  place-items: center;
  width: 31px; height: 31px;
  font-weight: 400;
  display: grid;
  transition: transform .3s var(--ease);
}
.offer-card:hover .offer-meta b { transform: rotate(45deg); }

/* offer reveal: només opacitat, per no trepitjar el transform del hover */
.js .offer-grid .offer-card.reveal { transition: background .22s, transform .22s, opacity .9s var(--ease); transform: none; }
.js .offer-grid .offer-card.reveal:hover { transform: translateY(-9px); }

@media (width <= 1100px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card { min-height: 0; }
  .offer-card h3 { margin-top: 44px; }
}

@media (width <= 760px) {
  .header-right { gap: 8px; }
  .header-cta { gap: 12px; }
  .lang-switch { padding: 3px; }
  .lang-switch button { padding: 5px 7px; font-size: 9px; }
  .page-hero-inner { width: min(100% - 28px, 1500px); }
  .page-hero h1 { font-size: clamp(38px, 10.5vw, 60px); }
}

/* aquestes regles han d'anar DESPRÉS de les definicions base de .nav-toggle
   i .nav-cta (mateixa especificitat: mana l'ordre al fitxer) */
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .desktop-nav .nav-cta { display: block; font-weight: 700; }
  .desktop-nav .nav-cta span[aria-hidden] { color: var(--teal); margin-left: 6px; }
  /* el contacte viu dins del menú; el botó del header deixa lloc a l'hamburguesa */
  .header-cta { display: none; }
}

/* mode de verificació (?probe): simula l'estat hover de les cards en captures headless */
html.probe .step-card, html.probe .offer-card { background: var(--teal); }
html.probe .step-card > p, html.probe .step-card .step-top,
html.probe .offer-card > p, html.probe .offer-card .step-top,
html.probe .offer-card .offer-list li { color: var(--ink); }
html.probe .offer-card .offer-list li::before { color: var(--ink); }

/* mode de verificació (?static): tot visible, sense transicions */
html.static { scroll-behavior: auto; }
html.static .reveal, html.static .intro, html.static .mline .mline-inner {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html.static .hero h1 em::after, html.static .page-hero h1 em::after { --hl: 1; transition: none; }
html.flat .hero { min-height: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js .reveal, .js .intro, .js .hero h1 .line-inner.intro, .js .mline .mline-inner {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-canvas { display: none; }
}
