:root{
    --ink: #17191b;
    --ink-soft: #3d4145;
    --stone: #ede9e1;
    --stone-deep: #ddd7c9;
    --paper: #faf9f6;
    --line: rgba(23,25,27,0.14);
    --signal: #9a2b21;
    --signal-soft: rgba(154,43,33,0.08);
    --mono: 'Manrope', sans-serif;
    --display: 'Cormorant Garamond', Georgia, serif;
    --body: 'Manrope', system-ui, sans-serif;
  }

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

  html{ scroll-behavior:smooth; }

  body{
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  img{ max-width:100%; display:block; }

  a{ color:inherit; text-decoration:none; }

  .wrap{
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
  }

  .eyebrow{
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before{
    content:"";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal);
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes pulse{
    0%, 100%{ opacity:1; transform:scale(1); }
    50%{ opacity:0.35; transform:scale(0.75); }
  }

  h1,h2,h3{
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  /* ---------- NAV ---------- */
  header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250,249,246,0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 18px 32px;
    max-width: 1180px;
    margin: 0 auto;
  }
  .logo-nav img{ height: 72px; width:auto; }
  .nav-links{
    display:flex;
    gap: 36px;
    font-size: 14.5px;
    font-weight: 500;
  }
  .nav-links a{
    position:relative;
    color: var(--ink-soft);
    transition: color .2s;
  }
  .nav-links a:hover{ color: var(--ink); }
  .nav-links a::after{
    content:"";
    position:absolute;
    left:0; right:0; bottom:-6px;
    height:1px;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }
  .nav-links a:hover::after{ transform: scaleX(1); }

  .btn{
    font-family: var(--body);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 20px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    border-radius: 3px;
    transition: background .2s, color .2s, border-color .2s;
    white-space:nowrap;
  }
  .btn:hover{ background: var(--signal); border-color: var(--signal); }
  .btn-ghost{
    background: transparent;
    color: var(--ink);
  }
  .btn-ghost:hover{ background: var(--ink); color: var(--paper); border-color: var(--ink); }

  .menu-toggle{
    display:none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: var(--stone);
    border-radius: 50%;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    flex-shrink:0;
  }
  .menu-toggle span{
    display:block;
    width: 16px;
    height: 2px;
    background: var(--ink);
    position:relative;
    transition: background .15s;
  }
  .menu-toggle span::before, .menu-toggle span::after{
    content:"";
    position:absolute;
    left:0;
    width: 16px;
    height: 2px;
    background: var(--ink);
    transition: transform .2s;
  }
  .menu-toggle span::before{ top: -5px; }
  .menu-toggle span::after{ top: 5px; }
  .menu-toggle.open span{ background: transparent; }
  .menu-toggle.open span::before{ transform: translateY(5px) rotate(45deg); }
  .menu-toggle.open span::after{ transform: translateY(-5px) rotate(-45deg); }

  .nav-actions{
    display:flex;
    align-items:center;
    gap: 14px;
  }
  .lang-select{
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: var(--stone);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 9px 30px 9px 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%2317191b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    transition: border-color .2s, background-color .2s;
  }
  .lang-select:hover{ border-color: var(--signal); background-color: var(--stone-deep); }
  .btn-linkedin{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--stone);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    transition: background .2s, border-color .2s, transform .2s;
  }
  .btn-linkedin svg{ width:19px; height:19px; fill: var(--ink); transition: fill .2s; }
  .btn-linkedin:hover{ background: var(--signal); border-color: var(--signal); transform: translateY(-1px); }
  .btn-linkedin:hover svg{ fill: var(--paper); }

  /* ---------- INSTAGRAM FEED ---------- */
  .insta-embed{
    border: 1px solid var(--line);
    background: var(--stone);
    border-radius: 4px;
    padding: 4px;
  }
  .insta-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2px;
    min-height: 200px;
  }
  .insta-post{
    display:block;
    position:relative;
    aspect-ratio: 1/1;
    overflow:hidden;
    background: var(--stone-deep);
  }
  .insta-post img{
    width:100%; height:100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .2s ease;
  }
  .insta-post:hover img{ transform: scale(1.05); opacity: 0.9; }
  .insta-loading{
    grid-column: 1 / -1;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink-soft);
    text-align:center;
    padding: 60px 20px;
  }
  .lightwidget-widget{ display:block; border-radius: 2px; }
  .insta-fallback{
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 20px 22px;
    border-top: 1px dashed var(--line);
    margin-top: 4px;
  }

  /* ---------- HERO ---------- */
  .hero{
    position: relative;
    overflow: hidden;
    padding: 108px 0 96px;
    border-bottom: 1px solid var(--line);
  }
  .blueprint{
    position:absolute;
    inset:0;
    z-index:0;
    opacity: 0.55;
    pointer-events:none;
  }
  .hero .wrap{ position:relative; z-index:1; }

  .hero-grid{
    display:grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items:start;
  }

  .hero h1{
    font-size: clamp(34px, 4.6vw, 54px);
    line-height: 1.12;
    margin: 22px 0 26px;
    max-width: 15ch;
  }

  .hero p.lead{
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 46ch;
    margin-bottom: 34px;
  }

  .hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

  .quiz-banner{
    border: 1px solid var(--line);
    background: var(--stone);
    border-radius: 4px;
    padding: 30px 28px;
    margin-top: 8px;
  }
  .quiz-banner .eyebrow{ margin-bottom: 14px; }
  .quiz-banner h3{
    font-family: var(--display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .quiz-banner p{
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 22px;
  }
  .quiz-banner .btn{ width:100%; text-align:center; }
  @media (max-width: 860px){
    .hero-grid{ grid-template-columns: 1fr; }
  }

  /* ---------- SECTION BASE ---------- */
  section{ padding: 88px 0; }
  .section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap: 32px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 26px;
  }
  .section-head h2{
    font-size: clamp(26px, 3vw, 36px);
    margin-top: 10px;
  }
  .section-head .tag{
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-soft);
    max-width: 34ch;
    text-align:right;
  }

  /* ---------- ABOUT ---------- */
  .about-grid{
    display:grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }
  .about-grid p{
    font-size: 16.5px;
    color: var(--ink-soft);
    margin-bottom: 18px;
  }
  .about-figures{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .figure{
    background: var(--paper);
    padding: 26px 22px;
  }
  .figure .num{
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
  }
  .figure .cap{
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink-soft);
    text-transform:uppercase;
    letter-spacing: 0.06em;
    margin-top: 6px;
  }

  /* ---------- SERVICES ---------- */
  .services{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .service{
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 30px 28px;
    background: var(--paper);
    transition: background .2s;
    position:relative;
  }
  .service:hover{ background: var(--stone); }
  .service .code{
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--signal);
    letter-spacing: 0.08em;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .service .badge{
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    padding: 2px 6px;
    border-radius: 20px;
    text-transform:uppercase;
  }
  .service h3{
    font-size: 18px;
    margin: 16px 0 10px;
    font-weight: 600;
  }
  .service p{
    font-size: 14.5px;
    color: var(--ink-soft);
  }

  /* ---------- FAQ ---------- */
  .faq-list{ border-top: 1px solid var(--line); }
  .faq-item{
    border-bottom: 1px solid var(--line);
  }
  .faq-item summary{
    list-style: none;
    cursor: pointer;
    padding: 22px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 24px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 17px;
  }
  .faq-item summary::-webkit-details-marker{ display:none; }
  .faq-item summary .plus{
    font-family: var(--mono);
    font-size: 18px;
    color: var(--signal);
    flex-shrink:0;
    transition: transform .2s;
  }
  .faq-item[open] summary .plus{ transform: rotate(45deg); }
  .faq-item p{
    padding: 0 0 24px;
    max-width: 68ch;
    color: var(--ink-soft);
    font-size: 15px;
  }

  /* ---------- SERVICE CATEGORY ACCORDIONS ---------- */
  .service-intro{
    max-width: 68ch;
    color: var(--ink-soft);
    font-size: 16px;
    margin: -20px 0 40px;
  }
  .service-cats{ border-top: 1px solid var(--line); margin-bottom: 56px; }
  .service-cat{ border-bottom: 1px solid var(--line); }
  .service-cat summary{
    list-style:none;
    cursor:pointer;
    padding: 22px 0;
    display:flex;
    align-items:center;
    gap: 18px;
  }
  .service-cat summary::-webkit-details-marker{ display:none; }
  .service-cat .scnum{
    font-family: var(--mono);
    font-size: 12px;
    color: var(--signal);
    flex-shrink:0;
    width: 26px;
  }
  .service-cat .sctitle{
    font-family: var(--display);
    font-weight: 600;
    font-size: 17px;
    flex: 1;
  }
  .service-cat .plus{
    font-family: var(--mono);
    font-size: 18px;
    color: var(--signal);
    flex-shrink:0;
    transition: transform .2s;
  }
  .service-cat[open] .plus{ transform: rotate(45deg); }
  .service-cat-body{
    padding: 0 0 30px 44px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
  .cat-intro{
    grid-column: 1 / -1;
    color: var(--ink-soft);
    font-size: 14.5px;
    margin-bottom: 4px;
    max-width: 70ch;
  }
  .subservice h4{
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .subservice p{
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.5;
  }
  .sector-tags{
    grid-column: 1 / -1;
    display:flex;
    flex-wrap:wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  .sector-tags span{
    font-family: var(--mono);
    font-size: 11.5px;
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--ink-soft);
  }
  .approach-flow{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform:uppercase;
    color: var(--ink);
  }
  .approach-flow span.step{
    border: 1px solid var(--line);
    background: var(--stone);
    padding: 10px 16px;
    border-radius: 20px;
  }
  .approach-flow span.arrow{ color: var(--signal); }
  @media (max-width: 640px){
    .service-cat-body{ grid-template-columns: 1fr; padding-left: 26px; }
  }

  /* ---------- AREAS / CONTACT ---------- */
  .contact-section{
    background: var(--ink);
    color: var(--paper);
    border-bottom: none;
  }
  .contact-section .section-head{ border-bottom-color: rgba(250,249,246,0.16); }
  .contact-section .section-head .tag{ color: rgba(250,249,246,0.55); }
  .contact-section .eyebrow{ color: #e2a49b; }
  .contact-section .eyebrow::before{ background:#e2a49b; }

  .contact-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .contact-grid h2{
    font-size: clamp(28px, 3.4vw, 40px);
    line-height:1.15;
    margin-bottom: 20px;
    max-width: 14ch;
  }
  .contact-grid p{
    color: rgba(250,249,246,0.68);
    max-width: 42ch;
    margin-bottom: 30px;
    font-size: 16px;
  }

  .contact-list{ border-top: 1px solid rgba(250,249,246,0.18); }
  .contact-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(250,249,246,0.18);
  }
  .contact-row .label{
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250,249,246,0.5);
  }
  .contact-row .value{
    font-size: 16px;
    font-weight: 500;
  }
  .contact-row a.value:hover{ color: #e2a49b; }

  .locations{
    display:flex;
    gap: 28px;
    margin-top: 30px;
    flex-wrap:wrap;
  }
  .location{
    font-family: var(--mono);
    font-size: 12.5px;
    color: rgba(250,249,246,0.6);
    display:flex;
    align-items:center;
    gap:8px;
  }
  .location::before{
    content:"";
    width:5px; height:5px;
    border-radius:50%;
    background:#e2a49b;
  }

  /* ---------- FOOTER ---------- */
  footer{
    background: var(--ink);
    color: rgba(250,249,246,0.55);
    padding: 26px 0 34px;
  }
  .footer-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size: 12.5px;
    font-family: var(--mono);
    border-top: 1px solid rgba(250,249,246,0.14);
    padding-top: 22px;
  }
  .footer-row img{ height:30px; opacity:0.85; filter: invert(1); }
  .footer-legal{
    display:flex;
    gap: 22px;
    flex-wrap:wrap;
  }
  .footer-legal a{ opacity:0.85; transition:opacity .2s; }
  .footer-legal a:hover{ opacity:1; color:#e2a49b; }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 860px){
    .menu-toggle{ display:flex; order:3; }
    .nav-links{
      display:flex;
      flex-direction:column;
      position:absolute;
      top: 100%;
      left:0;
      right:0;
      background: var(--paper);
      border-bottom: 1px solid var(--line);
      padding: 8px 24px 20px;
      gap: 4px;
      max-height:0;
      overflow:hidden;
      opacity:0;
      transition: max-height .25s ease, opacity .2s ease;
    }
    .nav-links.open{
      max-height: 400px;
      opacity:1;
    }
    .nav-links a{ padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav-links a::after{ display:none; }
    nav{ position:relative; flex-wrap:wrap; }
    .hero-grid, .about-grid, .contact-grid{ grid-template-columns: 1fr; }
    .services{ grid-template-columns: 1fr 1fr; }
    .section-head{ flex-direction:column; align-items:flex-start; }
    .section-head .tag{ text-align:left; }
    .hero{ padding: 80px 0 64px; }
    section{ padding: 64px 0; }
  }
  @media (max-width: 560px){
    .wrap{ padding: 0 20px; }
    nav{ padding: 16px 20px; }
    .logo-nav img{ height: 52px; }
    .services{ grid-template-columns: 1fr; }
    .about-figures{ grid-template-columns: 1fr; }
    .footer-row{ flex-direction:column; gap:14px; align-items:flex-start; }
  }

  @media (prefers-reduced-motion: reduce){
    *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  }

  /* ---------- v2: accessibilitat i noves seccions ---------- */
  .skip-link{ position:absolute; left:12px; top:-60px; background:var(--ink); color:var(--paper); padding:10px 16px; border-radius:3px; z-index:1000; font-weight:600; font-size:14px; }
  .skip-link:focus{ top:12px; }
  a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible{ outline:3px solid var(--signal); outline-offset:3px; border-radius:2px; }
  .contact-section a:focus-visible, footer a:focus-visible, #cookieBanner button:focus-visible{ outline-color:#f2c94c; }
  .nav-links{ gap:26px; }
  .sector-tags span{ font-size:12px; }
  .hero-actions .btn{ text-align:center; }
  .hero-actions .btn.btn-lg{ padding:16px 28px; font-size:15.5px; }
  .dir-banner{ border:1px solid var(--line); background:var(--stone); border-radius:4px; padding:30px 28px; margin-top:8px; border-left:3px solid var(--signal); }
  .dir-banner .eyebrow{ margin-bottom:14px; }
  .dir-banner h3{ font-family:var(--display); font-size:21px; font-weight:600; line-height:1.25; margin-bottom:10px; }
  .dir-banner p{ font-size:14.5px; color:var(--ink-soft); margin-bottom:22px; }
  /* Cicle */
  #cicle{ background:var(--stone); }
  .cycle-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--line); border:1px solid var(--line); counter-reset:c; list-style:none; }
  .cycle-step{ background:var(--paper); padding:28px 22px 30px; position:relative; }
  .cycle-step .n{ font-family:var(--mono); font-size:12px; letter-spacing:.12em; color:var(--signal); display:block; margin-bottom:18px; }
  .cycle-step h3{ font-size:20px; margin-bottom:10px; }
  .cycle-step p{ font-size:14.5px; color:var(--ink-soft); }
  .cycle-loop{ margin-top:18px; font-family:var(--mono); font-size:12px; color:var(--ink-soft); text-align:center; }
  /* Normativa */
  .norm-intro{ font-size:17px; color:var(--ink-soft); max-width:70ch; margin-bottom:40px; }
  .norm-box{ border:1px solid var(--line); border-left:3px solid var(--signal); background:var(--stone); padding:28px 28px 8px; border-radius:4px; }
  .norm-box h3{ font-size:21px; margin-bottom:10px; }
  .norm-box > p{ font-size:15.5px; color:var(--ink-soft); max-width:75ch; margin-bottom:22px; }
  .norm-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:0 36px; }
  .norm-item{ border-top:1px solid var(--line); padding:18px 0 20px; }
  .norm-item h4{ font-family:var(--display); font-size:16.5px; font-weight:600; margin-bottom:6px; }
  .norm-item p{ font-size:14.5px; color:var(--ink-soft); }
  .norm-why{ margin-top:36px; max-width:75ch; }
  .norm-why h3{ font-size:20px; margin-bottom:10px; }
  .norm-why p{ font-size:15.5px; color:var(--ink-soft); }
  .norm-foot{ display:flex; flex-wrap:wrap; gap:14px 28px; align-items:center; margin-top:30px; }
  .norm-note{ font-family:var(--mono); font-size:12px; color:var(--ink-soft); max-width:62ch; }
  .norm-note a{ text-decoration:underline; color:var(--signal); }
  /* Qui som */
  .bio-card{ border:1px solid var(--line); background:var(--stone); border-radius:4px; padding:30px 28px; display:flex; flex-direction:column; gap:18px; }
  .bio-avatar{ width:84px; height:84px; border-radius:50%; background:var(--ink); color:var(--paper); display:flex; align-items:center; justify-content:center; font-family:var(--display); font-weight:600; font-size:28px; letter-spacing:.02em; }
  .bio-name{ font-family:var(--display); font-size:22px; font-weight:600; }
  .bio-role{ font-family:var(--mono); font-size:12.5px; color:var(--signal); letter-spacing:.06em; text-transform:uppercase; margin-top:2px; }
  .bio-loc{ font-size:14.5px; color:var(--ink-soft); }
  /* Serveis (home) */
  .svc-areas{ list-style:none; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); margin:34px 0 36px; }
  .svc-areas li{ border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:18px 20px; display:flex; gap:14px; align-items:baseline; font-family:var(--display); font-weight:500; font-size:16px; }
  .svc-areas li span.n{ font-family:var(--mono); font-size:12px; color:var(--signal); }
  /* Instagram carregat sota demanda */
  .insta-consent{ text-align:center; padding:48px 20px; }
  .insta-consent p{ font-size:14px; color:var(--ink-soft); max-width:62ch; margin:0 auto 18px; }
  .footer-legal button.linklike{ background:none; border:0; color:inherit; font:inherit; cursor:pointer; opacity:.85; padding:0; text-decoration:none; }
  .footer-legal button.linklike:hover{ opacity:1; color:#e2a49b; }
  @media (max-width:1060px){
    .menu-toggle{ display:flex; order:3; }
    .nav-links{ display:flex; flex-direction:column; position:absolute; top:100%; left:0; right:0; background:var(--paper); border-bottom:1px solid var(--line); padding:8px 24px 20px; gap:4px; max-height:0; overflow:hidden; opacity:0; visibility:hidden; transition:max-height .25s ease, opacity .2s ease; }
    .nav-links.open{ max-height:520px; opacity:1; visibility:visible; }
    .nav-links a{ padding:12px 0; border-bottom:1px solid var(--line); }
    .nav-links a::after{ display:none; }
    nav{ position:relative; flex-wrap:wrap; }
  }
  @media (max-width:980px){ .cycle-grid{ grid-template-columns:repeat(2,1fr); } .svc-areas{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:700px){ .norm-grid{ grid-template-columns:1fr; } }
  @media (max-width:560px){ .cycle-grid, .svc-areas{ grid-template-columns:1fr; } }

/* ---------- v3: moviment (skill Emil Kowalski: animate) ---------- */
:root{ --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); interpolate-size: allow-keywords; }
/* Botons: feedback de pressió (100–160ms) i hover només amb ratolí */
.btn, .cookie-btn{ transition: background .2s, color .2s, border-color .2s, transform 160ms var(--ease-out); }
.btn:active, #cookieBanner button:active, .menu-toggle:active, .btn-linkedin:active{ transform: scale(0.97); }
@media (hover: none){ .btn:hover{ background: var(--ink); border-color: var(--ink); } .btn-ghost:hover{ background: transparent; color: var(--ink); border-color: var(--ink); } }
/* Capçalera: ombra subtil en fer scroll */
header{ transition: box-shadow 200ms ease; }
header.is-scrolled{ box-shadow: 0 6px 20px -12px rgba(23,25,27,.28); }
/* Menú: secció activa */
.nav-links a[aria-current="true"]{ color: var(--ink); }
@media (min-width: 1061px){ .nav-links a[aria-current="true"]::after{ transform: scaleX(1); } }
@media (max-width: 1060px){ .nav-links a[aria-current="true"]{ color: var(--signal); } }
section[id]{ scroll-margin-top: 96px; }
/* Acordions: obertura fluida (millora progressiva) */
details::details-content{ block-size: 0; overflow: clip; transition: block-size 220ms var(--ease-out), content-visibility 220ms allow-discrete; }
details[open]::details-content{ block-size: auto; }
.service-cat .plus, .faq-item .plus{ transition: transform 200ms var(--ease-out); }
/* Aparició en fer scroll: una sola vegada, només si hi ha JS i no s'ha demanat reduir moviment */
.js-motion .reveal{ opacity: 0; transform: translateY(14px); transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js-motion .reveal.is-in{ opacity: 1; transform: none; }
/* Cicle KAUKA: línia de progrés */
.cycle-progress{ height: 2px; background: var(--line); margin-bottom: 18px; overflow: hidden; border-radius: 2px; }
.cycle-progress i{ display:block; height:100%; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-in-out); }
.cycle-progress.is-in i{ transform: scaleX(1); }
.js-motion .cycle-step .n{ transition: color 300ms ease, opacity 300ms ease; opacity: .45; transition-delay: var(--d, 0ms); }
.js-motion .cycle-step.is-in .n{ opacity: 1; }
@media (prefers-reduced-motion: reduce){
  .js-motion .reveal{ transform: none; transition: opacity 200ms ease; }
  .cycle-progress i{ transition: none; }
}

/* Bio amb foto */
.bio-card{ gap:20px; }
.bio-photo{ width:100%; max-width:340px; height:auto; aspect-ratio:4/5; object-fit:cover; border-radius:4px; filter:grayscale(1); background:var(--stone-deep); }
.bio-cred h3{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:8px; font-weight:500; }
.bio-cred ul{ list-style:none; }
.bio-cred li{ font-size:14.5px; color:var(--ink); padding:9px 0 9px 18px; border-top:1px solid var(--line); position:relative; }
.bio-cred li::before{ content:""; position:absolute; left:0; top:17px; width:6px; height:6px; border-radius:50%; background:var(--signal); }
@media (min-width:861px){ .bio-card{ flex-direction:row; flex-wrap:wrap; align-items:flex-start; } .bio-photo{ flex:0 0 200px; max-width:200px; } .bio-card > div:nth-of-type(1){ flex:1 1 220px; } .bio-cred{ flex:1 1 100%; } }

/* ---------- v4: més dinamisme (skill animate) ---------- */
@view-transition{ navigation:auto; }
@media (prefers-reduced-motion: reduce){ @view-transition{ navigation:none; } }
@keyframes rise{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
@keyframes fade-in{ from{ opacity:0; } to{ opacity:1; } }
@media (prefers-reduced-motion: no-preference){
  .hero .eyebrow, .hero h1, .hero p.lead, .hero-actions, .dir-banner{ animation: rise 620ms var(--ease-out) both; }
  .hero h1{ animation-delay: 70ms; } .hero p.lead{ animation-delay: 140ms; } .hero-actions{ animation-delay: 210ms; } .dir-banner{ animation-delay: 280ms; }
  .hero .blueprint{ animation: fade-in 1400ms ease both; }
  .faq-item[open] > p, .service-cat[open] .service-cat-body{ animation: fade-in 260ms ease both; }
}
/* Línia de capçalera de secció que es dibuixa */
.js-motion .section-head{ border-bottom-color: transparent; position: relative; }
.js-motion .section-head::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 800ms var(--ease-in-out); }
.js-motion .contact-section .section-head::after{ background: rgba(250,249,246,0.16); }
.js-motion .section-head.is-in::after{ transform: scaleX(1); }
/* Foto de Gerard: s'ha de "revelar" */
.js-motion .bio-photo{ clip-path: inset(0 0 100% 0); transition: clip-path 800ms var(--ease-in-out) 150ms; }
.js-motion .bio-card.is-in .bio-photo, .js-motion .bio-card:not(.reveal) .bio-photo{ clip-path: inset(0 0 0 0); }
/* Barra de progrés de lectura */
.scroll-progress{ position:fixed; top:0; left:0; right:0; height:2px; background: var(--signal); transform: scaleX(0); transform-origin: left; z-index: 60; pointer-events:none; }
@supports (animation-timeline: scroll()){ .scroll-progress{ animation: grow linear both; animation-timeline: scroll(root); } }
@keyframes grow{ to{ transform: scaleX(1); } }
/* Hover subtil (només amb ratolí) */
@media (hover: hover) and (pointer: fine){
  .svc-areas li, .norm-item, .cycle-step, .service-cat summary, .faq-item summary{ transition: background-color 180ms ease, transform 200ms var(--ease-out), color 180ms ease; }
  .svc-areas li:hover{ background: var(--stone); transform: translateY(-2px); }
  .cycle-step:hover{ background: #fff; transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(23,25,27,.35); z-index: 1; }
  .norm-item:hover h4{ color: var(--signal); }
  .btn:hover{ transform: translateY(-1px); }
  .btn:active{ transform: scale(0.97); }
  .bio-photo{ transition: filter 400ms ease; }
  .bio-card:hover .bio-photo{ filter: grayscale(0.2); }
  .contact-row a.value{ background-image: linear-gradient(currentColor,currentColor); background-size: 0% 1px; background-repeat:no-repeat; background-position: 0 100%; transition: background-size 260ms var(--ease-out), color .2s; }
  .contact-row a.value:hover{ background-size: 100% 1px; }
  .footer-legal a{ transition: opacity .2s, color .2s; }
}

/* =====================================================================
   v5: rediseny — tipografia serif (Cormorant Garamond) + Manrope,
   hero a pantalla completa, botons en píndola, moviment lent i suau.
   Colors sense canvis. Inspirat en el llenguatge visual de KAUKA Rentals.
   ===================================================================== */
:root{
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 12px; --radius-sm: 8px;
  --pad-section: clamp(5rem, 10vw, 9rem);
}
body{ font-size:16.5px; line-height:1.65; font-feature-settings:"kern","liga"; text-rendering:optimizeLegibility; }
h1,h2,h3,h4{ font-family:var(--display); font-weight:500; letter-spacing:-0.012em; text-wrap:balance; }
h3,h4{ font-weight:600; }
.eyebrow{ font-family:var(--body); font-size:.72rem; font-weight:600; letter-spacing:.3em; text-transform:uppercase; gap:.9rem; }
.eyebrow::before{ width:2rem; height:1px; border-radius:0; animation:none; background:var(--signal); }
/* mono → etiquetes en Manrope amb tracking */
.tag, .norm-note, .cycle-loop, .location, .footer-row, .lang-select{ font-family:var(--body); }

/* Seccions */
section{ padding:var(--pad-section) 0; }
.section-head{ margin-bottom:clamp(2.5rem,5vw,4rem); padding-bottom:1.75rem; }
.section-head h2{ font-size:clamp(2.2rem,4.4vw,3.75rem); line-height:1.06; margin-top:1rem; max-width:20ch; }
.section-head .tag{ font-size:.85rem; line-height:1.6; max-width:32ch; }
.wrap{ max-width:1240px; }

/* Botons en píndola */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.7rem; min-height:3rem; padding:.7rem 1.6rem; border-radius:999px; font-family:var(--body); font-weight:600; font-size:.9rem; letter-spacing:.02em; border-width:1px; transition:background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform 160ms var(--ease-out), box-shadow .3s var(--ease-out); }
.btn::after{ content:""; width:1.05em; height:1.05em; flex:none; background:currentColor; -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center/contain no-repeat; mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center/contain no-repeat; transition:transform .35s var(--ease-out); }
.hero-actions .btn.btn-lg{ min-height:3.25rem; padding:.8rem 1.9rem; font-size:.95rem; }
@media (hover:hover) and (pointer:fine){
  .btn:hover{ transform:none; box-shadow:0 14px 28px -16px rgba(154,43,33,.55); }
  .btn-ghost:hover{ box-shadow:none; }
  .btn:hover::after{ transform:translateX(4px); }
}
.btn:active{ transform:scale(.97); }
.btn-ghost{ border-color:rgba(23,25,27,.35); background:transparent; }
.lang-select{ border-radius:999px; }

/* Capçalera: transparent sobre el hero, sòlida en fer scroll */
header{ transition:background-color .4s var(--ease-soft), box-shadow .4s var(--ease-soft), border-color .4s var(--ease-soft), backdrop-filter .4s; }
nav{ max-width:1240px; }
.logo-nav img{ height:60px; transition:height .4s var(--ease-soft); }
.nav-links{ font-size:.86rem; font-weight:600; letter-spacing:.03em; }
body.has-hero header{ position:fixed; left:0; right:0; top:0; background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; border-bottom-color:transparent; }
body.has-hero header.is-scrolled{ background:rgba(250,249,246,.9); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom-color:var(--line); box-shadow:0 8px 28px -18px rgba(23,25,27,.3); }
body.has-hero header.is-scrolled .logo-nav img{ height:48px; }
body.has-hero .nav-links a{ color:var(--ink); }

/* HERO */
.hero{ min-height:100svh; padding:0; display:flex; align-items:center; border-bottom:0; background:var(--stone); isolation:isolate; }
.hero__media{ position:absolute; inset:0; z-index:-1; overflow:hidden; }
.hero__img{ width:100%; height:100%; object-fit:cover; object-position:62% 50%; max-width:none; transform-origin:70% 50%; }
.hero__veil{ position:absolute; inset:0; background:linear-gradient(90deg, rgba(250,249,246,.94) 0%, rgba(250,249,246,.82) 30%, rgba(250,249,246,.25) 52%, rgba(250,249,246,0) 68%), linear-gradient(180deg, rgba(250,249,246,.55) 0%, rgba(250,249,246,0) 22%); }
.hero__wrap{ width:100%; padding-top:8.5rem; padding-bottom:5rem; }
.hero__in{ max-width:36rem; }
.hero h1{ font-size:clamp(2.6rem,6.2vw,5.4rem); line-height:1.02; letter-spacing:-.015em; font-weight:500; margin:1.5rem 0 1.5rem; max-width:12ch; }
.hero p.lead{ font-size:clamp(1rem,1.25vw,1.15rem); line-height:1.7; max-width:34rem; color:var(--ink-soft); margin-bottom:2.25rem; }
.hero .eyebrow{ color:var(--signal); }
@media (max-width:860px){
  .hero__img{ object-position:74% 50%; }
  .hero__veil{ background:linear-gradient(180deg, rgba(250,249,246,.9) 0%, rgba(250,249,246,.78) 55%, rgba(250,249,246,.5) 100%); }
  .hero__wrap{ padding-top:7.5rem; padding-bottom:3.5rem; }
  .hero{ align-items:flex-end; }
}

/* Banda de novetat normativa */
.dir-band{ padding:0; background:var(--paper); border-bottom:1px solid var(--line); }
.dir-band .wrap{ padding-top:2.25rem; padding-bottom:2.25rem; }
.dir-banner{ margin:0; border:0; border-left:0; background:transparent; padding:0; display:grid; grid-template-columns:auto 1fr auto; gap:.4rem 2.5rem; align-items:center; }
.dir-banner .eyebrow{ margin:0; grid-row:1; grid-column:1; }
.dir-banner h3{ font-size:clamp(1.4rem,2.2vw,1.8rem); margin:0; grid-row:1; grid-column:2; }
.dir-banner p{ margin:0; grid-row:2; grid-column:2; font-size:.95rem; }
.dir-banner .btn{ grid-row:1 / span 2; grid-column:3; }
@media (max-width:860px){ .dir-banner{ grid-template-columns:1fr; gap:.6rem; } .dir-banner .eyebrow,.dir-banner h3,.dir-banner p,.dir-banner .btn{ grid-column:1; grid-row:auto; } .dir-banner .btn{ justify-self:start; margin-top:.6rem; } }

/* Cicle: passos numerats amb connector */
#cicle{ background:var(--stone); }
.cycle-progress{ display:none; }
.cycle-grid{ background:none; border:0; gap:clamp(1.25rem,2.5vw,2.5rem); position:relative; }
.cycle-step{ background:none; padding:0; border-radius:0; }
.cycle-step .n{ width:3.5rem; height:3.5rem; border-radius:50%; border:1px solid rgba(154,43,33,.45); background:var(--paper); display:flex; align-items:center; justify-content:center; font-family:var(--display); font-size:1.35rem; font-weight:500; letter-spacing:0; color:var(--signal); margin-bottom:1.5rem; position:relative; z-index:1; }
.cycle-step h3{ font-size:1.75rem; font-weight:500; margin-bottom:.6rem; }
.cycle-step p{ font-size:.95rem; line-height:1.7; }
@media (min-width:981px){
  .cycle-step::before{ content:""; position:absolute; top:1.75rem; left:3.5rem; right:calc(-1 * clamp(1.25rem,2.5vw,2.5rem)); height:1px; background:linear-gradient(90deg, rgba(154,43,33,.45), rgba(154,43,33,.08)); transform-origin:left; }
  .cycle-step:last-child::before{ display:none; }
  .js-motion .cycle-step::before{ transform:scaleX(0); transition:transform 1.2s var(--ease-soft) calc(var(--d,0ms) + 300ms); }
  .js-motion .cycle-step.is-in::before{ transform:scaleX(1); }
}
.cycle-loop{ font-size:.85rem; margin-top:2.5rem; }
@media (hover:hover) and (pointer:fine){ .cycle-step:hover{ background:none; transform:none; box-shadow:none; } .cycle-step:hover .n{ background:var(--signal); color:var(--paper); border-color:var(--signal); } .cycle-step .n{ transition:background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out); } }

/* Targetes i caixes */
.norm-box, .bio-card, .quiz-banner{ border-radius:var(--radius); }
.norm-box{ padding:clamp(1.75rem,3vw,2.75rem) clamp(1.5rem,3vw,2.75rem) .75rem; }
.norm-box h3{ font-size:clamp(1.7rem,2.6vw,2.2rem); font-weight:500; }
.norm-item h4{ font-size:1.3rem; font-weight:600; }
.norm-intro{ font-size:1.1rem; line-height:1.75; }
.norm-why h3{ font-size:1.8rem; font-weight:500; }
.bio-name{ font-size:1.9rem; font-weight:500; }
.bio-photo{ border-radius:var(--radius); }
.about-grid p{ font-size:1.05rem; line-height:1.8; }
.svc-areas{ border:0; gap:1rem; margin:2.5rem 0; }
.svc-areas li{ border:1px solid var(--line); border-radius:var(--radius); padding:1.4rem 1.5rem; font-size:1.3rem; font-weight:500; background:var(--paper); }
.svc-areas li span.n{ font-family:var(--body); font-size:.72rem; font-weight:600; letter-spacing:.2em; }
@media (hover:hover) and (pointer:fine){ .svc-areas li:hover{ background:var(--stone); transform:translateY(-3px); box-shadow:0 18px 30px -22px rgba(23,25,27,.4); } }
.faq-item summary, .service-cat .sctitle{ font-size:1.4rem; font-weight:500; padding-top:1.5rem; padding-bottom:1.5rem; }
.service-cat summary{ padding:1.5rem 0; }
.service-cat .scnum{ font-family:var(--body); font-weight:600; letter-spacing:.2em; font-size:.72rem; width:34px; }
.faq-item p{ font-size:1rem; line-height:1.75; }
.subservice h4{ font-family:var(--body); font-size:.95rem; font-weight:700; }
.subservice p{ font-size:.92rem; }
.sector-tags span, .approach-flow span.step{ font-family:var(--body); }
.approach-flow{ font-family:var(--body); }
.contact-grid h2{ font-size:clamp(2.2rem,4.4vw,3.75rem); line-height:1.06; max-width:13ch; }
.contact-grid p{ font-size:1.05rem; line-height:1.75; }
.contact-row .label{ font-family:var(--body); font-size:.7rem; font-weight:600; letter-spacing:.25em; }
.contact-row .value{ font-size:1.05rem; }
.bio-cred h3, .bio-role{ font-family:var(--body); font-weight:600; letter-spacing:.2em; font-size:.7rem; }

/* Moviment lent i suau (entrades 0.9–1.1 s; interaccions < 300 ms) */
@keyframes hero-drift{ from{ transform:scale(1.1); } to{ transform:scale(1); } }
@keyframes hero-rise{ from{ opacity:0; transform:translateY(1.75rem); } to{ opacity:1; transform:none; } }
@keyframes hero-fade{ from{ opacity:0; } to{ opacity:1; } }
@media (prefers-reduced-motion: no-preference){
  .hero__img{ animation:hero-drift 24s var(--ease-soft) both; }
  .hero__veil{ animation:hero-fade 1.4s var(--ease-soft) both; }
  .hero .eyebrow, .hero h1, .hero p.lead, .hero-actions{ animation:hero-rise 1.1s var(--ease-soft) both; }
  .hero .eyebrow{ animation-delay:100ms; } .hero h1{ animation-delay:220ms; } .hero p.lead{ animation-delay:380ms; } .hero-actions{ animation-delay:520ms; }
  .dir-banner{ animation:none; }
  header{ animation:hero-fade 1s var(--ease-soft) 200ms both; }
}
.js-motion .reveal{ transform:translateY(1.5rem); transition:opacity .9s var(--ease-soft), transform .9s var(--ease-soft); transition-delay:var(--d,0ms); }
.js-motion .reveal.is-in{ transform:none; }
.js-motion .section-head::after{ transition-duration:1.2s; transition-timing-function:var(--ease-soft); }
.js-motion .bio-photo{ clip-path:none; transform:scale(1.08); opacity:0; transition:opacity 1s var(--ease-soft), transform 1.6s var(--ease-soft); }
.js-motion .bio-card.is-in .bio-photo, .js-motion .bio-card:not(.reveal) .bio-photo{ opacity:1; transform:none; clip-path:none; }
details::details-content{ transition:block-size 420ms var(--ease-soft), content-visibility 420ms allow-discrete; }
@keyframes faq-rise{ from{ opacity:0; transform:translateY(.6rem); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: no-preference){ .faq-item[open] > p, .service-cat[open] .service-cat-body{ animation:faq-rise .5s var(--ease-soft) both; } }

/* Menú mòbil amb entrada esglaonada */
@media (max-width:1060px){
  body.has-hero header:not(.is-scrolled) nav .nav-links.open{ background:var(--paper); }
  .nav-links{ border-radius:0 0 var(--radius) var(--radius); transition:max-height .45s var(--ease-soft), opacity .3s ease, visibility 0s linear .45s; }
  .nav-links.open{ transition:max-height .45s var(--ease-soft), opacity .3s ease; }
  .nav-links a{ font-family:var(--display); font-size:1.5rem; font-weight:500; letter-spacing:0; opacity:0; transform:translateY(.6rem); transition:opacity .4s var(--ease-soft), transform .4s var(--ease-soft); }
  .nav-links.open a{ opacity:1; transform:none; }
  .nav-links.open a:nth-child(1){ transition-delay:120ms } .nav-links.open a:nth-child(2){ transition-delay:180ms } .nav-links.open a:nth-child(3){ transition-delay:240ms } .nav-links.open a:nth-child(4){ transition-delay:300ms } .nav-links.open a:nth-child(5){ transition-delay:360ms } .nav-links.open a:nth-child(6){ transition-delay:420ms } .nav-links.open a:nth-child(7){ transition-delay:480ms }
}
footer{ font-family:var(--body); }
@media (prefers-reduced-motion: reduce){
  .hero__img,.hero__veil,.hero *,header{ animation:none !important; }
  .nav-links a{ opacity:1; transform:none; transition:none; }
}

/* Ajustos hero (v5.1) */
.hero__in{ max-width:40rem; }
.hero h1{ max-width:15ch; font-size:clamp(2.6rem,5.6vw,5rem); }
.hero__wrap{ padding-top:7.5rem; padding-bottom:4rem; }
@media (max-width:860px){
  .hero{ flex-direction:column; align-items:stretch; min-height:0; background:var(--paper); }
  .hero__media{ position:relative; inset:auto; z-index:0; height:58svh; min-height:340px; }
  .hero__img{ object-position:72% 50%; }
  .hero__veil{ background:linear-gradient(180deg, rgba(250,249,246,.75) 0%, rgba(250,249,246,0) 30%, rgba(250,249,246,0) 80%, var(--paper) 100%); }
  .hero__wrap{ padding-top:0; padding-bottom:3rem; margin-top:-2.5rem; position:relative; z-index:1; }
  .hero h1{ font-size:clamp(2.6rem,11vw,3.6rem); }
}
@media (max-width:640px){ .nav-actions .btn{ display:none; } }
