/* =========================================================
   FUENTES
   "Basis Grotesque Pro" sigue sin archivo real en /fonts — se dejó
   referenciada en --font-display/--font-body por si algún día se
   agrega, pero SIN @font-face (así no genera pedidos de red que
   siempre fallan; el navegador pasa directo a Helvetica/Arial).

   "PF PixelScript" (el nombre del hero) SÍ tiene archivo acá abajo:
   estaba instalada como fuente del sistema en esta Mac (por eso se
   veía bien en local) pero nunca se había copiado el archivo al
   sitio — así que cualquier otra persona/dispositivo veía el
   fallback (Playfair Display) en vez del pixel script real.
========================================================= */
@font-face {
  font-family: "PF PixelScript";
  src: url("../fonts/PFPixelScript-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   TOKENS
========================================================= */
:root {
  --bone: #FFFFFF;
  --paper: #EFEDE6;
  --ink: #17150F;
  --line: #B8B3A6;
  --accent: #5B4A2F;
  --accent-soft: #A9895A;

  --font-display: "Basis Grotesque Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Basis Grotesque Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad-side: 40px;
  --header-h: 44px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 800px) {
  :root {
    --pad-side: 20px;
    --header-h: 40px;
  }
}

/* =========================================================
   RESET
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Focus visible (a11y) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: #E4007C;
  border-bottom: 1.5px solid var(--ink);
  z-index: 100;
}
.header-inner {
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--pad-side);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  justify-self: start;
  color: var(--bone);
}
.main-nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.main-nav a,
.contact-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bone);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after,
.contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.is-active::after,
.contact-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.main-nav a.is-active {
  color: var(--ink);
}
.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Toggle EN/ES — pill con una "cápsula" blanca que se desliza al lado
   activo. Mismo tratamiento tipográfico que el resto del nav. */
.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: 56px;
  height: 22px;
  border: 1px solid var(--bone);
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.lang-toggle-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(50% - 1px);
  height: calc(100% - 2px);
  background: var(--bone);
  border-radius: 999px;
  transition: transform 0.25s var(--ease);
}
.lang-toggle.is-es .lang-toggle-thumb {
  transform: translateX(100%);
}
.lang-opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--bone);
}
.lang-toggle:not(.is-es) .lang-opt[data-lang="en"],
.lang-toggle.is-es .lang-opt[data-lang="es"] {
  color: #E4007C;
}

/* Botón hamburguesa: tres barritas que se convierten en X cuando el
   menú mobile está abierto. Oculto en desktop (ahí ya está la nav). */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bone);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel del menú mobile: mismos links que .main-nav, en una lista
   vertical debajo del header. Oculto/colapsado por altura (no
   display:none) para poder animar la apertura. */
.mobile-nav {
  display: none;
}

@media (max-width: 800px) {
  /* En vez del grid de 3 columnas (pensado para logo + nav centrada +
     la derecha), en mobile son solo 2 elementos — flex con
     space-between los manda cada uno a su punta sin la columna del
     medio de por medio (que aunque esté vacía, con el grid podía
     descentrar el lado derecho). */
  .header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .main-nav { display: none; } /* reemplazada por .mobile-nav en mobile */
  .contact-link { display: none; } /* ya está en .mobile-nav */
  .header-right { gap: 14px; }
  .menu-toggle { display: flex; }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #E4007C;
    border-bottom: 1.5px solid var(--ink);
    max-height: 0;
    overflow: hidden;
    z-index: 99; /* debajo del header (100), encima del resto */
    transition: max-height 0.3s var(--ease);
  }
  .mobile-nav.is-open {
    max-height: 260px;
  }
  .mobile-nav a {
    padding: 16px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bone);
    border-top: 1px solid rgba(23, 21, 15, 0.25);
  }
  .mobile-nav a.is-active {
    color: var(--ink);
  }
}


/* =========================================================
   SHARED SECTION LAYOUT
========================================================= */
.section-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px var(--pad-side);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) var(--pad-side) 80px;
  position: relative;
  overflow: hidden;
}
.hero-cursor-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.cursor-img {
  position: absolute;
  overflow: hidden;
  opacity: 1; /* aparece de una, sin fade/scale — efecto "copy paste" */
  transform: translate(-50%, -50%);
  will-change: opacity;
}
.cursor-img.is-leaving {
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.cursor-img img {
  width: 100%;
  height: auto;
  display: block;
}

.cursor-star {
  position: absolute;
  width: clamp(28px, 4vw, 56px);
  aspect-ratio: 1;
  color: #E4007C;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
  will-change: transform, opacity;
}
.cursor-star.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(var(--r, 0deg));
}
.cursor-star.is-leaving {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7) rotate(var(--r, 0deg));
}
.cursor-star svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 800px), (hover: none) {
  .hero-cursor-trail { display: none; } /* no hay hover real en touch */
}

.hero-inner {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-name {
  position: relative;
  font-family: "PF PixelScript", "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(30px, 5.2vw, 78px);
  line-height: 2.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  --reveal-mask: radial-gradient(circle 0.1px at -999px -999px, #000 0%, transparent 0%);
}
/* Relleno rosa detrás del contorno, revelado solo donde pasó el cursor —
   la máscara se arma en js/main.js acumulando círculos en cada punto
   por el que se movió el mouse sobre el nombre. */
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #E4007C;
  -webkit-mask-image: var(--reveal-mask);
  mask-image: var(--reveal-mask);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.7s var(--ease);
}
.hero-name.is-unpainting::after {
  opacity: 0;
}

@media (hover: none) {
  .hero-name::after { display: none; } /* sin hover real no hay nada que revelar */
}

.scroll-indicator {
  position: absolute;
  left: var(--pad-side);
  bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-line {
  width: 4px;
  height: 64px;
  background: rgba(228, 0, 124, 0.3);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #E4007C;
  animation: scrollTravel 2.2s var(--ease) infinite;
}
@keyframes scrollTravel {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}
@media (max-width: 800px) {
  .scroll-indicator { display: none; }
}

/* Hero reveal-on-load lines */
.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.reveal-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   WORK
========================================================= */
.work .section-inner {
  padding-bottom: 0px;
}
.work-counter {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
}
.work-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
}
.work-item:first-child { padding-top: 0; }

/* Header: índice + título a la izquierda, tags/categoría/año a la derecha */
.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.work-header-left {
  display: flex;
  align-items: baseline;
  gap: 20px;
  min-width: 0;
}
.work-index {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.work-text-wrap { overflow: hidden; min-width: 0; }
.work-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.05;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease);
}
.work-item.is-visible .work-title {
  transform: translateY(0);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  transition-delay: 0.25s;
}
.work-item.is-visible .work-tags {
  opacity: 1;
}
.work-tags span:not(:last-child)::after {
  content: "·";
  margin-left: 16px;
  color: var(--line);
}

/* Media: columna de miniaturas + imagen principal */
.work-media {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr;
  gap: 24px;
  align-items: start;
}
/* Pom Póm (05): la columna de miniaturas solo tiene el texto de
   descripción, no fotos — la achicamos para que la foto/logo principal
   (a la derecha, en .work-main) quede más ancha. */
.work-item[data-index="05"] .work-media {
  grid-template-columns: minmax(100px, 130px) 1fr;
}
.work-thumbs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.work-thumb {
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  transition-delay: 0.35s;
}
.work-item.is-visible .work-thumb {
  opacity: 1;
}
.work-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--paper);
}
.work-thumb figcaption {
  margin-top: 8px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 11px;
  color: var(--accent);
}
.work-thumb--text p {
  margin: 0;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--accent);
}
.work-thumb--text a {
  color: #E4007C;
  text-decoration: underline;
}
.work-thumb--text a:hover,
.work-thumb--text a:focus-visible {
  color: var(--ink);
}

.work-hero {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
}
.work-item.is-visible .work-hero {
  clip-path: inset(0 0 0% 0);
}
.work-hero img,
.work-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 0.6s var(--ease);
}
.work-item:hover .work-hero img,
.work-item:focus-within .work-hero img,
.work-item:hover .work-hero video,
.work-item:focus-within .work-hero video {
  transform: scale(1);
}

.work-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.work-extras {
  display: flex;
  gap: 20px;
}
.work-extras-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.work-extras--row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-extras--row .work-extra-item {
  min-width: 0;
}
.work-extras--row .work-extra-media {
  aspect-ratio: 3 / 2;
}
.work-extras-col:first-child {
  margin-top: 60px;
}
.work-extra-item {
  margin: 0;
}
.work-extra-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper);
}
.work-extra-media img,
.work-extra-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-extra-item figcaption {
  margin-top: 8px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 11px;
  color: var(--accent);
}
.work-extra-item figcaption a {
  color: #E4007C;
  text-decoration: underline;
}
.work-extra-item figcaption a:hover,
.work-extra-item figcaption a:focus-visible {
  color: var(--ink);
}

/* Piezas grandes, centradas, apiladas (sin recorte) — usado solo por
   proyectos con extrasLayout: "stack" (ej. Ecos de lo Oscuro). */
.work-extras--featured {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.work-extras--featured .work-extras--stack {
  align-items: stretch;
  gap: 24px;
}
.work-extras--featured .work-extras--stack .work-extra-item {
  max-width: none;
}
/* Label tipo tag sobre la pieza principal (ej. "BRAND LOGO" en Pom
   Póm), ubicado en el espacio vacío a la derecha de la imagen. */
.work-extras-top-wrap { position: relative; }
.work-extras-top-label {
  position: absolute;
  top: 0;
  right: 65px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  pointer-events: none;
}
/* "Logo de marca" es más largo que "Brand logo" — la corremos un
   toque para que quede alineada igual de bien en español. */
.work-extras-top-label.is-es {
  right: 45px;
}
.work-extras--stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
.work-extras--stack .work-extra-item {
  width: 100%;
  max-width: 900px;
}
.work-extras--stack .work-extra-item:first-child {
  max-width: 1100px;
}
.work-extras--stack .work-extra-media {
  aspect-ratio: auto;
  background: none;
}
.work-extras--stack .work-extra-media img {
  height: auto;
  object-fit: contain;
}

@media (max-width: 800px) {
  .work-item { padding: 40px 0; }
  .work-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .work-media { grid-template-columns: 1fr; }
  .work-thumbs {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
  }
  .work-thumb { flex: 0 0 120px; }
  /* El texto de descripción necesita más ancho que una miniatura —
     si no, queda angosto y con muchas líneas (una columna larga y
     alta, justo lo que queremos evitar). */
  .work-thumb--text { flex: 0 0 80vw; }

  /* Extras: en vez de columnas/grillas verticales largas, todo pasa a
     filas horizontales con scroll — mismo criterio que .work-thumbs. */
  .work-extras {
    flex-direction: column;
    gap: 16px;
  }
  .work-extras-col {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
  }
  .work-extras-col:first-child {
    margin-top: 0; /* ese offset era para el desfasaje visual en desktop */
  }
  .work-extras-col .work-extra-item {
    flex: 0 0 200px;
  }
  .work-extras--row {
    display: flex;
    overflow-x: auto;
    gap: 16px;
  }
  .work-extras--row .work-extra-item {
    flex: 0 0 220px;
  }
}

/* =========================================================
   DIGITAL GALLERY
   Inspirado en el archivo de thomascosin.com: en vez de un carrusel
   pinneado, es scroll normal y largo con las piezas en un masonry
   suelto (CSS columns, no grid prolijo) — tamaños dispares según el
   aspect ratio real de cada imagen, harto aire entre piezas. Un
   "plaque" (logo + caption) queda sticky centrado en pantalla
   mientras el masonry pasa por detrás, y se despega solo/naturalmente
   cerca del final de la sección.
========================================================= */
.gallery {
  position: relative;
  background: var(--bone);
  border-bottom: 1px solid var(--ink);
}
.gallery .section-inner {
  padding-top: 0px;
  padding-bottom: 56px;
}
.gallery-counter {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
}

/* Wrapper sin alto: no empuja el .gallery-track hacia abajo, así el
   plaque de adentro puede quedar sticky "flotando" sobre el masonry. */
.gallery-pin-wrap {
  position: sticky;
  top: 50%;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.gallery-pin-caption {
  transform: translateY(-50%);
  margin: 0;
  width: max-content;
  max-width: 70vw;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 18px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}

.gallery-track {
  columns: 280px 4; /* ancho mínimo por columna + techo de 4 — se autoajusta */
  column-gap: 40px;
  padding: 0 0 60px;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 40px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  cursor: pointer; /* se puede tocar/clickear para agrandar en el lightbox */
}
.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Corrimiento vertical por pieza: rompe la alineación en fila prolija
   de las columnas y da la sensación de collage disperso, no grilla. */
.gallery-item:nth-child(3n+2) { margin-top: 72px; }
.gallery-item:nth-child(5n+1) { margin-top: 24px; }
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 800px) {
  .gallery-track {
    columns: 2;
    column-gap: 16px;
    padding-bottom: 80px;
  }
  .gallery-item { margin-bottom: 16px; }
  .gallery-item:nth-child(3n+2),
  .gallery-item:nth-child(5n+1) { margin-top: 0; }
  .gallery-pin-caption { max-width: 88vw; white-space: normal; }
}

/* =========================================================
   ABOUT
========================================================= */
.about {
  background: #000000;
  color: #FFFFFF;
}
.about .section-inner {
  padding-top: 72px;
  padding-bottom: 72px;
}
.about h2 { color: #E4007C; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: stretch; /* la foto estira a la misma altura que el
    texto de al lado, cubriendo todo el padding de la sección */
}
.about-photo-wrap {
  height: 100%;
  max-width: 520px;
  overflow: hidden;
  background: var(--paper);
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-bio {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--bone);
  margin-bottom: 48px;
}
.quick-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  border-top: 1px solid rgba(228, 225, 216, 0.25);
  padding-top: 32px;
}
.fact dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E4007C;
  margin-bottom: 6px;
}
.fact dd {
  font-size: 15px;
  font-weight: 400;
  color: var(--bone);
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo-wrap { max-width: 320px; }
}

/* =========================================================
   CONTACT
========================================================= */
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.contact-email {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 7vw, 90px);
  letter-spacing: -0.02em;
  line-height: 1;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-email:hover,
.contact-email:focus-visible {
  color: #E4007C;
  border-color: #E4007C;
}
.contact-thanks {
  display: block;
  width: min(1100px, 95vw);
  height: auto;
  align-self: center;
  margin: 0 auto;
}
.social-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.social-links a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  padding-bottom: 2px;
}
.social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.social-links a:hover::after,
.social-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  border-top: 1px solid var(--ink);
  padding: 24px var(--pad-side);
}
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  flex-wrap: wrap;
}

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-line {
    opacity: 1;
    transform: none;
  }
  .work-title { transform: none; }
  .work-meta { opacity: 1; }
  .work-image-wrap { clip-path: inset(0 0 0% 0); }
  .work-image-wrap img { transform: none; }
  .scroll-line::after { animation: none; display: none; }
  .hero-cursor-trail { display: none; }

  /* Digital Gallery: el texto deja de quedar pinneado (sticky) y las
     piezas aparecen directamente, sin transición de entrada. */
  .gallery-pin-wrap { position: static; height: auto; padding: 60px 0; }
  .gallery-pin-caption { transform: none; }
  .gallery-item {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================================================
   CURSOR CIRCULAR CUSTOM
   Solo en dispositivos con mouse real (hover:hover + pointer:fine) —
   se oculta el cursor nativo y lo reemplaza este círculo que sigue
   al mouse (posición actualizada vía JS con requestAnimationFrame).
   mix-blend-mode: difference lo hace legible tanto sobre fondos
   claros como sobre la sección About (fondo oscuro) sin tener que
   trackear en qué sección está.
========================================================= */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s var(--ease);
  will-change: transform;
}
.custom-cursor.is-visible {
  opacity: 1;
}
.custom-cursor-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #E4007C;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.custom-cursor-star {
  position: absolute;
  inset: 0;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.custom-cursor-star svg {
  width: 100%;
  height: 100%;
  display: block;
}
.custom-cursor.is-over-header .custom-cursor-dot {
  opacity: 0;
  transform: scale(0.5);
}
.custom-cursor.is-over-header .custom-cursor-star {
  opacity: 1;
  transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

/* =========================================================
   MARQUEE / TICKER — fijo abajo, loop infinito horizontal.
   Dos grupos idénticos uno al lado del otro; la animación
   traslada el track exactamente -50% (el ancho de un grupo),
   así al terminar el ciclo el segundo grupo ya está donde
   estaba el primero — el corte no se nota. No depende del
   scroll: es una animación CSS por tiempo, no por posición.
========================================================= */
.marquee {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 500;
  pointer-events: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 16s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #E4007C;
  padding: 12px 0;
}
.marquee-star {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  width: 10px;
  height: 10px;
  margin: 0 20px 16px;
  color: #E4007C;
  flex-shrink: 0;
}
.marquee-star svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   LIGHTBOX — foto de la Digital Gallery agrandada, con fondo oscuro
   y una cruz para cerrar (también cierra con click afuera o Escape).
========================================================= */
body.lightbox-locked {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transform: scale(0.96);
  transition: transform 0.25s var(--ease);
}
.lightbox.is-open .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--bone);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #E4007C;
  color: var(--bone);
}

@media (max-width: 800px) {
  .lightbox { padding: 60px 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-img { transition: none; }
  .gallery-item img { transition: none; }
}

/* =========================================================
   DIGITAL GALLERY — gravedad + drag (ver setupGalleryGravity en
   main.js). Solo la foto que cerrás en el lightbox se desvanece de su
   lugar en la grilla (el resto no se mueve) y aparece suelta en
   #gravity-layer, posicionada con transform: translate() para que el
   loop de física sea liviano (nada de reflow).
========================================================= */
.gallery-item.is-fallen {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
#gravity-layer {
  position: absolute; /* relativo a .gallery (position: relative), no al viewport */
  inset: 0;
  z-index: 250; /* por debajo del lightbox (300), por encima del header */
  pointer-events: none;
  overflow: hidden; /* las fotos nunca se ven fuera de la sección */
}
.gravity-photo {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  display: block;
  border-radius: 2px;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.gravity-photo.is-dragging {
  cursor: grabbing;
}
.gravity-reset {
  /* absolute (no fixed) + el `top` lo recalcula JS en cada frame
     (updateResetPosition en main.js) para que siga al scroll sin
     salirse de la sección — position: sticky con solo `bottom` no
     sirve acá porque el botón arranca arriba de todo de una sección
     larga, y sticky-bottom solo engancha scrolleando hacia arriba. */
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 2; /* por encima de las fotos sueltas, dentro de #gravity-layer */
  pointer-events: auto; /* si no, hereda el pointer-events:none de #gravity-layer */
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: #E4007C;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.gravity-reset:hover,
.gravity-reset:focus-visible {
  background: var(--ink);
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .gravity-reset { left: 16px; padding: 8px 16px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* =========================================================
   BACK TO TOP
   Fijo en pantalla; visible en todo momento excepto mientras
   la landing (#hero) está a la vista — JS agrega/saca .is-visible.
========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #E4007C;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--ink);
}
@media (max-width: 800px) {
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s linear; transform: none; }
}
