:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --ink: #161616;
  --muted: #615f57;
  --rule: #d6d5d0;
  --accent: #98170f;
  --heading: Arial, Helvetica, sans-serif;
  --yellow: #e6c815;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
  scroll-padding-top: 94px;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, p, h1, h2, h3, ul, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * clamp(22px, 5vw, 85px), 1530px); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 8px 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
  padding-inline: 4%;
  min-height: 78px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 48px; height: auto; mix-blend-mode: multiply; }
.site-header nav, .social { display: flex; flex-wrap: wrap; gap: clamp(18px, 3.3vw, 50px); }
.site-header nav a { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; padding-block: 8px; text-underline-offset: 6px; }
.site-header nav .active, .site-header nav a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--heading); font-weight: 500; }
.text-link, .back-link { display: inline-flex; gap: 13px; align-items: baseline; font-size: 14px; }
.text-link { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.arrow {
  display: inline-block;
  width: .8em;
  height: .8em;
  flex: 0 0 auto;
  color: var(--accent);
  position: relative;
}
.arrow::before, .arrow::after { content: ""; position: absolute; right: .06em; top: .06em; }
.arrow::before { width: .44em; height: .44em; border-top: 1px solid; border-right: 1px solid; }
.arrow::after { width: .8em; border-top: 1px solid; transform: rotate(-45deg); transform-origin: right; }
.arrow--back { transform: rotate(-135deg); }
.arrow--forward { transform: rotate(45deg); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  border-top: 1px solid var(--rule);
  padding-block: 16px 24px;
}
.section-heading h2, .project-address h2 { font-size: clamp(29px, 3vw, 44px); line-height: 1.08; letter-spacing: -.025em; }
.section-heading p { color: var(--muted); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(20px, 2.5vw, 38px); }
.project-card a { display: block; }
.card-image { aspect-ratio: 1.43; overflow: hidden; background: #e8e6df; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease-out; }
.project-card a:hover img { transform: scale(1.025); }
.card-info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 13px; }
.card-info :is(h2, h3) { font-size: clamp(21px, 2.1vw, 31px); line-height: 1.13; letter-spacing: -.01em; }
.card-info p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.project-card--text a { border-top: 1px solid var(--rule); }
.team-list { list-style: none; padding: 0; }

.page { padding-top: clamp(34px, 6vw, 90px); min-height: 48vh; }
.page-heading { margin-bottom: clamp(28px, 4vw, 62px); }
.page-heading h1, .project-heading h1 {
  font-size: clamp(52px, 7vw, 108px);
  letter-spacing: -.045em;
  line-height: 1;
  text-wrap: balance;
}
.page-heading p { margin-top: 14px; font-size: clamp(17px, 1.8vw, 25px); }
.page-heading .category-fact { color: var(--muted); font-size: 14px; }
.category-nav { display: flex; flex-wrap: wrap; gap: 6px clamp(15px, 2.5vw, 36px); border-block: 1px solid var(--rule); padding-block: 9px; margin-bottom: 28px; }
.category-nav a { font-size: 14px; padding-block: 5px; color: var(--muted); }
.category-nav a:hover, .category-nav a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.video-link { margin-top: 34px; }
.back-link { margin-bottom: 22px; color: var(--muted); }
.project-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 28px; align-items: end; margin-bottom: 32px; }
.project-heading h1 { font-size: clamp(44px, 6vw, 88px); text-wrap: wrap; }
.project-location { margin-top: 13px; color: var(--muted); }
.project-description p + p { margin-top: 10px; }
.project-summary { font-weight: 600; }
.project-cover { background: #eeece6; }
.project-cover img { width: 100%; max-height: min(77vh, 830px); height: auto; object-fit: contain; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 16px 24px;
  margin-block: 24px 48px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
}
.facts dt, .team-grid p { font-size: 13px; color: var(--muted); }
.facts dd { margin-top: 4px; }
.project-address { margin-block: 38px; }
.project-address h2 { margin-bottom: 10px; }
.gallery-section { margin-top: 46px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.7vw, 24px); }
.gallery a { position: relative; display: grid; height: 100%; place-items: center; background: #eeece6; }
.gallery img { width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.gallery .portrait img { max-height: 360px; }
.enlarge { position: absolute; bottom: 8px; right: 8px; min-width: 30px; padding: 3px 6px; display: grid; place-items: center; min-height: 30px; background: var(--paper); }
.gallery a:hover .enlarge { color: var(--accent); }
.next-project { margin-top: 64px; border-top: 1px solid var(--rule); padding-top: 18px; display: flex; justify-content: space-between; gap: 24px; font-size: 14px; }
.next-project a:last-child { text-align: right; }

.lightbox { border: 0; padding: 12px; color: #fff; background: #201f1d; width: min(calc(100% - 20px), 1400px); max-width: none; max-height: 96dvh; }
.lightbox::backdrop { background: #141310ed; }
.viewer-open { overflow: hidden; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; padding-left: 12px; }
.viewer-count, .viewer-caption { font-size: 14px; }
.viewer-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; }
.viewer-stage img { grid-column: 2; grid-row: 1; width: auto; height: auto; max-height: min(74dvh, 850px); justify-self: center; object-fit: contain; }
.viewer-prev { grid-column: 1; grid-row: 1; }
.viewer-next { grid-column: 3; grid-row: 1; }
.lightbox button { color: inherit; background: transparent; border: 0; font-size: 30px; min-width: 40px; min-height: 44px; }
.lightbox button:hover, .lightbox button:focus-visible { color: white; background: #484641; outline-color: white; }
.viewer-caption { padding: 10px 12px 3px; text-align: center; }

.studio-intro { max-width: 36em; font: 400 clamp(22px, 3.1vw, 42px)/1.2 var(--heading); }
.team-section { margin-top: 55px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.team-grid h3 { font-size: clamp(25px, 3.1vw, 40px); line-height: 1.1; }
.team-grid p { margin-block: 8px 12px; }
.team-grid a, .team-list { font-size: 14px; }
.team-list li { display: grid; grid-template-columns: minmax(160px, .5fr) 1fr; gap: 16px; border-bottom: 1px solid var(--rule); padding-block: 10px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.contact-email { font: 500 clamp(22px, 3.4vw, 48px)/1.12 var(--heading); overflow-wrap: anywhere; }
.contact-grid address, .contact-grid .social { margin-top: 22px; }
.contact-grid form { display: grid; gap: 15px; }
.contact-grid label { display: grid; gap: 5px; font-size: 14px; }
.contact-grid input, .contact-grid textarea { border: 1px solid #89857a; border-radius: 0; background: transparent; color: var(--ink); padding: 10px; width: 100%; }
.contact-grid textarea { resize: vertical; }
.contact-button { justify-self: start; border: 0; background: var(--ink); color: white; padding: 10px 18px; }
.contact-button:hover { background: var(--accent); }
.contact-button .arrow { color: inherit; }

.site-footer { background: var(--ink); color: #ddd; margin-top: clamp(68px, 9vw, 135px); }
.footer-content {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding-block: 26px;
  font-size: 13px;
}
.site-footer a:hover { color: var(--yellow); }
.site-footer .brand img { width: 42px; mix-blend-mode: normal; border: 4px solid #fff; background: #fff; }
.site-footer .arrow { color: var(--yellow); }
.social { gap: 18px; }
.social span { color: var(--accent); }

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .site-header { min-height: 75px; gap: 12px; }
  .brand img { width: 47px; }
  .site-header nav { gap: 1px clamp(9px, 2vw, 18px); justify-content: flex-end; }
  .site-header nav a { font-size: 10px; padding-block: 4px; }
  .project-grid { gap: 30px 12px; }
  .card-info { padding-top: 8px; gap: 6px; }
  .card-info :is(h2, h3) { font-size: 20px; }
  .card-info p { font-size: 12px; line-height: 1.35; }
  .project-heading, .contact-grid { grid-template-columns: 1fr; }
  .project-heading { gap: 14px; }
  .project-cover img { max-height: 54vh; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-stage { grid-template-columns: 37px minmax(0, 1fr) 37px; }
  .lightbox button { min-width: 36px; }
  .team-grid { grid-template-columns: 1fr; gap: 26px; }
  .team-list li { grid-template-columns: 1fr; gap: 3px; }
  .footer-content { grid-template-columns: auto 1fr; gap: 14px; }
  .site-footer .social, .site-footer .back-top { grid-column: 2; }
  .site-footer .brand { margin-right: 7px; }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 32px); }
  .site-header nav { gap: 10px; }
  .section-heading .text-link { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .card-image img { transition: none; }
}

/* Portada */
.editorial-home .site-footer { margin-top: 0; }
.editorial-hero { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 75svh; }
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
  padding: clamp(42px, 6.9vw, 104px) 6vw clamp(33px, 4vw, 64px);
  background: #191919;
  color: #fff;
}
.eyebrow { font-size: 11px; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.editorial-hero h1 { font: 500 clamp(48px, 7.15vw, 118px)/.95 var(--heading); letter-spacing: -.075em; margin-block: 19px; }
.editorial-hero h1 span { color: #d9d9d9; }
.editorial-hero h1 .hero-dot { color: var(--yellow); }
.hero-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 13px; font-size: 12px; color: #c6c6c6; }
.hero-bottom a:hover, .hero-bottom .arrow { color: var(--yellow); }
.hero-bottom .arrow, .back-top .arrow { margin-left: 5px; }
.arrow--down { transform: rotate(135deg); }
.arrow--up { transform: rotate(-45deg); }
.hero-image { position: relative; min-height: 100%; background: #b7b7af; }
.hero-image > a { position: absolute; inset: 0; display: block; }
.hero-image > a:focus-visible { z-index: 1; outline-offset: -5px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-image figcaption { position: absolute; left: 18px; bottom: 17px; padding: 5px 9px; background: #161616d9; color: #fff; font-size: 11px; pointer-events: none; }

.editorial-section { padding-block: clamp(55px, 7vw, 110px); }
.editorial-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid currentColor;
  padding-top: 15px;
  margin-bottom: clamp(30px, 4.3vw, 66px);
}
.editorial-heading h2, .editorial-heading a, .archive-more {
  font: 400 11px/1.5 var(--heading);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.editorial-heading a .arrow, .archive-more .arrow { margin-left: 4px; }
.editorial-intro { max-width: 13em; margin-bottom: clamp(32px, 4.3vw, 64px); font-size: clamp(38px, 6vw, 88px); line-height: 1.02; letter-spacing: -.06em; }
.work-scales { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.work-scales li + li { border-left: 1px solid var(--rule); }
.work-scales a { display: block; position: relative; min-height: 160px; height: 100%; padding: 26px 18px; }
.work-scales li:first-child a { padding-left: 0; }
.work-scales h3 { margin-bottom: 10px; font-size: clamp(16px, 1.8vw, 25px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; text-transform: uppercase; }
.work-scales p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.work-scales .arrow { position: absolute; bottom: 11px; left: 18px; }
.work-scales li:first-child .arrow { left: 0; }

.featured-project { background: #e8e7e2; }
.featured-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.featured-title h3 { font-size: clamp(41px, 7vw, 105px); line-height: .97; letter-spacing: -.07em; max-width: 11em; }
.featured-title p { flex: none; background: var(--yellow); font-size: 11px; padding: 8px 13px; text-transform: uppercase; letter-spacing: .12em; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 15px; }
.feature-grid a { position: relative; display: block; }
.feature-grid img { width: 100%; height: auto; aspect-ratio: 1.24; object-fit: cover; background: #d6d5d0; }
.feature-grid figcaption { padding-block: 8px; font-size: 12px; color: var(--muted); }
.editorial-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: start; justify-content: space-between; margin-top: 25px; }
.editorial-links p { max-width: 45ch; }
.editorial-links .text-link { text-transform: uppercase; letter-spacing: .07em; font-size: 11px; }

.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.archive-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 225px;
  height: 100%;
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid #c9c7c1;
  transition: background-color .2s;
}
.archive-card:hover { background: #e8e7e2; }
.archive-card h3 { margin-block: 14px 10px; font-size: clamp(25px, 2.8vw, 40px); line-height: 1.03; letter-spacing: -.05em; }
.archive-card p { color: var(--muted); font-size: 14px; }
.archive-card .eyebrow { font-size: 10px; }

.technical { background: #deddd6; }
.technical-grid { display: grid; grid-template-columns: 1.07fr .93fr; gap: clamp(28px, 5vw, 65px); }
.technical-grid h3 { font-size: clamp(35px, 5.3vw, 77px); line-height: 1; letter-spacing: -.06em; margin-bottom: 22px; }
.technical-grid .text-link, .award .text-link { margin-top: 17px; }
.technical-grid dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-bottom: 1px solid #b3b1aa; padding-block: 12px; font-size: 14px; }
.technical-grid dt { color: var(--muted); }

.award { background: var(--yellow); }
.award-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 32px; padding-block: clamp(30px, 4.2vw, 60px); }
.award h2 { font-size: clamp(30px, 4vw, 58px); line-height: 1; letter-spacing: -.055em; }
.award .arrow { color: inherit; }

.editorial-studio { background: #191919; color: #fafafa; }
.editorial-studio .editorial-heading { border-color: #8a8a8a; }
.editorial-studio a:hover, .editorial-studio .arrow { color: var(--yellow); }
.studio-wordmark { font: 800 clamp(80px, 15vw, 236px)/.85 var(--heading); letter-spacing: -.1em; margin-bottom: clamp(30px, 5.5vw, 76px); }
.editorial-team article, .editorial-roster { padding-block: 20px; border-top: 1px solid #777; }
.editorial-team p, .editorial-roster p { color: #c7c7c7; }
.editorial-roster { display: grid; grid-template-columns: 1fr 2fr; gap: 15px; margin-top: 24px; }
.editorial-contact h3 { font-size: clamp(48px, 7.5vw, 111px); line-height: .94; letter-spacing: -.075em; margin-bottom: 30px; }
.editorial-contact { grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 5vw, 70px); }
.editorial-contact .text-link, .footer-content address { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .editorial-hero { grid-template-columns: 1fr; }
  .editorial-hero h1 { font-size: clamp(54px, 10vw, 86px); }
  .hero-image { min-height: 0; aspect-ratio: 900 / 713; }
  .hero-image img { object-position: center; }
  .work-scales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-scales li { border-bottom: 1px solid var(--rule); }
  .work-scales li:nth-child(odd) { border-left: 0; }
  .work-scales li:nth-child(odd) a { padding-left: 0; }
  .work-scales li:nth-child(odd) .arrow { left: 0; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technical-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .editorial-contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header { min-height: 66px; }
  .site-header .brand img { width: 39px; }
  .site-header nav { gap: 1px 9px; }
  .site-header nav a { font-size: 9px; letter-spacing: .07em; padding-block: 7px; }
  .editorial-hero h1 { font-size: clamp(47px, 11vw, 66px); }
  .hero-text { gap: 30px; }
  .work-scales, .feature-grid, .archive-grid, .award-layout, .editorial-roster { grid-template-columns: 1fr; }
  .work-scales li + li { border-left: 0; }
  .work-scales a, .work-scales li:nth-child(even) a { min-height: auto; padding: 20px 24px 20px 0; }
  .work-scales p { margin-bottom: 0; }
  .work-scales li a .arrow, .work-scales li:nth-child(odd) a .arrow { top: 23px; left: auto; right: 3px; }
  .featured-title { align-items: start; flex-direction: column; }
  .archive-card { min-height: 0; }
  .award-layout { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .archive-card { transition: none; }
}
