:root {
  --paper: #f3efe6;
  --bone: #e7e0d3;
  --ink: #171615;
  --muted: #6f6a63;
  --red: #8e1d2c;
  --blush: #ddb8bc;
  --sage: #a8b39a;
  --butter: #f2e6b7;
  --earth: #c7a78d;
  --warm-gray: #b8b3aa;
  --acid: #b6c15b;
  --powder-blue: #b7c7d6;
  --electric-blue: #2a58ff;
  --silver: #c9c9cf;
  --line: rgba(23, 22, 21, 0.24);
  --serif: "DM Serif Display", Didot, "Bodoni MT", Georgia, serif;
  --sans: "Söhne", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  mix-blend-mode: difference;
  color: #fff;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.site-header nav { display: flex; gap: 28px; }
.site-header a { position: relative; }
.site-header nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hero {
  height: 195svh;
  position: relative;
}
.hero-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: radial-gradient(ellipse at 83% 78%, rgba(168, 179, 154, .18), transparent 38%), var(--paper); }
.hero-kicker { position: absolute; top: 12svh; left: 32px; z-index: 3; margin: 0; color: var(--red); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-title { position: absolute; top: 19svh; left: 0; right: 0; z-index: 4; margin: 0; color: #fff; mix-blend-mode: difference; font: 400 clamp(4rem, 10.3vw, 12rem)/.84 var(--serif); letter-spacing: -.055em; text-align: center; white-space: nowrap; pointer-events: none; opacity: var(--hero-title-opacity, 1); transform: translateY(var(--hero-title-shift, 0px)); }
.hero-portrait { position: absolute; z-index: 2; left: 50%; top: var(--hero-photo-center, 59svh); width: var(--hero-photo-width, 68vw); aspect-ratio: 1600 / 1066; margin: 0; transform: translate(-50%, -50%); }
.hero-portrait img { width: 100%; height: 100%; object-fit: contain; }
.hero-side { position: absolute; z-index: 1; left: 32px; top: 54%; margin: 0; color: var(--red); font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 2rem); font-style: italic; line-height: 1.02; opacity: var(--hero-fade, 1); }
.hero-role { position: absolute; z-index: 3; right: 32px; bottom: 95px; width: 21ch; margin: 0; font-size: .95rem; opacity: var(--hero-fade, 1); }
.explore { position: absolute; z-index: 3; right: 32px; bottom: 32px; width: 21ch; display: flex; justify-content: space-between; border-bottom: 1px solid var(--ink); padding: 0 0 7px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: var(--hero-fade, 1); }
.explore span { color: var(--red); }

.manifesto { position: relative; isolation: isolate; overflow: hidden; padding: 150px 5vw 170px; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 6% 79%, rgba(221, 184, 188, .22), transparent 34%), var(--paper); }
.manifesto::before { content: ""; position: absolute; z-index: -1; left: 5vw; bottom: 4vw; width: clamp(250px, 32vw, 480px); aspect-ratio: 1; background: url("./assets/flor-puntitos.png") center / contain no-repeat; opacity: .72; transform: rotate(-10deg); pointer-events: none; }
.manifesto::after { content: ""; position: absolute; z-index: -1; left: 2vw; bottom: 5%; width: min(24vw, 360px); height: min(22vw, 320px); border-radius: 50%; background: var(--sage); filter: blur(35px); opacity: .15; pointer-events: none; }
.eyebrow { margin: 0 0 60px; color: var(--red); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.manifesto-lead { max-width: 1120px; margin: 0 auto; font-family: var(--serif); font-size: clamp(2.4rem, 5.1vw, 5.7rem); line-height: .98; letter-spacing: -.035em; }
.process { display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 20px; margin-top: 100px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.process i { color: var(--red); font-family: var(--serif); font-size: 1.4rem; font-style: normal; }

.work { position: relative; padding: 40px 0 110px; overflow: hidden; }
.work::before { content: ""; position: absolute; top: 22px; right: 3vw; width: clamp(76px, 12vw, 180px); height: 18px; background: repeating-linear-gradient(90deg, var(--blush) 0 2px, transparent 2px 10px); transform: rotate(-5deg); opacity: .7; pointer-events: none; }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: end; margin-bottom: 76px; padding-inline: 32px; }
.section-head .eyebrow { grid-column: 1 / 4; align-self: start; margin: 12px 0 0; }
.section-head h2 { grid-column: 4 / 10; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(5rem, 11vw, 10rem); line-height: .72; letter-spacing: -.06em; }
.section-head h2 em { color: var(--red); font-weight: 400; }
.section-head > p:last-child { grid-column: 10 / 13; margin: 0; max-width: 29ch; }

.carousel-controls { display: flex; justify-content: space-between; align-items: center; margin: 0 32px 22px; padding-top: 12px; border-top: 1px solid var(--ink); }
.carousel-count { display: flex; align-items: baseline; gap: 12px; margin: 0; color: var(--muted); font-size: .75rem; letter-spacing: .1em; }
.carousel-count [data-carousel-current] { color: var(--red); font-family: var(--serif); font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrows button { width: 48px; height: 42px; padding: 0; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 1.35rem var(--serif); cursor: pointer; transition: color .25s ease, background .25s ease; }
.carousel-arrows button:hover:not(:disabled) { color: var(--paper); background: var(--ink); }
.carousel-arrows button:disabled { opacity: .32; cursor: default; }
.carousel-arrows button:focus-visible, .carousel-card:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.work-carousel { display: flex; gap: 18px; overflow-x: auto; padding: 0 32px 16px; scroll-padding-inline: 32px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-inline: contain; }
.work-carousel::-webkit-scrollbar { display: none; }
.carousel-card { flex: 0 0 clamp(280px, 31vw, 430px); min-width: 0; scroll-snap-align: start; }
.carousel-frame { display: block; width: 100%; }
.carousel-frame img { width: 100%; height: auto; object-fit: contain; transition: filter .45s ease; }
.carousel-card:hover .carousel-frame img { filter: saturate(.85); }
.carousel-caption { display: grid; grid-template-columns: 32px minmax(0, 1fr) 24px; gap: 4px 10px; align-items: start; padding: 16px 0 0; }
.carousel-number, .carousel-category, .carousel-caption i { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-style: normal; }
.carousel-number, .carousel-category { color: var(--muted); }
.carousel-caption strong { grid-column: 2; font: 400 clamp(1.8rem, 2.8vw, 3.5rem)/.9 var(--serif); letter-spacing: -.035em; }
.carousel-category { grid-column: 2; }
.carousel-caption i { grid-column: 3; grid-row: 1; color: var(--red); text-align: right; }
.work .interlude { margin: 110px 32px 0; }

.about { display: grid; grid-template-columns: repeat(12, 1fr); background: var(--sage); }
.about-image { grid-column: 1 / 7; display: flex; align-items: center; justify-content: center; padding: 70px 0; }
.about-image img { width: auto; max-width: 100%; height: auto; max-height: min(78vh, 650px); object-fit: contain; }
.about-copy { grid-column: 8 / 12; align-self: center; padding: 100px 0; }
.about-copy .eyebrow { color: var(--ink); margin-bottom: 45px; }
.about-copy h2 { max-width: 9ch; margin: 0 0 42px; font-family: var(--serif); font-size: clamp(3.5rem, 6vw, 7rem); font-weight: 400; line-height: .88; letter-spacing: -.045em; }
.about-copy > p:last-child { max-width: 46ch; font-size: 1.05rem; }

.contact { position: relative; isolation: isolate; overflow: hidden; padding: 160px 5vw 110px; min-height: 75svh; background: radial-gradient(ellipse at 88% 40%, rgba(242, 230, 183, .34), transparent 38%), var(--paper); }
.contact::before { content: ""; position: absolute; z-index: -1; right: 5vw; top: 12%; width: clamp(250px, 30vw, 440px); aspect-ratio: 1; background: url("./assets/flor-puntitos.png") center / contain no-repeat; opacity: .76; transform: rotate(10deg); pointer-events: none; }
.manifesto::before, .contact::before { -webkit-mask-image: radial-gradient(circle, #000 38%, transparent 42%); mask-image: radial-gradient(circle, #000 38%, transparent 42%); -webkit-mask-size: 9px 9px; mask-size: 9px 9px; }
.contact h2 { margin: 0 0 90px; font-family: var(--serif); font-size: clamp(4.2rem, 10vw, 10rem); font-weight: 400; line-height: .82; letter-spacing: -.055em; }
.contact h2 em { color: var(--red); font-weight: 400; }
.contact > a { display: inline-block; font-size: clamp(1.1rem, 2vw, 1.8rem); border-bottom: 1px solid var(--ink); }
.contact > a.contact-whatsapp { display: table; margin-top: 18px; }
.contact p a { border-bottom: 1px solid currentColor; }
.contact p a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.contact > p:last-child { color: var(--muted); }
footer { display: flex; justify-content: space-between; padding: 24px 32px; border-top: 1px solid var(--line); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.65,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { padding: 18px; }
  .site-header nav { gap: 14px; }
  .hero-kicker { left: 18px; }
  .hero-title { top: 21svh; font-size: clamp(4.8rem, 10.3vw, 9rem); }
  .hero-side { display: none; }
  .hero-role, .explore { right: 18px; }
  .manifesto { padding: 100px 18px 120px; }
  .process { display: flex; flex-wrap: wrap; gap: 12px; }
  .work { padding: 30px 0 100px; }
  .section-head { display: block; margin-bottom: 62px; padding-inline: 18px; }
  .section-head .eyebrow { margin-bottom: 45px; }
  .section-head h2 { margin-bottom: 38px; }
  .carousel-controls { margin-inline: 18px; }
  .work-carousel { padding-inline: 18px; scroll-padding-inline: 18px; }
  .carousel-card { flex-basis: min(68vw, 380px); }
  .work .interlude { margin-inline: 18px; }
  .about { display: block; min-height: 0; }
  .about-image { padding: 70px 18px 0; }
  .about-copy { padding: 90px 18px 110px; }
  .contact { padding: 110px 18px 80px; }
  footer { padding: 22px 18px; }
}

@media (max-width: 620px) {
  .brand { max-width: 78px; line-height: 1.05; }
  .site-header { align-items: flex-start; gap: 8px; padding: 16px 18px; mix-blend-mode: normal; color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); font-size: .66rem; }
  .site-header nav { gap: 12px; }
  .hero { height: 170svh; }
  .hero-kicker { top: 11svh; max-width: 30ch; font-size: .67rem; }
  .hero-title { top: 20svh; padding: 0 18px; font-size: clamp(4rem, 16vw, 5.6rem); line-height: .78; text-align: left; white-space: normal; }
  .hero-title span { display: block; }
  .hero-title span:last-child { text-align: right; }
  .manifesto::before { left: 5vw; bottom: 5vw; width: 64vw; opacity: .65; transform: none; }
  .manifesto::after { left: -12vw; bottom: 6%; width: 55vw; height: 55vw; }
  .contact::before { top: 10%; right: 5vw; width: 58vw; opacity: .68; transform: none; }
  .hero-role { left: 18px; right: auto; bottom: 106px; width: 29ch; font-size: .9rem; }
  .explore { left: 18px; right: 18px; bottom: 38px; width: auto; font-size: .75rem; }
  .manifesto-lead { font-size: clamp(2.6rem, 12vw, 4rem); }
  .carousel-card { flex-basis: min(78vw, 330px); }
  .carousel-caption strong { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero { height: 100svh; }
}

/* Complete archive */
.interlude {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 180px 0;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
}
.interlude em {
  grid-column: 2;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.035em;
}

.project-index {
  padding: 140px 32px 160px;
  background: var(--bone);
  border-top: 1px solid var(--line);
}
.index-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-bottom: 90px;
}
.index-head .eyebrow { grid-column: 1 / 4; margin: 12px 0 0; }
.index-head h2 {
  grid-column: 4 / 11;
  margin: 0;
  font: 400 clamp(4.6rem, 9.5vw, 9.5rem)/.8 var(--serif);
  letter-spacing: -.055em;
}
.index-list { border-top: 1px solid var(--ink); }
.index-row {
  display: grid;
  grid-template-columns: 56px 3fr 2fr 24px;
  gap: 18px;
  align-items: center;
  min-height: 94px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding .3s ease;
}
.index-row:hover { background: var(--blush); padding-left: 22px; }
.index-row > span,
.index-row > i {
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-style: normal;
}
.index-row strong {
  font: 400 clamp(1.65rem, 3.1vw, 3.6rem)/.9 var(--serif);
  letter-spacing: -.03em;
}

.capabilities { padding: 150px 32px 170px; border-top: 1px solid var(--line); }
.cap-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-bottom: 110px;
}
.cap-head .eyebrow { grid-column: 1 / 4; margin: 10px 0 0; }
.cap-head h2 {
  grid-column: 4 / 12;
  margin: 0;
  color: var(--red);
  font: 400 clamp(3.5rem, 7vw, 7rem)/.9 var(--serif);
  letter-spacing: -.045em;
}
.cap-head h2 em { color: var(--red); font-weight: 400; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.cap-column { min-height: 320px; padding: 20px 20px 40px; border-right: 1px solid var(--line); text-align: center; }
.cap-column:last-child { border-right: 0; }
.cap-column > span {
  display: block;
  margin-bottom: 70px;
  color: var(--red);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.cap-column p { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 2.15rem); line-height: 1.05; }

.cursor {
  position: fixed;
  top: -7px;
  left: -7px;
  z-index: 80;
  width: 14px;
  height: 14px;
  border: 1px solid var(--red);
  border-radius: 50%;
  pointer-events: none;
  transition: width .25s ease, height .25s ease, top .25s ease, left .25s ease, background .25s ease;
}
.cursor.is-active { top: -18px; left: -18px; width: 36px; height: 36px; background: rgba(142, 29, 44, .12); }
@media (pointer: coarse) { .cursor { display: none; } }

/* Project windows */
body.dialog-open { overflow: hidden; }
.project-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.project-dialog::backdrop { background: rgba(17, 16, 15, .74); backdrop-filter: blur(3px); }
.project-dialog[open] { animation: dialog-appear .38s cubic-bezier(.2, .65, .2, 1) both; }
@keyframes dialog-appear { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.dialog-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 230, .96);
  backdrop-filter: blur(8px);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dialog-close { display: flex; align-items: center; gap: 20px; padding: 5px 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.dialog-close span { color: var(--red); font: 400 2rem/.8 var(--serif); }
.dialog-close:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.project-dialog .project-detail { padding-top: 0; }
.project-dialog .detail-head { padding-top: 50px; }
.project-dialog .original-context { padding-block: 75px 90px; }

/* Project detail */
.is-detail .site-header {
  mix-blend-mode: normal;
  color: var(--ink);
  background: linear-gradient(var(--paper) 0%, rgba(243,239,230,.84) 65%, transparent 100%);
}
.project-detail { padding-top: 95px; }
.back-link {
  display: inline-flex;
  gap: 10px;
  margin: 22px 32px 44px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.back-link span { color: var(--red); }
.detail-head { padding: 0 32px 30px; }
.detail-head-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.detail-head h1 {
  max-width: 12ch;
  margin: 0;
  font: 400 clamp(4.5rem, 9vw, 9rem)/.8 var(--serif);
  letter-spacing: -.065em;
}
.detail-cover {
  width: min(calc(100% - 64px), 500px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-cover > img { width: 100%; max-width: 100%; height: auto; object-fit: contain; }
.detail-cover.no-image { height: min(68vw, 820px); }
.detail-type-cover {
  height: 100%;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
}
.detail-type-cover > span,
.detail-type-cover > i {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-style: normal;
}
.detail-type-cover strong {
  grid-column: 1 / 3;
  align-self: center;
  max-width: 10ch;
  font: 400 clamp(5rem, 12vw, 12rem)/.78 var(--serif);
  letter-spacing: -.06em;
}
.detail-type-cover i { grid-column: 2; text-align: right; }
.tone-sage { background: var(--sage); }
.tone-blush { background: var(--blush); }
.tone-butter { background: var(--butter); }
.tone-earth { background: var(--earth); }
.tone-bone { background: var(--bone); }

.detail-context,
.detail-concept,
.roles,
.detail-process,
.source-note {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  padding: 150px 32px;
  border-top: 1px solid var(--line);
}
.detail-context .eyebrow,
.detail-concept .eyebrow,
.roles .eyebrow,
.detail-process .eyebrow,
.source-note .eyebrow { grid-column: 1 / 4; margin: 8px 0 0; }
.detail-lead {
  grid-column: 4 / 12;
  margin: 0 0 70px;
  font: 400 clamp(2.7rem, 5.4vw, 6rem)/.96 var(--serif);
  letter-spacing: -.04em;
}
.detail-body {
  grid-column: 7 / 11;
  margin: 0;
  font-size: 1.05rem;
}
.detail-context blockquote {
  grid-column: 3 / 11;
  margin: 110px 0 0;
  padding-left: 24px;
  border-left: 2px solid var(--red);
  color: var(--red);
  font: italic 400 clamp(2rem, 4vw, 4rem)/1 var(--serif);
}
.detail-concept { background: var(--blush); color: var(--ink); }
.detail-concept .eyebrow { color: var(--red); }
.detail-concept > p:last-child {
  grid-column: 4 / 12;
  margin: 0;
  font: 400 clamp(2.25rem, 3.8vw, 4.25rem)/.98 var(--serif);
  letter-spacing: -.045em;
}
.roles ul { grid-column: 4 / 12; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.roles li { padding: 17px 0; border-bottom: 1px solid var(--line); font: 400 clamp(2rem, 4vw, 4.2rem)/1 var(--serif); }
.detail-process > p:nth-child(2) {
  grid-column: 4 / 10;
  margin: 0;
  font: 400 clamp(1.75rem, 2.8vw, 3.25rem)/1.05 var(--serif);
  letter-spacing: -.035em;
}
.detail-process small {
  grid-column: 10 / 13;
  align-self: end;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.source-note > p:last-child { grid-column: 4 / 10; margin: 0; font: 400 clamp(2rem, 4vw, 4rem)/1 var(--serif); }

.original-context { padding-block: 105px 120px; }
.source-context { grid-column: 4 / 11; max-width: 72ch; font-size: .95rem; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }

.gallery { padding: 24px 32px 110px; background: var(--paper); }
.gallery > .eyebrow { margin-bottom: 24px; }
.gallery-video { margin: 0 0 18px; }
.gallery-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); object-fit: contain; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.gallery-item { min-width: 0; margin: 0; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.gallery[data-project="que-te-lo-cuente-lo-que-no-habla"] .gallery-item--landscape { grid-column: 1 / -1; }

@media (min-width: 901px) {
  .gallery[data-project="belleza-decodificada"] .gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .gallery[data-project="belleza-decodificada"] .gallery-item {
    grid-column: span 2;
  }
  .gallery[data-project="belleza-decodificada"] .gallery-item:nth-last-child(-n + 2) {
    grid-column: span 3;
  }
}

.next-project {
  padding: 80px 32px 110px;
  background: var(--ink);
  color: var(--paper);
}
.next-project > span { display: block; margin-bottom: 65px; color: var(--blush); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.next-project a { display: flex; justify-content: space-between; align-items: flex-end; font: 400 clamp(4rem, 10vw, 10rem)/.78 var(--serif); letter-spacing: -.05em; }
.next-project i { color: var(--blush); font-style: normal; font-size: .55em; }

@media (max-width: 900px) {
  .project-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .dialog-topbar { padding-inline: 18px; }
  .project-dialog .detail-head { padding-top: 36px; }
  .project-dialog .original-context { padding-block: 70px 80px; }
  .interlude { margin: 110px 0; }
  .project-index, .capabilities { padding: 100px 18px 110px; }
  .index-head, .cap-head { display: block; margin-bottom: 65px; }
  .index-head .eyebrow, .cap-head .eyebrow { margin-bottom: 45px; }
  .index-row { grid-template-columns: 34px 1fr 1.2fr 20px; gap: 10px; min-height: 82px; padding-inline: 4px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap-column:nth-child(2) { border-right: 0; }
  .cap-column { min-height: 260px; border-bottom: 1px solid var(--line); }
  .cap-column > span { margin-bottom: 48px; }
  .back-link { margin: 16px 18px 50px; }
  .detail-head { padding: 0 18px 22px; }
  .detail-head-meta { grid-template-columns: 1fr 1fr; }
  .detail-cover { width: min(calc(100% - 36px), 500px); margin-inline: auto; }
  .detail-cover.no-image { height: 100vw; }
  .detail-type-cover { padding: 22px; }
  .detail-context, .detail-concept, .roles, .detail-process, .source-note { display: block; padding: 100px 18px; }
  .detail-context .eyebrow, .detail-concept .eyebrow, .roles .eyebrow, .detail-process .eyebrow, .source-note .eyebrow { margin-bottom: 50px; }
  .detail-lead { margin-bottom: 55px; }
  .detail-body { max-width: 50ch; margin-left: auto; }
  .detail-context blockquote { margin: 80px 0 0; }
  .roles ul { margin-top: 0; }
  .detail-process small { display: block; width: 46%; margin: 60px 0 0 auto; }
  .original-context { padding: 80px 18px 95px; }
  .source-context { max-width: 65ch; }
  .gallery { padding: 18px 18px 90px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .next-project { padding: 70px 18px 90px; }
}

@media (max-width: 620px) {
  .project-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .dialog-topbar { min-height: 54px; padding-inline: 14px; font-size: .66rem; }
  .dialog-close { gap: 10px; }
  .project-dialog .detail-head { padding-top: 25px; }
  .interlude { display: block; text-align: center; }
  .interlude span { display: none; }
  .interlude em { display: block; }
  .index-head h2 { font-size: 4.5rem; }
  .index-row { grid-template-columns: 26px 1fr 16px; }
  .index-row > span:nth-of-type(2) { display: none; }
  .index-row strong { font-size: 1.55rem; }
  .cap-grid { display: block; }
  .cap-column { min-height: 0; padding: 24px 0 55px !important; border-right: 0; }
  .cap-column > span { margin-bottom: 34px; }
  .detail-head h1 { font-size: clamp(3.25rem, 16vw, 6rem); overflow-wrap: anywhere; }
  .detail-head-meta span:nth-child(2) { line-height: 1.25; }
  .detail-cover { width: calc(100% - 36px); }
  .detail-type-cover strong { font-size: 4.2rem; }
  .detail-lead { font-size: 2.55rem; }
  .detail-body { font-size: 1rem; }
  .detail-concept > p:last-child { font-size: 2rem; }
  .roles li { font-size: 2rem; }
  .detail-process > p:nth-child(2) { font-size: 1.65rem; }
  .detail-process small { width: 70%; }
  .gallery { padding-inline: 14px; }
  .gallery-grid { gap: 8px; }
  .source-context { font-size: .92rem; }
  .next-project a { gap: 12px; font-size: 3.25rem; overflow-wrap: anywhere; }
}

.eyebrow,
.hero-kicker,
.project-meta > span,
.project-meta p,
.index-row > span,
.index-row > i,
.cap-column > span,
.detail-head-meta,
.detail-type-cover > span,
.detail-type-cover > i,
.back-link,
.detail-process small,
.next-project > span {
  font-size: .75rem;
}
