/* UNO DE TREINTA Y UNO - home */

:root {
  --paper: #ffffff;
  --paper-2: #f1f1ef;
  --ink: #171717;
  --ink-soft: #5b5b58;
  --ink-faint: #bdbbb6;
  --line: rgba(23, 23, 23, 0.14);
  --line-strong: rgba(23, 23, 23, 0.5);
  --field: rgba(23, 23, 23, 0.035);
  --accent: #d3d0c9;
  --font-sans: 'Archivo', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --max: 1440px;
  --gutter: 3.75rem;
  --nav-h: 116px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--paper);
}

body {
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
}

h1,
h2,
h3 {
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 1rem;
  z-index: 30;
  padding: 0.7rem 0.9rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
  transition: transform 0.35s var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(100%, var(--max));
  min-height: var(--nav-h);
  margin-inline: auto;
  padding: 1.5rem var(--gutter) 1.25rem;
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 2rem;
}

.nav__brand {
  width: 82px;
  height: 82px;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease);
}

.nav__brand:hover {
  transform: translateY(-2px);
}

.nav__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav__menu {
  display: flex;
  justify-content: flex-end;
  gap: 4.75rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}

.nav__link::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.8rem;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}

.nav__link:hover,
.nav__link--active {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav__link:hover::before,
.nav__link--active::before {
  transform: scale(1);
}

.nav__toggle {
  display: none;
}

.hero,
.section-pad,
.statement,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero {
  padding-top: 2rem;
  padding-bottom: 7rem;
}

.hero__media {
  border-top: 1px solid var(--line-strong);
  padding-top: 2rem;
}

.hero__video-shell {
  position: relative;
  width: 100%;
  height: clamp(30rem, 58vw, 48rem);
  overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.58) contrast(1.06) grayscale(0.08);
  transform: scale(1.01);
}

.hero__media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.34)),
    linear-gradient(to right, rgba(255, 255, 255, 0.2), transparent 36%, rgba(255, 255, 255, 0.16));
}

.hero__caption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__caption span:last-child {
  text-align: right;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.28fr);
  gap: 4rem;
  align-items: end;
  padding-top: 4.75rem;
}

.eyebrow,
.section-kicker,
.project-card__text span,
.service-item__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
}

.hero__title {
  max-width: 920px;
  font-size: 5.8rem;
  font-weight: 800;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.hero__title-line {
  display: block;
}

.hero__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  max-width: 520px;
  padding-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  font-weight: 500;
}

.hero__ticker {
  margin-top: 4.75rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 34s linear infinite;
}

.hero__ticker span {
  display: inline-flex;
  align-items: center;
  min-height: 4.1rem;
  padding-right: 3.5rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__ticker span::before {
  content: '';
  width: 0.46rem;
  height: 0.46rem;
  margin-right: 1rem;
  background: var(--accent);
}

.text-reveal {
  display: block;
}

.text-reveal__word {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity, filter;
}

.text-reveal:not(.gsap-ready) .text-reveal__word {
  opacity: 1;
}

@keyframes tickerMove {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.square-mark {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.42rem;
  background: var(--accent);
}

.section-pad {
  padding-top: 8rem;
  padding-bottom: 8.5rem;
  border-top: 1px solid var(--line-strong);
}

.section-kicker {
  display: flex;
  gap: 1rem;
  color: var(--ink-faint);
  margin-bottom: 2.75rem;
}

.section-kicker span {
  color: var(--accent);
}

.services__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.services__heading,
.projects__heading h2,
.identity__index h2,
.contact__header h2 {
  font-size: 4.3rem;
  font-weight: 800;
}

.services__heading {
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.services__list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
}

.service-item {
  display: grid;
  grid-template-columns: 5rem minmax(16rem, 0.42fr) minmax(0, 0.58fr);
  gap: 2rem;
  align-items: start;
  padding: 2.6rem 0 2.85rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.45s var(--ease), padding-inline 0.45s var(--ease);
}

.service-item:hover {
  padding-inline: 1rem;
  background: var(--field);
}

.service-item h3 {
  font-size: clamp(1.7rem, 2.6vw, 3.05rem);
  font-weight: 800;
  text-transform: uppercase;
}

.service-item__lead {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
}

.service-item > p:last-child {
  max-width: 48ch;
  padding-top: 0.15rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.projects__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.text-link:hover {
  color: var(--ink-soft);
  transform: translateY(-2px);
}

.project-wall {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1.05fr 1fr;
  grid-auto-rows: 19rem;
  gap: 2rem;
}

.project-card {
  position: relative;
  min-height: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.project-card--wide {
  grid-column: span 2;
}

.project-card--tall {
  grid-row: span 2;
}

.project-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.02);
  transform: scale(1.01);
  transition: transform 0.75s var(--ease), filter 0.75s var(--ease);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(22, 22, 20, 0.78), rgba(22, 22, 20, 0.08) 64%);
}

.project-card:hover img {
  transform: scale(1.06);
  filter: saturate(0.82) contrast(1.04);
}

.project-card__text {
  padding: 1.5rem;
  color: var(--paper);
}

.project-card__text span {
  color: rgba(255, 255, 255, 0.72);
}

.project-card__text h3 {
  margin-top: 0.7rem;
  font-size: 2.4rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card__text p {
  max-width: 34ch;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.identity {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  gap: 5rem;
}

.principles {
  display: grid;
  gap: 4rem;
  margin-top: 5rem;
}

.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
}

.principles h3 {
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
}

.principles p {
  margin-top: 0.2rem;
  font-weight: 600;
}

.identity__essay {
  align-self: start;
  padding: 4.5rem;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.9;
}

.identity__essay summary {
  display: none;
}

.identity__essay p + p {
  margin-top: 2rem;
}

.statement {
  padding-top: 5rem;
  padding-bottom: 7rem;
  border-top: 1px solid var(--line-strong);
}

.statement p {
  max-width: 1260px;
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1.08;
}

.statement p::first-letter {
  color: var(--ink-faint);
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 0.6fr);
  gap: 5rem;
  background: var(--paper-2);
  max-width: none;
  width: 100%;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  border-top: 0;
}

.contact-form {
  display: grid;
  gap: 1.4rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  min-height: 3rem;
  outline: none;
  resize: vertical;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  background: var(--field);
  border-color: var(--accent);
}

.form-error,
.form-status {
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.form-error {
  color: var(--accent);
}

.form-status {
  color: var(--ink-soft);
}

.submit-button {
  min-height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.submit-button:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0) scale(0.99);
}

.submit-button:disabled {
  opacity: 0.58;
  pointer-events: none;
}

.site-footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.site-footer__brand {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer__nav,
.site-footer__meta {
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  transition: color 0.3s var(--ease);
}

.site-footer a:hover {
  color: var(--accent);
}

.case-page .site-header {
  border-bottom-color: rgba(23, 23, 23, 0.08);
}

.case-shell,
.case-index {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.case-hero {
  min-height: clamp(28rem, 58vh, 44rem);
  display: grid;
  align-content: end;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--line-strong);
}

.case-back {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 5rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.case-back::before {
  content: '';
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.85rem;
  background: var(--accent);
}

.case-back:hover {
  color: var(--ink);
  transform: translateX(-0.25rem);
}

.case-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.32fr);
  gap: 4rem;
  align-items: end;
}

.case-hero__title {
  max-width: 1040px;
  font-size: clamp(5rem, 15vw, 13.5rem);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.case-hero__intro {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.25rem;
  font-weight: 600;
}

.case-feature {
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
  background: var(--paper-2);
}

.case-feature img {
  width: 100%;
  height: clamp(30rem, 62vw, 54rem);
  object-fit: cover;
  filter: saturate(0.64) contrast(1.04) grayscale(0.06);
}

.case-feature__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: 0.4fr 1fr auto;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.case-feature__caption span:last-child {
  text-align: right;
}

.case-story {
  display: block;
}

.case-story__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 0.52fr);
  gap: 6rem;
}

.case-story__title {
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 850;
  line-height: 0.95;
}

.case-story__text {
  align-self: start;
  max-width: 62ch;
  padding-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.72;
}

.case-story__text p + p {
  margin-top: 1.35rem;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 8rem;
}

.case-gallery__item {
  grid-column: span 6;
  min-height: 28rem;
  overflow: hidden;
  background: var(--paper-2);
}

.case-gallery__item--wide {
  grid-column: span 12;
  min-height: 36rem;
}

.case-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.03);
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.case-gallery__item:hover img {
  transform: scale(1.035);
  filter: saturate(0.82) contrast(1.05);
}

.case-next {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.case-next a {
  min-height: 18rem;
  display: grid;
  grid-template-columns: minmax(0, 0.25fr) minmax(0, 0.75fr);
  gap: 3rem;
  align-items: center;
  transition: background 0.45s var(--ease), padding-inline 0.45s var(--ease);
}

.case-next a:hover {
  background: var(--paper-2);
  padding-inline: 1rem;
}

.case-next span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.case-next__title {
  font-size: clamp(3.8rem, 10vw, 10rem);
  font-weight: 900;
  line-height: 0.86;
  text-transform: uppercase;
}

.case-index {
  padding-top: 5rem;
  padding-bottom: 8rem;
}

.case-index__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(280px, 0.35fr);
  gap: 4rem;
  align-items: end;
  min-height: 32rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line-strong);
}

.case-index__title {
  font-size: clamp(4.5rem, 13vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
}

.case-index__intro {
  max-width: 45ch;
  color: var(--ink-soft);
  font-size: 1.18rem;
  font-weight: 600;
}

.case-list {
  display: grid;
  gap: 0;
}

.case-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 0.8fr) minmax(260px, 0.2fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.45s var(--ease), padding-inline 0.45s var(--ease);
}

.case-row:hover {
  background: var(--field);
  padding-inline: 1rem;
}

.case-row__num,
.case-row__meta {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.case-row__title {
  font-size: clamp(2.8rem, 8vw, 7.4rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.case-row__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.case-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.03);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.case-row:hover .case-row__media img {
  transform: scale(1.05);
  filter: saturate(0.86) contrast(1.05);
}

.js .reveal {
  opacity: 0;
  transform: translateY(2.4rem);
  filter: blur(16px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
}

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

@media (min-width: 1180px) {
  .project-wall .project-card:nth-child(4) {
    transform: translateY(4rem);
  }
}

@media (max-width: 1180px) {
  :root {
    --gutter: 2rem;
    --nav-h: 98px;
  }

  .nav {
    min-height: var(--nav-h);
  }

  .nav__brand {
    width: 70px;
    height: 70px;
  }

  .nav__menu {
    gap: 2.4rem;
  }

  .hero__title {
    font-size: 4.4rem;
  }

  .services__heading,
  .projects__heading h2,
  .identity__index h2,
  .contact__header h2,
  .statement p {
    font-size: 3.35rem;
  }

  .project-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 1.1rem;
    --nav-h: 66px;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    grid-template-columns: 56px 1fr;
    padding-block: 0.8rem;
  }

  .nav__brand {
    width: 56px;
    height: 56px;
  }

  .nav__toggle {
    justify-self: end;
    display: grid;
    align-content: center;
    gap: 0.45rem;
    width: 44px;
    height: 44px;
  }

  .nav__toggle span {
    width: 26px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.35s var(--ease);
  }

  .nav__toggle[aria-expanded='true'] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav__toggle[aria-expanded='true'] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line-strong);
    transform: translateY(-120%);
    transition: transform 0.45s var(--ease);
  }

  .nav__menu--open {
    transform: translateY(0);
  }

  .nav__link {
    min-height: 54px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
  }

  .hero {
    padding-top: 1.25rem;
    padding-bottom: 4.8rem;
  }

  .hero__media {
    padding-top: 1.1rem;
  }

  .hero__image {
    height: 20rem;
  }

  .hero__video-shell {
    height: 20rem;
  }

  .hero__caption {
    display: none;
  }

  .hero__caption span:last-child {
    text-align: left;
  }

  .hero__grid,
  .services__layout,
  .projects__heading,
  .identity,
  .contact,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 1.5rem;
    padding-top: 2.5rem;
  }

  .hero__title {
    font-size: 3.2rem;
  }

  .hero__intro {
    max-width: none;
    font-size: 1rem;
  }

  .hero__ticker {
    margin-top: 3rem;
  }

  .section-pad {
    padding-top: 5rem;
    padding-bottom: 5.5rem;
  }

  .services__heading,
  .projects__heading h2,
  .identity__index h2,
  .contact__header h2,
  .statement p {
    font-size: 2.6rem;
  }

  .services__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .service-item h3 {
    font-size: 1.75rem;
  }

  .project-wall {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .project-card,
  .project-card--wide,
  .project-card--tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 25rem;
  }

  .identity__essay {
    padding: 2rem 1.25rem;
    font-size: 0.92rem;
  }

  .identity__essay summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.25rem;
    color: var(--ink);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    list-style: none;
  }

  .identity__essay summary::-webkit-details-marker {
    display: none;
  }

  .identity__essay summary::after {
    content: '+';
    font-size: 1.15rem;
  }

  .identity__essay[open] summary {
    margin-bottom: 1.5rem;
  }

  .identity__essay[open] summary::after {
    content: '-';
  }

  .principles {
    margin-top: 3rem;
    gap: 2.3rem;
  }

  .statement {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .contact {
    padding-inline: var(--gutter);
  }

  .case-hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .case-back {
    margin-bottom: 3rem;
  }

  .case-hero__grid,
  .case-story__grid,
  .case-index__hero,
  .case-row,
  .case-next a {
    grid-template-columns: 1fr;
  }

  .case-hero__grid,
  .case-story__grid,
  .case-index__hero {
    gap: 2rem;
  }

  .case-hero__title,
  .case-index__title {
    font-size: 4.2rem;
  }

  .case-feature img {
    height: 28rem;
  }

  .case-feature__caption {
    grid-template-columns: 1fr;
  }

  .case-feature__caption span:last-child {
    text-align: left;
  }

  .case-gallery {
    grid-template-columns: 1fr;
    padding-bottom: 5rem;
  }

  .case-gallery__item,
  .case-gallery__item--wide {
    grid-column: auto;
    min-height: 24rem;
  }

  .case-next a {
    min-height: 14rem;
    gap: 1.5rem;
  }

  .case-row {
    gap: 1rem;
  }

  .case-row__media {
    max-width: 26rem;
  }
}

@media (max-width: 520px) {
  .hero__title {
    font-size: 2.55rem;
  }

  .services__heading,
  .projects__heading h2,
  .identity__index h2,
  .contact__header h2,
  .statement p {
    font-size: 2.1rem;
  }

  .project-card,
  .project-card--wide,
  .project-card--tall {
    min-height: 21rem;
  }

  .hero__video-shell {
    height: 16rem;
  }

  .case-hero__title,
  .case-index__title {
    font-size: 3.2rem;
  }

  .case-story__title,
  .case-next__title {
    font-size: 2.7rem;
  }

  .case-feature img,
  .case-gallery__item,
  .case-gallery__item--wide {
    min-height: 0;
    height: 19rem;
  }
}

/* ─────────────────────────────────────
   PROJECT SLIDER (ps)
───────────────────────────────────── */
.ps {
  border-top: 1px solid var(--line-strong);
}

.ps__header {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 8rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 2rem;
  align-items: end;
}

.ps__header .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
}

.ps__header h2 {
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 1;
}

.ps__header .text-link {
  align-self: end;
}

/* Pin wrapper — GSAP pineará esto */
.ps__pin-wrap {
  position: relative;
  overflow: hidden;
}

/* Track horizontal con los slides */
.ps__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* Cada slide ocupa el viewport */
.ps__slide {
  position: relative;
  width: 100vw;
  height: calc(100dvh - var(--nav-h));
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-decoration: none;
  color: var(--paper);
  flex-shrink: 0;
}

/* Imagen full-bleed */
.ps__slide-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ps__slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) contrast(1.06);
  transform: scale(1.04);
  transition: transform 1s var(--ease), filter 1s var(--ease);
  will-change: transform;
}

/* Overlay degradado */
.ps__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(14,13,11,0.88) 0%, rgba(14,13,11,0.2) 46%, transparent 70%),
    linear-gradient(to right, rgba(14,13,11,0.22) 0%, transparent 55%);
  transition: opacity 0.8s var(--ease);
}

/* Info texto en la parte baja */
.ps__slide-info {
  position: relative;
  z-index: 2;
  padding: 2.5rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transform: translateY(6px);
  transition: transform 0.7s var(--ease);
}

.ps__slide-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.52);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.ps__slide-title {
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease) 0.06s, transform 0.6s var(--ease) 0.06s;
}

.ps__slide-desc {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  max-width: 36ch;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease) 0.12s, transform 0.55s var(--ease) 0.12s;
}

/* Número de proyecto grande en esquina */
.ps__slide-num {
  position: absolute;
  top: 2rem;
  right: var(--gutter);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.1em;
}

/* Estado activo — anima cuando el slide está en foco */
.ps__slide.is-active .ps__slide-cat,
.ps__slide.is-active .ps__slide-title,
.ps__slide.is-active .ps__slide-desc {
  opacity: 1;
  transform: translateY(0);
}

.ps__slide.is-active .ps__slide-img img {
  transform: scale(1);
  filter: saturate(0.78) contrast(1.04);
}

/* Primer slide visible por defecto sin JS */
.ps__slide:first-child .ps__slide-cat,
.ps__slide:first-child .ps__slide-title,
.ps__slide:first-child .ps__slide-desc {
  opacity: 1;
  transform: translateY(0);
}

/* UI: barra de progreso y contador */
.ps__ui {
  position: absolute;
  bottom: 1.75rem;
  right: var(--gutter);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ps__progress-bar {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.ps__progress-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 25%;
  background: #fff;
  transform-origin: left;
  transition: width 0.6s var(--ease);
}

.ps__counter {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}

.ps__counter-cur {
  color: #fff;
}

/* Mobile: apila slides verticalmente */
@media (max-width: 860px) {
  .ps__header {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }

  .ps__track {
    flex-direction: column;
    width: 100%;
  }

  .ps__slide {
    width: 100%;
    height: 75vw;
    min-height: 340px;
  }

  .ps__slide-cat,
  .ps__slide-title,
  .ps__slide-desc {
    opacity: 1 !important;
    transform: none !important;
  }

  .ps__slide-title {
    font-size: clamp(2.2rem, 9vw, 4rem);
  }

  .ps__ui { display: none; }
}

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