/* Majo Muñoz Photography — quiet luxury editorial
   Paleta cálida y neutra, Cormorant Garamond + Jost. */

:root {
  --ivory: #F5F0EA;
  --cream: #ECE4D9;
  --stone: #CFC5B8;
  --taupe: #9C8E80;
  --espresso: #3A2D25;
  --ink: #1E1A17;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --header-h: 84px;
}

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--espresso); color: var(--ivory); }

/* ---------- Tipografía ---------- */

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 28px;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.02;
  font-size: clamp(38px, 5.6vw, 92px);
  margin: 0;
}
.display em,
.title em,
.quote em {
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.title {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.08;
  font-size: clamp(30px, 3.4vw, 54px);
  margin: 0 0 28px;
}

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35;
  margin: 0 0 32px;
}

.body p { margin: 0 0 1.2em; max-width: 34em; }

.link-it {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .4s var(--ease);
}
.link-it:hover { opacity: .55; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding: 18px 34px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .6s var(--ease), color .6s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--ivory); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--ivory) 0%, transparent);
  transition: transform .9s var(--ease), background .6s var(--ease), border-color .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: var(--ivory);
  border-bottom-color: color-mix(in srgb, var(--stone) 55%, transparent);
}
.header.is-hidden { transform: translateY(-100%); }

.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); white-space: nowrap; }
.nav a,
.lang a,
.lang span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .7s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 25px);
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-left: .22em; /* compensa el tracking para centrar */
}

.header-end { display: flex; justify-content: flex-end; align-items: center; gap: clamp(16px, 2vw, 32px); }
.lang { display: flex; gap: 8px; color: var(--taupe); }
.lang [aria-current="true"] { color: var(--ink); }
.lang a:hover { color: var(--ink); }

.inquire {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  padding: 6px 16px;
  border: 1px solid var(--ink);
  transition: background .6s var(--ease), color .6s var(--ease);
}
.inquire:hover { background: var(--ink); color: var(--ivory); }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* Menú móvil a pantalla completa (fuera del header para no heredar transform) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu a.menu-link {
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.15;
  text-transform: uppercase;
}
.menu a.menu-link em { text-transform: none; font-weight: 400; }
.menu-close {
  position: absolute;
  top: 28px; right: var(--gutter);
  background: none; border: 0; cursor: pointer;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
}
.menu .lang { margin-top: 36px; }

/* ---------- Home: el archivo ---------- */

.archive { padding-top: calc(var(--header-h) + 24px); }

.ph { margin: 0; position: relative; }
.ph .frame { overflow: hidden; background: var(--cream); }
.ph img { width: 100%; }
.ph figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* Bloque 1 — muro: 10 fotos, casi juntas */
.wall {
  padding: 0 var(--gutter);
  columns: 3;
  column-gap: clamp(24px, 2.8vw, 44px);
  max-width: 1480px;
  margin: 0 auto;
}
.wall .ph { break-inside: avoid; margin-bottom: clamp(24px, 2.8vw, 44px); }

/* Bloques B, C y D — columnas armadas a mano y desfasadas (no cuadro con cuadro).
   .d = 3 columnas en computadora, .m = 2 columnas en celular. */
.mason { padding: 0 calc(var(--gutter) + var(--pad, 0px)); max-width: var(--max, none); margin: 0 auto; }
.mason .d,
.mason .m { display: grid; align-items: start; }
.mason .d { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--cg); }
.mason .m { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--mcg); }
.mason .col { display: grid; gap: var(--rg); min-width: 0; }
.mason .m .col { gap: var(--mrg); }
.mason .d .col:nth-child(2) { margin-top: var(--o2); }
.mason .d .col:nth-child(3) { margin-top: var(--o3); }
.mason .m .col:nth-child(2) { margin-top: var(--mo2); }

.b-open { --max: 1360px; --pad: 3vw; --cg: 4.5vw; --rg: 4.5vw; --o2: 9vw;  --o3: 4.5vw; --mcg: 6vw; --mrg: 6vw;  --mo2: 16vw; }
.b-c    { --pad: 4vw;  --cg: 5vw;   --rg: 7vw;   --o2: 16vw; --o3: 7vw;   --mcg: 6vw; --mrg: 12vw; --mo2: 22vw; }
.b-d    { --pad: 9vw;  --cg: 8vw;   --rg: 11vw;  --o2: 22vw; --o3: 11vw;  --mcg: 6vw; --mrg: 14vw; --mo2: 26vw; }

/* Bloque 3 — composición suelta, mucho espacio */
.scatter {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
  row-gap: 8vw;
  align-items: start;
}
.scatter .ph:nth-child(5n+1) { grid-column: 2 / 6; }
.scatter .ph:nth-child(5n+2) { grid-column: 8 / 12; margin-top: 14vw; }
.scatter .ph:nth-child(5n+3) { grid-column: 1 / 5; margin-top: -4vw; }
.scatter .ph:nth-child(5n+4) { grid-column: 7 / 10; margin-top: 10vw; }
.scatter .ph:nth-child(5n+5) { grid-column: 3 / 11; }

/* Bloque F — parejas muy separadas: el espacio es el lujo */
.solo {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
  row-gap: 11vw;
  align-items: start;
}
.solo .ph:nth-child(4n+1) { grid-column: 2 / 5; }
.solo .ph:nth-child(4n+2) { grid-column: 8 / 12; margin-top: 12vw; }
.solo .ph:nth-child(4n+3) { grid-column: 3 / 7; }
.solo .ph:nth-child(4n+4) { grid-column: 9 / 12; margin-top: 16vw; }

/* Intro bajo el muro */
.intro {
  text-align: center;
  padding: clamp(110px, 16vw, 240px) var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}
.intro .body { max-width: 31em; margin: 44px auto 0; font-size: 17px; }
.intro .body p { margin-left: auto; margin-right: auto; }

/* Testimonios */
.voice {
  padding: clamp(96px, 13vw, 210px) var(--gutter);
  text-align: center;
  max-width: 1180px;
  margin: 0 auto;
}
.quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 56px);
  line-height: 1.18;
  margin: 0 auto;
  max-width: 19em;
  quotes: "“" "”";
}
.quote::before { content: open-quote; }
.quote::after { content: close-quote; }
.voice .who {
  display: block;
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--taupe);
}
.voice .who::before {
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  margin: 0 auto 22px;
  background: var(--stone);
}

.more { text-align: center; padding: 0 var(--gutter) clamp(20px, 3vw, 40px); }

/* Prensa */
.press {
  padding: clamp(110px, 14vw, 200px) var(--gutter) 0;
  text-align: center;
}
.press .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  margin-top: 8px;
}
.press .logos img {
  height: clamp(44px, 5vw, 64px);
  width: auto;
  mix-blend-mode: multiply;
  opacity: .78;
  transition: opacity .5s var(--ease);
}
.press .logos a:hover img { opacity: 1; }

/* Cierre */
.closing {
  text-align: center;
  padding: clamp(130px, 18vw, 280px) var(--gutter);
}
.closing .display { margin-bottom: 52px; }

/* ---------- Páginas interiores ---------- */

.page-head {
  padding: calc(var(--header-h) + clamp(90px, 12vw, 180px)) var(--gutter) clamp(70px, 9vw, 130px);
  text-align: center;
}
.page-head .lead { max-width: 24em; margin: 36px auto 0; }

/* Franja tipo plantilla Violet: detalle angosto + foto alta + texto + foto asomando */
.strip {
  display: grid;
  grid-template-columns: 1.1fr 2.2fr 3fr 0.9fr;
  gap: clamp(8px, .8vw, 14px);
  align-items: stretch;
  min-height: min(88vh, 900px);
}
.strip .ph,
.strip .ph .frame { height: 100%; }
.strip .ph img { height: 100%; object-fit: cover; }
.strip .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 96px);
  background: var(--ivory);
}

/* Pasos de la experiencia */
.steps {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(110px, 14vw, 220px) var(--gutter);
}
.step {
  display: grid;
  grid-template-columns: 1fr 2.4fr 3fr;
  gap: 4vw;
  padding: clamp(46px, 5vw, 76px) 0;
  border-top: 1px solid var(--stone);
}
.step:last-child { border-bottom: 1px solid var(--stone); }
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
  color: var(--taupe);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  margin: 0;
}
.step h3 em { text-transform: none; font-weight: 400; font-style: italic; }
.step p { margin: 0; max-width: 32em; }
.step p + p { margin-top: 1em; }

.duo {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: 0 var(--gutter);
  align-items: end;
}
.duo .ph:nth-child(1) { grid-column: 2 / 7; }
.duo .ph:nth-child(2) { grid-column: 8 / 12; margin-bottom: 14vw; }

/* About */
.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
  padding: calc(var(--header-h) + clamp(70px, 9vw, 140px)) var(--gutter) clamp(110px, 12vw, 200px);
  align-items: start;
}
.about .portrait { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 30px); }
.about .text { grid-column: 7 / 12; padding-top: 4vw; }
.about .display { font-size: clamp(38px, 4.8vw, 80px); margin-bottom: 44px; }
.about .sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  margin: 36px 0 44px;
}

/* Contacto */
.contact {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
  padding: calc(var(--header-h) + clamp(70px, 9vw, 140px)) var(--gutter) clamp(110px, 12vw, 200px);
  align-items: start;
}
.contact .side { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 30px); }
.contact .side .ph { margin: 0 0 52px; }
.contact .side .lead { margin-bottom: 20px; }
.contact form { grid-column: 6 / 13; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 32px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--stone);
  padding: 10px 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  border-radius: 0;
  outline: none;
  transition: border-color .4s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 54px; line-height: 1.4; }
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--taupe) 50%), linear-gradient(135deg, var(--taupe) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--ink); }
.field input::placeholder,
.field textarea::placeholder { color: var(--stone); font-style: italic; }
.form-foot { margin-top: 52px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--taupe); margin: 0; }
.form-status {
  margin-top: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--espresso);
  color: var(--ivory);
  padding: clamp(80px, 10vw, 150px) var(--gutter) 36px;
}
.footer .big {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(40px, 9vw, 150px);
  line-height: 1;
  text-align: center;
  margin: 0 0 clamp(60px, 7vw, 110px);
  white-space: nowrap;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.footer-row nav { display: flex; gap: clamp(18px, 2.4vw, 40px); flex-wrap: wrap; }
.footer-row a { opacity: .75; transition: opacity .4s var(--ease); }
.footer-row a:hover { opacity: 1; }
.footer .base {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--ivory) 16%, transparent);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: color-mix(in srgb, var(--ivory) 55%, transparent);
}
.footer .base a { border-bottom: 1px solid color-mix(in srgb, var(--ivory) 30%, transparent); }
.footer .base a:hover { color: var(--ivory); }

/* ---------- Movimiento ---------- */
/* Solo se esconde lo que el JS va a revelar: si el JS falla, todo queda visible. */

html.js .rv .frame {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.6s var(--ease);
}
html.js .rv img {
  transform: scale(1.18);
  transition: transform 2.2s var(--ease);
}
html.js .rv figcaption { opacity: 0; transition: opacity 1.2s var(--ease) .5s; }
html.js .rv.in .frame { clip-path: inset(0 0 0 0); }
html.js .rv.in img { transform: scale(1); }
html.js .rv.in figcaption { opacity: 1; }

html.js .rt {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease);
}
html.js .rt.in { opacity: 1; transform: none; }

/* Escalonado dentro de un mismo grupo */
html.js .rv:nth-child(2n) .frame { transition-delay: .12s; }
html.js .rv:nth-child(3n) .frame { transition-delay: .22s; }

/* Transición entre páginas */
body { transition: opacity .55s var(--ease); }
html.js body.is-leaving { opacity: 0; }
html.js body { animation: page-in 1s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html.js .rv .frame,
  html.js .rv img,
  html.js .rv figcaption,
  html.js .rt { clip-path: none; transform: none; opacity: 1; transition: none; }
  body { transition: none; }
  html.js body { animation: none; }
}

/* ---------- Responsive ---------- */

/* Menú completo solo con espacio de sobra; debajo de 1280 px, botón «Menú» */
@media (max-width: 1279px) {
  .nav, .header-end .lang, .header-end .inquire { display: none; }
  .menu-btn { display: block; }
  .header { grid-template-columns: 64px 1fr 64px; }
  .menu-btn { grid-column: 1; grid-row: 1; justify-self: start; }
  .header .wordmark { grid-column: 2; grid-row: 1; text-align: center; }
  .header-end { grid-column: 3; grid-row: 1; }
}

@media (max-width: 1000px) {
  .step { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { font-size: 15px; }

  .wall { columns: 2; column-gap: 14px; }
  .wall .ph { margin-bottom: 14px; }

  .mason { padding: 0 var(--gutter); }
  .mason .d { display: none; }
  .mason .m { display: grid; }

  /* Bloques E y F en celular: fotos más chicas, de dos en dos y desfasadas */
  .scatter, .solo { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 4vw; }
  .scatter { row-gap: 10vw; }
  .solo { row-gap: 12vw; }
  .scatter .ph:nth-child(n),
  .solo .ph:nth-child(n) { margin-top: 0; }
  .scatter .ph:nth-child(5n+1),
  .scatter .ph:nth-child(5n+3) { grid-column: 1 / 7; }
  .scatter .ph:nth-child(5n+2) { grid-column: 7 / 13; margin-top: 18vw; }
  .scatter .ph:nth-child(5n+4) { grid-column: 7 / 13; margin-top: 14vw; }
  .scatter .ph:nth-child(5n+5) { grid-column: 3 / 12; }
  .solo .ph:nth-child(odd) { grid-column: 2 / 7; }
  .solo .ph:nth-child(even) { grid-column: 8 / 13; margin-top: 22vw; }

  .strip { grid-template-columns: 1fr 2fr; min-height: 0; }
  .strip .ph:nth-child(1) { aspect-ratio: 1 / 2.4; }
  .strip .text { grid-column: 1 / -1; grid-row: 1; padding: 0 var(--gutter) 56px; }
  .strip .ph:last-child { display: none; }

  .duo { grid-template-columns: repeat(6, 1fr); row-gap: 14vw; }
  .duo .ph:nth-child(1) { grid-column: 1 / 6; }
  .duo .ph:nth-child(2) { grid-column: 3 / 7; margin-bottom: 0; }

  .about, .contact { grid-template-columns: 1fr; }
  .about .portrait, .contact .side { grid-column: 1; position: static; }
  .about .text, .contact form { grid-column: 1; }
  .about .text { padding-top: 56px; }
  .contact form { margin-top: 64px; }
  .contact .side .ph { margin-bottom: 40px; }

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

  .footer .big { letter-spacing: .06em; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
