@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #11100e;
  --surface: #191715;
  --surface-soft: #24211d;
  --ink: #eee8dd;
  --muted: #aaa096;
  --soft: #776f66;
  --line: rgba(238, 232, 221, 0.13);
  --accent: #c48c6e;
  --accent-dark: #e0b79d;
  --draft: rgba(218, 231, 207, 0.6);
  --draft-soft: rgba(238, 232, 221, 0.38);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --max-width: 1180px;
  --font-display: "Archivo Black", Impact, Haettenschweiler, "Arial Black", sans-serif;
  --font-sans: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(196, 140, 110, 0.34);
  color: var(--ink);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 8%, rgba(196, 140, 110, 0.09), transparent 28%),
    linear-gradient(180deg, #14120f 0%, var(--bg) 38%, #0e0d0c 100%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 22px), 0);
  transition:
    opacity var(--reveal-duration, 900ms) cubic-bezier(0.19, 1, 0.22, 1),
    transform var(--reveal-duration, 900ms) cubic-bezier(0.19, 1, 0.22, 1),
    clip-path var(--reveal-duration, 900ms) cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, clip-path;
}

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

.reveal-text {
  --reveal-y: 18px;
  --reveal-duration: 880ms;
}

.reveal-card {
  --reveal-y: 28px;
  --reveal-duration: 980ms;
}

.reveal-image,
.reveal-feature {
  --reveal-y: 18px;
  --reveal-duration: 1150ms;
  clip-path: inset(10% 0 0 0);
}

.reveal-image.is-visible,
.reveal-feature.is-visible {
  clip-path: inset(0 0 0 0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 16, 14, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.55vw, 1.32rem);
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent-dark);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-color: currentColor;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 74svh, 720px);
  overflow: hidden;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 4vw, 56px) clamp(44px, 7vw, 86px);
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero-content,
.section {
  max-width: var(--max-width);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8.1vw, 7.65rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5.2vw, 5.6rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.35vw, 2.6rem);
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: clamp(1.14rem, 1.8vw, 1.55rem);
  font-weight: 600;
  color: var(--ink);
}

.hero-copy,
.text-block p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.18vw, 1.1rem);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.92) 0%, rgba(17, 16, 14, 0.76) 34%, rgba(17, 16, 14, 0.42) 70%, rgba(17, 16, 14, 0.66) 100%),
    linear-gradient(180deg, rgba(17, 16, 14, 0.22) 0%, rgba(17, 16, 14, 0.22) 48%, rgba(17, 16, 14, 0.82) 100%);
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.018);
  filter: saturate(0.84) contrast(1.06) brightness(0.76);
  opacity: 0;
  transition:
    opacity 1200ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 1500ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 500ms ease;
}

.hero-visual.is-visible .hero-video {
  opacity: 1;
  transform: scale(1);
}

.section {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 118px) 0;
}

.works-section {
  padding-top: clamp(14px, 2.6vw, 34px);
}

.works-section .section-heading {
  padding-top: clamp(14px, 1.8vw, 24px);
  border-top: 1px solid var(--line);
  position: relative;
}

.section-heading {
  margin-bottom: clamp(22px, 3vw, 42px);
}

.work-browser {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

.category-list {
  display: grid;
  gap: clamp(12px, 1.8vw, 22px);
}

.category-card-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: category;
}

.category-card {
  counter-increment: category;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "image"
    "title"
    "copy"
    "actions";
  row-gap: 10px;
  align-items: start;
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(238, 232, 221, 0.025);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: clamp(34px, 5vw, 72px);
  height: 1px;
  background: var(--draft);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: rgba(196, 140, 110, 0.5);
  background: rgba(238, 232, 221, 0.04);
  transform: translateY(-2px);
}

.category-card:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 8px;
}

.category-card:hover::after,
.category-card:focus-within::after {
  opacity: 1;
  transform: translateX(-8px);
}

.category-card-image {
  grid-area: image;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}

.category-card-image img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.82);
  transform: scale(1.018);
  transition: filter 420ms ease, transform 900ms cubic-bezier(0.19, 1, 0.22, 1);
}

.category-card:hover .category-card-image img {
  filter: saturate(0.95) contrast(1.05) brightness(0.9);
  transform: scale(1.035);
}

.category-title,
.project-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category-title {
  grid-area: title;
  align-self: start;
  max-width: 100%;
  padding: 4px 4px 0;
  font-size: clamp(1.15rem, 1.65vw, 1.82rem);
  line-height: 0.94;
}

.category-copy {
  grid-area: copy;
  display: block;
  gap: 12px;
  max-width: 100%;
  color: var(--muted);
  font-size: clamp(0.84rem, 0.9vw, 0.94rem);
  line-height: 1.48;
}

.category-copy p {
  margin: 0;
}

.category-copy p + p {
  margin-top: 12px;
}

.category-copy-card {
  padding: 0 4px;
}

.category-copy-card.is-collapsed p,
.category-copy-context.is-collapsed p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-copy-card.is-collapsed .category-meta-list p,
.category-copy-context.is-collapsed .category-meta-list p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.category-card-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
  padding: 0 4px 2px;
}

.text-link {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #161311;
}

.read-more-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--draft);
  cursor: pointer;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.read-more-button:hover,
.read-more-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(238, 232, 221, 0.04);
}

.category-card .read-more-button {
  margin: 0;
}

.context-copy > .read-more-button {
  justify-self: start;
}

.active-context {
  gap: 22px;
  padding-bottom: 6px;
}

.context-copy {
  display: grid;
  gap: 16px;
  max-width: 860px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.context-copy h3 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 5.25rem);
}

.back-button {
  width: fit-content;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease;
}

.back-button:hover,
.back-button:focus-visible {
  border-color: var(--accent);
  background: rgba(238, 232, 221, 0.06);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
  padding-top: clamp(10px, 1.5vw, 18px);
}

.project-card {
  display: grid;
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.project-card:focus-visible,
.category-card .text-link:focus-visible,
.read-more-button:focus-visible,
.back-button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.project-card img {
  aspect-ratio: 4 / 5;
  height: clamp(300px, 32vw, 510px);
  border-radius: 2px;
  object-fit: cover;
  box-shadow: none;
  filter: saturate(0.82) contrast(1.04) brightness(0.84);
  transform: scale(1.012);
  transition: filter 420ms ease, transform 900ms cubic-bezier(0.19, 1, 0.22, 1);
}

.project-title {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 1.85vw, 2rem);
}

.project-copy {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.94rem;
  line-height: 1.55;
}

.project-card:hover .project-title,
.project-card:focus-visible .project-title,
.project-card.is-active .project-title {
  color: var(--accent-dark);
}

.project-card:hover img,
.project-card:focus-visible img {
  filter: saturate(0.95) contrast(1.05) brightness(0.92);
  transform: translateY(-2px) scale(1.026);
}

.gallery-panel {
  width: min(calc(100vw - 36px), 1280px);
  justify-self: center;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  padding-top: 0;
  border-top: 0;
}

.project-heading {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  max-width: 980px;
  padding-bottom: clamp(2px, 0.8vw, 8px);
  position: relative;
}

.project-heading-text {
  display: grid;
  gap: 10px;
}

.project-heading-text .eyebrow {
  margin-bottom: 0;
}

.project-heading-text h3 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 6.25rem);
}

.project-heading-text p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.project-description {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-top: clamp(6px, 1vw, 12px);
  color: var(--muted);
  font-size: clamp(1rem, 1.18vw, 1.12rem);
  line-height: 1.72;
}

.project-heading-text .project-description p {
  max-width: none;
  margin: 0;
}

.meta-list,
.category-meta-list {
  display: grid;
  gap: 6px;
  max-width: 820px;
  margin-top: clamp(6px, 1vw, 12px);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  line-height: 1.5;
}

.project-heading-text .meta-list p,
.project-heading-text .category-meta-list p,
.category-meta-list p {
  max-width: none;
  margin: 0;
  color: inherit;
}

.meta-list span,
.category-meta-list span {
  display: block;
  margin-bottom: 2px;
  color: var(--soft);
  text-transform: uppercase;
}

.back-button-project {
  min-height: 36px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-featured-image {
  position: relative;
  width: min(100%, 1200px);
  margin: clamp(18px, 3vw, 32px) 0 clamp(6px, 1vw, 12px);
  overflow: visible;
}

.project-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(74vh, 740px);
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02) brightness(0.9);
  transform: scale(1.01);
}

.gallery-image-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
}

.gallery-image-trigger:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

.category-description,
.category-copy-context {
  display: grid;
  gap: 16px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.72;
}

.category-description p,
.category-copy-context p {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 54px) clamp(18px, 2.6vw, 38px);
  align-items: start;
  padding-bottom: clamp(18px, 3vw, 36px);
}

.gallery-grid figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: visible;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: auto;
  height: auto;
  border-radius: 2px;
  object-fit: initial;
  background: transparent;
  filter: saturate(0.9) contrast(1.02) brightness(0.9);
  transform: scale(1.006);
  transition: transform 900ms cubic-bezier(0.19, 1, 0.22, 1), filter 420ms ease;
}

.gallery-grid figure.is-visible img,
.project-featured-image.is-visible img {
  transform: scale(1);
}

body.is-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(8, 8, 7, 0.92);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.lightbox img {
  width: auto;
  max-width: min(100%, 1280px);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 16, 14, 0.74);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }

  .hero-video,
  .category-card-image img,
  .project-card img {
    transform: none;
    transition: none;
  }
}

.gallery-grid .gallery-item-wide {
  grid-column: 1 / -1;
}

.about-section,
.workshops-section,
.contact-section {
  border-top: 1px solid var(--line);
}

.text-block {
  max-width: 760px;
}

.text-block p + p {
  margin-top: 16px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.about-copy {
  max-width: 680px;
}

.about-image {
  width: min(100%, 480px);
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 232, 221, 0.08);
  border-radius: 2px;
  background: var(--surface);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(68vh, 620px);
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.06) brightness(0.82);
  transform: scale(1.01);
  transition: filter 420ms ease, transform 900ms cubic-bezier(0.19, 1, 0.22, 1);
}

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

.stacked-blocks {
  display: grid;
  gap: 34px;
  max-width: 860px;
}

.stacked-blocks article {
  display: grid;
  gap: 12px;
}

.stacked-blocks h3 {
  margin: 0;
}

.detail-text {
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-weight: 700;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-links a {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 160ms ease, color 160ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

@media (max-width: 980px) {
  .hero {
    min-height: clamp(500px, 68svh, 640px);
    padding-top: clamp(42px, 8vw, 68px);
  }

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

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

  .category-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.45rem, 10.6vw, 4.05rem);
    line-height: 0.92;
  }

  .hero {
    min-height: clamp(455px, 62svh, 560px);
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .hero-lead {
    margin-bottom: 10px;
  }

  .hero-copy {
    margin-bottom: 0;
  }

  .hero-visual::after {
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.88) 0%, rgba(17, 16, 14, 0.68) 62%, rgba(17, 16, 14, 0.62) 100%),
      linear-gradient(180deg, rgba(17, 16, 14, 0.18) 0%, rgba(17, 16, 14, 0.52) 54%, rgba(17, 16, 14, 0.9) 100%);
  }

  .section {
    width: min(calc(100% - 28px), var(--max-width));
    padding: clamp(52px, 12vw, 74px) 0;
  }

  .gallery-panel {
    width: min(calc(100vw - 28px), 1320px);
    gap: 34px;
  }

  .project-featured-image img {
    max-height: none;
    object-position: center;
  }

  .works-section {
    padding-top: 18px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-image {
    width: 100%;
    justify-self: stretch;
  }

  .about-image img {
    aspect-ratio: 16 / 11;
    max-height: 360px;
  }

  .category-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "title"
      "copy"
      "actions";
    min-height: 0;
    padding: 10px;
  }

  .category-card-image {
    aspect-ratio: 16 / 9;
    min-height: 0;
    margin-top: 0;
  }

  .category-title {
    padding: 4px 4px 0;
    font-size: clamp(1.65rem, 7.6vw, 2.55rem);
    line-height: 0.94;
  }

  .category-copy {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .category-copy-card {
    padding: 0 4px;
  }

  .category-copy-card.is-collapsed p,
  .category-copy-context.is-collapsed p {
    -webkit-line-clamp: 2;
  }

  .category-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    padding: 0 4px 2px;
  }

  .back-button,
  .text-link,
  .read-more-button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .category-card .read-more-button {
    width: 48px;
  }

  .project-list,
  .category-card-list,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery-grid figure,
  .gallery-grid .gallery-item-wide {
    grid-column: 1 / -1;
  }

  .project-card img,
  .gallery-grid img {
    height: auto;
  }

  .project-heading {
    gap: 14px;
  }

  .project-heading-text h3 {
    font-size: clamp(2rem, 9.8vw, 3.45rem);
    line-height: 0.94;
  }

  .back-button-project {
    position: sticky;
    top: 10px;
    z-index: 10;
    background: rgba(17, 16, 14, 0.86);
    backdrop-filter: blur(12px);
  }
}

/* Primera prueba visual: reinterpretación editorial de la referencia Sonex. */
:root {
  --bg: #f1f1ed;
  --surface: #ffffff;
  --surface-soft: #e4e4de;
  --ink: #151515;
  --muted: #5f605c;
  --soft: #8b8c85;
  --line: rgba(21, 21, 21, 0.18);
  --accent: #d74f32;
  --accent-dark: #a73520;
  --draft: #326855;
  --draft-soft: rgba(50, 104, 85, 0.18);
  --shadow: 0 24px 70px rgba(21, 21, 21, 0.15);
  --sidebar-width: clamp(220px, 18vw, 286px);
  --max-width: 1440px;
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  display: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
  padding: clamp(28px, 4vw, 58px) clamp(22px, 2.8vw, 42px);
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(241, 241, 237, 0.96);
  backdrop-filter: blur(18px);
}

.brand {
  max-width: 6ch;
  color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  line-height: 0.82;
  white-space: normal;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
}

.site-nav {
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.8vw, 0.82rem);
  font-weight: 600;
  text-transform: uppercase;
}

.site-nav a {
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.site-nav a:last-child {
  border-bottom: 1px solid var(--line);
}

.site-nav a::before {
  content: "↗";
  display: inline-block;
  width: 24px;
  color: var(--accent);
  transition: transform 180ms ease;
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  transform: translate(3px, -3px);
}

main {
  margin-left: var(--sidebar-width);
}

.hero {
  min-height: min(860px, 88svh);
  padding: clamp(46px, 7vw, 100px);
  align-items: flex-end;
}

.hero-content {
  width: 100%;
  margin: 0;
}

.hero-content .eyebrow {
  color: #f48b70;
}

.hero h1 {
  max-width: 9ch;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(3.6rem, 9vw, 9rem);
  line-height: 0.82;
}

.hero-lead {
  color: #fff;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.74);
}

.hero-visual::after {
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.82) 0%, rgba(15, 15, 15, 0.22) 70%),
    linear-gradient(180deg, rgba(15, 15, 15, 0.04) 35%, rgba(15, 15, 15, 0.78) 100%);
}

.hero-video {
  filter: saturate(0.92) contrast(1.04) brightness(0.88);
}

.section {
  width: min(calc(100% - clamp(36px, 7vw, 112px)), var(--max-width));
  padding: clamp(72px, 9vw, 132px) 0;
}

.works-section {
  padding-top: clamp(48px, 6vw, 88px);
}

.works-section .section-heading,
.about-section,
.workshops-section,
.contact-section {
  border-color: var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.section-heading h2 {
  color: var(--ink);
}

.eyebrow {
  color: var(--accent-dark);
}

.category-card-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
}

.category-card {
  position: relative;
  grid-column: span 6;
  display: block;
  aspect-ratio: 16 / 11;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #202020;
  isolation: isolate;
}

.category-card:nth-child(6n + 1) {
  grid-column: span 7;
  aspect-ratio: 4 / 3;
}

.category-card:nth-child(6n + 2) {
  grid-column: span 5;
  aspect-ratio: 3 / 4;
}

.category-card:nth-child(6n + 3) {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
}

.category-card:nth-child(6n + 4) {
  grid-column: span 8;
  aspect-ratio: 16 / 10;
}

.category-card:nth-child(6n + 5),
.category-card:nth-child(6n + 6) {
  grid-column: span 6;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 28%, rgba(12, 12, 12, 0.8) 100%);
  opacity: 0.72;
  transition: opacity 300ms ease;
}

.category-card::after {
  display: none;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: transparent;
  background: #202020;
  transform: none;
}

.category-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.category-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.category-card-image img {
  height: 100%;
  filter: saturate(0.88) contrast(1.03) brightness(0.88);
  transform: scale(1.01);
}

.category-card:hover .category-card-image img,
.category-card:focus-visible .category-card-image img {
  filter: saturate(1) contrast(1.04) brightness(0.76);
  transform: scale(1.055);
}

.category-card:hover::before,
.category-card:focus-visible::before {
  opacity: 1;
}

.category-card-overlay {
  position: absolute;
  inset: auto clamp(18px, 2vw, 30px) clamp(18px, 2vw, 30px);
  z-index: 2;
  display: grid;
  gap: 8px;
  color: #fff;
}

.category-number,
.category-action,
.project-card-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.category-number {
  color: #f48b70;
}

.category-title {
  grid-area: auto;
  max-width: 16ch;
  padding: 0;
  color: #fff;
  font-size: clamp(1.4rem, 2.65vw, 3.2rem);
  line-height: 0.9;
}

.category-action {
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.category-card:hover .category-action,
.category-card:focus-visible .category-action {
  opacity: 1;
  transform: translateY(0);
}

.work-browser:has(.active-context) {
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  align-items: start;
}

.active-context {
  position: sticky;
  top: 36px;
  gap: 28px;
}

.context-copy {
  border-color: var(--line);
}

.context-copy h3 {
  font-size: clamp(2rem, 3.8vw, 4.8rem);
}

.category-copy,
.category-description,
.category-copy-context,
.project-description,
.project-heading-text p:not(.eyebrow),
.hero-copy,
.text-block p {
  color: var(--muted);
}

.back-button,
.read-more-button,
.text-link {
  border-radius: 0;
}

.project-list {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  padding-top: 0;
}

.project-card {
  position: relative;
  grid-column: span 7;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
}

.project-card:nth-child(even) {
  grid-column: span 5;
  aspect-ratio: 3 / 4;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(10, 10, 10, 0.84));
}

.project-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  filter: saturate(0.9) contrast(1.03) brightness(0.9);
}

.project-card:hover img,
.project-card:focus-visible img {
  filter: saturate(1) contrast(1.04) brightness(0.8);
  transform: scale(1.045);
}

.project-card-overlay {
  position: absolute;
  inset: auto 20px 22px;
  z-index: 2;
  display: grid;
  gap: 7px;
  color: #fff;
}

.project-card-category {
  color: #f48b70;
}

.project-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.7vw, 3.4rem);
}

.project-card:hover .project-title,
.project-card:focus-visible .project-title,
.project-card.is-active .project-title {
  color: #fff;
}

.gallery-panel:not(:empty) {
  width: min(calc(100vw - var(--sidebar-width) - clamp(36px, 7vw, 112px)), var(--max-width));
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.project-heading {
  grid-column: 9 / -1;
  grid-row: 1;
  position: sticky;
  top: 36px;
  max-width: none;
}

.project-heading-text h3 {
  font-size: clamp(2.6rem, 5.2vw, 6.4rem);
}

.project-featured-image {
  grid-column: 1 / 9;
  grid-row: 1;
  width: 100%;
  margin: 0;
}

.project-featured-image img {
  aspect-ratio: 4 / 5;
  max-height: none;
}

.gallery-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 38px);
}

.gallery-grid figure {
  grid-column: span 6;
}

.gallery-grid figure:nth-child(3n + 1) {
  grid-column: span 7;
}

.gallery-grid figure:nth-child(3n + 2) {
  grid-column: span 5;
}

.gallery-grid .gallery-item-wide {
  grid-column: 1 / -1;
}

.meta-list,
.category-meta-list {
  color: var(--draft);
}

.about-image,
.about-image img,
.gallery-grid img {
  border-radius: 0;
}

.contact-links a {
  background: var(--surface);
}

@media (max-width: 980px) {
  :root {
    --sidebar-width: 0px;
  }

  .site-header {
    position: sticky;
    inset: 0;
    width: 100%;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    padding: 16px clamp(18px, 4vw, 36px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    max-width: none;
    font-size: 1.35rem;
    white-space: nowrap;
  }

  .site-nav {
    width: auto;
    display: flex;
    justify-content: flex-end;
    overflow-x: auto;
  }

  .site-nav a,
  .site-nav a:last-child {
    width: auto;
    padding: 8px 10px;
    border: 0;
    white-space: nowrap;
  }

  .site-nav a::before {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .work-browser:has(.active-context) {
    grid-template-columns: 1fr;
  }

  .active-context {
    position: static;
  }

  .gallery-panel:not(:empty) {
    width: min(calc(100vw - 36px), var(--max-width));
  }

  .project-heading {
    grid-column: 1 / -1;
    grid-row: 1;
    position: static;
  }

  .project-featured-image {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    padding-left: 0;
    padding-right: 18px;
  }

  .hero {
    min-height: 70svh;
    padding: 38px 18px;
  }

  .hero-content {
    min-width: 0;
    max-width: 100%;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 12.5vw, 3.55rem);
  }

  .hero-lead,
  .hero-copy {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .category-card-list,
  .project-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card:nth-child(n),
  .project-card,
  .project-card:nth-child(n),
  .gallery-grid figure,
  .gallery-grid figure:nth-child(n),
  .gallery-grid .gallery-item-wide {
    grid-column: 1;
    aspect-ratio: 4 / 3;
  }

  .category-card:nth-child(even),
  .project-card:nth-child(even) {
    aspect-ratio: 4 / 5;
  }

  .category-title {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
  }

  .category-action {
    opacity: 1;
    transform: none;
  }

  .project-featured-image img {
    aspect-ratio: auto;
  }
}

/* Segunda iteración: portada clara y acentos amarillo neón. */
:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --surface-soft: #e9e9e3;
  --ink: #151515;
  --muted: #565752;
  --soft: #7b7d75;
  --line: rgba(21, 21, 21, 0.14);
  --accent: #dfff00;
  --accent-dark: #3b4700;
  --draft: #526300;
  --draft-soft: rgba(223, 255, 0, 0.2);
  --neon: #dfff00;
  --neon-green: #b7ff3c;
  --neon-ink: #344000;
  --neon-soft: rgba(223, 255, 0, 0.22);
  --neon-gradient: linear-gradient(
    108deg,
    rgba(223, 255, 0, 0.86) 0%,
    rgba(183, 255, 60, 0.48) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  --shadow: none;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--neon);
}

.site-header {
  padding: clamp(50px, 5vw, 72px) clamp(34px, 3.2vw, 50px);
  background: rgba(250, 250, 246, 0.97);
}

main {
  width: calc(100% - var(--sidebar-width));
}

.brand {
  max-width: none;
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: clamp(1.65rem, 2vw, 2rem);
  line-height: 0.88;
  white-space: nowrap;
}

.brand span {
  display: block;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--neon);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 4px;
  margin-right: 10px;
  background: transparent;
  transition: background 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  background: var(--neon-gradient);
  color: var(--ink);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  background: var(--neon-green);
  transform: none;
}

.site-nav a.is-active {
  color: var(--ink);
  font-weight: 800;
}

.site-nav a.is-active::before {
  height: 4px;
  background: var(--neon);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 24px;
  height: 1px;
  background: var(--ink);
}

.intro {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(400px, 48svh, 540px);
  overflow: hidden;
  padding: clamp(62px, 5.8vw, 88px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 249, 244, 0.96)),
    var(--surface);
  isolation: isolate;
}

.intro::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: min(44%, 640px);
  height: 60%;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0) 18%,
    rgba(183, 255, 60, 0.1) 58%,
    rgba(223, 255, 0, 0.18) 100%
  );
  filter: blur(36px);
  opacity: 0.68;
}

.intro-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1160px);
  min-width: 0;
  max-width: 100%;
}

.intro .eyebrow {
  margin-bottom: clamp(28px, 3.2vw, 48px);
  color: var(--neon-ink);
}

.intro h1 {
  max-width: 100%;
  margin-bottom: clamp(34px, 4vw, 58px);
  color: var(--ink);
  font-size: clamp(3.25rem, 4.8vw, 5.15rem);
  line-height: 0.9;
}

.intro-statement {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 980px;
}

.intro-lead,
.intro-copy {
  margin: 0;
}

.intro-lead {
  color: var(--ink);
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
}

.intro-copy {
  width: 100%;
  min-width: 0;
  max-width: 520px;
  margin-left: auto;
  color: var(--muted);
  font-size: clamp(0.94rem, 1vw, 1.05rem);
}

.intro-accent {
  position: relative;
  display: block;
  width: min(310px, 36%);
  height: 1px;
  margin-top: clamp(26px, 4vw, 50px);
  background: var(--neon-gradient);
}

.intro-accent::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(223, 255, 0, 0.7);
}

.works-section {
  padding-top: clamp(28px, 4vw, 54px);
}

.work-browser {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.category-list,
.category-card-list {
  width: 100%;
  min-width: 0;
}

.project-list:empty,
.gallery-panel:empty {
  display: none;
}

.works-section .section-heading {
  margin-bottom: clamp(22px, 2.8vw, 38px);
}

.works-section .section-heading::after {
  content: "01—06";
  align-self: center;
  padding: 2px 0 2px 9px;
  border-left: 7px solid var(--neon);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.category-card.reveal {
  opacity: 1;
  transform: none;
  clip-path: none;
}

.category-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: block;
  width: clamp(42px, 6vw, 92px);
  height: 3px;
  background: var(--neon-gradient);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: right;
  transition: opacity 180ms ease, transform 240ms ease;
}

.category-card:nth-child(3n + 2)::after {
  opacity: 0.82;
  transform: scaleX(1);
}

.category-card:hover::after,
.category-card:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.category-card:focus-visible,
.project-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
  box-shadow: 0 0 0 9px var(--neon);
}

.category-number,
.project-card-category {
  color: var(--neon);
}

.category-action {
  color: rgba(255, 255, 255, 0.84);
}

.eyebrow,
.meta-list,
.category-meta-list {
  color: var(--neon-ink);
}

.back-button {
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-left: 2px solid var(--neon);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.back-button:hover,
.back-button:focus-visible {
  border-color: var(--neon);
  background: var(--neon-gradient);
}

.back-button-project {
  position: static;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  backdrop-filter: none;
  text-decoration: none;
}

.read-more-button {
  border: 1px solid var(--ink);
  background: var(--neon);
  color: var(--ink);
}

.read-more-button:hover,
.read-more-button:focus-visible {
  border-color: var(--ink);
  background: var(--neon-green);
  color: var(--ink);
}

.project-navigation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.project-heading,
.project-heading-text,
.project-description,
.meta-list,
.category-meta-list {
  min-width: 0;
  max-width: 100%;
}

.project-heading-text h3 {
  max-width: 100%;
  font-size: clamp(2.25rem, 3.5vw, 4.6rem);
  overflow-wrap: anywhere;
}

.project-description,
.meta-list,
.category-meta-list {
  overflow-wrap: anywhere;
}

.project-nav-button {
  position: relative;
  min-height: 116px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 22px clamp(16px, 2.5vw, 34px);
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 180ms ease;
}

.project-nav-button + .project-nav-button {
  border-left: 1px solid var(--ink);
}

.project-nav-button:hover,
.project-nav-button:focus-visible {
  background: var(--neon-gradient);
}

.project-nav-button:disabled {
  color: var(--soft);
  cursor: default;
  background: transparent;
}

.project-nav-direction {
  color: var(--neon-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-nav-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.project-nav-next {
  text-align: right;
}

.contact-links a {
  position: relative;
  box-shadow: none;
}

.contact-links a::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  height: 2px;
  background: var(--neon-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.contact-links a:hover::after,
.contact-links a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 980px) {
  main {
    width: 100%;
  }

  .site-header {
    padding: 16px clamp(18px, 4vw, 36px);
    background: rgba(247, 247, 242, 0.97);
  }

  .brand {
    display: flex;
    gap: 0.34em;
    font-size: 1.35rem;
    line-height: 1;
  }

  .site-nav a,
  .site-nav a:last-child {
    position: relative;
    padding: 9px 10px;
  }

  .site-nav a::before {
    display: block;
    flex-basis: 9px;
    width: 9px;
    margin-right: 7px;
  }

  .site-nav a.is-active::after {
    right: 10px;
    bottom: 4px;
    left: 26px;
  }

  .intro {
    min-height: clamp(360px, 46svh, 470px);
    padding: clamp(42px, 6vw, 66px) clamp(28px, 6vw, 58px);
  }

  .intro h1 {
    font-size: clamp(3.2rem, 8vw, 5.2rem);
  }

  .intro-statement {
    grid-template-columns: minmax(200px, 0.65fr) minmax(300px, 1fr);
  }

  .section {
    scroll-margin-top: 74px;
  }
}

@media (max-width: 700px) {
  .site-header {
    gap: 10px;
  }

  .site-nav {
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a,
  .site-nav a:last-child {
    padding: 7px 13px 8px 0;
    font-size: 0.67rem;
  }

  .site-nav a::before {
    flex-basis: 7px;
    width: 7px;
    height: 3px;
    margin-right: 5px;
  }

  .site-nav a.is-active::after {
    right: 13px;
    bottom: 2px;
    left: 12px;
  }

  .intro {
    min-height: 430px;
    padding: 42px 18px 46px;
  }

  .intro::after {
    width: 48%;
    height: 32%;
  }

  .intro .eyebrow {
    margin-bottom: 28px;
  }

  .intro h1 {
    max-width: 100%;
    margin-bottom: 30px;
    font-size: clamp(2.65rem, 11.25vw, 3rem);
    line-height: 0.9;
  }

  .intro-statement {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .intro-copy {
    max-width: 34rem;
    margin-left: 0;
    overflow-wrap: anywhere;
  }

  .intro-accent {
    width: 72%;
    margin-top: 28px;
  }

  .works-section {
    padding-top: 26px;
  }

  .category-card-list,
  .category-card,
  .project-list,
  .project-card {
    min-width: 0;
  }

  .works-section .section-heading::after {
    align-self: end;
  }

  .project-navigation {
    grid-template-columns: 1fr;
  }

  .project-nav-button {
    min-height: 96px;
  }

  .project-nav-button + .project-nav-button {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .back-button-project {
    position: sticky;
    top: 112px;
    z-index: 10;
    background: rgba(247, 247, 242, 0.94);
    backdrop-filter: blur(12px);
  }
}

/* Quinta iteración: ancho editorial, fichas estables y navegación directa. */
:root {
  --max-width: 1580px;
  --content-gutter: clamp(32px, 4.5vw, 76px);
  --hero-hover-gradient: linear-gradient(
    105deg,
    rgba(223, 255, 0, 0.58) 0%,
    rgba(183, 255, 60, 0.34) 58%,
    rgba(223, 255, 0, 0.06) 100%
  );
}

.section {
  width: min(calc(100% - var(--content-gutter)), var(--max-width));
}

.intro {
  padding-right: var(--content-gutter);
  padding-left: var(--content-gutter);
}

.intro-content {
  width: min(100%, 1320px);
}

.intro h1 {
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(26px, 3vw, 42px);
  padding: 0.05em 0.08em 0.08em 0;
  background-image: var(--hero-hover-gradient);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 0 100%;
  transition: background-size 360ms cubic-bezier(0.19, 1, 0.22, 1);
}

.intro-statement {
  width: fit-content;
  max-width: min(100%, 660px);
  padding: 0.35em 0.6em 0.45em 0;
  background-image: var(--hero-hover-gradient);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 0 100%;
  transition: background-size 360ms cubic-bezier(0.19, 1, 0.22, 1);
}

.intro-copy {
  max-width: 660px;
  margin-left: 0;
}

.intro-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0 7px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro-scroll-cue span:last-child {
  color: var(--neon-ink);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.intro-scroll-cue:hover,
.intro-scroll-cue:focus-visible {
  background: var(--hero-hover-gradient);
}

.intro-scroll-cue:hover span:last-child,
.intro-scroll-cue:focus-visible span:last-child {
  transform: translateY(3px);
}

@media (hover: hover) {
  .intro h1:hover,
  .intro-statement:hover {
    background-size: 100% 100%;
  }
}

.intro-accent {
  display: none;
}

.works-section .section-heading::after {
  display: none;
  content: none;
}

.category-card-list {
  gap: clamp(14px, 1.65vw, 26px);
}

.category-card,
.category-card:nth-child(n) {
  height: clamp(330px, 30vw, 480px);
  min-height: 0;
  aspect-ratio: auto;
}

.category-card:nth-child(6n + 1),
.category-card:nth-child(6n + 4) {
  grid-column: span 7;
  aspect-ratio: auto;
}

.category-card:nth-child(6n + 2),
.category-card:nth-child(6n + 3) {
  grid-column: span 5;
  aspect-ratio: auto;
}

.category-card:nth-child(6n + 5),
.category-card:nth-child(6n + 6) {
  grid-column: span 6;
  height: clamp(300px, 25vw, 400px);
  aspect-ratio: auto;
}

.category-card-overlay {
  max-width: min(88%, 720px);
}

.category-card[data-category-card="teatro-espectaculo"] .category-card-image img {
  transform: scale(1.45);
  transform-origin: 47% 34%;
}

.category-card[data-category-card="teatro-espectaculo"]:hover .category-card-image img,
.category-card[data-category-card="teatro-espectaculo"]:focus-visible .category-card-image img {
  transform: scale(1.52);
}

.category-title {
  max-width: 19ch;
  font-size: clamp(1.55rem, 2.55vw, 3.35rem);
}

.work-browser:has(.active-context) {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4vw, 58px);
}

.active-context {
  position: static;
  top: auto;
  display: grid;
  gap: clamp(22px, 3vw, 38px);
}

.active-context > .back-button {
  width: fit-content;
}

.context-copy {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
  padding: clamp(24px, 3vw, 42px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.context-heading,
.context-details {
  min-width: 0;
}

.context-heading h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.3rem, 2.8vw, 4.2rem);
  line-height: 0.94;
  overflow-wrap: normal;
}

.context-details {
  display: grid;
  gap: 18px;
}

.context-details .category-copy,
.context-details .category-meta-list {
  max-width: 760px;
}

.context-details .read-more-button {
  justify-self: start;
}

.project-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.project-list:has(.project-card:only-child) {
  grid-template-columns: minmax(0, min(720px, 100%));
}

.project-list:has(.project-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card,
.project-card:nth-child(n) {
  grid-column: auto;
  min-width: 0;
  aspect-ratio: 4 / 5;
}

.project-card img {
  object-position: center;
}

.gallery-panel:not(:empty) {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  justify-self: stretch;
  gap: clamp(26px, 3.5vw, 54px);
  align-items: start;
}

.project-heading {
  grid-column: 1 / -1;
  grid-row: auto;
  position: static;
  top: auto;
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  max-width: none;
  padding: clamp(26px, 3.5vw, 48px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-heading-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.project-heading-actions .back-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.project-heading-text {
  max-width: 1040px;
}

.project-heading-text h3 {
  max-width: 18ch;
  font-size: clamp(2.8rem, 5.4vw, 6.4rem);
  line-height: 0.92;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.project-description {
  max-width: 820px;
}

.project-heading-text .meta-list,
.project-heading-text .category-meta-list {
  max-width: 920px;
}

.project-featured-image {
  grid-column: 1 / 9;
  grid-row: auto;
  align-self: start;
}

.project-featured-image img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

.gallery-grid {
  grid-column: 1 / -1;
}

.project-navigation {
  position: static;
  clear: both;
  margin-top: clamp(10px, 2vw, 24px);
}

.project-navigation-single {
  grid-template-columns: minmax(0, 1fr);
}

.project-nav-title {
  overflow-wrap: normal;
  word-break: normal;
}

.works-section {
  padding-bottom: clamp(54px, 6vw, 88px);
}

.works-section + .about-section {
  padding-top: clamp(60px, 7vw, 104px);
}

@media (max-width: 1100px) {
  .project-list,
  .project-list:has(.project-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-copy,
  .project-heading {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 980px) {
  :root {
    --content-gutter: clamp(28px, 6vw, 58px);
  }

  .gallery-panel:not(:empty) {
    width: 100%;
  }

  .project-heading {
    position: static;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .project-featured-image {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  :root {
    --content-gutter: 36px;
  }

  .section {
    width: calc(100% - var(--content-gutter));
  }

  .intro {
    padding-right: 18px;
    padding-left: 18px;
  }

  .intro h1,
  .intro-statement {
    width: 100%;
  }

  .intro-scroll-cue {
    display: none;
  }

  .category-card,
  .category-card:nth-child(n) {
    grid-column: 1;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .category-title {
    max-width: 16ch;
    font-size: clamp(1.6rem, 8vw, 2.45rem);
  }

  .context-copy,
  .project-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .context-heading h3,
  .project-heading-text h3 {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .project-list,
  .project-list:has(.project-card:only-child),
  .project-list:has(.project-card:nth-child(2):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card,
  .project-card:nth-child(n) {
    grid-column: 1;
    aspect-ratio: 4 / 5;
  }

  .project-heading-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-heading-actions .back-button,
  .back-button-project {
    position: static;
    top: auto;
    z-index: auto;
    min-height: 46px;
    background: transparent;
    backdrop-filter: none;
  }

  .gallery-grid,
  .project-navigation {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-navigation {
    margin-bottom: 0;
  }
}

/* Encabezados de categoría: dos columnas estables y una sola vía de regreso. */
.active-context {
  width: 100%;
  gap: 0;
  padding: 0;
}

.context-copy {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(42px, 6vw, 92px);
  padding: clamp(34px, 4vw, 58px) 0 clamp(42px, 5vw, 72px);
}

.context-heading,
.context-details,
.context-details .category-copy,
.context-details .category-meta-list {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.context-heading h3 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 3.4vw, 4.5rem);
  line-height: 0.96;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.context-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.context-details .category-copy {
  grid-area: auto;
  font-size: clamp(1rem, 1.08vw, 1.12rem);
}

.context-details .read-more-button {
  flex: 0 0 auto;
  margin: 0;
}

.active-context + .project-list {
  padding-top: clamp(34px, 4vw, 58px);
}

@media (max-width: 1180px) {
  .context-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .context-heading h3 {
    max-width: 18ch;
  }
}

@media (max-width: 700px) {
  .context-copy {
    gap: 22px;
    padding: 28px 0 38px;
  }

  .context-heading h3 {
    max-width: 100%;
    font-size: clamp(2.05rem, 10.5vw, 3.15rem);
  }

  .context-details .category-copy {
    font-size: 1rem;
    line-height: 1.62;
  }

  .active-context + .project-list {
    padding-top: 28px;
  }
}

.brand {
  width: fit-content;
  padding: 0.12em 0.3em 0.16em 0.06em;
  background-image: var(--hero-hover-gradient);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 0 100%;
  text-decoration: none;
  transition: background-size 320ms cubic-bezier(0.19, 1, 0.22, 1);
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
  background-size: 100% 100%;
  text-decoration: none;
}

/* Filas justificadas: proporciones intactas y ninguna imagen aislada. */
.project-featured-image {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1240px;
  justify-self: start;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 34px);
}

.gallery-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 2.2vw, 34px);
}

.gallery-grid > .gallery-row > figure,
.gallery-grid > .gallery-row > figure:nth-child(n) {
  grid-column: auto;
  flex: var(--image-ratio, 1) 1 0;
  min-width: 0;
  aspect-ratio: auto;
  overflow: hidden;
}

.gallery-row .gallery-image-trigger {
  width: 100%;
  aspect-ratio: var(--image-ratio, 1);
  overflow: hidden;
}

.gallery-row img,
.gallery-grid .gallery-row img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

@media (max-width: 700px) {
  .gallery-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .gallery-grid > .gallery-row > figure,
.gallery-grid > .gallery-row > figure:nth-child(n) {
    width: 100%;
  }
}

/* Ajustes finales puntuales: jerarquía de Sobre MU y respuesta de la fotografía. */
.about-section .section-heading h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.12em 0.34em;
}

.about-title-name {
  color: var(--muted);
  font-size: 0.72em;
}

.about-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(26px, 3.6vw, 54px);
}

.about-copy {
  max-width: 760px;
}

.about-copy p {
  color: var(--ink);
  font-size: clamp(1.04rem, 1.15vw, 1.18rem);
  line-height: 1.72;
}

.about-image {
  width: min(100%, 560px);
}

.about-image img {
  filter: saturate(0.92) contrast(1.03) brightness(0.96);
  transition: filter 420ms ease, transform 760ms cubic-bezier(0.19, 1, 0.22, 1);
}

@media (hover: hover) {
  .about-image:hover img {
    filter: saturate(1) contrast(1.02) brightness(1);
    transform: scale(1.045);
  }
}

@media (max-width: 700px) {
  .about-title-name {
    font-size: 0.68em;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-scroll-cue span:last-child,
  .about-image img,
  .about-image:hover img {
    transform: none;
    transition: none;
  }
}
