:root {
  color-scheme: light;
  --ink: #17130f;
  --muted: #6c6258;
  --paper: #eee7dd;
  --paper-deep: #ded2c2;
  --charcoal: #26201c;
  --bone: #fbf7ef;
  --oxide: #b04a2b;
  --moss: #395247;
  --line: rgba(23, 19, 15, 0.16);
  --shadow: 0 24px 70px rgba(23, 19, 15, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--bone);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--line);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px clamp(18px, 4vw, 44px);
  color: var(--bone);
  background: rgba(23, 19, 15, 0.72);
  border-bottom: 1px solid rgba(251, 247, 239, 0.16);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(251, 247, 239, 0.82);
  font-size: 0.9rem;
}

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

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--bone);
  border-color: rgba(251, 247, 239, 0.72);
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  margin-top: -72px;
  padding: 150px clamp(18px, 4vw, 54px) 64px;
  color: var(--bone);
  background: var(--charcoal);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 19, 15, 0.82), rgba(23, 19, 15, 0.24) 58%, rgba(23, 19, 15, 0.18)),
    linear-gradient(0deg, rgba(23, 19, 15, 0.68), rgba(23, 19, 15, 0.04) 45%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92) contrast(1.03);
}

.hero-copy {
  width: min(760px, 100%);
}

.kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--oxide);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: #f0b089;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 5.4rem;
}

h2 {
  margin-bottom: 0;
  font-size: 3.35rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.22;
}

.hero-copy p {
  max-width: 610px;
  color: rgba(251, 247, 239, 0.86);
  font-size: 1.18rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.button.ghost {
  color: inherit;
  background: rgba(251, 247, 239, 0.08);
}

.section-pad {
  padding: 86px clamp(18px, 4vw, 54px);
}

.statement,
.works,
.series,
.trajectory,
.contact {
  max-width: calc(var(--max) + 108px);
  margin-inline: auto;
}

#statement,
#obra,
#trayectoria,
#contacto {
  scroll-margin-top: 88px;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 54px;
  align-items: start;
}

.statement-copy {
  color: var(--charcoal);
  font-size: 1.08rem;
}

.statement-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 8px 13px;
  cursor: pointer;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter:hover,
.filter:focus-visible,
.filter.is-active {
  background: var(--charcoal);
  color: var(--bone);
  border-color: var(--charcoal);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.work {
  min-height: 310px;
}

.work.wide {
  grid-column: span 2;
}

.work.tall {
  grid-row: span 2;
  min-height: 640px;
}

.work.is-featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 640px;
}

.work[hidden] {
  display: none;
}

.work-button {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  color: var(--bone);
  background: var(--charcoal);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.work-button img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 450ms ease, filter 450ms ease;
}

.work-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 19, 15, 0.78), rgba(23, 19, 15, 0.08) 54%);
  opacity: 0.86;
  transition: opacity 220ms ease;
}

.work-button span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 2px;
  text-align: left;
}

.work-button strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.1;
}

.work-button em {
  color: rgba(251, 247, 239, 0.78);
  font-size: 0.84rem;
  font-style: normal;
}

.work-button:hover img,
.work-button:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.work-button:hover::after,
.work-button:focus-visible::after {
  opacity: 1;
}

.series {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 58px;
  border-top: 1px solid var(--line);
}

.series-copy p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.06rem;
}

.series-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.series-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.series-list span {
  color: var(--oxide);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.series-list p {
  grid-column: 2;
  margin-bottom: 0;
  color: var(--muted);
}

.trajectory {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(320px, 1.25fr);
  gap: 56px;
  background: var(--charcoal);
  color: var(--bone);
  max-width: none;
  margin-inline: 0;
}

.trajectory > * {
  width: min(100%, var(--max));
}

.trajectory > div:first-child {
  justify-self: end;
  max-width: 430px;
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(251, 247, 239, 0.18);
}

.timeline li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(251, 247, 239, 0.18);
}

.timeline time {
  color: #f0b089;
  font-family: Georgia, "Times New Roman", serif;
}

.timeline p {
  margin-bottom: 0;
  color: rgba(251, 247, 239, 0.74);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 36px;
  align-items: end;
  padding: 42px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact .button.ghost {
  background: transparent;
  color: var(--ink);
}

.contact .button.primary {
  text-align: center;
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 54px);
  color: rgba(251, 247, 239, 0.72);
  background: var(--ink);
  font-size: 0.88rem;
}

.footer p {
  margin: 0;
}

.lightbox {
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: hidden;
  color: var(--bone);
  background: #11100e;
  border: 1px solid rgba(251, 247, 239, 0.16);
  border-radius: 8px;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
}

.lightbox::backdrop {
  background: rgba(10, 8, 6, 0.78);
  backdrop-filter: blur(10px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100svh - 126px);
  object-fit: contain;
  background: #11100e;
}

.lightbox div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 20px;
  color: rgba(251, 247, 239, 0.78);
}

.lightbox strong {
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--bone);
  background: rgba(17, 16, 14, 0.76);
  border: 1px solid rgba(251, 247, 239, 0.22);
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .nav-links {
    gap: 12px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .statement-grid,
  .series,
  .trajectory,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .trajectory > div:first-child {
    justify-self: start;
    max-width: 700px;
  }

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

  .filters {
    justify-content: flex-start;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: relative;
    min-height: auto;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--ink);
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 76svh;
    margin-top: 0;
    padding: 76px 18px 38px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(23, 19, 15, 0.82), rgba(23, 19, 15, 0.44)),
      linear-gradient(0deg, rgba(23, 19, 15, 0.74), rgba(23, 19, 15, 0.08) 50%);
  }

  .hero-media img {
    object-position: 60% center;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.12rem;
    line-height: 1.04;
  }

  .section-pad {
    padding: 58px 18px;
  }

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

  .work,
  .work.tall,
  .work.wide,
  .work.is-featured {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 420px;
  }

  .work.wide {
    min-height: 300px;
  }

  .series-list article,
  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .series-list p {
    grid-column: 1;
  }

  .contact-panel {
    padding: 24px;
  }

  .contact-actions,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer,
  .lightbox div {
    flex-direction: column;
  }
}

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