/* Luis Piñero Álvarez — portfolio 2026 */
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-italic-400.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0a0a08;
  --paper: #f0eee8;
  --white: #fff;
  --acid: #d8ff37;
  --muted-dark: rgba(255, 255, 255, 0.56);
  --muted-light: rgba(10, 10, 8, 0.55);
  --line-dark: rgba(255, 255, 255, 0.18);
  --line-light: rgba(10, 10, 8, 0.18);
  --sans: "Barlow", sans-serif;
  --serif: "Instrument Serif", serif;
  --gutter: clamp(1.25rem, 3vw, 3.75rem);
  --section-y: clamp(6rem, 11vw, 11rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

body.menu-open,
body.lightbox-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection { color: var(--ink); background: var(--acid); }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10001;
  padding: 0.75rem 1rem;
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10000;
  max-width: 22rem;
  margin: 0;
  padding: 1rem;
  background: var(--acid);
  color: var(--ink);
}

[data-language][hidden] { display: none !important; }

.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.display-title {
  max-width: 15ch;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(3.25rem, 6.8vw, 7.75rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-wrap: balance;
}

.section-index {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Intro and global motion */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: end;
  padding: 1.25rem var(--gutter);
  background: var(--paper);
  color: var(--ink);
  transition: transform 1s var(--ease) 160ms;
}

.intro-curtain--dark {
  background: var(--ink);
  color: var(--white);
}

.intro-curtain__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid currentColor;
  padding-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.is-ready .intro-curtain {
  transform: translateY(-101%);
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
  transform-origin: left center;
}

.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-image {
  position: relative;
  overflow: hidden;
}

.reveal-image img {
  transform: scale(1.08);
  transition: transform 1.5s var(--ease);
}

.reveal-image::after {
  position: absolute;
  inset: -1px;
  z-index: 2;
  background: var(--reveal-cover, var(--paper));
  content: "";
  pointer-events: none;
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 1.05s var(--ease);
}

.reveal-image.is-visible::after {
  transform: scaleY(0);
  transform-origin: top;
}

.reveal-image.is-visible img { transform: scale(1); }

/* Navigation */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  padding: 0 var(--gutter);
  color: var(--white);
  mix-blend-mode: difference;
  transition: min-height 300ms ease, background-color 300ms ease;
}

.site-nav::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 8, 7, 0.9), rgba(8, 8, 7, 0.62) 72%, rgba(8, 8, 7, 0));
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.site-nav--solid {
  background: rgba(10, 10, 8, 0.86);
  backdrop-filter: blur(14px);
  mix-blend-mode: normal;
}

.site-nav.is-compact {
  min-height: 4rem;
  color: var(--white);
  mix-blend-mode: normal;
}

.site-nav.is-compact::before { opacity: 1; }

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-monogram {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 0.6rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.8vw, 3.25rem);
}

.nav-desktop a,
.language-toggle {
  position: relative;
  border: 0;
  padding: 0.35rem 0;
  background: transparent;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-desktop a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 350ms var(--ease);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.language-toggle {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  place-items: center;
  border: 1px solid currentColor;
  transition: color 200ms ease, background-color 200ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  background: currentColor;
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  padding: 0.8rem 0.55rem;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.35rem 0;
  background: currentColor;
  transition: transform 300ms var(--ease);
}

.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem var(--gutter) 2rem;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1.5rem);
  transition: opacity 350ms ease, transform 500ms var(--ease);
}

.mobile-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu nav { border-top: 1px solid var(--line-dark); }

.mobile-menu nav a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: baseline;
  border-bottom: 1px solid var(--line-dark);
  padding: 1rem 0;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 400ms ease, transform 600ms var(--ease);
}

.mobile-menu[aria-hidden="false"] nav a { opacity: 1; transform: translateY(0); }
.mobile-menu[aria-hidden="false"] nav a:nth-child(1) { transition-delay: 80ms; }
.mobile-menu[aria-hidden="false"] nav a:nth-child(2) { transition-delay: 140ms; }
.mobile-menu[aria-hidden="false"] nav a:nth-child(3) { transition-delay: 200ms; }

.mobile-menu nav span {
  color: var(--muted-dark);
  font-size: 0.65rem;
}

.mobile-menu nav strong {
  font-family: var(--sans);
  font-size: clamp(2.7rem, 12vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
}

.mobile-language {
  align-self: flex-start;
  margin-top: 2rem;
  border: 1px solid var(--line-dark);
  padding: 0.6rem 0.8rem;
  background: transparent;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 350ms ease, transform 500ms var(--ease);
}

.mobile-menu[aria-hidden="false"] .mobile-language {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 260ms;
}

.mobile-menu > p {
  margin: auto 0 0;
  color: var(--muted-dark);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Home hero */
.home-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #d9e3e9;
  color: var(--ink);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media { overflow: hidden; }

.hero-media img {
  object-fit: cover;
  object-position: center 47%;
  transform: scale(1.09);
  transition: transform 2s var(--ease) 250ms;
  will-change: transform;
}

body.is-ready .hero-media img { transform: scale(1.025); }

.hero-frame {
  position: absolute;
  inset: 6.25rem var(--gutter) 1.5rem;
  pointer-events: none;
}

.hero-frame span {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--ink);
}

.hero-frame span:nth-child(1) { top: 0; left: 0; }
.hero-frame span:nth-child(2) { top: 0; right: 0; }
.hero-frame span:nth-child(3) { right: 0; bottom: 0; }
.hero-frame span:nth-child(4) { bottom: 0; left: 0; }

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 7.25rem calc(var(--gutter) + 1.1rem) 2.7rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-meta p { margin: 0; }

.hero-title {
  align-self: end;
  margin: 0 0 clamp(1.4rem, 2vw, 2rem);
  font-family: var(--sans);
  font-size: clamp(4.9rem, 11.8vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.82;
  text-shadow: 0 0 1px rgba(245, 247, 244, 0.72), 0 0 22px rgba(224, 234, 239, 0.38);
}

.hero-title > span,
.gallery-hero__title > span {
  display: block;
  overflow: clip;
  padding: 0.16em 0 0.2em;
  margin: -0.16em 0 -0.2em;
}

.hero-title i,
.gallery-hero__title i {
  display: block;
  font-style: normal;
  transform: translateY(110%);
}

body.is-ready .hero-title i,
body.is-ready .gallery-hero__title i {
  animation: title-in 1.15s var(--ease) forwards;
}

body.is-ready .hero-title span:nth-child(2) i { animation-delay: 80ms; }

@keyframes title-in { to { transform: translateY(0); } }

.hero-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
}

body.is-ready .hero-reveal {
  animation: fade-up 850ms var(--ease) 700ms forwards;
}

@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.hero-scroll {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  justify-self: end;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-scroll i {
  position: relative;
  display: block;
  width: 4.5rem;
  height: 1px;
  overflow: hidden;
  background: rgba(10, 10, 8, 0.28);
}

.hero-scroll i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--ink);
  animation: scan 2s ease-in-out infinite;
  transform: translateX(-100%);
}

@keyframes scan { 50%, 100% { transform: translateX(100%); } }

/* Statement */
.statement {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 9fr) 1fr;
  min-height: 0;
  padding: clamp(7rem, 10vw, 10rem) var(--gutter);
  background: var(--paper);
}

.statement-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(0rem, 5vw, 7rem);
}

.statement-copy .eyebrow { margin-bottom: clamp(2rem, 4vw, 4.5rem); }
.statement-copy .display-title { max-width: 12ch; }

.statement-body {
  align-self: flex-end;
  max-width: 32rem;
  margin: clamp(2.5rem, 5vw, 5rem) 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  font-weight: 300;
  line-height: 1.35;
}

.statement-mark {
  align-self: end;
  justify-self: end;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
}

/* Featured projects */
.selected-work {
  background: var(--ink);
  color: var(--white);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(6rem, 9vw, 9rem) var(--gutter) clamp(3.5rem, 5vw, 5rem);
}

.section-heading .eyebrow { margin-bottom: 2rem; }

.section-heading .display-title {
  max-width: 11ch;
}

.section-heading .display-title::first-line { font-style: normal; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid currentColor;
  padding: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.arrow-link i {
  font-size: 1rem;
  font-style: normal;
  transition: transform 350ms var(--ease);
}

.arrow-link:hover i { transform: translate(0.25rem, -0.25rem); }

.featured-project {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 5vw, 7rem);
  align-items: center;
  min-height: 0;
  border-top: 1px solid var(--line-dark);
  padding: clamp(4.5rem, 7vw, 7rem) var(--gutter);
}

.project-copy {
  align-self: center;
  max-width: 28rem;
}

.project-number {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: clamp(2rem, 4vw, 4rem);
  padding-bottom: 0.75rem;
  color: var(--muted-dark);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(3.8rem, 6.4vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.project-format {
  margin: 1.6rem 0 0;
  color: var(--muted-dark);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-description {
  max-width: 24rem;
  margin: 2rem 0 2.5rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  font-weight: 300;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line-dark);
  padding: 0.8rem 1rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 200ms ease, background-color 200ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.project-images {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  align-items: end;
}

.project-image {
  --reveal-cover: var(--ink);
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #191a17;
}

.project-image:first-child { aspect-ratio: 3 / 2; }
.project-image:last-child { aspect-ratio: 2 / 3; }

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease), filter 500ms ease;
}

.project-image:last-child img { object-position: center; }
.project-image:hover img { transform: scale(1.035); }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  min-height: 0;
  background: var(--paper);
}

.about-media {
  position: relative;
  min-height: clamp(42rem, 76vw, 58rem);
  background: #d9d7d0;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 9vw, 9rem) clamp(2rem, 6vw, 8rem);
}

.about-copy .eyebrow { margin: 0 0 2rem; }
.about-copy .display-title { max-width: 10ch; }

.about-text {
  max-width: 35rem;
  margin-top: clamp(2.5rem, 5vw, 5rem);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-weight: 300;
}

.about-text p { margin: 0 0 1.25rem; }

.button {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid currentColor;
  padding: 0.85rem 1.1rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 200ms ease, background-color 200ms ease;
}

.button--dark:hover,
.button--dark:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.button--light {
  background: var(--white);
  color: var(--ink);
}

.button--light:hover,
.button--light:focus-visible {
  background: var(--acid);
}

.capabilities {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(4rem, 8vw, 9rem);
  padding: var(--section-y) var(--gutter);
  background: #d9d6cc;
  color: var(--ink);
}

.capabilities-heading .display-title {
  max-width: 9ch;
  margin: 2rem 0;
  font-size: clamp(3.5rem, 6.5vw, 7rem);
  line-height: 0.92;
}

.capabilities-list { border-top: 1px solid var(--line-light); }

.capabilities-list article {
  display: grid;
  grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1fr);
  gap: 1.5rem;
  border-bottom: 1px solid var(--line-light);
  padding: 2rem 0;
}

.capabilities-list h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
}

.capabilities-list p { max-width: 30rem; margin: 0; color: var(--muted-light); }

/* Official marks share one monochrome, optically balanced system. */
.collaborations {
  padding: clamp(4rem, 6vw, 6rem) var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line-light);
}

.collaborations:not([hidden]) {
  display: block;
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-block: 1px solid var(--line-light);
}

.client-grid a,
.client-grid > div {
  display: grid;
  flex: 1 1 9rem;
  min-height: clamp(9rem, 13vw, 12rem);
  place-items: center;
  border-right: 1px solid var(--line-light);
  padding: clamp(1.4rem, 2.8vw, 3rem);
}

.client-grid > :first-child { border-left: 1px solid var(--line-light); }

.client-grid img {
  width: 100%;
  max-width: 13rem;
  max-height: 5.5rem;
  object-fit: contain;
  filter: grayscale(1) contrast(1.25);
  opacity: 0.78;
  transition: opacity 250ms ease, transform 350ms var(--ease);
}

.client--amazon-music img {
  max-width: 12.5rem;
  max-height: 5rem;
  filter: invert(1) grayscale(1) contrast(1.25);
}
.client--merlin-properties img { max-width: 12rem; }
.client--mac-cosmetics img { max-width: 9.5rem; }
.client--vibra-mahou img {
  max-width: 7.5rem;
  max-height: 5.25rem;
  filter: invert(1) grayscale(1) contrast(1.2);
}
.client--ruteon img {
  max-width: 8.75rem;
  filter: invert(1) grayscale(1) contrast(1.25);
}
.client--tierra-ignota img { max-width: 13.5rem; }

.client--labeled {
  align-content: center;
  gap: 0.75rem;
}

.client--labeled img {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.15);
}

.client--labeled .client-name {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.client-grid a:hover img { opacity: 1; transform: scale(1.025); }

.client-name {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-align: center;
}

/* Contact and footer */
.contact {
  min-height: 0;
  padding: clamp(6rem, 9vw, 9rem) var(--gutter) clamp(3rem, 5vw, 5rem);
  background: var(--ink);
  color: var(--white);
}

.contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 1rem;
}

.contact-title {
  max-width: 15ch;
  margin: clamp(3rem, 5vw, 5rem) 0 0;
  font-family: var(--sans);
  font-size: clamp(3.5rem, 7.2vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.contact-body {
  max-width: 31rem;
  margin: clamp(2rem, 4vw, 4rem) 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 300;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 0.15em 0 0.25em;
  font-family: var(--sans);
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.contact-email i {
  font-family: var(--sans);
  font-size: 0.28em;
  font-style: normal;
  transition: transform 400ms var(--ease);
}

.contact-email:hover i { transform: translate(0.35rem, -0.35rem); }

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: space-between;
  margin-top: 2rem;
  color: var(--muted-dark);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-meta a:hover { color: var(--white); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: end;
  border-top: 1px solid var(--line-dark);
  padding: 2rem var(--gutter);
  background: var(--ink);
  color: var(--white);
}

.footer-name {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.15;
  padding-block: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a,
.footer-links button,
.site-footer > p {
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--muted-dark);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links button { cursor: pointer; }
.footer-links a:hover,
.footer-links button:hover { color: var(--white); }

/* Gallery */
.gallery-page { background: var(--ink); color: var(--white); }

.gallery-hero {
  min-height: 70svh;
  padding: 9rem var(--gutter) 4rem;
  background: var(--ink);
}

.gallery-hero__meta {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 0.8rem;
  color: var(--muted-dark);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-hero__meta p { margin: 0; }

.gallery-hero__title {
  margin: clamp(4rem, 7vw, 7rem) 0 0;
  font-family: var(--sans);
  font-size: clamp(6rem, 16vw, 17rem);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.gallery-hero__title i { font-style: normal; }

.gallery-hero__intro {
  max-width: 30rem;
  margin: clamp(2rem, 4vw, 4rem) 0 0 auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 300;
}

.gallery-section {
  min-height: 0;
  padding: 0 var(--gutter) var(--section-y);
  background: var(--ink);
}

.gallery-toolbar {
  position: sticky;
  top: 4rem;
  z-index: 50;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: clamp(2rem, 4vw, 4rem);
  padding: 0.85rem 0;
  background: rgba(10, 10, 8, 0.9);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.gallery-toolbar::-webkit-scrollbar { display: none; }

.gallery-toolbar button {
  flex: 0 0 auto;
  border: 1px solid var(--line-dark);
  padding: 0.55rem 0.8rem;
  background: transparent;
  color: var(--muted-dark);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}

.gallery-toolbar button:hover,
.gallery-toolbar button.is-active {
  background: var(--white);
  color: var(--ink);
}

.gallery-context {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  min-height: clamp(15rem, 26vw, 25rem);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
  padding: clamp(1rem, 2vw, 2rem) 0 clamp(2.5rem, 5vw, 5rem);
}

.gallery-context > div:first-child {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-context .eyebrow {
  margin: 0;
  color: var(--muted-dark);
}

.gallery-context h2 {
  max-width: 12ch;
  margin: 3rem 0 0;
  font-family: var(--sans);
  font-size: clamp(3.5rem, 6vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1.08;
  padding-block: 0.08em;
}

.gallery-context__details {
  grid-column: 9 / -1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-context__details p { margin: 0; }

.gallery-context__details p:first-child {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 300;
}

.gallery-context__details p:last-child {
  border-top: 1px solid var(--line-dark);
  margin-top: 2.25rem;
  padding-top: 0.75rem;
  color: var(--acid);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-context.is-updating > div {
  animation: context-change 600ms var(--ease) both;
}

.gallery-context.is-updating .gallery-context__details { animation-delay: 60ms; }

@keyframes context-change {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(1.5rem, 2.3vw, 3rem) clamp(0.75rem, 1.5vw, 1.5rem);
}

.gallery-item { grid-column: span 6; }
.gallery-item--portrait { grid-column: span 4; }
.gallery-item[hidden] { display: none; }
.gallery-item.reveal { opacity: 1; transform: none; }

.gallery-item button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-item__media {
  position: relative;
  overflow: hidden;
  background: #161713;
}

.gallery-item--wide .gallery-item__media { aspect-ratio: 3 / 2; }
.gallery-item--portrait .gallery-item__media { aspect-ratio: 2 / 3; }

.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease), opacity 350ms ease;
}

.gallery-item button:hover img { transform: scale(1.035); }

.gallery-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line-dark);
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  color: var(--muted-dark);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-contact {
  padding: clamp(5rem, 8vw, 8rem) var(--gutter);
  background: var(--paper);
  color: var(--ink);
}

.gallery-contact > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  margin-top: 3rem;
  font-family: var(--sans);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1.12;
  padding: 0.16em 0 0.3em;
}

.gallery-contact > a i {
  font-family: var(--sans);
  font-size: 0.2em;
  font-style: normal;
}

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(7, 7, 6, 0.98);
  color: var(--white);
  opacity: 0;
  transition: opacity 250ms ease;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 5rem;
  align-items: center;
  opacity: 1;
}

.lightbox::backdrop { background: rgba(7, 7, 6, 0.98); }

.lightbox figure {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: 4.5rem 0 1.25rem;
}

.lightbox-stage {
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  margin-top: 1rem;
  padding-top: 0.75rem;
  color: var(--muted-dark);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  padding: 0.5rem;
  background: transparent;
  color: var(--white);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-close i { font-size: 1.6rem; font-style: normal; line-height: 0.5; }

.lightbox-arrow {
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 200ms ease, transform 250ms var(--ease);
}

.lightbox-arrow:hover { opacity: 1; }
.lightbox-arrow--prev:hover { transform: translateX(-0.25rem); }
.lightbox-arrow--next:hover { transform: translateX(0.25rem); }

/* Legal */
.legal-page { background: var(--paper); color: var(--ink); }
.legal-page .site-nav { color: var(--white); background: var(--ink); mix-blend-mode: normal; }

.legal-main {
  min-height: 80svh;
  padding: clamp(9rem, 14vw, 13rem) var(--gutter) var(--section-y);
}

.legal-wrap {
  display: grid;
  grid-template-columns: minmax(12rem, 0.6fr) minmax(0, 1.4fr);
  gap: 4rem;
  max-width: 76rem;
  margin: 0 auto;
}

.legal-wrap h1 {
  max-width: 8ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.86;
}

.legal-copy { border-top: 1px solid var(--line-light); }
.legal-copy section { border-bottom: 1px solid var(--line-light); padding: 1.5rem 0; }
.legal-copy h2 { margin: 0 0 0.75rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.legal-copy p { max-width: 42rem; margin: 0; color: var(--muted-light); font-size: 1rem; }

/* CMS hand-off */
.admin-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: var(--gutter);
  background:
    radial-gradient(circle at 82% 15%, rgba(197, 255, 0, 0.13), transparent 28rem),
    var(--ink);
  color: var(--white);
}

.admin-panel {
  width: min(100%, 58rem);
  border: 1px solid var(--line-dark);
  padding: clamp(2rem, 7vw, 6rem);
}

.admin-panel h1 {
  max-width: 12ch;
  margin: 2rem 0;
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.admin-panel h1 em { font-family: var(--serif); font-weight: 400; }

.admin-panel > p:not(.eyebrow) {
  max-width: 40rem;
  margin: 0 0 2rem;
  color: var(--muted-dark);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.admin-panel .button { gap: 1rem; }

.admin-back {
  display: block;
  width: max-content;
  margin-top: 2rem;
  color: var(--muted-dark);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-back:hover { color: var(--white); }

/* Branded fallback */
.not-found-page {
  min-height: 100svh;
  background: var(--ink);
  color: var(--white);
}

.not-found-main {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  overflow: hidden;
  padding: clamp(8rem, 14vw, 13rem) var(--gutter) var(--gutter);
}

.not-found-code {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--serif);
  font-size: min(62vw, 52rem);
  letter-spacing: -0.1em;
  line-height: 0.7;
  transform: translate(-52%, -50%);
}

.not-found-main > div { position: relative; z-index: 1; }

.not-found-main h1 {
  max-width: 10ch;
  margin: 1.5rem 0 2.5rem;
  font-size: clamp(4.5rem, 11vw, 10rem);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 0.78;
}

.not-found-main h1 em { font-family: var(--serif); font-weight: 400; }

/* Pointer cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10002;
  display: none;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 150ms ease, transform 250ms var(--ease);
}

.cursor span {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .cursor { display: grid; }
  body.cursor-visible .cursor { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Responsive */
@media (max-width: 960px) {
  .nav-name,
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .menu-open .site-nav { color: var(--white); mix-blend-mode: normal; }

  .hero-content { padding-right: calc(var(--gutter) + 0.4rem); padding-left: calc(var(--gutter) + 0.4rem); }
  .hero-meta { align-items: flex-start; flex-direction: column; gap: 0.45rem; }
  .hero-title { font-size: clamp(4.2rem, 15vw, 8.25rem); line-height: 0.9; }

  .statement { grid-template-columns: 1fr auto; gap: 2rem; }
  .statement-copy { padding: 0; }
  .statement-mark { grid-column: 2; }

  .section-heading { align-items: flex-start; flex-direction: column; }

  .featured-project {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-copy { max-width: 34rem; }
  .project-images { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }

  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 70svh; }
  .about-copy { min-height: 0; }

  .client-grid a,
  .client-grid > div { flex-basis: 12rem; }
  .capabilities { grid-template-columns: 1fr; }

  .gallery-hero { min-height: 64svh; }
  .gallery-context > div:first-child { grid-column: 1 / span 8; }
  .gallery-context__details { grid-column: 9 / -1; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item { grid-column: span 2; }
  .gallery-item--portrait { grid-column: span 1; }

  .legal-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 1.1rem; --section-y: 5rem; }
  html { scroll-padding-top: 4.75rem; }
  .site-nav { min-height: 4.5rem; }
  .hero-frame { inset: 5.25rem 0.85rem 0.9rem; }
  .hero-content { padding: 6.1rem 1.25rem 1.75rem; }
  .hero-media img { object-position: 61% center; }
  .hero-title { font-size: clamp(3.6rem, 17.2vw, 6.2rem); line-height: 0.92; letter-spacing: -0.045em; }
  .hero-meta { max-width: 14rem; line-height: 1.4; }
  .hero-scroll { justify-self: start; }

  .statement { grid-template-columns: 1fr; min-height: 0; }
  .statement { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .statement-copy .display-title { max-width: 12ch; font-size: clamp(3.1rem, 13.5vw, 4.8rem); line-height: 1; }
  .statement-body { align-self: flex-start; }
  .statement-mark { grid-column: 1; }

  .section-heading { gap: 2rem; }
  .section-heading { padding-top: 5.5rem; padding-bottom: 3.5rem; }
  .section-heading .display-title { max-width: 11ch; font-size: clamp(3.1rem, 13.5vw, 4.8rem); line-height: 1; }
  .featured-project { gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
  .project-copy h3 { font-size: clamp(3.5rem, 16vw, 5rem); line-height: 1; }
  .project-images { grid-template-columns: 1fr; }
  .project-image:first-child,
  .project-image:last-child { aspect-ratio: 3 / 2; }
  .project-image:last-child { width: 72%; justify-self: end; }

  .about-media { min-height: 60svh; }
  .about-copy { min-height: 0; padding-right: var(--gutter); padding-left: var(--gutter); }
  .about-copy { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .about-copy .eyebrow { margin-top: 0; }
  .about-copy .display-title { max-width: 11ch; font-size: clamp(3.2rem, 14vw, 4.8rem); line-height: 1; }

  .contact { min-height: 0; padding-top: 5.5rem; padding-bottom: 3.5rem; }
  .contact-title { max-width: 12ch; font-size: clamp(3.1rem, 13vw, 4.5rem); line-height: 1; }
  .contact-email { font-size: clamp(3rem, 14vw, 4.5rem); line-height: 1.15; }
  .contact-meta { flex-direction: column; }

  .site-footer { grid-template-columns: 1fr auto; gap: 2rem 1rem; }
  .footer-name { grid-column: 1 / -1; }
  .footer-links { flex-wrap: wrap; gap: 0.75rem 1.2rem; }

  .gallery-hero { min-height: 58svh; padding-top: 7rem; padding-bottom: 3rem; }
  .gallery-hero__title { margin-top: 4.5rem; font-size: 24vw; line-height: 0.95; }
  .gallery-hero__intro { margin-left: 0; }
  .gallery-toolbar {
    top: 3.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    overflow: visible;
  }
  .gallery-toolbar button { flex: 1 1 auto; width: auto; white-space: normal; }

  .capabilities-list article { grid-template-columns: 1fr; gap: 0.75rem; }

  .collaborations { padding-top: 4rem; padding-bottom: 4rem; }
  .client-grid a,
  .client-grid > div { flex-basis: calc(50% - 1px); min-height: 9.5rem; padding: 2rem 1.5rem; }
  .client-grid > :last-child { flex-basis: 100%; }
  .client-grid .client--tierra-ignota { padding-right: 0.85rem; padding-left: 0.85rem; }

  .gallery-context {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 3.5rem;
    padding-top: 1.5rem;
  }
  .gallery-context > div:first-child,
  .gallery-context__details { grid-column: 1; }
  .gallery-context { gap: 2.5rem; }
  .gallery-context h2 { max-width: 12ch; margin-top: 3.5rem; font-size: clamp(3.2rem, 14vw, 4.8rem); line-height: 1.1; }

  .gallery-grid { gap: 2rem 0.65rem; }
  .gallery-item__meta { align-items: flex-start; flex-direction: column; gap: 0.25rem; }

  .gallery-contact > a { font-size: clamp(3.5rem, 15vw, 5.5rem); line-height: 1.15; }

  /* Mobile content must remain visible even if an intersection event is delayed. */
  .reveal { opacity: 1; transform: none; }
  .reveal-image::after { transform: scaleY(0); }
  .reveal-image img { transform: scale(1); }

  .lightbox[open] { grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; }
  .lightbox figure { padding-top: 4rem; }
  .lightbox-close span { display: none; }

  .legal-main { padding-top: 8rem; }
  .legal-wrap { gap: 3rem; }
}

@media (max-width: 360px) {
  .hero-content { padding-right: 1.1rem; padding-left: 1.1rem; }
  .hero-meta { max-width: 15rem; font-size: 0.58rem; letter-spacing: 0.12em; }
  .hero-title {
    font-size: clamp(3rem, 15.5vw, 3.5rem);
    letter-spacing: -0.045em;
    line-height: 0.96;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .intro-curtain { display: none; }
  .reveal,
  .hero-reveal { opacity: 1; transform: none; }
  .reveal-image::after { transform: scaleY(0); }
  .reveal-image img,
  .hero-media img,
  .hero-title i,
  .gallery-hero__title i { transform: none; }
}
