/* It's Dóna — estils
   L'estil surt del logo: sans-serif geomètrica negra en negreta,
   rodones orgàniques rosa pàl·lid (#FAE2F1) sobre blanc. */

/* ---------- Tipografies (allotjades al projecte) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #ffffff;
  --ink: #141214;
  --ink-soft: #4b4349;
  --rosa: #fae2f1;          /* el rosa exacte del logo */
  --rosa-2: #f4cbe3;        /* una mica més intens: vores, hover */
  --rosa-fosc: #a3326a;     /* accent de text: contrast > 5:1 sobre blanc */
  --line: #eedbe6;

  --font-display: "Poppins", "Helvetica Neue", sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(88px, 12vw, 160px);

  --radius-s: 10px;
  --radius-m: 22px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-lift: 0 10px 30px -12px rgba(122, 32, 78, 0.22), 0 2px 6px -2px rgba(20, 18, 20, 0.06);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: var(--rosa-2) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--rosa-2); color: var(--ink); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-color: var(--rosa-fosc);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 3px solid var(--rosa-fosc);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Rodones (les taques del logo) ---------- */
.blob { fill: var(--rosa); }
.blob--deep { fill: var(--rosa-2); }

/* ---------- Botons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0 1.6em;
  border: 1.5px solid var(--btn-bg);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-out),
    color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    transform 160ms var(--ease-out);
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 220ms var(--ease-out); }
.btn:active { transform: scale(0.97); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: var(--rosa-fosc); border-color: var(--rosa-fosc); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--ghost:hover { --btn-bg: var(--rosa); --btn-fg: var(--ink); border-color: var(--ink); }
}

/* Enllaç amb subratllat que es dibuixa */
.link-draw {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--rosa-fosc), var(--rosa-fosc));
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 260ms var(--ease-out), color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link-draw { background-size: 0% 1.5px; }
  .link-draw:hover { background-size: 100% 1.5px; color: var(--rosa-fosc); }
}

/* ---------- Capçalera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Fons sòlid: un backdrop-filter aquí faria que el menú del mòbil (position: fixed) es mesurés dins la capçalera. */
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}
.brand svg { width: 104px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__list {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 9px;
  height: 1.5px;
  background: var(--rosa-fosc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__list a:hover::after { transform: scaleX(1); }
}
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 1.25em; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--rosa);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 32px var(--gutter) 40px;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 220ms var(--ease-out),
      transform 260ms var(--ease-out),
      visibility 0s linear 260ms;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 220ms var(--ease-out),
      transform 260ms var(--ease-out),
      visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { font-size: 1.75rem; min-height: 56px; letter-spacing: -0.025em; }
  .nav__list a::after { bottom: 12px; }
  .nav .btn { min-height: 56px; font-size: 1.05rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Seccions ---------- */
.section { padding-block: var(--section-pad); position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.section__head p { margin-top: 20px; font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 7vw, 96px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.75rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.hero__sub {
  margin-top: clamp(22px, 3vw, 32px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 44ch;
}
.hero__sub span { color: var(--rosa-fosc); }
.hero__text { margin-top: 18px; color: var(--ink-soft); max-width: 54ch; font-size: 1rem; }
.hero__text p { margin-bottom: 0.7em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 40px); }

.hero__art { position: relative; aspect-ratio: 340 / 290; width: 135%; max-width: 640px; justify-self: end; margin-right: calc(var(--gutter) * -0.5); }
.hero__art svg { width: 100%; height: 100%; overflow: visible; }
.hero__word {
  font-family: var(--font-display);
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: -0.02em;
}

/* Entrada de l'inici: un sol moment, en carregar */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] {
    animation: enter-rise 800ms var(--ease-out) var(--d, 0ms) both;
  }
  [data-enter="blob"] {
    animation: enter-blob 1100ms cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) both;
    transform-box: fill-box;
    transform-origin: center;
  }
  @keyframes enter-rise {
    from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
  }
  @keyframes enter-blob {
    from { opacity: 0; transform: scale(0.86); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 24px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: 100%; max-width: 300px; justify-self: start; margin: 0 0 0 -12px; }
}
@media (max-width: 480px) {
  .hero__art { max-width: 240px; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Sobre mi ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.about__aside { position: sticky; top: 120px; }

.portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 14%;
}
.portrait svg.portrait__shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait blockquote {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.portrait blockquote em { font-style: normal; color: var(--rosa-fosc); }

.facts {
  list-style: none;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.facts dt, .facts .k { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: -0.005em; }
.facts .v { color: var(--ink-soft); }

.about__text h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: clamp(24px, 3vw, 36px); }
.about__text .lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin-bottom: 1.2em;
}
.about__text p { max-width: 62ch; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__aside { position: static; order: 2; }
  .portrait { max-width: 420px; }
}
@media (max-width: 480px) {
  .facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Especialitats ---------- */
.help { background: var(--rosa); overflow: hidden; }
.help__blob {
  position: absolute;
  width: min(46vw, 620px);
  right: -12vw;
  top: -10%;
  pointer-events: none;
}
.help__blob .blob { fill: #f7d5ea; }

.help-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); position: relative; }
.help-item {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(16px, 5vw, 80px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid rgba(20, 18, 20, 0.18);
}
.help-item h3 {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.help-item h3 svg { flex: none; width: 18px; height: 18px; transform: translateY(1px); }
.help-item h3 svg .blob { fill: var(--rosa-fosc); }
.help-item p { color: #2f282d; max-width: 60ch; }

.help__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(40px, 5vw, 56px);
}
.help__cta p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.015em; margin: 0; }

@media (max-width: 760px) {
  .help-item { grid-template-columns: 1fr; }
  .help__cta .btn { width: 100%; }
}

/* ---------- Esdeveniments ---------- */
.events-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.event {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .event:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--rosa-2); }
}
.event__date {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  text-align: center;
  font-family: var(--font-display);
  line-height: 1;
}
.event__date svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.event__date span { position: relative; }
.event__day { font-weight: 700; font-size: 2.1rem; letter-spacing: -0.04em; display: block; }
.event__month { font-weight: 600; font-size: 0.85rem; display: block; margin-top: 4px; }
.event h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }
.event__meta { margin: 6px 0 8px; font-size: 0.95rem; color: var(--rosa-fosc); font-weight: 500; }
.event__desc { color: var(--ink-soft); font-size: 0.98rem; max-width: 62ch; }

@media (max-width: 760px) {
  .event { grid-template-columns: 80px minmax(0, 1fr); }
  .event__day { font-size: 1.6rem; }
  .event__month { font-size: 0.75rem; }
  .event .btn { grid-column: 1 / -1; width: 100%; }
}

.empty {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-m);
  background: var(--rosa);
}
.empty svg { width: clamp(56px, 7vw, 84px); height: auto; }
.empty svg .blob { fill: var(--paper); }
.empty h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -0.02em; margin-bottom: 6px; }
.empty p { color: #3b3238; margin-bottom: 14px; max-width: 58ch; }
@media (max-width: 560px) { .empty { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.post-card a { display: block; text-decoration: none; }
.post-card__img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--rosa);
}
.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.post-card time { display: block; margin-top: 18px; font-size: 0.9rem; color: var(--rosa-fosc); font-weight: 500; }
.post-card h3 { margin-top: 6px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.2; letter-spacing: -0.02em; }
.post-card p { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; }
@media (hover: hover) and (pointer: fine) {
  .post-card a:hover .post-card__img img { transform: scale(1.03); }
  .post-card a:hover h3 { color: var(--rosa-fosc); }
}
.post-card h3 { transition: color 200ms var(--ease-out); }

.section__foot { margin-top: clamp(32px, 4vw, 48px); }

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

/* ---------- Contacte ---------- */
.contact { overflow: hidden; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__intro h2 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -0.04em; }
.contact__intro > p { margin-top: 22px; font-size: 1.15rem; color: var(--ink-soft); max-width: 44ch; }
.mail-big {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
  word-break: break-word;
  text-decoration: none;
  background-image: linear-gradient(var(--rosa-2), var(--rosa-2));
  background-size: 100% 0.38em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  transition: background-size 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mail-big:hover { background-size: 100% 0.9em; }
}

.booking {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 40px;
  background: var(--rosa);
}
.booking h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.booking > p { color: #3b3238; margin: 10px 0 24px; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.field .hint { font-family: var(--font-body); font-weight: 400; color: #5c5258; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  caret-color: var(--rosa-fosc);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23141214' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field input::placeholder,
.field textarea::placeholder { color: #6e6369; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--rosa-2); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--rosa-fosc);
  box-shadow: 0 0 0 4px rgba(163, 50, 106, 0.14);
}
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #9d1f18; font-size: 0.92rem; font-weight: 500; }
.field__error:empty { display: none; }

.booking .btn { width: 100%; margin-top: 6px; }
.booking__note { margin-top: 14px; font-size: 0.92rem; color: #4e444a; }
.booking__note a { font-weight: 600; }

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Peu ---------- */
.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 32px;
  border-top: 1px solid var(--line);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.site-footer .brand svg { width: 120px; }
.site-footer p { color: var(--ink-soft); font-size: 0.98rem; max-width: 32ch; margin-top: 14px; }
.site-footer h2 {
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) {
  .site-footer li a:hover { color: var(--rosa-fosc); }
}
.site-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: #6a5f66;
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Pàgines del blog ---------- */
.page-head { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.04em; max-width: 14ch; position: relative; }
.page-head p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; position: relative; }
.page-head__blob { position: absolute; right: -6vw; top: -30%; width: min(44vw, 520px); pointer-events: none; }
.page-body { padding-bottom: var(--section-pad); }

.article { max-width: 720px; margin-inline: auto; }
.article__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 24px; }
.article time { display: block; color: var(--rosa-fosc); font-weight: 500; margin-bottom: 10px; }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.035em; }
.article__img { margin: clamp(28px, 4vw, 44px) 0; border-radius: var(--radius-m); overflow: hidden; background: var(--rosa); }
.article__img img { width: 100%; height: auto; }
.article__body { font-size: 1.125rem; line-height: 1.75; }
.article__body p { max-width: 68ch; }
.article__end {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-m);
  background: var(--rosa);
}
.article__end h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.025em; margin-bottom: 8px; }
.article__end p { color: #3b3238; margin-bottom: 18px; }

/* ---------- Moviment reduït ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Ajustos ---------- */
.section--tight { padding-block: clamp(72px, 9vw, 120px); }
.section--tight + .section--tight { padding-top: 0; }
.contact__blob { width: min(100%, 380px); margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 900px) { .contact__blob { display: none; } }

/* ---------- Selector d'idioma ---------- */
.lang { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #6a5f66;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.lang a[aria-current="true"] { color: var(--ink); background: var(--rosa); }
@media (hover: hover) and (pointer: fine) {
  .lang a:not([aria-current="true"]):hover { color: var(--rosa-fosc); }
}
@media (max-width: 1100px) {
  .lang { gap: 8px; }
  .lang a { min-width: 56px; min-height: 48px; font-size: 0.95rem; border: 1px solid var(--line); }
}

/* ---------- Lliscament en entrar a la pantalla ----------
   Només s'activa amb JavaScript i si la persona no ha demanat menys moviment:
   sense això, tot el contingut es veu des del principi. */
.reveal-on [data-reveal] {
  opacity: 0;
  transition:
    opacity 700ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal-on [data-reveal="up"] { transform: translateY(28px); }
.reveal-on [data-reveal="left"] { transform: translateX(-48px); }
.reveal-on [data-reveal="right"] { transform: translateX(48px); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .reveal-on [data-reveal="left"] { transform: translateX(-24px); }
  .reveal-on [data-reveal="right"] { transform: translateX(24px); }
}

/* =====================================================================
   VERSIÓ 2 — més sofisticada
   Capa que refina la base: una serif cursiva com a accent, tinta prunera,
   una franja fosca, un moment tipogràfic i rodones que segueixen el cursor.
   ===================================================================== */
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1f1219;            /* negre amb un punt de pruna */
  --ink-soft: #54464e;
  --paper: #fffcfd;
  --plum: #2a1521;           /* la franja fosca */
  --plum-text: #f3dbe8;
  --plum-soft: #cdb3c1;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

/* Accent: les paraules en cursiva dels títols */
h1 em, h2 em, .statement__text em, .portrait blockquote em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1 em { font-size: 1.12em; line-height: 0.9; color: var(--rosa-fosc); }
h2 em { font-size: 1.1em; color: var(--rosa-fosc); }

/* Inici */
.hero h1 { font-size: clamp(2.8rem, 5.8vw, 5.2rem); letter-spacing: -0.045em; }
.hero__rule { display: inline-block; vertical-align: middle; width: 40px; height: 1.5px; margin-right: 14px; background: var(--ink); transform: translateY(-0.12em); }
.hero__sub span:not(.hero__rule) { color: var(--rosa-fosc); }
.hero__halo { fill: var(--rosa-2); }
.hero__art use, .hero__art g { will-change: transform; }
.hero::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--line);
}

/* Botó principal: la fletxa dins d'una rodona */
.btn:not(.btn--ghost) svg {
  box-sizing: content-box;
  flex: none;
  width: 0.85em;
  height: 0.85em;
  padding: 7px;
  border-radius: 50%;
  background: var(--rosa);
  color: var(--ink);
}
.btn:not(.btn--ghost):has(svg:last-child) { padding-right: 0.5em; gap: 0.8em; }
.btn:not(.btn--ghost):has(svg:first-child) { padding-left: 0.5em; gap: 0.7em; }

/* Sobre mi: la cita en serif */
.portrait blockquote { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.02; }
.portrait blockquote em { font-size: 1.12em; }
.about__text .lead { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.42; letter-spacing: -0.01em; }

/* Moment tipogràfic */
.statement { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 140px); }
.statement__text {
  position: relative;
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.statement__text em { display: inline-block; font-size: 1.12em; color: var(--rosa-fosc); }
.statement__blob { position: absolute; width: min(44vw, 560px); right: -4vw; top: 50%; transform: translateY(-50%); }

/* Especialitats: la franja fosca */
.help { background: var(--plum); color: var(--plum-text); }
.help .section__head h2 { color: var(--paper); }
.help h2 em { color: var(--rosa-2); }
.help .section__head p { color: var(--plum-soft); }
.help__blob .blob { fill: #3a1f2f; }
.help-list { border-top-color: rgba(243, 219, 232, 0.5); }
.help-item {
  border-bottom-color: rgba(243, 219, 232, 0.16);
  padding-inline: clamp(0px, 1.5vw, 20px);
  margin-inline: calc(clamp(0px, 1.5vw, 20px) * -1);
  border-radius: 14px;
  transition: background-color 260ms var(--ease-out);
}
.help-item h3 { color: var(--paper); }
.help-item h3 svg { transition: transform 320ms var(--ease-out); }
.help-item h3 svg .blob { fill: var(--rosa-2); }
.help-item p { color: var(--plum-soft); }
@media (hover: hover) and (pointer: fine) {
  .help-item:hover { background-color: rgba(250, 226, 241, 0.05); }
  .help-item:hover h3 svg { transform: translateY(1px) scale(1.45) rotate(-12deg); }
}
.help__cta p { color: var(--paper); }
.help .btn:not(.btn--ghost) { --btn-bg: var(--rosa); --btn-fg: var(--ink); border-color: var(--rosa); }
.help .btn:not(.btn--ghost) svg { background: var(--ink); color: var(--rosa); }
@media (hover: hover) and (pointer: fine) {
  .help .btn:not(.btn--ghost):hover { --btn-bg: var(--paper); border-color: var(--paper); }
}
.help :focus-visible { outline-color: var(--rosa-2); }

/* Contacte */
.contact__intro h2 { font-size: clamp(3rem, 7vw, 6rem); }
.contact__intro h2 em { color: var(--ink); font-size: 1.08em; }
.booking { border-radius: 32px; box-shadow: 0 30px 60px -40px rgba(122, 32, 78, 0.35); }

/* Peu: la marca gran */
.site-footer .footer-mark {
  display: block;
  width: 100%;
  height: auto;
  margin: clamp(40px, 6vw, 72px) 0 clamp(16px, 2vw, 24px);
  overflow: visible;
}
.footer-mark text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 236px;
  letter-spacing: -0.06em;
  fill: var(--rosa);
}
.site-footer__bottom { margin-top: 0; }

::selection { background: var(--rosa-2); color: var(--ink); }
.help ::selection { background: var(--rosa-fosc); color: var(--paper); }

/* =====================================================================
   Canvis de la Júlia (desembre 2026)
   ===================================================================== */

/* Sobre mi: la foto dins d'una rodona orgànica */
.portrait { display: block; padding: 0; aspect-ratio: auto; position: relative; margin: 0; max-width: 520px; }
.portrait__photo {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M110.9 8.8c29.2 4.9 58.4 23.4 72 50.6 13.6 27.2 11.6 63.1-7.2 89.2-18.8 26.1-54.3 42.4-87.4 40.4-33.1-2-63.8-22.3-74.3-51.3C3.5 108.7 13.2 71 34.9 44.9 54.8 21 82.1 4 110.9 8.8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M110.9 8.8c29.2 4.9 58.4 23.4 72 50.6 13.6 27.2 11.6 63.1-7.2 89.2-18.8 26.1-54.3 42.4-87.4 40.4-33.1-2-63.8-22.3-74.3-51.3C3.5 108.7 13.2 71 34.9 44.9 54.8 21 82.1 4 110.9 8.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.portrait__accent {
  position: absolute;
  width: 46%;
  right: -8%;
  bottom: -6%;
}
.portrait__quote {
  margin: clamp(28px, 4vw, 44px) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 520px;          /* la mateixa amplada que la foto, perquè quedi centrada a sota */
  text-align: center;
}
.portrait__quote em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--rosa-fosc);
}
@media (max-width: 900px) { .portrait, .portrait__quote { max-width: 380px; } }

/* En què et puc ajudar: desplegables */
.help-item { display: block; padding: 0; }
.help-item details { padding-inline: clamp(0px, 1.5vw, 20px); }
.help-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding-block: clamp(22px, 2.6vw, 30px);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary:focus-visible { outline-offset: 6px; border-radius: 10px; }
.help-item summary h3 { margin: 0; }

.help-item__icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(243, 219, 232, 0.35);
  transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 300ms var(--ease-out);
}
.help-item__icon::before,
.help-item__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  background: var(--rosa-2);
  border-radius: 2px;
  transition: transform 300ms var(--ease-out), background-color 220ms var(--ease-out);
}
.help-item__icon::after { transform: rotate(90deg); }
.help-item details[open] .help-item__icon { background: var(--rosa); border-color: var(--rosa); transform: rotate(180deg); }
.help-item details[open] .help-item__icon::before,
.help-item details[open] .help-item__icon::after { background: var(--ink); }
.help-item details[open] .help-item__icon::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .help-item summary:hover .help-item__icon { border-color: var(--rosa-2); }
}

.help-item__body { padding: 0 0 clamp(24px, 3vw, 32px) calc(18px + 14px); }
.help-item__body p { max-width: 64ch; font-size: 1.05rem; }

/* L'obertura llisca (navegadors que ho permeten); a la resta s'obre directament */
@supports (interpolate-size: allow-keywords) {
  .help-list { interpolate-size: allow-keywords; }
  .help-item details::details-content {
    block-size: 0;
    opacity: 0;
    overflow: clip;
    transition:
      block-size 380ms var(--ease-out),
      opacity 280ms var(--ease-out),
      content-visibility 380ms allow-discrete;
  }
  .help-item details[open]::details-content { block-size: auto; opacity: 1; }
}
@media (max-width: 760px) {
  .help-item__body { padding-left: 0; }
  .help-item__icon { width: 40px; height: 40px; }
}

/* ==========================================================
   Contacte amb Netlify Forms (desembre 2026)
   ========================================================== */
.contact__intro .mail-big { margin-right: 14px; }
.copy-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  padding: 8px 16px 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 120ms var(--ease-out);
}
.copy-mail svg { width: 18px; height: 18px; flex: none; }
.copy-mail:active { transform: scale(0.97); }
.copy-mail.is-done { background: var(--rosa); border-color: var(--rosa-2); }
@media (hover: hover) and (pointer: fine) {
  .copy-mail:hover { border-color: var(--rosa-fosc); }
}

.booking .btn:disabled { opacity: 0.7; cursor: progress; }
.form-status { margin-top: 14px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.form-status.is-ok,
.form-status.is-error {
  padding: 14px 18px;
  border-radius: var(--radius-s);
  background: var(--paper);
  border: 1.5px solid var(--rosa-2);
}
.form-status.is-error { border-color: #e3a29d; background: #fdf3f2; color: #7a1712; }
.form-status a { font-weight: 600; word-break: break-word; }
