/* Portada: imatges documentals, lectura directa i moviment breu. */
.home-page { --home-gut: clamp(24px, 5vw, 64px); --ink-3: light-dark(#75766e, #a0a0a0); }
.home-wrap { width: 100%; max-width: 1408px; margin-inline: auto; padding-inline: var(--home-gut); }
.home-page .topbar > .wrap, .home-page .peu > .wrap { max-width: 1408px; padding-inline: var(--home-gut); }
.home-page .topbar > .wrap { gap: 24px; }
.home-page .nav { justify-content: center; gap: clamp(16px, 1.6vw, 24px); }
.home-page .nav a { padding-block: 12px; font-size: .8125rem; }
.home-page .controls { gap: 4px; }
.home-page .tema-btn, .home-page .cerca-btn { height: 44px; }
.home-page .tema-btn { width: 44px; }
.home-page .cerca-btn { background: transparent; padding-inline: 8px; }
.home-page .cerca-btn svg { flex: 0 0 18px; }
.home-page .cerca-btn:hover { background: var(--paper-2); }
.home-menu { display: none; }
.home-page main h1, .home-page main h2, .home-page main h3 { font-family: var(--sans); font-weight: 500; }
.home-page main h2 { font-size: clamp(2rem, 3.5vw, 3.125rem); line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.home-page main h3 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.028em; }
.home-eyebrow { margin: 0 0 24px; font-size: .6875rem; font-weight: 500; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase; color: var(--ink-2); }
.home-hero { position: relative; isolation: isolate; min-height: 580px; height: min(780px, calc(100svh - var(--bar) - 24px)); overflow: hidden; background: #2e3430; color: #fff; }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 58% 50%; transform-origin: 58% 54%; animation: home-camera 3s cubic-bezier(.16, 1, .3, 1) both; }
.home-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 18, 13, .42), transparent 70%), linear-gradient(0deg, rgba(7, 15, 12, .77), rgba(7, 15, 12, .1) 70%, transparent); }
.home-hero-content { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-block: 72px 60px; }
.home-hero-copy { max-width: 720px; }
.home-hero .home-eyebrow { margin-bottom: 24px; color: rgba(255, 255, 255, .86); }
.home-hero h1 { font-size: clamp(2.75rem, 5.65vw, 5rem); line-height: 1.04; letter-spacing: -.055em; font-weight: 500; }
.home-hero-intro { margin: 28px 0 0; font-size: clamp(1rem, 1.45vw, 1.1875rem); line-height: 1.65; color: rgba(255, 255, 255, .88); letter-spacing: -.015em; }
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.home-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 48px; padding: 13px 22px; background: #fff; color: #1d1d1b; border-radius: 999px; font-size: .875rem; font-weight: 500; transition: background .2s, transform .2s; }
.home-button span { font-size: 1.125rem; line-height: 1; }
.home-button:hover { background: #eaece8; transform: translateY(-2px); }
.home-hero-search { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 18px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .04); color: #fff; font: inherit; font-size: .875rem; cursor: pointer; transition: background .2s, border-color .2s; }
.home-hero-search svg { flex: 0 0 18px; }
.home-hero-search:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); }
.home-hero-search:active { background: rgba(255, 255, 255, .2); }
.home-hero :focus-visible { outline-color: #fff; }
.home-hero-caption { flex-shrink: 0; margin: 0 0 8px; font-size: .75rem; line-height: 1.8; color: rgba(255, 255, 255, .9); }
.home-hero-caption span { color: rgba(255, 255, 255, .7); font-size: .6875rem; }
.home-arrive { animation: home-arrive .9s cubic-bezier(.16, 1, .3, 1) both; }
.home-hero h1 { animation-delay: .08s; }
.home-hero-intro { animation-delay: .16s; }
.home-hero-actions { animation-delay: .24s; }
@keyframes home-camera { from { transform: scale(1); } to { transform: scale(1.065); } }
@keyframes home-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.home-section { padding-block: clamp(72px, 8.5vw, 120px); }
#explora { scroll-margin-top: calc(24px - clamp(72px, 8.5vw, 120px)); }
.home-section-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 40px 80px; margin-bottom: 56px; }
.home-section-heading .home-eyebrow { margin-bottom: 20px; }
.home-section-intro { max-width: 44ch; margin: 0 0 3px; font-size: 1rem; line-height: 1.8; color: var(--ink-2); }
.home-section-intro p { margin: 0; }
.home-section-intro .home-text-link { margin-top: 18px; }
.home-paths { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.home-path { display: grid; grid-template-columns: 28px 1fr 24px; align-items: start; gap: 18px; padding: 32px 0 34px; border-top: 1px solid var(--rule-2); }
.home-path-number { padding-top: 5px; color: var(--ink-3); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.home-path p { max-width: 40ch; margin: 14px 0 24px; color: var(--ink-2); font-size: .9375rem; line-height: 1.75; }
.home-path-type { display: inline-block; color: var(--ink-2); font-size: .75rem; }
.home-path-arrow { justify-self: end; font-size: 1.375rem; line-height: 1.4; transition: transform .25s; }
.home-path:hover .home-path-arrow { transform: translate(3px, -3px); }
.home-path:hover .home-path-type { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.home-more { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 30px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: .8125rem; }
.home-more > span { color: var(--ink-3); margin-right: 10px; }
.home-more a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.home-more a:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-research { background: var(--paper-2); }
.home-feature { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(40px, 6vw, 88px); }
.home-archive-photo { margin: 0; }
.home-archive-photo a { display: block; overflow: hidden; border-radius: 8px; }
.home-archive-photo img { width: 100%; display: block; transition: transform .8s cubic-bezier(.2, .6, .3, 1); }
.home-archive-photo a:hover img { transform: scale(1.025); }
.home-archive-photo figcaption, .home-landscape figcaption { margin-top: 16px; color: var(--ink-2); font-size: .6875rem; line-height: 1.7; }
.home-feature-copy > p:not(.home-eyebrow) { margin: 28px 0 18px; max-width: 43ch; font-size: 1rem; line-height: 1.8; color: var(--ink-2); }
.home-text-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; color: var(--ink); font-size: .875rem; font-weight: 500; }
.home-text-link span { transition: transform .25s; font-size: 1.125rem; }
.home-text-link:hover span { transform: translate(3px, -3px); }
.home-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-dates { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--rule-2); }
.home-dates a { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 32px 0; margin-top: 12px; border-left: 1px solid var(--rule); font-size: .8125rem; line-height: 1.6; color: var(--ink-2); }
.home-dates a:first-child { padding-left: 0; border-left: 0; }
.home-dates a:last-child { padding-right: 0; }
.home-date { color: var(--ink); font-size: clamp(2.75rem, 4.8vw, 4rem); font-weight: 400; line-height: 1.05; letter-spacing: -.055em; font-variant-numeric: lining-nums; }
.home-date-arrow { position: absolute; top: 36px; right: 32px; font-size: 1.125rem; color: var(--ink); transition: transform .25s; }
.home-dates a:last-child .home-date-arrow { right: 0; }
.home-dates a:hover .home-date-arrow { transform: translate(3px, -3px); }
.home-landscape { margin: 0; }
.home-landscape-frame { position: relative; display: block; aspect-ratio: 2.2; overflow: hidden; border-radius: 10px; }
.home-landscape img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transition: transform 1s cubic-bezier(.2, .6, .3, 1); }
.home-landscape-frame:hover img { transform: scale(1.025); }
.home-map-label { position: absolute; right: 28px; bottom: 28px; display: flex; align-items: center; gap: 24px; padding: 13px 20px; border-radius: 999px; background: #fcfcfa; color: #1d1d1b; font-size: .8125rem; }
.home-map-label span { font-size: 1.125rem; line-height: 1; }
.home-object { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); border-radius: 12px; background: var(--paper-2); }
.home-object-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.home-object h2 { font-size: clamp(1.875rem, 2.8vw, 2.5rem); }
.home-object-copy > p:not(.home-eyebrow):not(.home-object-credit) { margin: 24px 0 18px; color: var(--ink-2); font-size: .9375rem; line-height: 1.8; }
.home-object-copy .home-object-credit { margin: 24px 0 0; color: var(--ink-3); font-size: .625rem; line-height: 1.7; }
.home-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.home-help > a { padding-top: 24px; border-top: 1px solid var(--rule-2); }
.home-help-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; font-size: .75rem; color: var(--ink-2); }
.home-help-top span { font-size: 1.125rem; color: var(--ink); transition: transform .25s; }
.home-help h3 { max-width: 22ch; font-size: 1.375rem; }
.home-help p { margin: 16px 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.75; max-width: 36ch; }
.home-help a:hover .home-help-top span { transform: translate(3px, -3px); }
.home-page [data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.home-page .is-pending { opacity: 0; transform: translateY(24px); }
.home-page .is-pending:focus-within { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .home-page .topbar > .wrap { gap: 16px; }
  .home-page .nav { gap: 16px; }
  .home-page .cerca-btn kbd, .home-search-label { display: none; }
  .home-page .cerca-btn { width: 44px; justify-content: center; padding: 0; }
  .home-page .separador { display: none; }
  .home-paths { column-gap: 40px; }
  .home-section-heading { column-gap: 48px; }
}
@media (max-width: 1000px) {
  .home-page .topbar > .wrap { position: relative; flex-wrap: nowrap; min-height: 72px; padding-block: 0; gap: 4px; }
  .home-page .topbar .nav { display: none; }
  .home-page .brand { order: 0; }
  .home-page .controls { order: 1; margin-left: auto; }
  .home-menu { display: block; order: 2; }
  .home-menu summary { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; list-style: none; }
  .home-menu summary::-webkit-details-marker { display: none; }
  .home-menu summary:hover { background: var(--paper-2); }
  .home-menu summary span { display: block; width: 18px; height: 1px; background: var(--ink); transition: transform .2s; }
  .home-menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .home-menu[open] summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .home-menu nav { position: absolute; left: var(--home-gut); right: var(--home-gut); top: calc(100% + 6px); display: grid; padding: 12px 24px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); box-shadow: var(--ombra); max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain; }
  .home-menu nav a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; font-size: .9375rem; border-bottom: 1px solid var(--rule); }
  .home-menu nav a:last-child { border: 0; }
  .home-menu nav a span { color: var(--ink-3); }
  .home-menu nav a:hover { color: var(--foix); }
  .home-hero-caption { display: none; }
  .home-feature { gap: 40px; }
  .home-dates a { padding-inline: 24px; }
  .home-date-arrow { right: 24px; }
}
@media (max-width: 700px) {
  .home-page { --home-gut: 24px; }
  .home-hero { height: calc(100svh - 96px); min-height: 600px; max-height: 760px; }
  .home-hero-image { object-position: 59% 46%; transform-origin: 60% 48%; }
  .home-hero-shade { background: linear-gradient(0deg, rgba(7, 15, 12, .9), rgba(7, 15, 12, .42) 45%, transparent 85%); }
  .home-hero-content { padding-block: 48px 36px; }
  .home-hero .home-eyebrow { margin-bottom: 18px; font-size: .625rem; }
  .home-hero h1 { font-size: clamp(2.25rem, 10.4vw, 4.5rem); line-height: 1.07; letter-spacing: -.05em; }
  .home-hero-intro { margin-top: 22px; font-size: 1rem; line-height: 1.65; }
  .home-hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 26px; }
  .home-button { min-height: 48px; padding-inline: 22px; }
  .home-hero-search { min-height: 44px; font-size: .8125rem; }
  .home-section { padding-block: 72px; }
  #explora { scroll-margin-top: -48px; }
  .home-section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .home-page main h2 { font-size: clamp(1.875rem, 6.8vw, 2.625rem); letter-spacing: -.04em; line-height: 1.16; }
  .home-eyebrow, .home-section-heading .home-eyebrow { margin-bottom: 18px; font-size: .625rem; }
  .home-section-intro { font-size: .9375rem; max-width: 46ch; line-height: 1.8; }
  .home-paths { grid-template-columns: 1fr; }
  .home-path { grid-template-columns: 20px 1fr 18px; gap: 14px; padding-block: 26px; }
  .home-page main .home-path h3 { font-size: 1.25rem; line-height: 1.3; }
  .home-path p { font-size: .875rem; line-height: 1.75; margin: 12px 0 16px; }
  .home-path-type { font-size: .6875rem; }
  .home-path-arrow { font-size: 1.125rem; }
  .home-more { gap: 0 24px; padding-top: 22px; font-size: .75rem; }
  .home-more > span { flex-basis: 100%; margin: 0 0 10px; }
  .home-feature { grid-template-columns: 1fr; gap: 32px; }
  .home-feature-copy > p:not(.home-eyebrow) { font-size: .9375rem; margin-block: 24px 16px; }
  .home-archive-photo figcaption, .home-landscape figcaption { margin-top: 12px; font-size: .625rem; }
  .home-dates { margin-top: 40px; }
  .home-dates a { gap: 14px; padding: 20px 16px 0; margin-top: 8px; font-size: .6875rem; }
  .home-date { font-size: clamp(2rem, 8vw, 3rem); }
  .home-date-arrow { position: static; margin-top: auto; align-self: flex-start; font-size: 1rem; }
  .home-landscape-frame { aspect-ratio: 1.05; border-radius: 8px; }
  .home-landscape img { object-position: 50% 52%; }
  .home-map-label { bottom: 16px; right: 16px; gap: 18px; padding: 11px 16px; font-size: .6875rem; }
  .home-object { grid-template-columns: 1fr; padding: 28px 24px; gap: 32px; border-radius: 8px; }
  .home-page main .home-object h2 { font-size: clamp(1.625rem, 6.5vw, 2.25rem); }
  .home-object-copy > p:not(.home-eyebrow):not(.home-object-credit) { margin-block: 20px 16px; font-size: .875rem; }
  .home-object-copy .home-object-credit { margin-top: 20px; }
  .home-help { grid-template-columns: 1fr; gap: 28px; }
  .home-help-top { margin-bottom: 22px; }
  .home-page main .home-help h3 { font-size: 1.25rem; max-width: 24ch; }
  .home-help p { margin-top: 12px; max-width: 44ch; font-size: .875rem; }
  .home-text-link { gap: 18px; font-size: .8125rem; }
}
@media (max-width: 380px) {
  .home-page { --home-gut: 20px; }
  .home-page .brand { gap: 8px; }
  .home-page .brand img { width: 34px; }
  .home-page .brand b { font-size: .8125rem; }
  .home-page .brand small { font-size: .6875rem; }
  .home-page .topbar > .wrap { gap: 0; }
  .home-page .controls { gap: 0; }
  .home-page .tema-btn, .home-page .cerca-btn, .home-menu summary { width: 44px; }
  .home-hero { min-height: 560px; }
  .home-hero h1 { font-size: 2.0625rem; }
  .home-hero-intro { font-size: .9375rem; }
  .home-dates a { padding-inline: 12px; font-size: .625rem; }
  .home-date { font-size: 1.875rem; }
  .home-object { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; }
  .home-hero-image { transform: scale(1.065); }
  .home-page .is-pending { opacity: 1; transform: none; }
  .home-button:hover, .home-path:hover .home-path-arrow, .home-text-link:hover span,
  .home-archive-photo a:hover img, .home-landscape-frame:hover img,
  .home-dates a:hover .home-date-arrow, .home-help a:hover .home-help-top span { transform: none; }
}
@media (max-width: 500px) {
  .home-dates { grid-template-columns: 1fr; margin-top: 32px; }
  .home-dates a { display: grid; grid-template-columns: 80px 1fr 16px; align-items: center; gap: 18px; padding: 22px 0; margin: 0; border-left: 0; border-bottom: 1px solid var(--rule); font-size: .75rem; }
  .home-date { font-size: 2.25rem; }
  .home-date-arrow { align-self: center; margin: 0; }
}
@media print {
  .home-menu { display: none; }
  .home-page .is-pending { opacity: 1; transform: none; }
  .home-hero { height: auto; min-height: 460px; }
}
