:root {
  --ink: #14100d;
  --ink-2: #1d1814;
  --bone: #f2ede5;
  --bone-2: #e7e0d5;
  --brass: #b8925e;
  --muted-d: rgba(242, 237, 229, .62);
  --muted-l: rgba(20, 16, 13, .6);
  --line-d: rgba(242, 237, 229, .14);
  --line-l: rgba(20, 16, 13, .1);
  --pad: clamp(20px, 5vw, 72px);
  --sans: "Jost", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
.site-header.scrolled {
  background: rgba(20, 16, 13, .82);
  backdrop-filter: blur(10px);
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--bone); }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-weight: 400; font-size: 15px; letter-spacing: .38em; margin-right: -.38em; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  text-decoration: none; font-size: 12px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; opacity: .85;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor; transition: right .35s;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { right: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; transform: scale(1.06); animation: heroIn 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,13,.55) 0%, rgba(20,16,13,0) 30%, rgba(20,16,13,.1) 55%, rgba(20,16,13,.85) 100%);
}
.hero-content {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(110px, 18vh, 170px);
}
.eyebrow {
  margin: 0 0 18px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-d);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 104px); line-height: 1.02; letter-spacing: -.01em; font-weight: 300;
}
.hero h1 em { font-size: 1.08em; color: var(--bone); }
.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 32px;
  display: flex; gap: 24px; align-items: center;
  padding-top: 18px; border-top: 1px solid var(--line-d);
  text-decoration: none; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-d);
}
.hero-foot-name { color: var(--bone); }
.hero-foot .arrow { margin-left: auto; font-size: 16px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- Generic sections ---------- */
section { position: relative; }
.light { background: var(--bone); color: var(--ink); }
.dark { background: var(--ink); }
.label {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: 12px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass);
}
.light .label { color: #8a6a3f; }
.section-title { font-size: clamp(34px, 5vw, 64px); font-weight: 300; line-height: 1.05; margin-bottom: clamp(40px, 6vw, 80px); }

/* Vertical grid lines (Pladis style) */
.grid-lines::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line-l) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--pad)) / 4) 100%;
  background-position: var(--pad) 0;
  margin: 0 var(--pad);
  background-repeat: repeat-x;
}
.grid-lines > * { position: relative; }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(90px, 14vw, 180px) var(--pad); }
.manifesto-big {
  margin: 0; max-width: 24ch;
  font-family: var(--serif); font-size: clamp(34px, 4.8vw, 72px); line-height: 1.06; font-weight: 400;
}
.manifesto-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 7vw, 96px); margin-left: 50%; color: var(--muted-l);
}
.manifesto-cols p { margin: 0; font-size: 16px; }

/* ---------- Obra ---------- */
.obra { padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 120px); }
.obra-head { padding: 0 var(--pad); margin-bottom: clamp(60px, 9vw, 130px); }
.obra-title {
  font-size: clamp(72px, 17vw, 260px); line-height: .85; font-weight: 300;
  letter-spacing: .08em; margin-left: -.05em;
}
.obra-data {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(32px, 5vw, 56px) 0 0; border-top: 1px solid var(--line-d);
}
.obra-data div { padding: 18px 16px 0 0; }
.obra-data dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-d); }
.obra-data dd { margin: 6px 0 0; font-size: 16px; }

.ph { margin: 0; overflow: hidden; cursor: zoom-in; position: relative; background: var(--ink-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.ph:hover img { transform: scale(1.03); }
.ph.tall { aspect-ratio: 2 / 3; }
.ph.small { aspect-ratio: 2 / 3; width: 46%; margin-top: 40px; }

.chapter { padding: 0 var(--pad); margin-bottom: clamp(70px, 10vw, 150px); }
.chapter-n { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--brass); }
.chapter-text h3 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; letter-spacing: .02em; }
.phrase { margin: 16px 0 0; max-width: 26ch; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; color: var(--muted-d); }

.ch-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 110px); align-items: end; }
.ch-split .ph.tall { max-height: 92vh; }

.ch-two { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.ch-two .ph { aspect-ratio: 2 / 3; }
.ch-two .offset { margin-top: clamp(40px, 8vw, 140px); }

.ch-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.ch-details .wide, .ch-strip .wide { grid-column: 1 / -1; margin-bottom: clamp(16px, 3vw, 40px); }
.ch-details .ph { aspect-ratio: 2 / 3; }
.ch-details .offset { transform: translateY(clamp(30px, 6vw, 90px)); }
.ch-details .offset.in { transform: translateY(clamp(30px, 6vw, 90px)); }

.ch-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.ch-strip .ph { aspect-ratio: 3 / 4; }

.bleed { width: 100%; height: clamp(420px, 92vh, 1100px); margin-bottom: clamp(70px, 10vw, 150px); }
.bleed figcaption {
  position: absolute; left: var(--pad); bottom: 24px; right: var(--pad);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone);
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.bleed figcaption span { font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--brass); margin-right: 10px; }
.quote-img::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,13,.35); pointer-events: none; }
.quote-img blockquote {
  position: absolute; z-index: 1; left: var(--pad); bottom: clamp(40px, 8vw, 110px); margin: 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(38px, 6vw, 92px); line-height: 1.02; pointer-events: none;
}

/* ---------- Proceso ---------- */
.proceso { padding: clamp(90px, 13vw, 170px) var(--pad); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { padding: 28px clamp(12px, 2vw, 32px) 0 0; border-top: 1px solid var(--ink); }
.step-n { display: block; font-family: var(--serif); font-style: italic; font-size: 26px; color: #8a6a3f; margin-bottom: 40px; }
.steps h3 { font-size: 22px; font-weight: 400; letter-spacing: .04em; margin-bottom: 12px; }
.steps p { margin: 0; font-size: 15.5px; color: var(--muted-l); }

/* ---------- Servicios ---------- */
.servicios { padding: clamp(90px, 13vw, 170px) var(--pad); overflow: hidden; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.svc-list li {
  display: grid; grid-template-columns: 70px 1.3fr 1fr; gap: 20px; align-items: baseline;
  padding: clamp(22px, 3vw, 38px) 0; border-bottom: 1px solid var(--line-d);
  transition: padding-left .4s, color .3s; cursor: default;
}
.svc-n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brass); }
.svc-name { font-size: clamp(26px, 3.6vw, 52px); font-weight: 300; line-height: 1.1; }
.svc-desc { color: var(--muted-d); font-size: 15.5px; }
.svc-list li:hover { padding-left: 18px; }
.svc-preview {
  position: fixed; z-index: 5; width: 260px; aspect-ratio: 3 / 4; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .3s, transform .3s;
  left: 0; top: 0; overflow: hidden;
}
.svc-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contacto ---------- */
.contacto { min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.contacto-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contacto-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,13,.92) 0%, rgba(20,16,13,.7) 50%, rgba(20,16,13,.35) 100%); }
.contacto-inner { position: relative; padding: clamp(100px, 14vw, 180px) var(--pad); max-width: 1000px; }
.contacto-title { font-size: clamp(44px, 7vw, 110px); line-height: 1; font-weight: 300; }
.contacto-sub { margin: 28px 0 44px; max-width: 40ch; color: var(--muted-d); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 30px; text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--bone); transition: background .3s, color .3s;
}
.btn-solid { background: var(--bone); color: var(--ink); }
.btn-solid:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-line:hover { background: var(--bone); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 36px calc(var(--pad) + 70px) 36px var(--pad); border-top: 1px solid var(--line-d);
  font-size: 13px; color: var(--muted-d);
}
.site-footer p { margin: 0; }
.site-footer .brand-mark { width: 24px; height: 24px; }
.site-footer .brand-word { font-size: 12px; }
.credits { text-align: right; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bone); color: var(--ink);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  transition: transform .3s, background .3s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--brass); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: #0c0907;
  display: flex; align-items: center; justify-content: center; padding: 4vh 70px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--bone);
  font-family: var(--sans); font-weight: 300; cursor: pointer; padding: 12px; line-height: 1;
}
.lb-close { top: 14px; right: 18px; font-size: 40px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 56px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 28px; transition: opacity 1s ease, translate 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .hero-img { animation: none; transform: none; }
  .hero-foot .arrow { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .manifesto-cols { margin-left: 0; }
  .obra-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .svc-list li { grid-template-columns: 50px 1fr; }
  .svc-desc { grid-column: 2; }
  .svc-preview { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .brand-word { font-size: 13px; }
  .grid-lines::before { background-size: calc((100% - 2 * var(--pad)) / 2) 100%; }
  .manifesto-cols { grid-template-columns: 1fr; }
  .ch-split, .ch-two { grid-template-columns: 1fr; }
  .ch-two .offset { margin-top: 0; }
  .ph.small { width: 60%; }
  .ch-details { grid-template-columns: 1fr 1fr; }
  .ch-details .ph:last-child { display: none; }
  .ch-details .offset, .ch-details .offset.in { transform: translateY(40px); }
  .ch-strip { grid-template-columns: 1fr 1fr; }
  .bleed { height: 70vh; }
  .steps { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .credits { text-align: left; }
  .hero-foot-name { display: none; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}
