@font-face {
  font-family: "um_arch_helvetica_light";
  font-style: normal;
  font-weight: 400;
  src: url("https://static.parastorage.com/fonts/v2/8eac109b-0fa9-42bf-a305-43e471e23779/v1/helvetica-w01-light.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "um_arch_helvetica_light";
  font-style: normal;
  font-weight: 400;
  src: url("https://static.parastorage.com/fonts/v2/8eac109b-0fa9-42bf-a305-43e471e23779/v1/helvetica-w02-light.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-024F, U+02C7, U+02C9, U+02D8-02DD, U+0394, U+03A9, U+03BC, U+03C0, U+2013-2014, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2113, U+2122, U+2202, U+2206, U+220F, U+2211-2212, U+2215, U+2219-221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+FB01-FB02;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6a6a6a;
  --line: #e6e6e6;
  --accent: #b61f24;
  --nav-width: 150px;
  --nav-gap: 34px;
  --content-max: 725px;
  --frame-top: 7vh;
  --frame-bottom: 5vh;
  --edge-gap: 36px;
  --right-gap: 110px;
  --header-gap: 39px;
  --font-main: "um_arch_helvetica_light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content-width: min(var(--content-max), calc(100vw - var(--edge-gap) - var(--right-gap)));
  --content-left: calc((100vw - var(--content-width)) / 2);
  --frame-left: calc(var(--content-left) - var(--nav-width) - var(--nav-gap));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: calc(var(--frame-top) + var(--header-gap));
  left: var(--frame-left);
  width: var(--nav-width);
}

.nav {
  display: grid;
  gap: 14px;
}

.nav a {
  display: inline-block;
  width: fit-content;
  color: var(--text);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #5b5b5b;
}

.nav a.is-active {
  color: var(--accent);
}

.content-column {
  margin-left: var(--content-left);
  width: var(--content-width);
}

.site-header {
  position: fixed;
  top: var(--frame-top);
  left: var(--content-left);
  width: var(--content-width);
  z-index: 10;
  background: var(--bg);
}

.brand {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
}

.brand-line {
  display: inline-block;
  white-space: pre;
  word-spacing: 0;
}

.nav-toggle {
  display: none;
}

.brand-accent {
  color: var(--accent);
  font-weight: 300;
}

.page-body {
  position: fixed;
  top: calc(var(--frame-top) + var(--header-gap));
  left: var(--content-left);
  width: var(--content-width);
  height: calc(100vh - var(--frame-top) - var(--frame-bottom) - var(--header-gap));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 2px;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-body::-webkit-scrollbar {
  display: none;
}

.page-header {
  margin-bottom: 22px;
}

.page-title {
  margin: 0;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.page-intro,
.page-kicker {
  display: none;
}

.feed,
.projects-grid,
.project-gallery,
.static-grid,
.people-grid {
  display: grid;
  gap: 28px;
}

.home-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 1.48 / 1;
  margin: 0;
  overflow: hidden;
}

.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 92%;
  background: #ffffff;
}

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

.feed {
  max-width: 860px;
}

.news-card {
  display: grid;
  gap: 14px;
  padding-bottom: 38px;
}

.news-cover {
  width: 100%;
  background: #f2f2f2;
}

.news-cover--featured {
  aspect-ratio: 1.48 / 1;
  overflow: hidden;
}

.news-link {
  color: inherit;
  text-decoration: none;
}

.news-link:hover,
.news-link:focus,
.news-link:focus-visible,
.news-link:active,
.news-link:visited {
  color: inherit;
  text-decoration: none;
}

.news-cover img {
  width: 100%;
  height: auto;
}

.news-cover--featured img {
  height: 100%;
  object-fit: cover;
  object-position: center 92%;
}

.news-meta,
.project-meta {
  display: grid;
  gap: 2px;
}

.news-line,
.project-name,
.project-location,
.project-status,
.project-subline {
  margin: 0;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.news-line {
  color: var(--text);
}

.news-line--strong {
  font-weight: 700;
}

.project-location,
.project-status,
.project-subline,
.copy-muted,
.static-block p,
.static-block li,
.contact-block p,
.job-block p,
.gallery-caption,
.project-summary p,
.project-summary li,
.project-closing p,
.project-closing li,
.summary-value,
.footer-note,
.back-link,
.empty-state {
  color: var(--muted);
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 30px 24px;
}

.project-card {
  display: grid;
  gap: 12px;
}

/* La separación de las miniaturas de projects se mantiene sin cambios. */
.projects-grid .project-card {
  gap: 12px;
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.project-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.project-card:hover .project-thumb::after {
  opacity: 0.32;
}

.load-sentinel {
  height: 1px;
}

.people-grid,
.static-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 28px;
}

.bureau-portrait {
  display: block;
  width: 173px;
  height: 198px;
  margin: 0 0 38px;
  object-fit: cover;
  object-position: center;
}

.page-body--bureau .people-grid,
.page-body--bureau .static-grid {
  grid-template-columns: minmax(0, 650px);
}

.page-body--bureau .people-grid {
  gap: 36px;
}

.bureau-profile {
  font-size: 11px;
  font-weight: 300;
  line-height: 15px;
}

.bureau-profile h2,
.page-body--bureau .static-block h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 15px;
  text-transform: lowercase;
}

.bureau-profile p {
  margin: 0;
  font-size: 11px;
  font-weight: 300;
  line-height: 15px;
}

.bureau-nationality {
  margin-bottom: 19px !important;
}

.bureau-timeline {
  display: grid;
  gap: 0;
  max-width: 450px;
}

.bureau-timeline-row {
  display: grid;
  grid-template-columns: 73px minmax(0, 1fr);
  column-gap: 0;
}

.page-body--bureau .static-grid {
  gap: 42px;
}

.page-body--bureau .static-block {
  gap: 0;
  max-width: 650px;
}

.page-body--bureau .static-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-body--bureau .static-block li {
  font-size: 11px;
  font-weight: 300;
  line-height: 15px;
}

.bureau-inline-list {
  margin: 0;
  font-size: 11px;
  font-weight: 300;
  line-height: 15px;
}

.static-block,
.contact-block,
.job-block,
.project-summary,
.project-closing {
  display: grid;
  gap: 10px;
}

.static-block h2,
.contact-block h2,
.job-block h2,
.project-summary h2,
.project-closing h2 {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.static-block p,
.contact-block p,
.job-block p,
.project-summary p,
.project-summary li,
.project-closing p,
.project-closing li {
  margin: 0;
  font-size: 11px;
  font-weight: 300;
}

.contact-block {
  display: block;
}

.contact-block p,
.contact-block a {
  color: var(--text);
  line-height: normal;
}

.contact-block .contact-name {
  font-weight: 700;
}

.contact-block .contact-spacer {
  height: 11px;
}

.job-block p,
.job-block a {
  color: var(--text);
}

.job-block h2 {
  font-weight: 700;
}

.static-block ul,
.project-summary ul,
.project-closing ul,
.job-block ul {
  margin: 0;
  padding-left: 18px;
}

.project-layout {
  display: grid;
  gap: 28px;
}

.project-layout--gallery-page {
  flex: 0 0 auto;
  min-height: 0;
  grid-template-rows: auto auto;
  gap: 15px;
}

.page-body--project {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-body--project .page-header {
  flex: 0 0 auto;
  margin-bottom: 18px;
}

.project-gallery-viewer {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 3508 / 2193;
  overflow: hidden;
}

.gallery-stage {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 10px;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  object-position: left top;
  background: #ffffff;
}

.project-gallery-viewer::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 88px;
  height: 44px;
  content: "";
  background: rgb(255 255 255 / 50%);
  pointer-events: none;
  z-index: 2;
}

.gallery-nav {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #4a4a4a;
  font-family: var(--font-main);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  opacity: 1;
  text-shadow: none;
  transition: color 0.2s ease;
}

.gallery-nav::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
}

.gallery-nav--prev {
  right: 58px;
}

.gallery-nav--prev::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.gallery-nav--next {
  right: 14px;
}

.gallery-nav--next::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.gallery-click-zone {
  display: none;
}

.project-gallery-viewer.is-single .gallery-nav,
.project-gallery-viewer.is-single::after {
  display: none;
}

.gallery-meta,
.gallery-counter,
.gallery-thumbs {
  display: none;
}

.project-summary,
.project-closing {
  max-width: 720px;
}

.project-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.summary-label {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.gallery-item {
  display: grid;
  gap: 10px;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #f5f5f5;
}

.gallery-caption {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.gallery-caption:empty {
  display: none;
}

.project-detail-lines {
  display: grid;
  gap: 2px;
  padding-top: 2px;
}

.project-closing .project-detail-line {
  margin: 0;
  font-size: 11px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0;
}

.project-detail-line--strong,
.project-detail-line--strong strong {
  font-weight: 700;
}

.project-closing {
  padding-top: 0;
  min-height: 42px;
}

.project-layout--gallery-page > [data-project-closing] {
  min-height: 42px;
}

.back-link {
  display: none;
}

.footer-note {
  margin-top: 34px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.empty-state {
  padding: 18px 0;
}

@media (max-width: 1120px) {
  :root {
    --nav-width: 132px;
    --nav-gap: 28px;
    --right-gap: 42px;
    --header-gap: 39px;
    --frame-top: 7vh;
    --frame-bottom: 5vh;
  }

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

@media (max-width: 1044px) {
  :root {
    --edge-gap: 24px;
  }

  .sidebar {
    position: fixed;
    inset: 0;
    z-index: 20;
    width: auto;
    padding: 88px 24px 32px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  html.nav-is-open .sidebar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease;
  }

  .site-header {
    position: relative;
    width: auto;
    left: auto;
    top: auto;
    z-index: 30;
    padding-right: 44px;
  }

  .content-column {
    width: auto;
    margin-left: 0;
    padding: 32px 24px 72px;
  }

  .page-body {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    padding-top: 30px;
  }

  .brand {
    font-size: 14px;
    letter-spacing: 0;
  }

  .nav {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 18px;
    overflow: visible;
  }

  .nav a {
    margin-left: 0;
  }

  .nav-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    width: 28px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle-line {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text);
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  html.nav-is-open .nav-toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  html.nav-is-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  html.nav-is-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body {
    overflow: auto;
  }

  html.nav-is-open body {
    overflow: hidden;
  }

  .people-grid,
  .static-grid,
  .project-summary-grid,
  .project-gallery-viewer {
    grid-template-columns: 1fr;
  }

  .page-body--project {
    display: block;
  }

  .project-layout--gallery-page {
    min-height: 0;
    grid-template-rows: auto auto;
  }

}

@media (max-width: 620px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 429px) {
  .brand {
    font-size: 12px;
  }
}
