:root {
  --plum: #351b2f;
  --plum-2: #4b2a43;
  --plum-deep: #24121f;
  --gold: #efd68c;
  --gold-2: #b78e42;
  --ink: #20181c;
  --muted: #6e6669;
  --paper: #fbf8f1;
  --stone: #ebe5dc;
  --sage: #6f7d68;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(32, 24, 28, .16);
}

* {
  box-sizing: border-box;
}

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

[id] {
  scroll-margin-top: 88px;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(183, 142, 66, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(183, 142, 66, .04) 1px, transparent 1px);
  background-size: 84px 84px;
}

body::selection {
  background: var(--gold);
  color: var(--plum);
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 241, .94);
  color: var(--ink);
  box-shadow: 0 10px 35px rgba(32, 24, 28, .12);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 5px;
  background: var(--plum);
  border: 1px solid rgba(239, 214, 140, .55);
}

.brand span {
  max-width: 310px;
  line-height: 1.12;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  position: relative;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 11px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 140px clamp(20px, 6vw, 80px) 58px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: var(--plum);
}

.hero-main-photo,
.hero-side-photo {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--plum);
}

.hero-main-photo {
  grid-row: 1 / -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96) contrast(1.04);
}

.hero-side-photo img {
  filter: saturate(.9) contrast(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(53, 27, 47, .9), rgba(53, 27, 47, .58) 48%, rgba(53, 27, 47, .2)),
    linear-gradient(0deg, rgba(32, 24, 28, .68), transparent 52%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(239, 214, 140, .22);
  pointer-events: none;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: .98;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
}

h1 {
  max-width: 13ch;
  font-size: clamp(58px, 10.4vw, 142px);
}

h2 {
  font-size: clamp(34px, 5vw, 72px);
}

h3 {
  font-size: 25px;
}

.hero-copy {
  width: min(100%, 610px);
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

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

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--plum);
}

.button.ghost {
  color: var(--white);
}

.button.light {
  color: var(--gold);
}

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

.hero-panel {
  position: absolute;
  right: clamp(20px, 6vw, 80px);
  bottom: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  max-width: 560px;
  border: 1px solid rgba(239, 214, 140, .45);
  background: rgba(53, 27, 47, .72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(32, 24, 28, .18);
}

.hero-panel span {
  padding: 18px;
  border-left: 1px solid rgba(239, 214, 140, .25);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.hero-panel span:first-child {
  border-left: 0;
}

.hero-panel strong {
  display: block;
  color: var(--gold);
  font-size: 22px;
}

.section {
  padding: clamp(72px, 9vw, 132px) clamp(20px, 6vw, 80px);
}

.signature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(239, 214, 140, .28);
  border-bottom: 1px solid rgba(239, 214, 140, .28);
  background: var(--plum-deep);
  color: var(--gold);
}

.signature-strip span {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-left: 1px solid rgba(239, 214, 140, .18);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.signature-strip span:first-child {
  border-left: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) 1fr;
  gap: clamp(24px, 4vw, 70px);
  align-items: start;
  margin-bottom: 50px;
}

.section-heading.compact {
  display: block;
  max-width: 920px;
}

.intro {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(251, 248, 241, 0) 42%),
    var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.intro-text {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.intro-text h2 {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.02;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--plum);
  font-weight: 850;
  text-decoration-color: var(--gold-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.studio-points {
  display: grid;
  gap: 10px;
  margin: 26px 0 4px;
}

.studio-points span {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.studio-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 14px;
  height: 1px;
  background: var(--gold-2);
}

.studio-showcase {
  position: relative;
  min-height: clamp(520px, 48vw, 680px);
}

.studio-main {
  width: 100%;
  height: clamp(460px, 48vw, 640px);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.studio-showcase::before {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  z-index: -1;
  border: 1px solid rgba(183, 142, 66, .32);
}

.studio-inset {
  position: absolute;
  left: -42px;
  bottom: -34px;
  width: min(42%, 260px);
  height: 330px;
  object-fit: cover;
  border: 10px solid var(--paper);
  box-shadow: 0 18px 48px rgba(32, 24, 28, .18);
}

.studio-note {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 320px;
  padding: 20px;
  background: rgba(53, 27, 47, .92);
  color: rgba(255, 255, 255, .82);
  border: 1px solid rgba(239, 214, 140, .45);
}

.studio-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 520;
}

.studio-note span {
  display: block;
  line-height: 1.45;
}

.services {
  background:
    linear-gradient(135deg, rgba(239, 214, 140, .08), transparent 28%),
    var(--plum);
  color: var(--white);
}

.services .section-heading {
  color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(239, 214, 140, .22);
}

.service-grid article {
  min-height: 320px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--plum);
}

.service-grid span {
  color: var(--gold);
  font-weight: 900;
}

.service-grid h3 {
  margin-top: 46px;
}

.service-grid p,
.feature-copy p,
.timeline p {
  color: rgba(255, 255, 255, .76);
  line-height: 1.65;
}

.feature-project {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(300px, 1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(239, 214, 140, .18), transparent 38%),
    var(--stone);
}

.feature-copy p {
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 720;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 14px;
  height: 2px;
  background: var(--gold-2);
}

.feature-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 16px;
}

.feature-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-collage img:first-child {
  grid-row: span 2;
}

.process {
  background: var(--paper);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(53, 27, 47, .22);
}

.timeline article {
  position: relative;
  padding: 36px 24px 0 0;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold-2);
}

.timeline h3 {
  font-size: 24px;
}

.timeline p {
  color: var(--muted);
}

.gallery-section {
  background:
    linear-gradient(180deg, var(--white), #f7f1e7);
}

.gallery-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.gallery-top h2 {
  max-width: 760px;
}

.gallery-intro {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.filter {
  min-height: 38px;
  border: 1px solid rgba(53, 27, 47, .25);
  border-radius: 999px;
  background: transparent;
  color: var(--plum);
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter.active {
  background: var(--plum);
  color: var(--gold);
}

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

.gallery button {
  position: relative;
  min-height: 260px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--stone);
  cursor: zoom-in;
  box-shadow: 0 14px 32px rgba(32, 24, 28, .08);
}

.gallery button::after {
  content: "Ver proyecto";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 214, 140, .58);
  background: rgba(53, 27, 47, .7);
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  text-transform: uppercase;
}

.gallery button:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery button.featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 536px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 46px 16px 16px;
  background: linear-gradient(0deg, rgba(32, 24, 28, .86), rgba(32, 24, 28, 0));
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.gallery button:hover img {
  transform: scale(1.035);
  filter: brightness(.88);
}

.contact {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(360px, 1.18fr);
  gap: clamp(28px, 5vw, 70px);
  background:
    linear-gradient(135deg, rgba(239, 214, 140, .12), transparent 30%),
    var(--plum);
  color: var(--white);
}

.contact-content {
  display: grid;
  align-content: end;
  gap: 28px;
}

.contact-card {
  max-width: 820px;
}

.contact-card p {
  max-width: 680px;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.65;
}

.contact-details {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-left: 1px solid rgba(239, 214, 140, .35);
  color: rgba(255, 255, 255, .82);
  font-style: normal;
  line-height: 1.45;
}

.contact-details a {
  color: var(--gold);
  text-decoration: none;
}

.contact-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.storefront {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(239, 214, 140, .38);
  background: rgba(32, 24, 28, .38);
  box-shadow: 0 22px 60px rgba(18, 13, 16, .24);
}

.storefront img {
  width: 100%;
  height: clamp(300px, 31vw, 470px);
  object-fit: cover;
}

.storefront figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  background: rgba(53, 27, 47, .86);
  border: 1px solid rgba(239, 214, 140, .36);
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-frame {
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(239, 214, 140, .38);
  background: var(--stone);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: saturate(.85) contrast(1.02);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 6vw, 80px);
  background: #20181c;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.lightbox {
  width: min(1020px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  padding: 0;
  background: #120d10;
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(18, 13, 16, .86);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: #120d10;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
  color: rgba(255, 255, 255, .82);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(239, 214, 140, .45);
  border-radius: 50%;
  background: rgba(18, 13, 16, .72);
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

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

  .hero-panel {
    position: static;
    margin-top: 46px;
  }

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

  .signature-strip span:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand span {
    max-width: 190px;
    font-size: 14px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 18px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .nav a {
    padding: 9px 0;
  }

  .nav.is-open {
    display: grid;
  }

  .hero {
    min-height: 86vh;
    padding: 120px 20px 38px;
  }

  .hero::before {
    inset: 8px;
  }

  .hero-media {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: 0;
  }

  .hero-main-photo {
    grid-row: auto;
  }

  .hero-side-photo {
    display: none;
  }

  .hero-copy {
    width: 100%;
    max-width: 31ch;
  }

  .hero-panel,
  .section-heading,
  .intro-grid,
  .feature-project,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-panel span {
    border-left: 0;
    border-top: 1px solid rgba(239, 214, 140, .25);
  }

  .hero-panel span:first-child {
    border-top: 0;
  }

  .signature-strip span {
    min-height: 70px;
    font-size: 11px;
  }

  .signature-strip {
    grid-template-columns: 1fr;
  }

  .signature-strip span,
  .signature-strip span:nth-child(odd) {
    border-left: 0;
    border-top: 1px solid rgba(239, 214, 140, .18);
  }

  .signature-strip span:first-child {
    border-top: 0;
  }

  .studio-showcase {
    min-height: auto;
  }

  .studio-main {
    height: 420px;
  }

  .studio-inset {
    left: 18px;
    bottom: 18px;
    width: 38%;
    height: 210px;
    border-width: 7px;
  }

  .studio-note {
    right: 18px;
    bottom: 18px;
    width: min(52%, 260px);
    padding: 16px;
  }

  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: 230px;
  }

  .feature-collage {
    grid-auto-rows: 180px;
  }

  .gallery-top {
    display: grid;
    align-items: start;
  }

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

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

  .gallery button,
  .gallery button.featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 235px;
  }

  .gallery button::after {
    display: none;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 54px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .feature-collage {
    grid-template-columns: 1fr;
  }

  .studio-main {
    height: 360px;
  }

  .studio-inset {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 250px;
    margin-top: 12px;
    border: 0;
  }

  .studio-note {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 12px;
  }

  .feature-collage img:first-child {
    grid-row: auto;
  }

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

  .gallery button,
  .gallery button.featured {
    min-height: 320px;
  }
}
