:root {
  --black: #000;
  --white: #f4f4f1;
  --line: rgba(255, 255, 255, 0.28);
  --rail: clamp(1rem, 1.5vw, 1.5rem);
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --display: "Boldonse", Impact, sans-serif;
  --coral: coral;
  --coral-text: #ff6038;
}

* { box-sizing: border-box; }

html {
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--white);
  background: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.2;
  text-rendering: geometricPrecision;
}

body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button { border: 0; }
img, video { display: block; }

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

.global-cat {
  position: fixed;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100svh;
  opacity: 0.96;
  transition: opacity 360ms linear;
  will-change: opacity;
  pointer-events: none;
  user-select: none;
}

.global-cat__fallback,
.global-cat__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.global-cat__fallback {
  object-fit: contain;
  object-position: center;
}

.global-cat__canvas {
  opacity: 1;
}

.global-cat.is-ready .global-cat__canvas {
  opacity: 1;
}

.global-cat.is-ready .global-cat__fallback {
  opacity: 0;
}

.global-vignette {
  position: fixed;
  z-index: 1;
  inset: 0;
  opacity: 0;
  transition: opacity 400ms ease;
  background:
    radial-gradient(circle at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.25) 64%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 20%, transparent 78%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

main {
  position: relative;
}

.site-rail {
  position: fixed;
  z-index: 80;
  inset: 2rem auto 2rem var(--rail);
  display: flex;
  width: 8rem;
  flex-direction: column;
  pointer-events: none;
}

.site-rail a,
.site-year {
  transition: color 240ms ease;
}

/* In the hero / inicio: menu in black, c2026 and instagram in white */
.site-rail.in-hero nav a {
  color: #000000;
}
.site-rail.in-hero .site-year,
.site-rail.in-hero .social-rail a {
  color: #ffffff;
}

/* In dark sections (sequence, archive, contact): all in white */
.site-rail.in-dark nav a,
.site-rail.in-dark .site-year,
.site-rail.in-dark .social-rail a {
  color: #ffffff;
}

/* In bio (white background): all in black */
.site-rail.in-bio nav a,
.site-rail.in-bio .site-year,
.site-rail.in-bio .social-rail a {
  color: #000000;
}

.site-rail nav,
.site-year,
.social-rail { pointer-events: auto; }

.site-rail nav {
  display: flex;
  flex-direction: column;
}

.site-rail a,
.site-year {
  width: max-content;
  font-size: clamp(0.76rem, 1.05vw, 1rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.site-rail nav a {
  position: relative;
}

.site-rail nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 360ms cubic-bezier(0.76, 0, 0.24, 1);
}

.site-rail nav a:hover::after,
.site-rail nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-year {
  margin-top: 1.05rem;
  color: #888;
}

.social-rail {
  position: absolute;
  bottom: 0;
  left: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scroll-hero {
  position: relative;
  height: 190svh;
}

.scroll-hero__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--coral);
}

.scroll-hero h1 {
  position: absolute;
  z-index: 3;
  right: clamp(0.8rem, 2vw, 2rem);
  left: max(10rem, 10vw);
  bottom: clamp(0.8rem, 1.6vw, 1.8rem);
  display: flex;
  margin: 0;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--display);
  font-size: clamp(9rem, 19.44vw, 19.8rem);
  font-weight: 400;
  font-variant-caps: all-small-caps;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-align: right;
  text-transform: uppercase;
  color: #000000;
}

.hero-word {
  display: block;
}

.hero-word--alba {
  margin-bottom: 0.035em;
}

.hero-place {
  position: absolute;
  z-index: 3;
  top: 2rem;
  right: clamp(1rem, 2vw, 2rem);
  margin: 0;
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #000000;
}

.hero-progress {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.22);
}

.hero-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.float-sequence {
  position: relative;
  z-index: 20;
  height: 920svh;
}

.sequence-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.34);
}

.float-card {
  position: absolute;
  z-index: 50;
  top: 0;
  left: var(--x);
  width: var(--w);
  overflow: hidden;
  border-radius: clamp(2.5rem, 5vw, 6rem);
  background: #080808;
  opacity: 0;
  transform: translate(-50%, 115vh);
  will-change: transform, opacity;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 2rem 6rem rgba(0,0,0,.65);
}

.float-card:nth-child(3n + 2) { z-index: 51; }

.float-card img,
.float-card video {
  width: 100%;
  height: min(76svh, 58vw);
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.01);
  transition: filter 520ms ease, transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

.float-card:first-child video { object-position: center; }

.float-card:hover img,
.float-card:hover video {
  filter: grayscale(0) contrast(1.03) saturate(1.12);
  transform: scale(1.13);
}

.manifesto {
  position: relative;
  z-index: 30;
  min-height: 150svh;
  display: flex;
  align-items: center;
  padding: 12svh 2vw 12svh max(11rem, 11vw);
  background: #ffffff;
  color: #000000;
}

.manifesto-copy {
  max-width: 14ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.7rem, 7.2vw, 7.5rem);
  font-weight: 400;
  font-variant-caps: all-small-caps;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #000000;
}

.hover-word {
  position: relative;
  z-index: 2;
  display: inline;
  padding: 0;
  color: #000000;
  background: transparent;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 220ms ease;
}

.hover-word.tone { color: #666; }

.hover-word:hover,
.hover-word:focus-visible { color: #555; outline: none; text-decoration: none; }

.hover-word--coral {
  color: var(--coral-text);
}

.hover-word--coral:hover,
.hover-word--coral:focus-visible {
  color: #d84523;
  outline: none;
}

.hover-preview {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: clamp(15rem, 27vw, 30rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: clamp(2rem, 4vw, 4.5rem);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.84);
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 1.5rem 4.5rem rgba(0, 0, 0, 0.32);
}

.hover-preview.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.archive {
  position: relative;
  z-index: 35;
  background: rgba(0, 0, 0, 0.18);
}

.archive-slide {
  position: relative;
  min-height: 108svh;
  display: flex;
  align-items: center;
  padding: 8svh 5vw 8svh max(10rem, 10vw);
}

.archive-slide--left { justify-content: flex-start; }
.archive-slide--right { justify-content: flex-end; }
.archive-slide--center { justify-content: center; }
.archive-slide--wide { justify-content: center; }

.archive-shot {
  position: relative;
  z-index: 50;
  width: clamp(22rem, 46vw, 48rem);
  padding: 0;
  overflow: hidden;
  border-radius: clamp(2.5rem, 5vw, 6rem);
  background: #080808;
  cursor: zoom-in;
}

.archive-slide--wide .archive-shot { width: min(70vw, 70rem); }

.archive-shot img {
  width: 100%;
  height: min(82svh, 58vw);
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.015);
  transition: filter 680ms ease, transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-slide--wide .archive-shot img {
  height: min(74svh, 52vw);
  object-position: center;
}

.archive-shot:hover img,
.archive-shot:focus-visible img {
  filter: grayscale(0) contrast(1.02) saturate(1.14);
  transform: scale(1.13);
}

.archive-shot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.contact {
  position: relative;
  z-index: 5;
  min-height: 112svh;
  padding: 7svh 5vw 5svh max(11rem, 12vw);
  background: rgba(0, 0, 0, 0.46);
}

.contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 7svh;
}

.contact-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 10vw, 10rem);
  font-weight: 400;
  font-variant-caps: all-small-caps;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.contact-head p {
  margin: 0;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.05;
}

.contact-form { width: 100%; }

.form-row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.62fr) 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 8rem;
  border-top: 1px solid var(--line);
}

.form-row span {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 3.3rem);
  font-weight: 400;
  font-variant-caps: all-small-caps;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  resize: vertical;
}

.form-row input { height: 6rem; }
.form-row textarea { min-height: 11rem; padding: 2rem 0; }

.form-row:focus-within { border-color: #fff; }

.submit-button {
  display: flex;
  width: 100%;
  min-height: 6.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 400;
  font-variant-caps: all-small-caps;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button span:last-child {
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-button:hover span:last-child,
.submit-button:focus-visible span:last-child { transform: translate(0.3em, -0.3em); }

.contact-direct {
  margin: 5svh 0 0;
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-direct a { color: #fff; border-bottom: 1px solid currentColor; }

.lightbox {
  position: fixed;
  z-index: 500;
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 4rem clamp(3rem, 8vw, 8rem) 3rem;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.98);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.lightbox::backdrop { background: #000; }

.lightbox > img {
  justify-self: center;
  width: auto;
  max-width: min(74vw, 68rem);
  max-height: calc(100svh - 8rem);
  border-radius: clamp(2rem, 4vw, 5rem);
  object-fit: contain;
}

.lightbox button {
  padding: 1rem;
  background: transparent;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.lightbox-arrow { font-size: 2rem; }

.lightbox-count {
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  margin: 0;
  color: #999;
  font-size: 0.8rem;
  font-weight: 800;
}

.tattoo-canvas {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 36px;
  height: 56px;
  pointer-events: none;
  opacity: 0;
  /* Needle tip in puntero.png is at x=7.32%, y=96.85% */
  transform: translate(-7.32%, -96.85%);
  transform-origin: 7.32% 96.85%;
  transition: opacity 180ms ease, transform 100ms ease-out;
  will-change: left, top, transform;
  mix-blend-mode: difference;
}

.cursor-pen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.cursor.is-visible { opacity: 1; }
.cursor.is-active { transform: translate(-7.32%, -96.85%) scale(0.92); }

@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea { cursor: none; }
}

@media (max-width: 760px) {
  .global-cat__fallback { object-fit: contain; }

  .global-vignette {
    background: radial-gradient(circle at 50% 42%, transparent 25%, rgba(0,0,0,.36) 62%, #000 100%);
  }

  .site-rail {
    inset: 0 0 auto 0;
    width: 100%;
    padding: 1rem;
    background: transparent;
    mix-blend-mode: normal;
  }

  .site-rail nav {
    flex-direction: row;
    gap: 1rem;
  }

  .site-year,
  .social-rail { display: none; }

  .site-rail a { font-size: 0.75rem; }
  .scroll-hero { height: 180svh; }

  .scroll-hero h1 {
    right: 0.7rem;
    left: 1rem;
    bottom: clamp(0.6rem, 1.8vh, 1.2rem);
    font-size: clamp(4.5rem, 26.7vw, 9.4rem);
    line-height: 0.94;
    color: #000000;
  }

  .hero-word--alba { margin-bottom: 0.035em; }

  .hero-place { top: 1rem; right: 1rem; font-size: 0.67rem; color: #000000; }
  .hero-progress { bottom: 0; }
  .float-sequence { height: 760svh; }

  .float-card {
    left: 50% !important;
    width: 84vw !important;
  }

  .float-card img,
  .float-card video { height: 72svh; }

  .manifesto {
    display: block;
    min-height: auto;
    padding: 16svh 1.25rem 18svh;
  }

  .manifesto-copy {
    max-width: none;
    font-size: clamp(2.5rem, 11.5vw, 4.25rem);
    line-height: 1;
  }

  .hover-preview {
    width: clamp(16rem, 74vw, 22rem);
    border-radius: 2.2rem;
    box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.42);
  }

  .archive-slide,
  .archive-slide--left,
  .archive-slide--right,
  .archive-slide--center,
  .archive-slide--wide {
    justify-content: center !important;
    min-height: 92svh;
    padding: 7svh 1rem !important;
  }

  .archive-shot,
  .archive-slide--wide .archive-shot {
    width: 84vw !important;
    margin: 0 auto !important;
  }

  .archive-shot img,
  .archive-slide--wide .archive-shot img {
    height: 72svh;
    object-fit: cover;
  }

  .contact {
    min-height: 100svh;
    padding: 7rem 1rem 3rem;
  }

  .contact-head { display: block; margin-bottom: 4rem; }
  .contact-head h2 { font-size: 20vw; line-height: 0.94; }
  .contact-head p { margin-top: 1.5rem; text-align: left; }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 8rem;
    padding-top: 1.25rem;
  }

  .form-row span { font-size: 2rem; }
  .form-row input { height: 4rem; }
  .form-row textarea { min-height: 9rem; padding: 1rem 0; }
  .submit-button { min-height: 5rem; }
  .contact-direct { line-height: 1.5; overflow-wrap: anywhere; }

  .lightbox { padding: 4rem 0.4rem 3rem; }
  .lightbox[open] { grid-template-columns: 2.6rem 1fr 2.6rem; }
  .lightbox > img { max-width: calc(100vw - 6rem); }
  .lightbox-arrow { padding: 0.3rem !important; }
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-hero { height: 100svh; }

  .float-sequence {
    height: auto;
    padding: 6rem 1rem;
    background: rgba(0,0,0,.6);
  }

  .sequence-sticky {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    overflow: visible;
    background: transparent;
  }

  .float-card {
    position: relative;
    top: auto;
    left: auto !important;
    width: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .float-card img,
  .float-card video { height: auto; aspect-ratio: 3 / 4; }
}
