/* Kapaoltis — Grup de Diables de Llefià */

:root {
  --bg: #f6f4f1;
  --bg-soft: #ebe6e0;
  --bg-panel: #ffffff;
  --ink: #1a1210;
  --ink-muted: #5c5048;
  --ember: #d62818;
  --ember-hot: #ef3d28;
  --ash: #7a6c62;
  --line: rgba(26, 18, 16, 0.1);
  --line-strong: rgba(214, 40, 24, 0.4);
  --hero-ink: #fffaf6;
  --hero-muted: rgba(255, 250, 246, 0.82);
  --font-display: "Big Shoulders Display", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0.35rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 45% at 50% -5%, rgba(214, 40, 24, 0.08), transparent 55%),
    linear-gradient(180deg, #faf8f5 0%, var(--bg) 40%, #f0ebe5 100%);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ember);
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

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

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.6rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--ember);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__tag {
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(0.45rem) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-0.45rem) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  position: relative;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--ember);
}

.site-nav__social {
  display: inline-flex;
  gap: 0.65rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.site-nav__social a {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
}

.site-nav__social svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--space) 1.5rem;
    background: rgba(250, 248, 245, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .site-nav__social {
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
  }
}

/* ——— Layout ——— */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section__lead {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.prose {
  max-width: 42rem;
}

.prose--wide {
  max-width: none;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--ink-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--ember);
  color: #fff;
}

.btn--primary:hover {
  background: var(--ember-hot);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: rgba(26, 18, 16, 0.28);
  background: rgba(26, 18, 16, 0.04);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--hero-ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: hero-drift 28s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(26, 18, 16, 0.25) 0%, rgba(26, 18, 16, 0.15) 35%, rgba(26, 18, 16, 0.78) 100%),
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(214, 40, 24, 0.32), transparent 60%);
}

.hero__content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--space) clamp(3rem, 7vh, 5rem);
}

.hero__brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 0.12em 0.5em rgba(0, 0, 0, 0.35);
}

.hero__brand span {
  color: #ff6b4a;
}

.hero__title {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.hero__text {
  margin: 0;
  max-width: 34rem;
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero .btn--ghost {
  border-color: rgba(255, 250, 246, 0.45);
  color: var(--hero-ink);
}

.hero .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.page-hero {
  position: relative;
  min-height: clamp(18rem, 42vh, 28rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--hero-ink);
}

.page-hero--plain {
  min-height: clamp(14rem, 32vh, 20rem);
  background:
    linear-gradient(135deg, #2a1612 0%, #1a1210 55%, #3a1a14 100%);
}

.page-hero__media,
.page-hero__shade {
  position: absolute;
  inset: 0;
}

.page-hero__media {
  z-index: -2;
}

.page-hero__media img,
.page-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero--video {
  min-height: clamp(20rem, 52vh, 34rem);
}

.page-hero--video .page-hero__shade {
  background: linear-gradient(180deg, rgba(26, 18, 16, 0.15), rgba(26, 18, 16, 0.72));
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__media video {
    display: none;
  }

  .page-hero--video .page-hero__media {
    background:
      center / cover no-repeat url("../img/correfocLlefia-1.jpg");
  }
}

.page-hero--besties {
  min-height: clamp(19rem, 48vh, 32rem);
}

.page-hero--besties .page-hero__media img {
  object-position: center top;
}

.page-hero--qui-som {
  min-height: clamp(20rem, 58vh, 38rem);
}

.page-hero--qui-som .page-hero__media img {
  object-fit: cover;
  object-position: center 45%;
}

.page-hero__shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(26, 18, 16, 0.2), rgba(26, 18, 16, 0.78));
}

.page-hero--plain .page-hero__shade {
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(214, 40, 24, 0.35), transparent 55%),
    linear-gradient(180deg, transparent, rgba(26, 18, 16, 0.35));
}

.page-hero__content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem var(--space) 2.5rem;
}

.page-hero__content h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.page-hero__content p {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--hero-muted);
}

.page-hero__lead {
  font-size: 1.2rem;
}

/* ——— Feature strips ——— */

.feature-list {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
  }

  .feature--flip {
    grid-template-columns: 1fr 1.05fr;
  }

  .feature--flip .feature__media {
    order: 2;
  }
}

.feature__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  box-shadow: 0 1rem 2.5rem rgba(26, 18, 16, 0.08);
}

.feature__media--wide {
  aspect-ratio: 2 / 1;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.feature:hover .feature__media img {
  transform: scale(1.04);
}

.feature__body h2,
.feature__body h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.feature__body p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.feature__body p:last-of-type {
  margin-bottom: 1.25rem;
}

/* ——— Story blocks (Qui som) ——— */

.section--muted {
  background:
    linear-gradient(180deg, rgba(26, 18, 16, 0.025), transparent 40%),
    var(--bg-soft);
}

.story-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.story-jump a {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.story-jump a:hover {
  color: var(--ember);
  border-color: rgba(214, 40, 24, 0.35);
  background: #fff;
}

.story-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.25rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}

.story-facts div {
  min-width: 0;
}

.story-facts dt {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ember);
}

.story-facts dd {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.story-facts--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 28rem;
}

@media (max-width: 560px) {
  .story-facts {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

.story {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 860px) {
  .story {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .story--flip .story__media {
    order: 2;
  }

  .story--long {
    align-items: start;
    grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1.2fr);
  }

  .story--long .story__media {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    aspect-ratio: 3 / 4;
    min-height: 26rem;
  }
}

.story__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  box-shadow: 0 1rem 2.5rem rgba(26, 18, 16, 0.08);
}

.story__media::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ember), transparent);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.story:hover .story__media img {
  transform: scale(1.03);
}

.story__year {
  display: block;
  margin: 0 0 -0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: rgba(214, 40, 24, 0.14);
}

.story__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}

.story__body h2 {
  margin: 0 0 0.55em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.story__body > p {
  margin: 0 0 1.1em;
  max-width: 38rem;
  color: var(--ink);
  line-height: 1.7;
}

.story__pullquote {
  margin: 1.75rem 0 !important;
  padding: 1.25rem 0 1.25rem 1.25rem;
  max-width: 38rem;
  border-left: 3px solid var(--ember);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.7;
  color: var(--ink);
}

.story__pullquote strong {
  font-weight: 700;
}

.story__body > p.story__eyebrow {
  max-width: none;
  line-height: inherit;
  color: var(--ember);
}

.story__body strong {
  font-weight: 700;
  color: var(--ink);
}

.story__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.story__tags li {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

.story__aside {
  margin: 0 0 1.1em !important;
  padding-top: 0;
  border-top: 0;
  max-width: 38rem;
  font-size: inherit;
  line-height: 1.7;
  color: var(--ink);
}

.story__body > :last-child {
  margin-bottom: 0 !important;
}

.photo-strip {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 0;
}

@media (min-width: 700px) {
  .photo-strip {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1rem;
  }
}

.photo-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  box-shadow: 0 0.75rem 1.75rem rgba(26, 18, 16, 0.07);
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.photo-strip figure:hover img {
  transform: scale(1.04);
}

.photo-strip + .btn-row {
  margin-top: 2rem;
}

.story-gallery {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.story-gallery__label {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  cursor: zoom-in;
  box-shadow: 0 0.55rem 1.35rem rgba(26, 18, 16, 0.07);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.045);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 18, 16, 0.28));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
}

body.is-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 7, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 68rem);
  max-height: 100%;
}

.lightbox__figure {
  margin: 0;
  max-width: 100%;
}

.lightbox__img {
  max-width: min(100%, 68rem);
  max-height: min(78vh, 52rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.lightbox__caption {
  margin: 0.75rem 0 0;
  text-align: center;
  color: rgba(255, 250, 246, 0.78);
  font-size: 0.95rem;
}

.lightbox__counter {
  margin: 0.35rem 0 0;
  text-align: center;
  color: rgba(255, 250, 246, 0.45);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(26, 18, 16, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(214, 40, 24, 0.9);
  border-color: transparent;
}

.lightbox__close {
  top: 0.25rem;
  right: 0.25rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 0.15rem;
}

.lightbox__nav--next {
  right: 0.15rem;
}

@media (max-width: 700px) {
  .lightbox__nav {
    top: auto;
    bottom: 0.85rem;
    transform: none;
  }

  .lightbox__nav--prev {
    left: calc(50% - 3.4rem);
  }

  .lightbox__nav--next {
    right: calc(50% - 3.4rem);
  }
}

/* ——— Pathway / home links ——— */

.pathway {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pathway a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.25s var(--ease), color 0.2s;
}

.pathway a:hover {
  padding-left: 0.5rem;
  color: var(--ink);
}

.pathway__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.pathway__hint {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.pathway__arrow {
  color: var(--ember);
  font-size: 1.5rem;
  transition: transform 0.25s var(--ease);
}

.pathway a:hover .pathway__arrow {
  transform: translateX(0.35rem);
}

/* ——— Grid for bestiary / docs ——— */

.tile-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tile-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tile__media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
  box-shadow: 0 0.75rem 1.75rem rgba(26, 18, 16, 0.07);
}

.tile__media--wide {
  aspect-ratio: 16 / 10;
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.tile:hover .tile__media img {
  transform: scale(1.05);
}

.tile h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.tile p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* ——— Bestiari (Kapabèsties) ——— */

.beast-list {
  display: grid;
  gap: clamp(3rem, 8vw, 5.5rem);
  margin-top: clamp(1rem, 3vw, 2rem);
}

.beast {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

@media (min-width: 860px) {
  .beast {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .beast--flip .beast__media {
    order: 2;
  }
}

.beast__media {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(1.1rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(214, 40, 24, 0.08), transparent 62%),
    linear-gradient(180deg, #fbf9f7 0%, var(--bg-soft) 100%);
  box-shadow: 0 1rem 2.5rem rgba(26, 18, 16, 0.08);
}

.beast__media::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(1.1rem, 2.5vw, 2rem);
  bottom: clamp(1.1rem, 2.5vw, 2rem);
  width: 3px;
  background: linear-gradient(180deg, var(--ember), transparent);
}

.beast__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 30rem;
  border-radius: var(--radius);
  box-shadow: 0 0.65rem 1.75rem rgba(26, 18, 16, 0.16);
}

.beast__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
}

.beast__body h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.03;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.beast__body > p:not([class]) {
  margin: 0;
  color: var(--ink-muted);
}

.beast__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.beast__facts li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.beast__where {
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.beast__where-label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.beast__where ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.beast__where li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.beast__where li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--ember);
  border-radius: 50%;
}

/* ——— Safety / lists ——— */

.safety {
  display: grid;
  gap: 2rem;
}

.safety-figure {
  margin: 1.5rem auto 2.5rem;
  max-width: min(100%, 38rem);
}

.safety-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.safety-disclaimer {
  margin: 2rem 0 0;
  max-width: none;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (min-width: 860px) {
  .safety {
    grid-template-columns: 1fr 1fr;
  }
}

.safety h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.safety ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.safety li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ember);
}

.route-list {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.route {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .route {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.95fr);
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
  }
}

.route__map {
  margin: 0;
  max-width: 34rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(26, 18, 16, 0.07);
}

.route__map img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.45) sepia(0.22) hue-rotate(-8deg) brightness(1.03) contrast(0.96);
}

.route__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

.route__body h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.route__note {
  margin: 0 0 1.15rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.route__streets {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: route-step;
  border-top: 1px solid var(--line);
}

.route__streets li {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0 0.85rem 2.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.92rem;
  counter-increment: route-step;
}

.route__streets li::before {
  content: counter(route-step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(214, 40, 24, 0.1);
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 700;
}

.route__streets span {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}

.map-stack {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 860px) {
  .map-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}

.map-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.map-card img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

/* ——— Contact ——— */

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.15fr;
    align-items: stretch;
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(214, 40, 24, 0.07);
  color: var(--ember);
}

.contact-list__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-list__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.contact-list a {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(214, 40, 24, 0.08), transparent 55%),
    var(--bg-panel);
  box-shadow: 0 0.75rem 1.75rem rgba(26, 18, 16, 0.05);
}

.contact-panel p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
}

.contact-map {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  min-height: 18rem;
  box-shadow: 0 0.75rem 1.75rem rgba(26, 18, 16, 0.06);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
}

@media (min-width: 800px) {
  .contact-map iframe {
    min-height: 100%;
    height: 100%;
  }

  .contact-map {
    min-height: 26rem;
  }
}

/* ——— Docs ——— */

.doc-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.doc-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
}

.doc-list a span {
  color: var(--ember);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ——— Footer ——— */

.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid transparent;
  background: #1a1210;
  color: #f6f4f1;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--space);
  display: grid;
  gap: 2rem;
  text-align: center;
  justify-items: center;
}

.site-footer__inner > div {
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1.3fr 1fr 1fr;
    text-align: left;
    justify-items: stretch;
  }

  .site-footer__inner > div {
    max-width: none;
  }
}

.site-footer h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 244, 241, 0.55);
}

.site-footer p,
.site-footer li {
  color: rgba(246, 244, 241, 0.72);
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer ul.footer-contact {
  display: grid;
  row-gap: 1.6rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  justify-items: center;
}

.site-footer .footer-contact li,
.site-footer .footer-contact li + li {
  display: grid;
  grid-template-columns: 0.95em 1fr;
  column-gap: 0.5rem;
  align-items: start;
  margin-top: 0;
  line-height: 1.45;
  width: max-content;
  max-width: 100%;
  text-align: left;
}

@media (min-width: 800px) {
  .site-footer ul.footer-contact {
    margin: 0;
    justify-items: stretch;
  }

  .site-footer .footer-contact li,
  .site-footer .footer-contact li + li {
    width: auto;
  }
}

.footer-contact__icon {
  display: grid;
  place-items: center;
  width: 0.95em;
  height: 0.95em;
  margin-top: 0.28em;
  color: inherit;
}

.footer-contact__icon svg {
  width: 0.95em;
  height: 0.95em;
  display: block;
}

.footer-contact a,
.footer-contact span {
  min-width: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #ff6b4a;
}

.site-footer__brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.site-footer img.site-footer__logo {
  width: 7rem;
  max-width: 7rem;
  height: 7rem;
  object-fit: contain;
  border-radius: 0.3rem;
  border: 0;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
  margin-left: 0.85rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.site-footer__tagline {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: rgba(246, 244, 241, 0.62);
}

.site-footer__copy {
  border-top: 1px solid rgba(246, 244, 241, 0.12);
  padding: 1rem var(--space);
  text-align: center;
  color: rgba(246, 244, 241, 0.45);
  font-size: 0.85rem;
}

/* ——— Motion ——— */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media img,
  .feature__media img,
  .story__media img,
  .photo-strip img,
  .gallery__item img,
  .tile__media img,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
