:root {
  --cream: #fef8f1;
  --wine: #741039;
  --pink: #eaa3c8;
  --lime: #dbe48e;
  --paper: var(--cream);
  --line: #74103942;
  --ease: cubic-bezier(.2,.7,.2,1);
  scroll-behavior: smooth;
}
.site-header { height: 82px; border-bottom: 1px solid #fef8f146; }
[data-page="home"] .site-header { background: var(--cream); color: var(--wine); border-color: var(--line); }
.wordmark { width: clamp(90px,11vw,146px); }
.wordmark img { border-radius: 0; }
.main-nav a { position: relative; }
.main-nav a::after { content: ''; position: absolute; height: 1px; background: currentColor; bottom: 0; inset-inline: 0; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover, .main-nav a[aria-current] { text-decoration: none; }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.hero {
  min-height: max(650px,calc(100svh - 82px));
  background: var(--cream);
  color: var(--wine);
  grid-template-columns: 1fr;
  contain: paint;
  padding-block: clamp(4.5rem,9vw,9rem) clamp(5rem,9vw,9rem);
}
.hero-content { z-index: 3; pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero-name { color: var(--wine); margin-bottom: 1.35rem; }
.hero h1 { font-size: clamp(5.8rem,12vw,13rem); font-weight: 720; line-height: .78; letter-spacing: -.091em; }
.hero-words { display: block; }
.word-clip { display: inline-block; overflow: clip; vertical-align: bottom; padding: .13em .055em .13em .015em; margin: -.13em -.055em -.13em -.015em; }
.word-clip > span { display: inline-block; }
.hero-words .word-clip > span { animation: rise-word .9s var(--ease) both; animation-delay: calc(.13s + var(--i) * .145s); }
@keyframes rise-word { from { translate: 0 125%; rotate: 7deg; } to { translate: 0 0; rotate: 0deg; } }
.hero-explora {
  display: block; width: max-content; font: italic 400 1.22em/.86 var(--serif);
  padding: .04em .16em .125em .025em; margin-left: .15em; letter-spacing: -.092em;
  color: var(--wine); background: var(--pink);
  border-radius: 51% 49% 52% 48% / 12% 15% 10% 13%;
  animation: explore-word 1.35s .33s var(--ease) both;
}
@keyframes explore-word {
  from { clip-path: ellipse(0 48% at 6% 50%); transform: translateX(-.13em) skewX(-12deg); }
  to { clip-path: ellipse(106% 80% at 42% 50%); transform: translateX(0) skewX(0deg); }
}
.intro-playing .hero-words .word-clip > span, .intro-playing .hero-explora, .intro-playing .hero-thread path, .intro-playing .hero-image { animation-play-state: paused; }
.hero-link { margin-top: clamp(1.3rem,3vw,2.5rem); background: var(--cream); }
[data-magnet] { translate: var(--mag-x,0px) var(--mag-y,0px); transition: translate .24s var(--ease), background-color .2s, color .2s; }
.hero-line { color: var(--wine); right: auto; left: var(--gutter); bottom: 1.25rem; }
.hero-art { position: absolute; width: 51%; height: min(84%,720px); inset: 7% var(--gutter) auto auto; transform: none; pointer-events: none; }
.hero-art a { pointer-events: auto; }
.hero-thread { z-index: 2; pointer-events: none; transform: translate(var(--mx,0px),var(--my,0px)); transition: transform .55s var(--ease); }
.hero-thread path { stroke: var(--wine); stroke-width: 1.15; vector-effect: non-scaling-stroke; animation: trace 2.3s .23s both; }
.hero-thread path:nth-child(2) { stroke: var(--wine); opacity: .45; animation-delay: .48s; }
.hero-image {
  top: var(--top); left: var(--left); width: var(--width); aspect-ratio: var(--aspect);
  rotate: none; box-shadow: none; z-index: 1;
  transform: translate(calc(var(--mx,0px) * var(--depth)),calc(var(--my,0px) * var(--depth) - var(--drift,0px) * var(--depth)));
  transition: transform .57s var(--ease), scale .4s var(--ease);
  animation: enter-piece 1.35s var(--delay) var(--ease) both;
}
@keyframes enter-piece { from { opacity: 0; clip-path: inset(65% 0 0); } to { opacity: 1; clip-path: inset(0); } }
.hero-image-one { --width: 39%; --aspect: .91; --top: -1%; --left: 49%; --depth: .57; --delay: .1s; border-radius: 52% 52% 0 0; }
.hero-image-two { --width: 32%; --aspect: .92; --top: 50%; --left: 55%; --depth: 1.13; --delay: .35s; border-radius: 0 0 50% 50%; }
.hero-image-three { --width: 42%; --aspect: 1.67; --top: 77%; --left: 4%; --depth: .75; --delay: .57s; }
.hero-image:hover, .hero-image:focus-visible { z-index: 4; scale: 1.05; }
.hero-flower {
  width: 24%; right: -3%; top: 35%; z-index: 2; rotate: none;
  translate: calc(var(--mx,0px) * -.7) calc(var(--my,0px) * -.6);
  transition: translate .55s var(--ease); animation: blossom-spin 4.7s var(--ease) both;
}
@keyframes blossom-spin { from { rotate: -24deg; } to { rotate: 13deg; } }
.manifesto { position: relative; overflow: clip; background: var(--wine); color: var(--cream); padding-block: clamp(5rem,12vw,12rem); }
.manifesto-copy { position: relative; z-index: 1; }
.story-line { max-width: 15ch; padding: .09em .12em .14em .02em; overflow: clip; font-size: clamp(2.7rem,7.7vw,8.6rem); font-weight: 660; letter-spacing: -.078em; line-height: .93; }
.story-1, .story-3 { font-family: var(--serif); font-style: italic; font-weight: 400; }
.story-1 { margin-left: 10%; color: var(--pink); }
.story-2 { margin-left: 16%; }
.story-3 { margin-left: 5%; color: var(--lime); }
.story-line > span { display: inline-block; }
.story-line.reveal, .story-line.reveal.revealed { opacity: 1; translate: none; }
.story-line.reveal:not(.revealed) > span { translate: 0 125%; }
.story-line.revealed > span { transition: translate .95s var(--ease); }
.manifesto-flower { position: absolute; width: min(29%,390px); right: var(--gutter); bottom: 14%; opacity: .45; rotate: -12deg; }
.marquee { display: flex; align-items: center; background: var(--lime); color: var(--wine); padding: .7rem var(--gutter) .7rem 0; border-bottom: 1px solid var(--line); gap: 1rem; }
.marquee-window { overflow: hidden; flex: 1; min-width: 0; }
.marquee-track { display: flex; width: max-content; animation: ribbon 25s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 1.8rem; padding-inline: 1rem; font: italic clamp(1.5rem,3.5vw,3.5rem)/1.15 var(--serif); }
.marquee-track img { width: .65em; }
@keyframes ribbon { to { translate: -50% 0; } }
.marquee.paused .marquee-track, .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee button { border: 1px solid currentColor; border-radius: 99px; padding: .3rem .7rem; min-height: 36px; background: transparent; font-size: .84rem; white-space: nowrap; }
.marquee button[aria-pressed="true"] { background: var(--wine); color: var(--cream); }
.featured { padding-bottom: clamp(2rem,5vw,6rem); }
.spread-media { position: relative; }
.spread-preview { position: absolute; inset: 0; opacity: 0; clip-path: inset(0 0 0 100%); transition: opacity .36s, clip-path .55s var(--ease); }
.spread-link:focus-visible .spread-preview, .spread-link:hover .spread-preview { opacity: 1; clip-path: inset(0); }
.project-number { position: absolute; z-index: 2; top: .75rem; left: .75rem; background: var(--cream); color: var(--wine); border-radius: 99px; padding: .27rem .65rem; font-size: .88rem; font-variant-numeric: tabular-nums; }
.featured .spread-3 { grid-column: 3 / span 9; }
.featured .spread.reveal:not(.revealed) .spread-media { clip-path: inset(0 0 24%); }
.featured .spread.revealed .spread-media { clip-path: inset(0); transition: clip-path .8s var(--ease); }
.project-strip { background: var(--pink); }
.strip-sticky { padding-block: clamp(1.6rem,7vw,7rem); }
.strip-window { overflow-x: auto; scrollbar-color: var(--wine) var(--pink); scroll-snap-type: x proximity; }
.strip-track { display: flex; gap: clamp(1rem,3.2vw,3rem); width: max-content; padding: 0 var(--gutter); }
.strip-track .spread { width: clamp(15rem,64vw,36rem); align-self: flex-start; scroll-snap-align: center; }
.strip-track .spread:nth-child(2) { margin-top: clamp(1.5rem,4.6vw,5.5rem); width: clamp(14rem,57vw,30rem); }
.strip-track .spread:nth-child(3) { width: clamp(16rem,68vw,42rem); }
.strip-track .spread-media { aspect-ratio: 1.35; }
@media (min-width: 850px) and (prefers-reduced-motion: no-preference) {
  .project-strip { min-height: 172svh; }
  .strip-sticky { position: sticky; top: 0; min-height: 90svh; display: grid; align-items: center; }
  .strip-window { overflow: clip; max-width: 100vw; scroll-snap-type: none; }
  .strip-track { translate: var(--strip-x,0px) 0; }
  .strip-track .spread { width: min(53vw,40rem); }
  .strip-track .spread:nth-child(2) { width: min(46vw,34rem); }
  .strip-track .spread:nth-child(3) { width: min(58vw,46rem); }
}
.home-about { background: var(--lime); }
.archive-year { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.archive-year small { display:block; font-size:.75rem; }
.archive-row .cover-type img { width: 2rem; height: 2rem; object-fit: contain; }
.case-heading .page-title { animation: case-mask .72s var(--ease) both; }
@keyframes case-mask { from { clip-path: inset(100% 0 0); translate: 0 .16em; } to { clip-path: inset(0); translate: none; } }
.contact-page { overflow: clip; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 1.5rem; background: var(--cream); color: var(--wine); }
.contact-page::before { content: ''; z-index: -1; position: absolute; inset: 0; background: var(--pink); clip-path: circle(var(--bloom, 150%) at 88% 57%); }
.contact-page .page-title { color: var(--wine); margin-bottom: 1.8rem; max-width: 12ch; }
.contact-copy.revealed .word-clip > span { animation: rise-word .78s var(--ease) both; animation-delay: calc(var(--i) * .075s); }
.contact-flower {
  position: relative; z-index: 0; inset: auto; justify-self: center;
  width: min(85%,480px); opacity: 1;
  translate: calc(var(--mx,0px) * 1.8) calc(var(--my,0px) * 1.4);
  rotate: -13deg; transition: rotate .65s var(--ease), translate .55s var(--ease), scale .55s var(--ease);
}
.contact-page:hover .contact-flower { rotate: 9deg; scale: 1.045; }
.contact-email { font-size: clamp(1.15rem,2.65vw,2.6rem); font-weight: 660; letter-spacing: -.045em; border-bottom: 1px solid currentColor; transition: background .24s; }
.contact-email:hover { background: var(--lime); }
.contact-page .social-links { margin-top: 1.55rem; }
.contact-page .social-links a { border: 1px solid currentColor; border-radius: 99px; padding: .52rem .9rem; transition: color .2s,background .2s; }
.contact-page .social-links a:hover { color: var(--cream); background: var(--wine); text-decoration: none; }
.footer-name { display: inline-block; width: clamp(112px,17vw,218px); }
.intro { display:grid; grid-template-rows: 1fr auto; place-items: center; background: var(--wine); color: var(--cream); animation: none; pointer-events: auto; padding: var(--gutter); }
.intro[hidden] { display: none; }
.intro.intro-out { pointer-events: none; animation: curtain .43s var(--ease) both; }
@keyframes curtain { to { clip-path: inset(0 0 100% 0); } }
.intro-mark { display: grid; justify-items: center; align-content: center; gap: 1.65rem; }
.intro .intro-wordmark { width: min(68vw,490px); animation: signature 1.08s var(--ease) both; }
@keyframes signature {
  0% { clip-path: polygon(0 0,0 0,0 100%,0 100%); }
  70% { clip-path: polygon(0 0,91% 0,73% 100%,0 100%); }
  100% { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
}
.intro .intro-flor { width: clamp(34px,6vw,75px); animation: intro-flor .86s .19s var(--ease) both; }
@keyframes intro-flor { from { opacity: 0; rotate: -100deg; scale: .45; } to { opacity: 1; rotate: 10deg; scale: 1; } }
.intro-bottom { width: 100%; display:flex; align-items: center; justify-content: space-between; gap: 1rem; }
.intro-bottom output { font-size: clamp(2.5rem,9vw,8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.intro-bottom button { border-radius: 99px; border: 1px solid currentColor; background: none; padding: .62rem 1rem; min-height: 44px; }
.cursor::after { content: ''; background: var(--lime) url('marca/flor-bordo.png') center / 53% auto no-repeat; }
::view-transition-old(root) { animation: .25s both route-out; }
::view-transition-new(root) { animation: .48s var(--ease) both route-in; }
@keyframes route-out { to { opacity: 0; } }
@keyframes route-in { from { clip-path: inset(12% 0 0); opacity: .6; } to { clip-path: inset(0); opacity: 1; } }
@media(max-width: 1050px) {
  .hero { min-height: 630px; }
  .hero h1 { font-size: clamp(5rem,12.2vw,9.4rem); }
  .hero-art { height: 73%; }
  .hero-image-three { --left: 15%; }
}
@media(max-width: 720px) {
  .site-header { height: auto; min-height: 68px; }
  .hero { min-height: auto; padding-block: 2.6rem 3.8rem; }
  .hero h1 { font-size: clamp(3.6rem,14.8vw,7rem); }
  .hero-name { margin-bottom: .8rem; }
  .hero-explora { margin-left: .07em; }
  .hero-art { position: relative; inset: auto; width: 100%; max-width: 570px; margin: 1.5rem auto 0; height: clamp(245px,65vw,382px); }
  .hero-flower { right: 1%; width: 21%; top: 42%; }
  .hero-image-one { --width: 37%; --left: 13%; --top: 0%; --aspect: .91; }
  .hero-image-two { --width: 30%; --left: 55%; --top: 12%; }
  .hero-image-three { --width: 55%; --left: 28%; --top: 60%; }
  .hero-image { transform: none; }
  .hero-thread { transform: none; }
  .manifesto-flower { width: 23%; bottom: 10%; right: 5%; }
  .featured .spread-2 { width: min(86%,520px); align-self: end; }
  .contact-page { min-height: 0; grid-template-columns: 1fr; }
  .contact-flower { width: min(53%,240px); justify-self: end; }
}
@media(max-width: 390px) {
  .hero h1 { font-size: 14.6vw; }
}
@media(prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .story-line.reveal:not(.revealed) > span, .hero-image, [data-magnet], .contact-flower { transform: none; translate: none; }
  .marquee button { display: none; }
  .contact-page::before { clip-path: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
