

:root {
  --font-display: 'Mona Sans', Arial, sans-serif;
  --font-primary: 'Hanken Grotesk', Arial, sans-serif;
  --gridSize: 3;
  --ease: cubic-bezier(0.33, 0, 0.35, 1);
  --ease-big: cubic-bezier(0.88, 0, 0.1, 1);
  --card-radius: 2.8rem;
  --detail-radius: calc(var(--card-radius) / 1.5);
  --gap: 1.5rem;
  --zoom: 0.275;
  --scroll-progress: 125.66;
  --fondo: #f5f5f5;
  --gris-1: #cdcdcd;
  --gris-2: #ababab;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%;
  min-height: 100%;
  cursor: default;
  overflow-x: hidden;
  background-color: inherit;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: inherit;
  background: var(--fondo);
  font-family: var(--font-primary);
  -webkit-user-select: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 1.6s var(--ease);
}

img { display: block; width: 100%; height: 100%; }
button, input { background: none; color: inherit; cursor: pointer; outline: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.visuallyhidden {
  border: 0; clip: rect(1px 1px 1px 1px); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 4px #1d1b1d; }
.homepage :focus-visible, .acknowledgments-overlay :focus-visible { outline-color: #1d1b1d; box-shadow: none; }

body:not(.project-detail-active) ::-webkit-scrollbar { display: none; }


.homepage-header,
.homepage-header-link,
.profile-timeline,
.frame-left,
.project-info-desc1,
.acknowledgments-intro,
.acknowledgments-name-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-stretch: 125%;
}

.homepage-header {
  position: absolute;
  top: 0;
  margin: 24px;
  font-size: 2vw;
  line-height: 1em;
  letter-spacing: -0.0135em;
  color: var(--gris-1);
  text-align: left;
}

.homepage-header-link, .profile-timeline {
  font-size: 2.1vw;
  line-height: 1em;
  letter-spacing: -0.0135em;
  color: var(--gris-1);
}

.homepage-header-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.homepage-header-link:hover { color: #666; }

.profile-timeline ul { list-style: none; }
.profile-timeline li { display: flex; align-items: center; padding: 1px 0; }
.timeline-years { flex: 2; width: auto; }
.timeline-role { flex: 1; text-align: right; min-width: 80%; }

.profile {
  position: absolute;
  bottom: 0;
  margin-bottom: 24px;
  width: calc(100% - 48px);
  z-index: 1000;
  border-radius: 0.75rem;
  font-size: .7rem;
  line-height: 1.35;
  color: var(--gris-2);
}


.viewport {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: transparent;
  transform: scale3d(var(--zoom), var(--zoom), 1);
  transform-origin: center;
  transition: transform 1.6s var(--ease-big), opacity 1.6s var(--ease);
  opacity: 1;
  z-index: 4;
  will-change: transform;
}
.open .viewport { transform: scale3d(.99, .985, 1); }
.loading .viewport { opacity: 0; pointer-events: none; }
.loaded .viewport { opacity: 1; }

.canvas {
  --x: 0;
  --y: 0;
  position: absolute;
  display: grid;
  grid-template-columns: repeat(var(--gridSize), 100vw);
  width: fit-content;
  gap: var(--gap);
  margin: auto;
  transform: translate3d(calc((-100vw * var(--x, 0)) - (var(--gap) * var(--x, 0))), calc((-100vh * var(--y, 0)) - (var(--gap) * var(--y, 0))), 0);
  transition: transform 1.2s var(--ease);
  transform-origin: left top;
  z-index: 5;
}
.panning .viewport, .panning .canvas { will-change: transform, opacity; }
.panning, .panning * { pointer-events: none !important; }

.canvas > div {
  position: relative;
  width: 100vw;
  height: 100vh;
  border-radius: var(--card-radius);
  corner-shape: squircle;
  opacity: 0.12;
  overflow: hidden;
  background-color: #ffffff;
  transition: opacity 0.6s var(--ease);
  cursor: pointer;
}
.canvas picture { display: contents; }
.canvas img {
  position: absolute;
  inset: 0;
  transform: scale3d(1.4, 1.4, 1.4);
  transition: transform 1.6s var(--ease-big), opacity 0.6s var(--ease), filter 0.4s ease;
  will-change: transform, opacity;
  object-fit: cover;
  border-radius: 2rem;
  user-select: none;
  pointer-events: none;
  opacity: 0;
}
.canvas img.loaded { opacity: 1; }
.gallery-active .canvas img { filter: grayscale(100%); }
.gallery-active .canvas .selected img { filter: grayscale(0%) brightness(1); }
.canvas .selected { opacity: 1; transition: opacity 0.6s var(--ease); }
.open .canvas .selected { pointer-events: none; }
.open .canvas .selected img {
  transform: scale3d(1, 1, 1);
  filter: grayscale(0%) brightness(0.92);
  transition: transform 1.6s var(--ease-big), filter 1.6s var(--ease-big);
}


.focus-container { display: flex; position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.focus-container .focus { pointer-events: all; }
.focus {
  width: 100%;
  height: 100%;
  transform: scale(0.375);
  margin: auto;
  border-radius: var(--card-radius);
  corner-shape: squircle;
  border: 2px solid whitesmoke;
  backface-visibility: hidden;
  overflow: hidden;
  cursor: zoom-in;
}
.open .focus { cursor: zoom-out; }
.open .focus-container { opacity: 0; visibility: hidden; }
html:not(.gallery-active) .focus-container, html.loading .focus-container { visibility: hidden; }
html:not(.gallery-active) .focus, html.loading .focus { pointer-events: none; }


.frame-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100000;
  pointer-events: none;
  border-radius: 2rem;
  width: calc(100vw * var(--zoom, 0.375));
  height: calc(100vh * var(--zoom, 0.375));
  transition: width 1.6s var(--ease-big), height 1.6s var(--ease-big);
  will-change: width, height;
}
.frame-overlay span, .frame-overlay button { line-height: 1; }
.frame-left-group { display: flex; align-items: center; justify-content: flex-start; gap: .2rem; }
.frame-right-group { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.frame-right-row { display: flex; align-items: center; gap: .8rem; }

.frame-left2, .frame-right2 {
  padding: 0 .8rem 0 0;
  font-size: .65rem;
  color: #ffffff;
  transition: color 1.6s var(--ease), padding 1.6s var(--ease);
}
.frame-left {
  padding: 0 0 0 .9rem;
  font-size: .65rem;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 1.6s var(--ease), padding 1.6s var(--ease);
}
.open .frame-left { padding: 0 0 0 2rem; }
.open .frame-right2 { padding: 0 2rem 0 0; }

.frame-scroll-hint {
  display: none;
  font-size: .65rem;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s var(--ease);
}
html.project-detail-active .frame-scroll-hint { display: inline; opacity: 0.4; }
html.scroll-hint-dismissed .frame-scroll-hint { opacity: 0; transition: opacity 0.6s var(--ease); }

.frame-info-link {
  padding: .6rem 1.2rem .6rem .6rem;
  margin: -.6rem -1.2rem -.6rem -.6rem;
  font-size: .65rem;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.frame-info-link { visibility: hidden; }
html.project-detail-active .frame-info-link { opacity: 1; pointer-events: auto; visibility: visible; }
.open .frame-info-link { padding: 0 2 0 0; }

html.gallery-active .frame-overlay .frame-left,
html.gallery-active .frame-overlay .frame-left2,
html.gallery-active .frame-overlay .frame-right2,
html.gallery-active .frame-info-link,
html.gallery-active .frame-scroll-hint { text-shadow: 0 0 10px rgba(0,0,0,.32), 0 0 2px rgba(0,0,0,.18); }
html:not(.gallery-active) .frame-overlay .frame-left,
html:not(.gallery-active) .frame-overlay .frame-left2,
html:not(.gallery-active) .frame-overlay .frame-right2,
html.loading .frame-overlay .frame-left,
html.loading .frame-overlay .frame-left2,
html.loading .frame-overlay .frame-right2 { color: #585858; }
html:not(.gallery-active) .frame-overlay .frame-right2,
html.loading .frame-overlay .frame-right2 { color: #adadad; }

.bottom-container {
  position: absolute;
  height: 8rem;
  width: 100%;
  bottom: 0;
  z-index: 19;
  background: linear-gradient(to bottom, rgba(245,245,245,0) 0%, rgba(245,245,245,.15) 50%, rgba(245,245,245,.3) 65%, rgba(245,245,245,.5) 75.5%, rgba(245,245,245,.7) 82.85%, rgba(245,245,245,.85) 88%, #f5f5f5 100%);
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.open .bottom-container { opacity: 0; }

.chevron-back {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
html.project-detail-active .chevron-back { opacity: 1; pointer-events: auto; }
.chevron-back { visibility: hidden; transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear .6s; }
html.project-detail-active .chevron-back { visibility: visible; transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s; }
.chevron-back svg { display: block; width: 24px; height: 24px; color: #ffffff; }


.homepage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--fondo);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 101;
  opacity: 1;
  transition: opacity 1.6s var(--ease);
}
.homepage-blank .homepage-content { pointer-events: none; }
.homepage-content {
  width: calc(100vw * var(--zoom, 0.275));
  height: calc(100vh * var(--zoom, 0.275));
  text-align: center;
  border-radius: calc(var(--card-radius) * var(--zoom, 0.275));
  border: 1px solid #ececec;
  cursor: pointer;
  transition: background-color 1.2s var(--ease);
}
.homepage-content:hover { background-color: rgb(255, 255, 255); }
html.homepage-blank .homepage-header, html.homepage-blank .profile { opacity: 0; }
html.gallery-active .homepage-header, html.gallery-active .profile { opacity: 0; transition: opacity 1.6s var(--ease); }
.gallery-active .homepage { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 1.6s var(--ease), visibility 0s linear 1.6s; }


.scroll-meter-container {
  position: fixed;
  top: 50.1%;
  left: 50.08%;
  transform: translate(-50%, -50%);
  width: 3.5vw;
  height: 3.5vw;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
}
.scroll-meter-circle { display: block; width: 100%; height: 100%; }
.scroll-meter-circle circle { stroke-dashoffset: var(--scroll-progress, 125.66); }
html.project-detail-active .scroll-meter-container { opacity: 1; }
html.progress-circle-visible .scroll-meter-container { opacity: 0.2; transition: opacity 0.3s var(--ease); }
html.project-detail-active.progress-circle-visible .scroll-meter-container { opacity: 1; transition: opacity 0.5s var(--ease); }

.crosshair-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 8px;
  z-index: 1000;
  pointer-events: none;
  transition: transform 1.6s var(--ease-big);
  transform-origin: center;
  will-change: transform;
}
.crosshair-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  transition: opacity 1.6s var(--ease-big), background-color 1.6s var(--ease-big);
}
.crosshair-dot-1 { top: 0; left: 50%; transform: translateX(-50%); }
.crosshair-dot-2 { bottom: 0; left: 25%; transform: translateX(-50%); }
.crosshair-dot-3 { bottom: 0; right: 25%; transform: translateX(50%); }

html.page-loading .crosshair-container { z-index: 100001; opacity: 1; }
html.page-loading .crosshair-dot { background-color: #333; transition: opacity 0.3s ease; }
html.page-loading .crosshair-dot-1, html.page-loading .crosshair-dot-2, html.page-loading .crosshair-dot-3 { opacity: 0.2; }

html:not(.gallery-active):not(.page-loading) .crosshair-container { transform: translate(-50%, -50%) rotate(0deg); }
html:not(.gallery-active):not(.page-loading) .crosshair-dot { background-color: #CDCDCD; }
html:not(.gallery-active):not(.page-loading) .crosshair-dot-1 { opacity: 1; }
html:not(.gallery-active):not(.page-loading) .crosshair-dot-2, html:not(.gallery-active):not(.page-loading) .crosshair-dot-3 { opacity: 0.4; }

html.gallery-active:not(.open) .crosshair-container { transform: translate(-50%, -50%) rotate(120deg); }
html.gallery-active:not(.open) .crosshair-dot { background-color: #FFFFFF; }
html.gallery-active:not(.open) .crosshair-dot-3 { opacity: 0.3; }
html.gallery-active:not(.open) .crosshair-dot-2, html.gallery-active:not(.open) .crosshair-dot-1 { opacity: 1; }

html.open .crosshair-container { transform: translate(-50%, -50%) rotate(300deg); }
html.open .crosshair-dot { background-color: #FFFFFF; opacity: 1; }
.loaded .crosshair-container { opacity: 1; }


.project-detail-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease-big);
}
.project-detail-transitioning .project-detail-view { opacity: 0.3; pointer-events: none; transition: opacity 0.4s var(--ease); }
.project-detail-transitioning .project-detail-image { opacity: 0 !important; transition: opacity 0.3s var(--ease) !important; }
.project-detail-transitioning .project-images-container { pointer-events: none; overflow: hidden; }
.project-detail-active .project-detail-view { opacity: 1; pointer-events: all; transition: opacity 0.8s var(--ease); }
.project-detail-fading .project-detail-view { opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
html.project-detail-fading .frame-info-link { opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease); }
html.project-detail-fading .project-info-overlay { opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease); }

.project-detail-content { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.project-images-wrapper {
  position: relative;
  width: calc(99vw * var(--zoom, 0.375));
  height: calc(98vh * var(--zoom, 0.375));
  flex-shrink: 0;
  transition: width 1.6s var(--ease-big), height 1.6s var(--ease-big);
}
.project-images-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--detail-radius);
  corner-shape: squircle;
  scrollbar-width: none;
}
.project-images-container::-webkit-scrollbar { display: none; }
.project-images-inner { width: 100%; }

.gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 349;
  pointer-events: none;
  border-radius: 0 0 var(--detail-radius) var(--detail-radius);
  background: linear-gradient(to top, #111111 0%, rgba(17,17,17,.738) 19%, rgba(17,17,17,.541) 34%, rgba(17,17,17,.382) 47%, rgba(17,17,17,.278) 56.5%, rgba(17,17,17,.194) 65%, rgba(17,17,17,.126) 73%, rgba(17,17,17,.075) 80.2%, rgba(17,17,17,.042) 86.1%, rgba(17,17,17,.021) 91%, rgba(17,17,17,.008) 95.2%, rgba(17,17,17,.002) 98.2%, transparent 100%);
  opacity: .1;
}

.project-detail-image {
  width: 99vw;
  height: 98vh;
  margin-bottom: .5rem;
  border-radius: var(--detail-radius);
  corner-shape: squircle;
  object-fit: cover;
  filter: brightness(0.92);
  transition: opacity 1.6s var(--ease);
  opacity: 0;
}
.project-detail-image.loaded { opacity: 1; }
.project-detail-image:last-child { margin-bottom: 0; }
html.project-detail-active .project-detail-view,
html.project-detail-active .project-images-container,
html.project-detail-active .project-detail-image { cursor: zoom-out; }
html.open { cursor: zoom-out; }

.project-detail-active .viewport, .project-detail-active .focus-container {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.project-detail-transitioning .viewport { opacity: 1; pointer-events: none; transition: opacity 0.2s var(--ease); }
.project-detail-fading .viewport { opacity: 1; pointer-events: none; transition: opacity 0.4s var(--ease); }
.project-detail-fading .focus-container { opacity: 0; pointer-events: none; }

html.open body, html.project-detail-active body, html.info-active body { background-color: #000000; }
html.project-detail-active .frame-overlay .frame-left,
html.project-detail-active .frame-overlay .frame-left2,
html.project-detail-active .frame-overlay .frame-right2 { color: #fff; }


html.claro-izq:not(.info-active).gallery-active .frame-overlay .frame-left,
html.claro-izq:not(.info-active).gallery-active .frame-overlay .frame-left2,
html.claro-izq:not(.info-active).gallery-active .frame-scroll-hint,
html.claro-der:not(.info-active).gallery-active .frame-overlay .frame-right2,
html.claro-der:not(.info-active).gallery-active .frame-info-link { color: #1d1b1d; text-shadow: 0 0 10px rgba(255,255,255,.35); }
html.claro-izq:not(.info-active).gallery-active .frame-scroll-hint { opacity: .55; }
html.claro-cen:not(.info-active).gallery-active .crosshair-dot { background-color: #1d1b1d; }
html.claro-izq:not(.info-active) .chevron-back svg { color: #1d1b1d; }
html.claro-cen:not(.info-active) .scroll-meter-circle circle { stroke: #1d1b1d; }
html.project-detail-active .frame-overlay .frame-left, html.project-detail-active .frame-overlay .frame-left2, html.project-detail-active .frame-overlay .frame-right2 { transition: color .5s var(--ease), padding 1.6s var(--ease); }


.project-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, rgba(0,0,0,1) 100%);
  transition: opacity 0.6s var(--ease);
}
html.info-active .project-info-overlay { cursor: pointer; opacity: 1; pointer-events: auto; }
.project-info-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
html.info-active .project-info-content { opacity: 1; }
.project-info-desc1 { color: #fff; font-size: 32px; line-height: 100%; max-width: 60vw; letter-spacing: -0.012em; }
.project-info-desc-row { display: flex; flex-direction: row; align-items: flex-start; gap: 3rem; flex-wrap: nowrap; }
.project-info-desc2 { color: #fff; font-size: .7rem; line-height: 1.4; max-width: 22rem; flex-shrink: 0; }
.project-info-tags { display: flex; flex-direction: column; gap: .1rem; }
.project-info-tags li { color: rgba(255,255,255,.6); font-size: .7rem; line-height: 1.4; }
.project-info-meta { display: flex; flex-direction: row; gap: 3rem; font-size: .7rem; line-height: 1.4; flex-shrink: 0; }
.project-info-cell { display: flex; flex-direction: column; gap: .25rem; }
.project-info-label { display: block; color: rgba(255,255,255,.6); }
.project-info-value { display: block; color: #fff; }
html.info-active .chevron-back { opacity: 0; pointer-events: none; }


.acknowledgments-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--fondo);
  display: flex;
  flex-direction: column;
  z-index: 100001;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear .5s;
}
.acknowledgments-overlay.active { opacity: 1; pointer-events: all; visibility: visible; transition: opacity 0.5s var(--ease), visibility 0s; }
.acknowledgments-content { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 24px; }
.acknowledgments-main { flex: 1; display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: clamp(2rem, 6vw, 5rem); min-height: 0; }
.acknowledgments-left { display: flex; flex-direction: column; align-items: flex-start; flex: 0 1 auto; min-width: 0; max-width: 50vw; }
.acknowledgments-intro { margin: 0; font-size: 2vw; line-height: 1em; letter-spacing: -0.0135em; color: var(--gris-1); text-align: left; }
.acknowledgments-names-columns { display: flex; flex-direction: row; flex: 1; justify-content: flex-end; gap: 8px; min-width: 0; max-width: min(36rem, 52vw); }
.acknowledgments-names-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.acknowledgments-names-col .acknowledgments-name-item + .acknowledgments-name-item { padding-top: 8px; }
.acknowledgments-name-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececec;
  color: var(--gris-1);
  font-size: clamp(14px, 1.4vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  overflow: visible;
  transition: color .3s var(--ease);
}
.acknowledgments-name-text { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acknowledgments-name-item:hover { color: #b0b0b0; }
.acknowledgments-back-button { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }


@keyframes nav-enter {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); filter: blur(4px); }
  to { opacity: 1; transform: translateX(-50%); filter: blur(0px); }
}
@keyframes nav-exit {
  from { opacity: 1; transform: translateX(-50%); filter: blur(0px); }
  to { opacity: 0; transform: translateX(-50%) translateY(-12px); filter: blur(4px); }
}
.site-nav {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #1d1b1d;
  border: 1px solid #464646;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0px 5px 12px -2px rgba(0,0,0,.38);
  opacity: 0;
  pointer-events: none;
  font-family: var(--font-primary);
  overscroll-behavior: none;
}
.site-nav.nav-visible { animation: nav-enter 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; pointer-events: auto; }
.site-nav.nav-exiting { animation: nav-exit 350ms var(--ease-big) forwards; pointer-events: none; }
.nav-btn {
  font-family: var(--font-primary);
  font-size: 12px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  border-radius: 3px;
  padding: 2px 6px;
  white-space: nowrap;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-about { background: #323032; color: #ffffff; }
.nav-index { background: transparent; color: #898889; }
html.gallery-active .nav-index { background: #323032; color: #ffffff; }
html.gallery-active .nav-about { background: transparent; color: #898889; }


.aviso {
  position: fixed;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  z-index: 100002;
  font-family: var(--font-primary);
  font-size: 10.4px;
  line-height: 1;
  letter-spacing: .1px;
  color: #adadad;
  white-space: nowrap;
  transition: color 1.2s var(--ease);
}
.aviso a { text-decoration: underline; text-underline-offset: 2px; }
.aviso a:hover { color: #666; }
html.open .aviso, html.info-active .aviso { color: rgba(255,255,255,.5); }
html.open .aviso a:hover, html.info-active .aviso a:hover { color: #fff; }

.aviso-contacto {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 8px);
  z-index: 100003;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1d1b1d;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.aviso-contacto.visible { opacity: 1; transform: translate(-50%, 0); }


@media (max-width: 1000px) {
  .acknowledgments-main { flex-direction: column; align-items: stretch; }
  .acknowledgments-left { max-width: none; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
  .acknowledgments-names-columns { max-width: none; justify-content: flex-start; }
}

@media (max-width: 800px) {
  html {
    --cell-w: 99vw;
    --cell-h: 98vh;
    --cell-h: 98dvh;
    --stage-w: 100vw;
    --stage-h: 100vh;
    --stage-h: 100dvh;
    --cell-offset-x: calc((var(--stage-w) - var(--cell-w)) / 2);
    --cell-offset-y: calc((var(--stage-h) - var(--cell-h)) / 2);
    --detail-image-gap: var(--cell-offset-x);
    --home-center-half: calc(var(--cell-h) * var(--zoom, 0.275) * 0.5);
    --home-top-inset: max(env(safe-area-inset-top), 1rem);
    --home-type-fluid: calc((50dvh - var(--home-center-half) - 0.75rem - var(--home-top-inset)) / 6.5);
    --home-type-size: clamp(12px, var(--home-type-fluid), 22px);
  }

  .homepage {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: max(env(safe-area-inset-top), 1rem) 1.25rem 0;
  }
  .homepage .profile { display: none; }
  .homepage-header {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 22rem;
    z-index: 2;
    flex-shrink: 0;
    font-size: var(--home-type-size);
    line-height: 100%;
    text-wrap: balance;
    text-wrap: pretty;
  }
  .homepage-header-link { font-size: var(--home-type-size); line-height: 100%; text-underline-offset: 3px; }
  .homepage-content {
    position: fixed;
    top: calc(var(--stage-h, 100dvh) * 0.5);
    left: calc(var(--stage-w, 100vw) * 0.5);
    transform: translate(-50%, -50%);
    width: calc(var(--cell-w) * var(--zoom, 0.275));
    height: calc(var(--cell-h) * var(--zoom, 0.275));
    border-radius: calc(var(--card-radius) * var(--zoom, 0.275));
    margin: 0;
    z-index: 3;
  }
  .crosshair-container, .scroll-meter-container { top: 50%; left: 50%; transform: translate(-47%, -50%); }
  html:not(.gallery-active):not(.page-loading) .crosshair-container { transform: translate(-47%, -50%) rotate(0deg); }
  html.gallery-active:not(.open) .crosshair-container { transform: translate(-47%, -50%) rotate(120deg); }
  html.open .crosshair-container { transform: translate(-47%, -50%) rotate(300deg); }
  html.project-detail-active .scroll-meter-container, html.progress-circle-visible .scroll-meter-container { width: 3rem; height: 3rem; }
  html.project-detail-active .scroll-meter-circle circle:first-of-type { stroke-width: 1; opacity: 0.35; }
  html.project-detail-active .scroll-meter-circle circle:last-of-type { stroke-width: 1.5; }
  html.project-detail-active .crosshair-container { width: 14px; height: 10px; }
  html.project-detail-active .crosshair-dot { width: 4px; height: 4px; }

  .viewport { top: 0; left: 0; width: var(--stage-w); height: var(--stage-h); }
  .focus-container { top: 0; left: 0; right: auto; bottom: auto; width: var(--stage-w); height: var(--stage-h); }
  .open .viewport { transform: scale3d(var(--zoom), var(--zoom), 1); }
  .focus { width: var(--cell-w); height: var(--cell-h); transform: scale(var(--zoom, 0.375)); }
  .canvas {
    grid-template-columns: repeat(var(--gridSize), var(--cell-w));
    transform: translate3d(calc(var(--cell-offset-x) + (var(--cell-w) * var(--x, 0) * -1) - (var(--gap) * var(--x, 0))), calc(var(--cell-offset-y) + (var(--cell-h) * var(--y, 0) * -1) - (var(--gap) * var(--y, 0))), 0);
  }
  .canvas > div { width: var(--cell-w); height: var(--cell-h); }

  html.open body, html.project-detail-active, html.project-detail-active body { background-color: #f5f5f5; transition: background-color 0s; }
  html.project-detail-active body { overflow: hidden; }

  html.open .project-detail-view, html.project-detail-transitioning .project-detail-view,
  html.project-detail-fading .project-detail-view, html.project-detail-active .project-detail-view {
    top: 0; left: 0; width: var(--stage-w); height: var(--stage-h); max-width: var(--stage-w); max-height: var(--stage-h); overflow: hidden; overscroll-behavior: none;
  }
  html.project-detail-active .project-detail-content, html.project-detail-active .project-text-container { padding: 0; height: 100%; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }

  html.open .project-images-wrapper, html.project-detail-transitioning .project-images-wrapper,
  html.project-detail-fading .project-images-wrapper, html.project-detail-active .project-images-wrapper {
    position: relative;
    width: calc(var(--cell-w, 99vw) * var(--zoom, 0.375));
    height: calc(var(--cell-h, 98dvh) * var(--zoom, 0.375));
    max-width: var(--stage-w, 100vw);
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--card-radius);
    corner-shape: squircle;
    background-color: transparent;
    transition: width 1.6s var(--ease-big), height 1.6s var(--ease-big);
  }
  html.project-detail-transitioning .project-images-wrapper, html.project-detail-fading .project-images-wrapper, html.project-detail-active .project-images-wrapper { transition: none; }

  html.open .project-detail-image, html.project-detail-transitioning .project-detail-image,
  html.project-detail-fading .project-detail-image, html.project-detail-active .project-detail-image {
    height: var(--detail-slide-h, calc(98vh * var(--zoom, 1)));
    min-height: var(--detail-slide-h, calc(98vh * var(--zoom, 1)));
    margin-bottom: 0;
  }
  html.project-detail-active .project-images-container {
    position: absolute; inset: 0; padding: 0; overflow-x: hidden; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; border-radius: inherit; -webkit-overflow-scrolling: touch;
  }
  html.open .project-images-inner, html.project-detail-transitioning .project-images-inner,
  html.project-detail-fading .project-images-inner, html.project-detail-active .project-images-inner {
    width: 100%; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: var(--detail-image-gap);
  }
  html.project-detail-active .project-detail-image { width: 100%; max-height: none; margin-bottom: 0; flex-shrink: 0; object-fit: cover; }
  html.project-detail-active .project-detail-image.detail-mobile-hidden { display: none !important; }
  html.project-detail-active .gradient-overlay { z-index: 3; border-radius: inherit; }

  
  .frame-overlay {
    padding: 8rem .9rem 0;
    line-height: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    text-align: center;
    border-radius: .8rem;
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1), padding 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .frame-left-group, .frame-right-group, .frame-right-row { display: contents; }
  .frame-left { order: 1; }
  .frame-left2 { order: 2; }
  .frame-right2 { order: 3; }
  .frame-info-link { order: 4; }
  .frame-scroll-hint { order: 5; }
  .frame-left, .frame-left2, .frame-right2, .frame-info-link { padding-left: 0; padding-right: 0; line-height: 1.3; }
  .frame-info-link { margin: 0; padding-top: 0.5rem; padding-bottom: 0; }
  html.project-detail-active .frame-scroll-hint { display: none; }
  html.gallery-active .frame-overlay { padding-left: 1rem; padding-right: 1rem; transform: translate(-50%, -50%); transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0; }

  html.open .frame-overlay, html.project-detail-transitioning .frame-overlay, html.project-detail-fading .frame-overlay {
    padding: 2rem 1rem 0;
    top: calc(var(--cell-offset-y));
    left: calc(var(--cell-offset-x));
    width: var(--cell-w, calc(99vw * var(--zoom, 1)));
    height: var(--cell-h, calc(98dvh * var(--zoom, 1)));
    transform: none;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  html.project-detail-active .frame-overlay {
    padding: 2rem 1rem 0;
    top: var(--cell-offset-y);
    left: var(--cell-offset-x);
    width: var(--cell-w, calc(99vw * var(--zoom, 1)));
    height: var(--cell-h, calc(98dvh * var(--zoom, 1)));
    transform: none;
    justify-content: flex-start;
    opacity: 1;
    transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  html.open .frame-overlay .frame-left, html.open .frame-overlay .frame-left2, html.open .frame-overlay .frame-right2, html.open .frame-overlay .frame-info-link,
  html.project-detail-active .frame-overlay .frame-left, html.project-detail-active .frame-overlay .frame-left2, html.project-detail-active .frame-overlay .frame-right2, html.project-detail-active .frame-overlay .frame-info-link,
  html.project-detail-transitioning .frame-overlay .frame-left, html.project-detail-transitioning .frame-overlay .frame-left2, html.project-detail-transitioning .frame-overlay .frame-right2, html.project-detail-transitioning .frame-overlay .frame-info-link,
  html.project-detail-fading .frame-overlay .frame-left, html.project-detail-fading .frame-overlay .frame-left2, html.project-detail-fading .frame-overlay .frame-right2, html.project-detail-fading .frame-overlay .frame-info-link {
    position: fixed;
    left: calc(var(--cell-offset-x, 0px) + var(--cell-w, 99vw) / 2);
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(var(--cell-w, 99vw) - 2rem);
    margin: 0;
    transition-property: color, padding;
    transition-duration: 0s;
  }
  html.open .frame-overlay .frame-left, html.project-detail-transitioning .frame-overlay .frame-left, html.project-detail-fading .frame-overlay .frame-left, html.project-detail-active .frame-overlay .frame-left { top: calc(var(--cell-offset-y, 0px) + 2rem); }
  html.open .frame-overlay .frame-right2, html.project-detail-transitioning .frame-overlay .frame-right2, html.project-detail-fading .frame-overlay .frame-right2, html.project-detail-active .frame-overlay .frame-right2 { top: calc(var(--cell-offset-y, 0px) + 2rem + 1.3em); }
  html.open .frame-overlay .frame-left2, html.project-detail-transitioning .frame-overlay .frame-left2, html.project-detail-fading .frame-overlay .frame-left2, html.project-detail-active .frame-overlay .frame-left2 { top: calc(var(--cell-offset-y, 0px) + 2rem + 2.6em); }
  html.open .frame-overlay .frame-info-link, html.project-detail-transitioning .frame-overlay .frame-info-link, html.project-detail-fading .frame-overlay .frame-info-link, html.project-detail-active .frame-overlay .frame-info-link { top: calc(var(--cell-offset-y, 0px) + 2rem + 3.9em); pointer-events: auto; }
  html.open .frame-overlay .frame-left, html.open .frame-overlay .frame-left2, html.open .frame-overlay .frame-right2, html.open .frame-overlay .frame-info-link,
  html.project-detail-transitioning .frame-overlay .frame-left, html.project-detail-transitioning .frame-overlay .frame-left2, html.project-detail-transitioning .frame-overlay .frame-right2, html.project-detail-transitioning .frame-overlay .frame-info-link { opacity: 0; }
  html.project-detail-active .frame-overlay .frame-left, html.project-detail-active .frame-overlay .frame-left2, html.project-detail-active .frame-overlay .frame-right2, html.project-detail-active .frame-overlay .frame-info-link { opacity: 1; transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1); }
  html.project-detail-fading .frame-overlay .frame-left, html.project-detail-fading .frame-overlay .frame-left2, html.project-detail-fading .frame-overlay .frame-right2, html.project-detail-fading .frame-overlay .frame-info-link { opacity: 0; pointer-events: none; transition: opacity .4s cubic-bezier(0.4, 0, 0.2, 1); }
  html.info-active.project-detail-active .frame-left, html.info-active.project-detail-active .frame-left2, html.info-active.project-detail-active .frame-right2 { display: none; }
  .open .frame-right2 { padding: 0; }
  .open .frame-left { padding: 0; }
  .frame-left { padding: 0; }

  html.open .chevron-back, html.project-detail-transitioning .chevron-back { opacity: 0; pointer-events: none; transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
  html.project-detail-active .chevron-back { opacity: 1; pointer-events: auto; }
  html.project-detail-fading .chevron-back { opacity: 0; pointer-events: none; transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

  html.project-detail-active .project-info-content { top: auto; bottom: 1rem; left: 1rem; right: 1rem; gap: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
  .project-info-desc1 { font-size: 22px; max-width: none; }
  .project-info-desc-row { flex-direction: column; gap: 1rem; }
  .project-info-desc2 { max-width: none; }
  .project-info-meta { gap: 1.5rem; }

  .acknowledgments-overlay { overflow-y: auto; }
  .acknowledgments-content { padding: max(env(safe-area-inset-top), 1rem) 1.25rem 3rem; }
  .acknowledgments-intro { font-size: var(--home-type-size); line-height: 100%; text-wrap: balance; text-wrap: pretty; }
  .acknowledgments-back-button { font-size: var(--home-type-size); line-height: 100%; text-underline-offset: 3px; }
  .acknowledgments-name-item { font-size: 15px; line-height: 100%; letter-spacing: 0; }
  .acknowledgments-names-columns { flex-direction: row; align-items: flex-start; gap: 0.75rem; max-width: none; width: 100%; }
  .acknowledgments-names-col { flex: 1 1 0; min-width: 0; }
  .acknowledgments-names-col + .acknowledgments-names-col .acknowledgments-name-item:first-child { padding-top: 0; }
  .acknowledgments-name-text { white-space: normal; overflow: visible; text-overflow: clip; }

  .site-nav { padding: 3px; gap: 3px; border-radius: 10px; min-height: 44px; align-items: stretch; }
  .nav-btn { font-size: 12px; line-height: 1.25; padding: 0 14px; border-radius: 6px; }
  .aviso { bottom: 12px; }
}

@media (max-width: 500px) {
  .homepage-header { max-width: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001s !important; transition-delay: 0s !important; animation-duration: 0.001s !important; animation-delay: 0s !important; }
  .canvas img { transform: none; }
  .project-detail-image { opacity: 1; }
}
