.page-enter {
  visibility: hidden;
  opacity: 0.68;
  transform: translate3d(clamp(20px, 2.5vw, 44px), 0, 0);
}

html.is-ready .page-enter {
  visibility: visible;
  animation: internal-page-enter 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-ready .page-enter.is-revealed {
  visibility: visible;
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes internal-page-enter {
  from { opacity: 0.68; transform: translate3d(clamp(20px, 2.5vw, 44px), 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

body:has(.doc) {
  background: #f6f1e8;
  color: #1c1915;
}
.doc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.5rem;
  font-family: Montserrat, sans-serif;
}
.doc-bar a {
  color: inherit;
  text-decoration: none;
}
.doc {
  padding: 2rem 2.5rem 5rem;
  max-width: 72rem;
}
.doc-kicker {
  margin: 0 0 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.doc h1 {
  margin: 0 0 2rem;
  font-family: Montserrat, sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}
.doc-list a {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.2rem;
  color: inherit;
  text-decoration: none;
  align-items: center;
}
.doc-list .still {
  grid-row: 1 / span 2;
  height: 5.4rem;
}
.doc-list strong {
  font-family: Montserrat, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}
.doc-list em {
  font-style: normal;
  opacity: 0.62;
}
#ficha-still {
  width: min(100%, 52rem);
  aspect-ratio: 16 / 10;
  margin-bottom: 2rem;
}
.doc-back a {
  color: inherit;
}
.work-card h3 a {
  color: inherit;
  text-decoration: none;
}
.still.has-photo {
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
}
body:has(.missing) {
  background: #14133a;
  color: #f3ead7;
}
body:has(.missing) .rail { display: none; }
.missing {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 8rem 1.25rem 4rem;
  max-width: 44rem;
}
.missing-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(42, 54, 226, 0.96), rgba(72, 58, 246, 0.94) 46%, rgba(128, 59, 248, 0.96));
  pointer-events: none;
}
.missing-code {
  position: relative;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}
.missing h1 {
  position: relative;
  margin: 0;
  max-width: 10ch;
  font-family: var(--font-display, Montserrat, sans-serif);
  font-weight: 700;
  font-size: clamp(3.1rem, 8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.missing-copy {
  position: relative;
  max-width: 28rem;
  margin: 1.15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
  opacity: 0.84;
}
.missing-back {
  position: relative;
  justify-self: start;
  margin-top: 1.8rem;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.18rem;
}
.missing-back:hover { opacity: 0.55; }
@media (min-width: 900px) {
  .missing { padding: 8rem 2.5rem 4rem; }
}
body:has(.project-page) {
  background: #14133a;
  color: #f3ead7;
}
body:has(.project-page) .rail { display: none; }
.project-page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
}
.project-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(42, 54, 226, 0.96), rgba(72, 58, 246, 0.94) 46%, rgba(128, 59, 248, 0.96));
  pointer-events: none;
}
.project-head {
  position: relative;
  z-index: 1;
  padding: 6rem 0.9rem 2.6rem;
}
.project-head h1 {
  margin: 0;
  font-family: var(--font-body, Montserrat, sans-serif);
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.project-board {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0 0.9rem 2.8rem;
  column-count: 2;
  column-gap: 0.9rem;
}
.project-board:not([data-ready]) li:nth-child(n + 5) { display: none; }
.project-card {
  break-inside: avoid;
  margin: 0 0 1.85rem;
}
.project-card a {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}
.project-card .still {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.55s ease;
}
.project-card .still::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.42) 50%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.project-card .still::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: inherit;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card .still.has-photo { background-image: none; }
.project-card .still.has-photo::after {
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
}
.project-card .still-video { z-index: 1; transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1); }
.project-card a:hover .still,
.project-card a:focus-visible .still {
  transform: translateY(-10px);
  box-shadow: 0 26px 48px rgba(8, 6, 32, 0.38);
}
.project-card a:hover .still::before,
.project-card a:focus-visible .still::before { transform: translateX(130%); }
.project-card a:hover .still::after,
.project-card a:focus-visible .still::after,
.project-card a:hover .still-video,
.project-card a:focus-visible .still-video { transform: scale(1.08); }
.project-card:nth-child(3n) .still { aspect-ratio: 4 / 5; }
.project-card:nth-child(4n) .still { aspect-ratio: 1 / 1; }
.project-card:nth-child(5n) .still { aspect-ratio: 3 / 5; }
.project-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  padding: 0 0.1rem;
}
.project-cap strong {
  font-family: var(--font-body, Montserrat, sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
}
.project-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
.project-icons img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
  display: block;
}
.project-more { height: 1px; }
body:has(.project-page) .footer { z-index: 2; }
@media (min-width: 760px) {
  .project-board { column-count: 3; }
}
@media (min-width: 900px) {
  .project-head { padding: 8.6rem 2.5rem 3.4rem; }
  .project-board {
    padding-inline: 2.5rem;
    column-gap: 1.25rem;
  }
}
@media (min-width: 1100px) {
  .project-board {
    column-count: 4;
    column-gap: 1.35rem;
    padding: 0 2.5rem 3.2rem;
  }
  .project-card { margin-bottom: 2.15rem; }
}
.reel-head,
.reel-stage,
.reel-empty {
  position: relative;
  z-index: 1;
}
.reel-head {
  padding: 6rem 0.9rem 0.35rem;
}
.reel-head h1 {
  margin: 0;
  font-family: var(--font-body, Montserrat, sans-serif);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}
.reel-summary {
  max-width: 42rem;
  margin: 0.85rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.45;
  opacity: 0.84;
}
.reel-summary:empty { display: none; }
.reel-tabs {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  margin-top: 1.55rem;
  scrollbar-width: none;
}
.reel-tabs::-webkit-scrollbar { display: none; }
.reel-tabs[hidden] { display: none; }
.reel-tab {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.2rem 0 0.55rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  opacity: 0.55;
  cursor: pointer;
}
.reel-tab.is-on {
  opacity: 1;
  border-bottom-color: currentColor;
}
.reel-empty {
  margin: 1.2rem 0.9rem 0;
}
.reel-row { margin: 0 0 1.6rem; }
.reel-track {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.9rem;
  padding: 1rem 0.9rem 1.3rem;
  scrollbar-width: none;
  cursor: grab;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel-card {
  position: relative;
  flex: 0 0 auto;
  width: max-content;
  max-width: min(88vw, 520px);
  height: auto;
  scroll-snap-align: start;
  background: transparent;
  overflow: hidden;
  border-radius: 1.6rem;
}
.reel-card .still { width: min(28vw, 320px); height: min(68svh, 620px); aspect-ratio: auto; }
.reel-card img,
.reel-card video {
  display: block;
  width: min(40vw, 460px);
  height: auto;
  max-width: min(40vw, 460px);
  object-fit: contain;
  pointer-events: none;
}
.reel-card.is-tall { max-width: none; }
.reel-card.is-tall img,
.reel-card.is-tall video {
  width: auto;
  height: min(68svh, 620px);
  max-width: none;
}
.reel-card.is-square img,
.reel-card.is-square video {
  width: min(30vw, 340px);
  height: auto;
  max-width: min(30vw, 340px);
}
.reel-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(12, 10, 30, 0.66);
  box-shadow: 0 6px 18px rgba(0,0,0,0.26);
  backdrop-filter: blur(7px);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.reel-play iconify-icon { display: block; width: 3.55rem; height: 3.55rem; font-size: 3.55rem; color: #fff; filter: none; }
.reel-card.is-playing .reel-play { opacity: 0.92; }
.reel-card.is-playing:hover .reel-play { opacity: 1; }
.reel-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.reel-crumb a { color: inherit; text-decoration: none; }
.reel-crumb a:hover { opacity: 0.55; }
.reel-crumb a + a::before,
.reel-crumb a + span::before {
  content: "/";
  margin: 0 0.55rem;
  opacity: 0.55;
  letter-spacing: 0;
  font-weight: 500;
}
.reel-crumb [aria-current] {
  max-width: 28ch;
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 900px) {
  .reel-head { padding: 8.4rem 2.5rem 0.4rem; }
  .reel-empty { margin-inline: 2.5rem; }
  .reel-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
    overflow: visible;
    scroll-snap-type: none;
    padding: 1rem 2.5rem 2.5rem;
    cursor: default;
  }
  .reel-track.is-dragging { cursor: default; }
  .reel-card,
  .reel-card.is-tall,
  .reel-card.is-square,
  .reel-card.is-wide {
    width: 100%;
    max-width: none;
    scroll-snap-align: none;
  }
  .reel-card img,
  .reel-card video,
  .reel-card.is-tall img,
  .reel-card.is-tall video,
  .reel-card.is-square img,
  .reel-card.is-square video,
  .reel-card.is-wide img,
  .reel-card.is-wide video {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}
@media (min-width: 1500px) {
  .reel-track { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .footer-bg { display: none; }

  .reel-track {
    flex-direction: column;
    align-items: center;
    overflow: visible;
    scroll-snap-type: none;
    cursor: default;
  }
  .reel-track.is-dragging { cursor: default; }
  .reel-card { flex: 0 0 auto; scroll-snap-align: none; }

  .reel-card { border-radius: 1.25rem; max-width: 88vw; }
  .reel-card img,
  .reel-card video,
  .reel-card.is-wide img,
  .reel-card.is-wide video,
  .reel-card.is-square img,
  .reel-card.is-square video {
    width: min(86vw, 420px);
    height: auto;
    max-width: min(86vw, 420px);
  }
  .reel-card.is-tall img,
  .reel-card.is-tall video,
  .reel-card .still {
    width: min(70vw, 300px);
    height: auto;
    max-width: min(70vw, 300px);
    max-height: 74svh;
  }
}

.reel-project-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(243, 234, 215, 0.28);
}
.reel-project-nav a { color: inherit; text-decoration: none; font-size: 0.72rem; }
.reel-project-nav a:first-child,
.reel-project-nav a:last-child { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.reel-project-nav a:last-child { justify-content: flex-end; text-align: right; }
.reel-project-nav small { opacity: 0.62; text-transform: uppercase; letter-spacing: 0.1em; }
.reel-project-nav strong { max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-project-nav #ficha-all { padding: 0.45rem 0.75rem; border: 1px solid rgba(243, 234, 215, 0.42); border-radius: 999px; }
.reel-project-nav [hidden] { display: block; visibility: hidden; }

.reel-row { margin: 0; }
.reel-track {
  display: block;
  columns: 1;
  column-gap: 0.35rem;
  overflow: visible;
  padding: 1rem 0.9rem 2.5rem;
  cursor: default;
}
.reel-card,
.reel-card.is-tall,
.reel-card.is-square,
.reel-card.is-wide {
  display: inline-block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 0 0.35rem;
  border-radius: 0.55rem;
  vertical-align: top;
  break-inside: avoid;
}
.reel-card img,
.reel-card video,
.reel-card.is-tall img,
.reel-card.is-tall video,
.reel-card.is-square img,
.reel-card.is-square video,
.reel-card.is-wide img,
.reel-card.is-wide video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}
.reel-card img,
.reel-card video { pointer-events: auto; }
.content-type-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.88));
  transition: transform 0.25s ease;
  cursor: pointer;
}
.content-type-badge iconify-icon { display: block; width: 1.65rem; height: 1.65rem; font-size: 1.65rem; }
.reel-card:hover .content-type-badge { transform: scale(1.1); }
.content-type-badge.type-reel { border-radius: 0; }
.media-zoom-hint {
  position: absolute;
  left: var(--zoom-x, 50%);
  top: var(--zoom-y, 50%);
  right: auto;
  bottom: auto;
  z-index: 6;
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  border: 0;
  background: #6042ef;
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  pointer-events: none;
  box-shadow: none;
  backdrop-filter: none;
  filter: none;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.media-zoom-hint iconify-icon { display: block; width: 2.1rem; height: 2.1rem; font-size: 2.1rem; stroke-width: 2.2; }
.reel-card:has(img),
.reel-card:has(video),
.reel-card.is-zoom-hover { cursor: pointer; }
.media-zoom-hint,
.reel-card.is-zoom-hover .media-zoom-hint { display: none; }

.content-carousel {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.content-carousel::-webkit-scrollbar { display: none; }
.content-carousel-strip { display: flex; width: 100%; }
.reel-card.is-carousel .content-carousel,
.reel-card.is-carousel .content-carousel-strip,
.reel-card.is-carousel .content-carousel-strip img { height: 100%; }
.content-carousel-strip img {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: start;
  object-fit: contain;
  background: #120e28;
}
.reel-card:not(.is-carousel) > img,
.content-carousel-strip img { transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease; }
.reel-card:not(.is-carousel):hover > img,
.content-carousel-strip img:hover { transform: scale(1.018); filter: brightness(0.95) saturate(1.03); }
.content-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 9, 24, 0.64);
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.content-carousel-arrow iconify-icon { display: block; width: 2.35rem; height: 2.35rem; font-size: 2.35rem; filter: none; stroke-width: 2.2; }
.content-carousel-arrow.is-prev { left: 0.65rem; }
.content-carousel-arrow.is-next { right: 0.65rem; }
.content-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  z-index: 5;
  display: flex;
  gap: 0.3rem;
  transform: translateX(-50%);
}
.content-carousel-dots button {
  width: 0.4rem;
  height: 0.4rem;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
}
.content-carousel-dots button.is-on { width: 1rem; background: #fff; }

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 3rem;
  border: 0;
  background: rgba(8, 7, 22, 0.94);
  overflow: auto;
  overscroll-behavior: contain;
}
.project-lightbox[hidden] { display: none !important; }
.project-lightbox.is-open { display: grid; place-items: center; backdrop-filter: blur(14px); }
body.has-project-lightbox { overflow: hidden; }
.project-lightbox img {
  display: block;
  max-width: min(92vw, 1500px);
  max-height: 88dvh;
  object-fit: contain;
  cursor: zoom-in;
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-lightbox video {
  display: block;
  width: auto;
  max-width: min(92vw, 1500px);
  max-height: 88dvh;
  background: #080716;
}
.project-lightbox img[hidden],
.project-lightbox video[hidden],
.project-lightbox-zoom[hidden] { display: none !important; }
.project-lightbox img.is-zoomed { transform: scale(1.7); cursor: zoom-out; }
.project-lightbox-tools {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.project-lightbox-close,
.project-lightbox-zoom,
.project-lightbox-fullscreen {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.8));
  pointer-events: auto;
}
.project-lightbox-actions { display: flex; gap: 0.55rem; }
.project-lightbox-zoom { background: transparent; box-shadow: none; }
.project-lightbox-close iconify-icon,
.project-lightbox-zoom iconify-icon,
.project-lightbox-fullscreen iconify-icon { display: block; width: 1.65rem; height: 1.65rem; font-size: 1.65rem; }
.project-lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 3;
  width: 3.45rem;
  height: 3.45rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 9, 24, 0.64);
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.85));
}
.project-lightbox-nav.is-prev { left: 1rem; }
.project-lightbox-nav.is-next { right: 1rem; }
.project-lightbox-nav iconify-icon { width: 2.55rem; height: 2.55rem; font-size: 2.55rem; stroke-width: 2.2; }
.project-lightbox-count {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 3;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
  text-shadow: 0 2px 8px #000;
}

@media (max-width: 679px) {
  .reel-play { width: 4rem; height: 4rem; }
  .reel-play iconify-icon { width: 3.35rem; height: 3.35rem; font-size: 3.35rem; }
  .content-type-badge { top: 0.55rem; right: 0.55rem; width: 2.4rem; height: 2.4rem; }
  .content-type-badge iconify-icon { width: 1.6rem; height: 1.6rem; font-size: 1.6rem; }
  .media-zoom-hint { display: none; }
  .project-lightbox { padding: 4rem 0.75rem 1rem; }
  .project-lightbox img { max-width: 96vw; max-height: 82dvh; }
  .project-lightbox video { max-width: 96vw; max-height: 82dvh; }
  .project-lightbox-nav { width: 2.8rem; height: 2.8rem; }
  .project-lightbox-nav.is-prev { left: 0.15rem; }
  .project-lightbox-nav.is-next { right: 0.15rem; }
  .project-lightbox-nav iconify-icon { width: 2rem; height: 2rem; font-size: 2rem; }
}

@media (min-width: 680px) {
  .reel-track { columns: 2; }
  .reel-track:has(> .reel-card:nth-child(4):last-child) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    columns: auto;
    align-items: start;
  }
}
@media (min-width: 900px) {
  .reel-head { padding-bottom: 0.8rem; }
  .reel-track { columns: 4; column-gap: 1.35rem; padding: 1rem 2.5rem 3rem; }
  .reel-card,
  .reel-card.is-tall,
  .reel-card.is-square,
  .reel-card.is-wide { margin-bottom: 1.35rem; }

  .reel-track:has(> .reel-card:first-child:last-child) {
    display: flex;
    align-items: flex-start;
    gap: 1.35rem;
  }
  .reel-track:has(> .reel-card:first-child:last-child) > .reel-card.is-wide {
    flex: 0 0 min(70vw, 1050px);
    width: min(70vw, 1050px);
  }
  .reel-track:has(> .reel-card:first-child:last-child) > .reel-card.is-square {
    flex: 0 0 min(48vw, 720px);
    width: min(48vw, 720px);
  }
  .reel-track:has(> .reel-card:first-child:last-child) > .reel-card.is-tall {
    flex: 0 0 min(30vw, 440px);
    width: min(30vw, 440px);
  }
  .reel-track:has(> .reel-card:nth-child(2):last-child),
  .reel-track:has(> .reel-card:nth-child(3):last-child) {
    display: grid;
    align-items: start;
    gap: 1.35rem;
  }
  .reel-track:has(> .reel-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reel-track:has(> .reel-card:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reel-track:has(> .reel-card:nth-child(4):last-child),
  .reel-track:has(> .reel-card:nth-child(5):last-child),
  .reel-track:has(> .reel-card:nth-child(6):last-child) {
    display: flex;
    align-items: flex-start;
    gap: 1.35rem;
  }
  .reel-track:has(> .reel-card:nth-child(4):last-child) > .reel-card,
  .reel-track:has(> .reel-card:nth-child(5):last-child) > .reel-card,
  .reel-track:has(> .reel-card:nth-child(6):last-child) > .reel-card {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  .reel-track:has(> .reel-card:nth-child(4):last-child) > .reel-card.is-wide,
  .reel-track:has(> .reel-card:nth-child(5):last-child) > .reel-card.is-wide,
  .reel-track:has(> .reel-card:nth-child(6):last-child) > .reel-card.is-wide {
    flex-grow: 1.65;
  }
  .reel-track:has(> .reel-card:nth-child(4):last-child) > .reel-card.is-tall,
  .reel-track:has(> .reel-card:nth-child(5):last-child) > .reel-card.is-tall,
  .reel-track:has(> .reel-card:nth-child(6):last-child) > .reel-card.is-tall {
    flex-grow: 0.82;
  }
}
@media (min-width: 1500px) {
  .reel-track { columns: 5; }
}
@media (max-width: 679px) {
  .reel-project-nav { grid-template-columns: 1fr 1fr; }
  .reel-project-nav #ficha-all { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .reel-project-nav a:first-child { grid-column: 1; }
  .reel-project-nav a:last-child { grid-column: 2; }
  .reel-track { padding-inline: 0.65rem; }
  .reel-card,
  .reel-card.is-tall,
  .reel-card.is-square,
  .reel-card.is-wide { border-radius: 0.7rem; }
}

.reel-card,
.reel-card.is-tall,
.reel-card.is-square,
.reel-card.is-wide,
.reel-card img,
.reel-card video,
.content-carousel { border-radius: 0 !important; }

body:has(.blog-page) {
  background: #f7f4ef;
  color: #1c1730;
}
body:has(.blog-page) .topbar,
body:has(.blog-page) .topbar a,
body:has(.blog-page) .topbar button,
body:has(.blog-page) .wordmark,
body:has(.blog-page) .locale-switch { color: #15206a; }
body:has(.blog-page) .wordmark img { filter: brightness(0); }
body:has(.blog-page) .rail { display: none; }
.blog-page {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: 8.6rem 2.5rem 5rem;
}
.blog-page h1 {
  margin: 0 0 1.6rem;
  max-width: 10ch;
  font-family: var(--font-display, Montserrat, sans-serif);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.2rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.4rem;
  margin: 0 0 1.5rem;
}
.blog-tabs button {
  border: 0;
  background: transparent;
  color: #8d887e;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.blog-tabs button.is-on {
  background: #1c1730;
  color: #f7f4ef;
}
.blog-bento {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.bento-pair,
.bento-triple {
  display: grid;
  gap: 0.85rem;
}
.bento-pair,
.bento-triple { height: clamp(38rem, 76vh, 48rem); }
.bento-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.bento-pair.is-flip { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.bento-pair.is-flip .bento-copy { order: 2; }
.bento-pair.is-flip .bento-photo { order: 1; }
.bento-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento-copy,
.bento-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 1.45rem;
  padding: 1.25rem 1.3rem 1.15rem;
  color: #1c1730;
  text-decoration: none;
}
.bento-card {
  --bento-pad: 1.2rem;
  height: 100%;
  min-height: 0;
  padding: 1.05rem var(--bento-pad) 0;
  overflow: hidden;
}
.bento-tag {
  align-self: flex-start;
  margin-bottom: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bento-copy strong,
.bento-card strong {
  font-family: var(--font-display, Montserrat, sans-serif);
  font-size: clamp(1.7rem, 2.3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
@media (min-width: 900px) {
  .bento-pair .bento-copy strong {
    max-width: 100%;
    font-size: clamp(2.5rem, 3.8vw, 4.75rem);
    line-height: 0.9;
  }
  .bento-triple .bento-card > strong {
    min-height: 2.94em;
  }
}
.bento-shot {
  position: relative;
  display: block;
  flex: 1 1 58%;
  min-height: 46%;
  margin: 0.95rem calc(var(--bento-pad) * -1) 0;
  overflow: hidden;
}
.bento-shot .bento-more {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2rem var(--bento-pad) 0.95rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(16, 12, 22, 0.38));
}
.bento-shot .bento-arrow {
  border-color: #fff;
  color: #fff;
}
.bento-shot img,
.bento-shot video,
.bento-photo img,
.bento-photo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-card:hover .bento-shot img,
.bento-card:hover .bento-shot video,
.bento-pair:hover .bento-photo img,
.bento-pair:hover .bento-photo video {
  transform: scale(1.06);
}
.bento-photo {
  display: block;
  min-height: 100%;
  border-radius: 1.45rem;
  overflow: hidden;
}
.bento-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bento-arrow {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-copy:hover .bento-arrow,
.bento-pair:hover .bento-copy .bento-arrow {
  background: #1c1730;
  color: #fff;
  border-color: #1c1730;
  transform: translateX(0.28rem);
}
.bento-card:hover .bento-arrow {
  background: #fff;
  color: #1c1730;
  border-color: #fff;
  transform: translateX(0.28rem);
}
.tone-rio { background: #ddd0fb; }
.tone-casa { background: #f0a36b; }
.tone-ciclo { background: #cfc0f6; }
.tone-linea { background: #d5e7c4; }
.tone-patio { background: #efe56a; }
.tone-senal { background: #f6c7a4; }
.article-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0;
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-crumb a {
  color: inherit;
  text-decoration: none;
}
.article-crumb a:hover { opacity: 0.55; }
.article-crumb a + a::before,
.article-crumb a + span::before {
  content: "/";
  margin: 0 0.55rem;
  color: #8a847c;
  letter-spacing: 0;
  font-weight: 500;
}
.article-crumb [aria-current] {
  max-width: 28ch;
  color: #8a847c;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-open { margin-bottom: 1.4rem; }
.article-kicker {
  display: flex;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.article-kicker span:empty { display: none; }
.article-kicker span + span::before {
  content: "·";
  margin-right: 0.7rem;
  letter-spacing: 0;
}
.article-page h1 {
  width: 100%;
  max-width: none;
  margin: 0 0 0.85rem;
  font-size: clamp(3.4rem, 7.2vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
}
.article-lead {
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: var(--font-italic, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.article-page { min-height: 0; padding-bottom: 2.2rem; }
.article-hero {
  margin: 0 0 1.5rem;
  height: clamp(16rem, 42vh, 28rem);
  border-radius: 1.7rem;
  overflow: hidden;
}
.article-hero img,
.article-hero video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(28, 23, 48, 0.18);
}
.article-meta {
  margin: 0;
  color: #8a847c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-share {
  display: flex;
  gap: 0.45rem;
}
.article-share a,
.article-share button {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid rgba(28, 23, 48, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #1c1730;
  cursor: pointer;
}
.article-share svg {
  display: block;
  width: 1rem;
  height: 1rem;
}
.article-share a:hover,
.article-share button:hover {
  background: #1c1730;
  border-color: #1c1730;
  color: #f7f4ef;
}
.article-stream > p:first-child { max-width: none; }
.article-stream p {
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
  line-height: 1.65;
}
.article-stream > p:first-child {
  font-size: 1.28rem;
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.article-rich h2, .article-rich h3 { margin: 2rem 0 0.8rem; color: #1c1730; line-height: 1.15; letter-spacing: -0.025em; }
.article-rich h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.article-rich h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.article-rich ul, .article-rich ol { margin: 0 0 1.4rem; padding-left: 1.5rem; }
.article-rich li { margin-bottom: 0.45rem; font-size: 1.08rem; line-height: 1.6; }
.article-rich blockquote { margin: 1.8rem 0; padding: 0.25rem 0 0.25rem 1.2rem; border-left: 3px solid #6042ef; font-family: var(--font-italic, "Cormorant Garamond", Georgia, serif); font-size: 1.45rem; font-style: italic; line-height: 1.35; }
.article-rich mark[data-fusion-highlight="1"] { padding: 0.05em 0.18em; background: #f7df73; color: inherit; }
.article-rich a { color: #4d32d8; text-decoration: underline; text-underline-offset: 0.16em; }
.article-media,
.article-chart,
.article-youtube {
  margin: 2rem 0 2.2rem;
}
.article-youtube iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #1c1730; }
.article-youtube figcaption { margin-top: 0.55rem; color: #6f6a62; font-size: 0.82rem; }
.article-media {
  border-radius: 1.25rem;
  overflow: hidden;
}
.article-media img,
.article-media video {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  background: #1c1730;
}
.article-media figcaption,
.article-chart figcaption {
  margin-top: 0.55rem;
  color: #6f6a62;
  font-size: 0.82rem;
}
.article-chart {
  padding: 0.2rem 0 0.2rem;
  border-top: 1px solid rgba(28, 23, 48, 0.18);
  background: none;
}
.article-chart figcaption {
  font-family: var(--font-italic, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #1c1730;
}
.article-chart ul {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.article-chart li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 2rem;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.72rem;
  font-size: 0.92rem;
}
.article-chart b {
  font-family: var(--font-display, Montserrat, sans-serif);
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}
.article-bar {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(28, 23, 48, 0.12);
  overflow: hidden;
}
.article-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1c1730;
}
.reveal-in {
  opacity: 0;
  transform: translateY(2.6rem);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-in.is-in {
  opacity: 1;
  transform: none;
}
.bento-pair .reveal-in:nth-child(2),
.bento-triple .reveal-in:nth-child(2) { transition-delay: 0.1s; }
.bento-triple .reveal-in:nth-child(3) { transition-delay: 0.2s; }
.article-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  margin-top: 1.15rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(28, 23, 48, 0.2);
}
.article-pager a[hidden] { display: none; }
.article-prev,
.article-next {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.article-next { justify-content: flex-end; text-align: right; }
.article-prev small,
.article-next small {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-prev strong,
.article-next strong {
  display: block;
  max-width: 14ch;
  font-family: var(--font-display, Montserrat, sans-serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
}
.article-pager .bento-arrow { flex: none; }
.article-next:hover .bento-arrow {
  background: #1c1730;
  color: #fff;
  border-color: #1c1730;
  transform: translateX(0.28rem);
}
.article-prev:hover .bento-arrow {
  background: #1c1730;
  color: #fff;
  border-color: #1c1730;
  transform: translateX(-0.28rem);
}
@media (max-width: 899px) {
  .blog-page { padding: 7.2rem 0.9rem 3rem; }
  .bento-pair,
  .bento-triple { grid-template-columns: 1fr; height: auto; }
  .bento-pair.is-flip .bento-copy,
  .bento-pair.is-flip .bento-photo { order: initial; }
  .bento-pair.is-flip .bento-photo { order: -1; }
  .bento-photo { min-height: 22rem; }
  .bento-card { height: auto; min-height: 36rem; }
  .bento-shot { min-height: 18rem; }
  .article-foot { align-items: flex-start; flex-direction: column; }
  .article-page h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .article-pager { grid-template-columns: 1fr; gap: 1.4rem; }
  .article-next { justify-content: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .page-enter,
  html.is-ready .page-enter {
    visibility: visible;
    opacity: 1;
    transform: none;
    animation: none;
  }
  .bento-shot img,
  .bento-shot video,
  .bento-photo img,
  .bento-photo video,
  .bento-arrow,
  .reveal-in { transition: none; }
  .reveal-in { opacity: 1; transform: none; }
}
