/* Plàcida · agència cultural — landing
   Color i proporcions extrets del PDF "Web-Placida-v1" (1920×1080). */

@font-face { font-family: "Proxima Nova"; src: url("../fonts/proximanova-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("../fonts/proximanova-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("../fonts/proximanova-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --red: #d90000;
  --white: #fff;
  --gutter: clamp(16px, 2.3vw, 44px);
  /* Mides que escalen amb l'amplada però també amb l'alçada (pantalles baixes) */
  --h-big: min(5vw, 8.9vh);
  --h-name: min(4.4vw, 7.8vh);
  --body: clamp(16px, min(1.38vw, 2.45vh), 30px);
  --small: clamp(15px, min(1.25vw, 2.2vh), 26px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
  background: var(--red);
}

body {
  margin: 0;
  background: var(--red);
  color: var(--white);
  font-family: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: .06em; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Pantalles ---------- */
.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

/* ---------- Animació d'entrada (s'activa amb .is-in des del JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js .is-in .reveal { opacity: 1; transform: none; }

/* ---------- 1 · Logo ---------- */
.s-hero { display: grid; place-items: center; }
.hero-logo { width: clamp(230px, 19vw, 460px); display: block; }
.hero-logo svg { display: block; width: 100%; height: auto; overflow: visible; }

.js .hero-logo .lg { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: translateY(-60%) rotate(-25deg); transition: opacity .5s var(--ease), transform 1s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--i) * 70ms + 150ms); }
.js .hero-logo .lt { opacity: 0; transition: opacity 1.2s var(--ease) .8s; }
.js .is-in .hero-logo .lg { opacity: 1; transform: none; }
.js .is-in .hero-logo .lt { opacity: 1; }

.scroll-hint {
  position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  width: 44px; height: 44px; margin-left: -22px;
  display: grid; place-items: center; border: 0; background: none; color: var(--white); cursor: pointer;
  animation: hint 2.4s var(--ease) infinite;
}
.scroll-hint svg { width: 22px; height: 22px; }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(8px); opacity: 1; } }

/* ---------- 2 · Què fem ---------- */
.s-what {
  display: flex; flex-direction: column; justify-content: center;
  gap: min(4.2vh, 3vw);
  padding: 6vh var(--gutter);
}
.what h2 { font-weight: 800; font-size: var(--h-big); line-height: 1.05; letter-spacing: -.01em; }
.what p { max-width: 22em; margin-top: .55em; letter-spacing: .01em; }
.what-1 h2, .what-2 h2 { text-align: center; }
.what-1 p { margin-left: 34.5%; }
.what-2 p { margin-left: 18.4%; }
.what-3 h2 { margin-left: 34.5%; }
.what-3 p { margin-left: 50.5%; }

/* ---------- 3 · Qui som ---------- */
.s-who {
  display: grid;
  grid-template-columns: 47.2% 1fr;
  grid-template-rows: 100%;
  align-items: center;
  height: 100vh; height: 100dvh;
  padding: var(--gutter);
}
.who-photo { height: 100%; min-height: 0; display: flex; align-items: center; }
.who-photo picture, .who-photo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: cover; }
.who-bios { display: flex; flex-direction: column; gap: min(9vh, 5.5vw); padding-left: 4.6%; padding-right: 2%; }
.bio h2 { font-weight: 800; font-size: var(--h-name); line-height: 1.05; letter-spacing: -.01em; margin-bottom: .55em; }
.bio p { max-width: 31em; letter-spacing: .01em; }
.bio strong { font-weight: 800; }

/* ---------- 4 · Contacte ---------- */
.s-contact { display: flex; align-items: flex-end; padding: var(--gutter); }
.contact {
  width: 100%;
  display: grid;
  grid-template-columns: 33.4% 16% 16% 1fr auto;
  grid-template-areas:
    ". title . . ."
    ". rosa ricardo social logo";
  align-items: end;
  padding-bottom: 4.5vh;
  font-size: var(--small);
  line-height: 1.4;
}
.contact h2 { grid-area: title; font-weight: 800; font-size: min(2.4vw, 4.3vh); letter-spacing: -.01em; line-height: 1; margin-bottom: .55em; }
.contact .c-rosa { grid-area: rosa; }
.contact .c-ricardo { grid-area: ricardo; }
.contact .c-social { grid-area: social; align-self: start; }
.contact .c-logo { grid-area: logo; width: clamp(150px, 9.6vw, 230px); margin-right: 6.5vw; }
.contact .c-logo img { display: block; width: 100%; height: auto; }
.contact ul { list-style: none; margin: 0; padding: 0; }
.contact .name, .contact .c-social a { font-weight: 800; }
.contact .light { font-weight: 300; }
.contact .c-social li, .contact .name { display: block; }

/* ---------- Navegació de punts ---------- */
.dots {
  position: fixed; right: max(14px, 1.2vw); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; z-index: 10;
  margin: 0; padding: 0; list-style: none;
}
.dots a { display: grid; place-items: center; width: 24px; height: 24px; }
.dots a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white); opacity: .4; transition: opacity .3s, transform .3s var(--ease); }
.dots a:hover::before { opacity: .8; }
.dots a[aria-current="true"]::before { opacity: 1; transform: scale(1.45); }
.dots a:hover { text-decoration: none; }

/* ======================================================================
   Mòbil i tauleta vertical
   ====================================================================== */
@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  :root {
    --h-big: clamp(30px, 8.6vw, 60px);
    --h-name: clamp(32px, 9.5vw, 64px);
    --body: clamp(16px, 4.1vw, 21px);
    --small: clamp(15px, 3.9vw, 20px);
  }

  .s-what { justify-content: center; gap: 3.2vh; padding: 9vh 36px 8vh 22px; }
  .what-1 h2, .what-2 h2 { text-align: left; }
  .what-1 p, .what-2 p, .what-3 h2 { margin-left: 0; }
  .what p { margin-left: 14% !important; max-width: none; }

  /* La pantalla 3 es parteix en dues: foto i biografies */
  .s-who { display: block; height: auto; padding: 0; overflow: visible; scroll-snap-align: none; scroll-snap-stop: normal; }
  .who-photo, .who-bios { min-height: 100vh; min-height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; }
  .who-photo { height: 100vh; height: 100dvh; padding: 16px; }
  .who-photo picture, .who-photo img { width: 100%; height: 100%; object-position: 50% 62%; }
  .who-bios { justify-content: center; gap: 6vh; padding: 9vh 36px 9vh 22px; }

  .s-contact { align-items: flex-end; padding: 22px 22px max(28px, env(safe-area-inset-bottom)); }
  .contact {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo logo"
      "title title"
      "rosa ricardo"
      "social social";
    row-gap: 0; column-gap: 18px; padding-bottom: 2vh;
  }
  .contact h2 { font-size: clamp(28px, 8vw, 44px); }
  .contact .c-logo { width: clamp(150px, 46vw, 240px); margin: 0 0 auto; justify-self: start; margin-bottom: 14vh; }
  .contact .c-social { margin-top: 1.4em; display: flex; }
  .contact .c-social ul { display: flex; gap: 1.6em; }

  .dots { right: 6px; }
  .dots a { width: 22px; height: 22px; }
}

/* Escriptori amb poca alçada: deixem que el contingut respiri */
@media (min-width: 821px) and (max-height: 560px) {
  .s-who { height: auto; min-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-logo .lg, .js .hero-logo .lt { opacity: 1 !important; transform: none !important; }
}
