/* V3 · portada, firma y cierre editorial */
:root { --editorial: var(--serif); }
html, body { max-inline-size: 100%; }
body { overflow-x: clip; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .76fr);
  align-items: end;
  column-gap: clamp(2rem, 5vw, 6rem);
  min-height: auto;
  padding-block: clamp(3.4rem, 9vw, 9.5rem) clamp(4rem, 8vw, 8rem);
  overflow: visible;
  contain: none;
}
.hero-content { min-width: 0; pointer-events: auto; padding-bottom: clamp(1rem, 2.8vw, 3rem); }
.hero-name { font-size: clamp(.75rem,1vw,.875rem); margin-bottom: clamp(1.35rem,3.5vw,3.25rem); }
.hero h1 {
  font-size: clamp(3rem, 7.9vw, 11rem);
  letter-spacing: -.052em;
  font-kerning: normal;
  font-weight: 650;
  line-height: 1.06;
  white-space: normal;
}
.hero-words, .hero-explora { width: auto; }
.hero-words .word-clip { overflow: visible; padding: 0; margin: 0; vertical-align: baseline; }
.hero-words .word-clip > span { animation-name: editorial-word; }
@keyframes editorial-word {
  from { opacity: 0; translate: 0 .37em; }
  to { opacity: 1; translate: none; }
}
.hero-explora {
  display: block;
  margin: -.065em 0 0;
  padding: 0 .09em .13em 0;
  background: none;
  border: 0;
  border-radius: 0;
  font: italic 400 1.41em/1.04 var(--editorial);
  letter-spacing: -.068em;
  animation: explore-typeset 1s .32s var(--ease) both;
}
@keyframes explore-typeset {
  from { opacity: 0; translate: -.16em .16em; }
  to { opacity: 1; translate: none; }
}
.hero-link { margin-top: clamp(.75rem, 2.25vw, 2.25rem); }
.showcase { position: relative; min-width: 0; isolation: isolate; }
.showcase-frame { display: grid; grid-template-columns: minmax(0,1fr); aspect-ratio: 1 / 1.08; background: var(--pink); overflow: clip; isolation: isolate; }
.showcase-slide { grid-area: 1 / 1; display: grid; grid-template-rows: minmax(0,1fr) auto; min-height: 0; visibility: hidden; pointer-events: none; background: var(--cream); }
.showcase-slide[data-outgoing], .showcase-slide[data-current] { visibility: visible; }
.showcase-slide[data-outgoing] { z-index: 1; }
.showcase-slide[data-current] { pointer-events: auto; z-index: 2; }
.showcase-slide[data-enter] { animation: folio-reveal .85s var(--ease) both; }
@keyframes folio-reveal { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
.showcase-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04) translate(calc(var(--mx, 0px) * -.2),calc(var(--my, 0px) * -.2));
  transition: transform .65s var(--ease);
}
.showcase-slide:hover img { transform: scale(1.09); }
.showcase-caption { position: relative; background: var(--cream); padding: .75rem .05rem .45rem; font-size: .9rem; font-weight: 650; border-bottom: 1px solid var(--line); }
.showcase-slide:focus-visible { outline-offset: -4px; }
.showcase-flower {
  position: absolute; z-index: 3; width: clamp(42px, 7vw, 110px); top: -48px; left: -19px;
  pointer-events: none; rotate: -14deg; translate: var(--mx, 0px) var(--my, 0px);
  transition: translate .6s var(--ease), rotate .65s var(--ease);
}
.showcase:hover .showcase-flower { rotate: 7deg; }
.showcase-controls { display: flex; justify-content: flex-end; gap: .45rem; margin-top: .55rem; }
.showcase-controls button {
  background: transparent; border: 0; color: var(--wine); padding: .25rem .36rem; min-width: 34px;
  min-height: 34px; font-size: .8rem; font-variant-numeric: tabular-nums;
}
.showcase-controls button[aria-pressed="true"], .showcase-controls button:hover { text-decoration: underline; text-underline-offset: .25em; }
.showcase-pause span { display: inline-block; width: .55rem; height: .65rem; border-inline: 2px solid currentColor; }
.showcase-pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-block: .31rem solid transparent; border-left: .49rem solid currentColor; }
.contact-page {
  background: var(--pink); grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  color: var(--wine); padding-block: clamp(4rem, 9vw, 10rem);
}
.contact-page::before { display: none; }
.contact-copy { min-width: 0; z-index: 1; }
.contact-page .page-title {
  font: italic 400 clamp(2.95rem, 7.3vw, 8.8rem)/1.08 var(--editorial);
  letter-spacing: -.055em; overflow-wrap: normal; padding: 0 .14em .12em 0; max-width: 15ch;
}
.contact-page .word-clip { padding: 0; margin: 0; overflow: visible; vertical-align: baseline; }
.contact-copy.revealed .word-clip > span { animation-name: editorial-word; }
.contact-email { border-bottom: 0; text-decoration: underline; text-underline-offset: .29em; text-decoration-thickness: 1px; }
.contact-page .social-links { border-top: 1px solid var(--line); padding-top: .7rem; margin-top: 2rem; width: fit-content; }
.contact-page .social-links a { border: none; border-radius: 0; padding: .35rem .65rem .35rem 0; }
.contact-page .social-links a:hover { color: var(--wine); background: transparent; text-decoration: underline; text-underline-offset: .25em; }
.contact-flower { width: min(95%, 520px); align-self: center; }
.gallery-item { overflow: clip; }
.gallery-item.reveal:not(.revealed) img { clip-path: inset(0 0 18%); }
.gallery-item.revealed img { transition: clip-path .8s var(--ease), filter .24s; clip-path: inset(0); }
.intro { grid-template-rows: 1fr; padding: 0; isolation: isolate; }
.intro-mark { width: 100%; gap: clamp(.6rem, 1.55vw, 1.6rem); }
.intro-signature { display: block; width: 70vw; height: auto; overflow: visible; }
.intro-flower { display: block; width: clamp(28px,5vw,82px); height: auto; overflow: visible; }
.signature-guides path, .flor-guide {
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  animation: draw-signature var(--span, .46s) var(--lag, 1.6s) linear both;
}
.flor-guide { --lag: 1.88s; --span: .47s; }
@keyframes draw-signature { to { stroke-dashoffset: 0; } }
.intro-tagline { letter-spacing: .095em; color: var(--cream); font-size: clamp(.75rem,1.2vw,1.1rem); animation: tagline-in .38s 2.16s var(--ease) both; }
@keyframes tagline-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0; } }
.intro-skip { position: absolute; right: var(--gutter); bottom: 1.5rem; border: 0; background: transparent; color: var(--cream); padding: .6rem 0; text-decoration: underline; text-underline-offset: .3em; }
.intro.intro-out { animation: open-portfolio .62s var(--ease) both; }
@keyframes open-portfolio {
  from { clip-path: ellipse(150% 150% at 56% 0%); }
  to { clip-path: ellipse(0% 0% at 56% 0%); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; padding-top: clamp(2.75rem, 8vw, 5rem); }
  .hero-content { padding-bottom: 0; }
  .hero h1 { font-size: clamp(3rem, 12vw, 7.4rem); }
  .showcase { width: min(86%, 540px); justify-self: end; }
  .showcase-frame { aspect-ratio: 1.14; }
  .showcase-flower { top: -30px; left: -20px; }
}
@media (max-width: 570px) {
  .hero h1 { font-size: clamp(2.35rem, 12.4vw, 4.8rem); }
  .hero-name { margin-bottom: 1.1rem; }
  .hero { padding-bottom: 2.65rem; gap: 2.1rem; }
  .showcase { width: 91%; }
  .contact-page { grid-template-columns: minmax(0, 1fr); }
  .contact-page .page-title { font-size: clamp(2.65rem, 10.2vw, 4.7rem); }
  .contact-flower { width: min(53%, 230px); }
  .intro-signature { width: 75vw; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-pause { display: none; }
  .showcase-slide img, .showcase-slide:hover img { transform: none; }
  .gallery-item.reveal:not(.revealed) img { clip-path: none; }
  .intro { display: none; }
}
