:root {
  --bg: #000000;
  --text: #F2F1F0;
  --muted: #AAA59D;
  --line: #2D2A29;
  --panel: #2D2A29;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

body {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Urbanist", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.brand-mark {
  font-family: Urbanist, Inter, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}

.site-nav a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px 0 8px 16px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
}

main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 12vh var(--gutter) 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
  gap: 56px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 970px;
}

.eyebrow {
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--muted);
}

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

h1 {
  margin-bottom: 28px;
  max-width: 1100px;
  font-family: Urbanist, Inter, sans-serif;
  font-weight: 450;
  font-size: clamp(54px, 8.7vw, 132px);
  line-height: .91;
  letter-spacing: -.045em;
}

.hero-text {
  max-width: 610px;
  margin: 0;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.32;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: end;
  font-size: 14px;
  color: var(--muted);
}

.hero-meta a:hover {
  color: var(--text);
}

.section {
  padding: 120px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr);
  gap: 48px;
  margin-bottom: 72px;
}

.section-heading h2 {
  margin: 0;
  max-width: 980px;
  font-family: Urbanist, Inter, sans-serif;
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 450;
  line-height: 1.02;
  letter-spacing: -.035em;
}

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

.project-card--wide {
  grid-column: span 2;
}

.project-image {
  min-height: 520px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--panel);
}

.project-card--wide .project-image {
  aspect-ratio: 16 / 8.8;
}

.placeholder-image {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.25), transparent 45%),
    linear-gradient(160deg, #d8d2c9, #b8b2a8);
}

.placeholder-image::after {
  content: attr(data-label) " · reemplazar por fotografía";
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 12px;
  letter-spacing: .05em;
  color: rgba(23,23,21,.62);
}

.project-info {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.project-info h3 {
  margin-bottom: 2px;
  font-size: 17px;
  font-weight: 550;
}

.project-info p,
.project-info span {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.section--split .section-heading {
  display: block;
  margin-bottom: 0;
}

.section--split .eyebrow {
  margin-bottom: 24px;
}

.long-copy {
  align-self: end;
  font-size: clamp(21px, 2.2vw, 32px);
  line-height: 1.35;
  color: var(--muted);
}

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

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-height: 320px;
  padding: 36px var(--gutter) 44px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.principle:last-child {
  border-right: 0;
}

.principle span {
  font-size: 12px;
  color: var(--muted);
}

.principle h3 {
  margin: auto 0 14px;
  font-family: Urbanist, Inter, sans-serif;
  font-size: 30px;
  font-weight: 500;
}

.principle p {
  margin-bottom: 0;
  max-width: 340px;
  color: var(--muted);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 64px minmax(240px, .75fr) 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-row > span {
  font-size: 12px;
  color: var(--muted);
}

.service-row h3 {
  margin: 0;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 500;
}

.service-row p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
}

.contact-section {
  padding: 150px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  background: #171715;
  color: #f2f0eb;
}

.contact-section .eyebrow {
  color: #a9a69f;
}

.contact-section h2 {
  margin: 0;
  max-width: 560px;
  font-family: Urbanist, Inter, sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 450;
  line-height: .98;
  letter-spacing: -.04em;
}

.contact-links {
  align-self: end;
  display: grid;
  gap: 20px;
}

.contact-links a {
  padding: 20px 0;
  border-top: 1px solid rgba(242,240,235,.24);
  font-size: clamp(18px, 2vw, 27px);
}

.contact-links a:last-child {
  border-bottom: 1px solid rgba(242,240,235,.24);
}

.contact-links span {
  display: block;
  margin-bottom: 4px;
  color: #a9a69f;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.site-footer {
  padding: 28px var(--gutter) 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .site-header {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
    z-index: 22;
  }

  .site-nav {
    position: fixed;
    inset: 66px 0 auto;
    padding: 28px var(--gutter) 36px;
    display: none;
    flex-direction: column;
    gap: 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font-size: 20px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: calc(100vh - 66px);
    grid-template-columns: 1fr;
    padding-top: 10vh;
  }

  .hero-meta {
    margin-top: 40px;
  }

  .section,
  .contact-section {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .section-heading,
  .section--split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 48px;
  }

  .project-image {
    min-height: 0;
  }

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

  .principle {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .service-row {
    grid-template-columns: 44px 1fr;
  }

  .service-row p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: 28px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 82px);
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-card--wide {
    grid-column: auto;
  }

  .project-card--wide .project-image,
  .project-image {
    aspect-ratio: 4 / 5;
  }

  .section--split {
    gap: 40px;
  }

  .service-row {
    grid-template-columns: 36px 1fr;
    gap: 14px;
  }

  .contact-section {
    gap: 52px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
