:root {
  --bg: #1546e8;
  --ink: #fff;
  --mute: rgba(255,255,255,.62);
  --line: rgba(255,255,255,.28);
  --dot: #f6a623;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "EB Garamond", Georgia, serif;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: #fff; color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; justify-content: space-between; align-items: baseline; padding: 20px var(--pad); background: linear-gradient(var(--bg) 82%, transparent); }
.mark { font: 400 1.7rem/1 var(--serif); }
.mark i, .dot { display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--dot); margin-left: .08em; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 1rem; }
.top nav a { position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.top nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Portada */
.hero { min-height: 100svh; padding: 96px var(--pad) 28px; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: 1fr auto; gap: 24px; }
.meta { grid-column: 1 / -1; display: flex; gap: 28px; margin: 0; font-size: .88rem; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }
.meta span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
h1 { grid-column: 1 / -1; align-self: center; margin: 0; font: 400 clamp(3.1rem, 13.5vw, 13rem)/.9 var(--serif); letter-spacing: -.035em; }
h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
h1 .line:nth-child(2) > span { transition-delay: .09s; }
h1 .line:nth-child(3) > span { transition-delay: .18s; }
.ready h1 .line > span { transform: none; }
h1 s { text-decoration: none; color: rgba(255,255,255,.5); background: linear-gradient(var(--ink), var(--ink)) no-repeat left 56% / 0 .045em; transition: background-size .9s var(--ease) 1s; }
.ready h1 s { background-size: 100% .045em; }
h1 .dot { width: .15em; height: .15em; margin-left: .04em; transform: scale(0); transition: transform .6s var(--ease) 1.2s; }
.ready h1 .dot { transform: scale(1); }
.arrows { align-self: end; width: min(100%, 640px); height: auto; color: var(--ink); }
.star { width: 1.5em; height: 1.5em; flex: none; animation: spin 18s linear infinite; }
.traits { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 40px 0 0; font-size: 1.25rem; }
.orange { float: right; width: clamp(64px, 9vw, 110px); margin: -10px 0 0 20px; transform: rotate(12deg); transition: transform .8s var(--ease); }
.orange:hover { transform: rotate(-14deg) scale(1.08); }
.scroll { align-self: end; font-size: 1rem; }
.scroll span { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* Secciones */
.row { display: grid; grid-template-columns: minmax(110px, 1fr) 5fr; gap: 24px; padding: clamp(64px, 11vw, 150px) var(--pad); border-top: 1px solid var(--line); }
.idx { margin: 0; font-size: .88rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); position: sticky; top: 76px; align-self: start; }
.idx span { display: block; color: var(--ink); }
.big { margin: 0 0 1em; font: 400 clamp(1.6rem, 3.3vw, 2.9rem)/1.16 var(--serif); letter-spacing: -.01em; max-width: 24ch; }
.big em { color: var(--dot); }
.small { margin: 0; max-width: 46ch; color: var(--mute); font-size: 1.15rem; }
.bio .small { color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.5rem); max-width: 30ch; }
.small a { border-bottom: 1px solid var(--line); }
.small a:hover { color: var(--ink); border-color: var(--ink); }

.anim .row > :not(.idx) { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.anim .row.in > :not(.idx) { opacity: 1; transform: none; }

/* Bio */
.bio { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.bio .big { max-width: 26ch; }
.photo { margin: 0; position: relative; aspect-ratio: 4 / 5; background: #0d34bd; border-radius: 999px 999px 0 0; overflow: hidden; display: grid; place-items: center; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform 1.2s var(--ease); }
.photo:hover img { filter: none; transform: scale(1.04); }
.photo figcaption { color: #fff; font: italic 400 6rem/1 var(--serif); }
.facts { display: flex; gap: clamp(24px, 5vw, 64px); margin: 44px 0 0; }
.facts dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.facts dd { margin: 2px 0 0; font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--serif); }

/* Restaurante */
.feature { position: relative; }
.feature h2 { margin: 0 0 .25em; font: 400 clamp(3.4rem, 11vw, 10rem)/.9 var(--serif); letter-spacing: -.03em; }
.plate { position: absolute; right: 0; top: 0; width: clamp(84px, 15vw, 210px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; animation: spin 26s linear infinite; }
.plate::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--line); }
.plate i { width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--dot); transform: translate(38%, -22%); }
@keyframes spin { to { transform: rotate(360deg); } }
.did { list-style: none; counter-reset: d; margin: 44px 0 0; padding: 0; max-width: 640px; }
.did li { counter-increment: d; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.did li:last-child { border-bottom: 1px solid var(--line); }
.did li::before { content: counter(d, decimal-leading-zero); color: var(--mute); font-size: .88rem; padding-top: 2px; }
.numbers { list-style: none; margin: clamp(48px, 7vw, 90px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.numbers strong { display: block; font: 400 clamp(2.6rem, 7vw, 6.4rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--mute); font-size: .88rem; }

/* Ejemplos */
.works { list-style: none; margin: 0; padding: 0; }
.works li { position: relative; display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "n h r" ". k r"; align-items: baseline; column-gap: 12px; padding: clamp(16px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; }
.works li:first-child { border-top: 1px solid var(--line); }
.works .n { grid-area: n; font-size: .88rem; color: var(--mute); }
.works h3 { grid-area: h; margin: 0; font: 400 clamp(1.9rem, 5vw, 4.4rem)/1 var(--serif); letter-spacing: -.02em; }
.works .k { grid-area: k; font-size: 1rem; color: var(--mute); margin-top: 6px; }
.works .r { grid-area: r; align-self: center; font-size: .88rem; text-align: right; }
@media (hover: hover) {
  .works:hover li { color: var(--mute); }
  .works li:hover { color: var(--ink); padding-left: 20px; }
  .works li:hover h3 { font-style: italic; }
}

/* Contacto */
.contact { padding-bottom: clamp(60px, 9vw, 120px); }
.mail { display: inline-block; font: 400 clamp(4rem, 16vw, 15rem)/.9 var(--serif); letter-spacing: -.035em; transition: font-style .2s, letter-spacing .5s var(--ease); }
.mail:hover { font-style: italic; letter-spacing: -.02em; }
.mail .dot { width: .15em; height: .15em; }
.contact .small { margin-top: 28px; }

footer { display: flex; justify-content: space-between; gap: 16px; padding: 20px var(--pad); border-top: 1px solid var(--line); font-size: .88rem; color: var(--mute); }
.sample { text-transform: uppercase; letter-spacing: .12em; }

/* Cursor y vista previa */
.cursor, .peek { position: fixed; left: 0; top: 0; pointer-events: none; border-radius: 50%; opacity: 0; z-index: 30; }
.cursor { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--dot); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s; }
.has-cursor .cursor { opacity: 1; }
.cursor.on { width: 44px; height: 44px; margin: -22px 0 0 -22px; opacity: .55; }
.peek { width: 190px; height: 190px; margin: -95px 0 0 30px; z-index: 5; scale: .2; transition: opacity .35s, scale .5s var(--ease), background .3s; }
.peek.on { opacity: .9; scale: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1 .line > span, h1 .dot { transform: none; transition: none; }
  .plate, .scroll span, .star { animation: none; }
}

@media (max-width: 760px) {
  .top nav a:not(:last-child) { display: none; }
  .row { grid-template-columns: 1fr; }
  .idx { position: static; display: flex; gap: 10px; }
  .bio { grid-template-columns: 1fr; }
  .photo { max-width: 200px; }
  .numbers { grid-template-columns: 1fr; gap: 28px; }
  .works li { grid-template-columns: 32px 1fr; grid-template-areas: "n h" ". k" ". r"; }
  .works .r { text-align: left; margin-top: 4px; }
  .plate { top: -6px; }
  .meta span:nth-child(2) { display: none; }
}

.links { margin-top: 40px; color: var(--ink); }
.burst { position: absolute; right: 0; top: 0; width: clamp(84px, 15vw, 210px); animation: spin 40s linear infinite; }
.feature .works { margin-top: 44px; }
.feature .works h3 { font-size: clamp(1.7rem, 4vw, 3.4rem); }
@media (prefers-reduced-motion: reduce) { .burst { animation: none; } }

/* Trabajos extendidos */
.project { border-top: 1px solid var(--line); padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 9vw, 120px); scroll-margin-top: 70px; }
.project:last-child { padding-bottom: 0; }
.phead { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "n h" ". k"; align-items: baseline; column-gap: 12px; padding-right: clamp(96px, 17vw, 230px); min-height: clamp(96px, 16vw, 220px); align-content: start; }
.phead .n { grid-area: n; font-size: .88rem; color: var(--mute); }
.phead h2 { grid-area: h; margin: 0; font: 400 clamp(3rem, 9.5vw, 9rem)/.9 var(--serif); letter-spacing: -.03em; }
.phead .k { grid-area: k; margin-top: 12px; color: var(--mute); font-size: 1rem; }
.pbody { padding-left: 56px; margin-top: clamp(28px, 4vw, 56px); }
.pbody .works h3 { font-size: clamp(1.7rem, 4vw, 3.4rem); }
.pbody .works, .pbody .did { margin-top: 36px; }
@media (max-width: 760px) {
  .phead { grid-template-columns: 28px 1fr; }
  .pbody { padding-left: 0; }
}

.role { margin: 36px 0 0; font-size: .88rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dot); }
.pbody .role + .did { margin-top: 14px; }
.pbody > .role:first-child { margin-top: 0; }
.idx.sub { position: static; margin: clamp(48px, 7vw, 90px) 0 18px; }
.tools { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; font-size: 1.05rem; transition: background .3s, color .3s; }
.tools li:hover { background: #fff; color: var(--bg); }
#education .works h3 { font-size: clamp(1.7rem, 4vw, 3.4rem); }

/* Ficha secundaria: más discreta */
#hotel .phead { min-height: 0; padding-right: clamp(60px, 9vw, 110px); }
#hotel .phead h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); letter-spacing: -.015em; line-height: 1; }
#hotel .phead .k { margin-top: 6px; }
#hotel .burst { width: clamp(44px, 6vw, 72px); opacity: .7; }
#hotel .pbody { margin-top: 24px; }

/* Marca personal */
.wordmark { margin: 0 0 .3em; font: 400 clamp(3.4rem, 13vw, 12rem)/.9 var(--serif); letter-spacing: .12em; white-space: nowrap; }
.kit { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: clamp(36px, 5vw, 64px); }
.cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 2.6vw, 34px); min-height: 200px; }
.lbl { margin: 0 0 22px; font-size: .88rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.swatches { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(12px, 2vw, 28px); }
.swatches i { display: block; width: clamp(44px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%; margin-bottom: 10px; transition: transform .5s var(--ease); }
.swatches li:hover i { transform: scale(1.12); }
.swatches span { font-size: .85rem; line-height: 1.3; display: block; color: var(--mute); }
.aa { margin: 0; font: 400 clamp(3rem, 7vw, 6rem)/1 var(--serif); display: flex; gap: .25em; }
.aa em { font-family: var(--sans); }
.note { margin: 14px 0 0; color: var(--mute); font-size: .95rem; max-width: 26ch; }
.voice { margin: 0; font: 400 clamp(1.6rem, 3.2vw, 2.8rem)/1.1 var(--serif); }
@media (max-width: 560px) { .kit { grid-template-columns: 1fr; } .cell { min-height: 0; } }

/* Serie de Voluntaris 2000 */
.row > *, .projects, .project, .pbody { min-width: 0; }
.reel-intro { margin-top: 12px; color: var(--ink); }
.reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 26px; padding-bottom: 14px; scrollbar-color: rgba(255,255,255,.5) transparent; scrollbar-width: thin; }
.reel figure { flex: 0 0 clamp(190px, 24vw, 290px); margin: 0; scroll-snap-align: start; }
.reel img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; transition: transform .6s var(--ease); }
.reel a { display: block; overflow: hidden; border-radius: 4px; }
.reel a:hover img { transform: scale(1.04); }
.reel figcaption { margin-top: 10px; font-size: 1rem; line-height: 1.3; }
.reel figcaption span { display: block; font-size: .85rem; color: var(--mute); }
.pbody .reel + .role { margin-top: clamp(40px, 6vw, 70px); }
.pbody .role + .works { margin-top: 14px; }

/* ——— Más movimiento ——— */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--dot); transform: scaleX(0); transform-origin: left; z-index: 40; }

.band { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(10px, 1.6vw, 20px) 0; white-space: nowrap; }
.band > div { display: inline-flex; align-items: center; gap: clamp(18px, 3vw, 44px); padding-right: clamp(18px, 3vw, 44px); will-change: transform; }
.band span { font: italic 400 clamp(2rem, 6vw, 5rem)/1 var(--serif); letter-spacing: -.02em; }
.band span:nth-of-type(4n) { font-style: normal; }
.band i { font-style: normal; color: var(--dot); font-size: clamp(1.2rem, 3vw, 2.4rem); display: inline-block; animation: spin 9s linear infinite; }

.arrows path[fill] { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.photo img { will-change: translate; scale: 1.12; }

.anim .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), padding .5s var(--ease), color .3s, background .3s; }
.anim .rv.in { opacity: 1; transform: none; }
.anim .phead.rv { opacity: 1; transform: none; }
.anim .phead h2 { clip-path: inset(0 0 100% 0); translate: 0 .35em; transition: clip-path 1.1s var(--ease), translate 1.1s var(--ease); }
.anim .phead.in h2 { clip-path: inset(-10% -5% -20% -5%); translate: 0 0; }
.anim .phead .k, .anim .phead .n { opacity: 0; transition: opacity .8s .5s; }
.anim .phead.in .k, .anim .phead.in .n { opacity: 1; }
.anim .phead .plate, .anim .phead .burst { scale: 0; transition: scale 1s var(--ease) .3s; }
.anim .phead.in .plate, .anim .phead.in .burst { scale: 1; }
.anim .did li.rv, .anim .works li.rv { transform: translateX(-28px); }
.anim .did li.rv.in, .anim .works li.rv.in { transform: none; }
.anim .cell.rv { transform: scale(.94); }
.anim .cell.rv.in { transform: none; }

.reel { cursor: grab; scrollbar-width: none; padding: 16px 4px 18px; margin-inline: -4px; }
.reel::-webkit-scrollbar { display: none; }
.reel.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.reel.drag a { pointer-events: none; }
.reel figure { rotate: -1.6deg; transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), rotate .5s var(--ease), translate .5s var(--ease); }
.reel figure:nth-child(even) { rotate: 1.6deg; translate: 0 10px; }
.reel figure:hover { rotate: 0deg; translate: 0 -8px; }
.reel a { box-shadow: 0 18px 30px -20px rgba(0, 0, 30, .7); }
.reel-ui { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.reel-ui button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); font: 400 1.2rem var(--sans); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.reel-ui button:hover { background: #fff; color: var(--bg); transform: scale(1.1); }
.reel-ui .count { font-size: .95rem; font-variant-numeric: tabular-nums; min-width: 4.6em; }
.reel-ui .track { flex: 1; height: 1px; background: var(--line); position: relative; }
.reel-ui .track i { position: absolute; inset: -1px 0; background: var(--dot); transform-origin: left; transform: scaleX(.04); transition: transform .4s var(--ease); }

.tools li { transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), background .3s, color .3s, rotate .3s; }
.tools li:hover { rotate: -3deg; }
.swatches li:hover i { transform: scale(1.18) translateY(-6px); }
.mail .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); } }

@media (prefers-reduced-motion: reduce) {
  .band i, .arrows path[fill], .mail .dot { animation: none; }
  .reel figure, .reel figure:nth-child(even) { rotate: 0deg; translate: 0 0; }
  .photo img { scale: 1; }
}

/* Contenido del restaurante */
.reel-title { margin: clamp(30px, 4vw, 48px) 0 0; font: 400 clamp(1.5rem, 2.8vw, 2.2rem)/1.1 var(--serif); }
.reel-title span { display: block; margin-top: 4px; font: 400 1rem/1.3 var(--sans); color: var(--mute); }
.reel-title + .reel { margin-top: 10px; }
.reel video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; background: #0d34bd; box-shadow: 0 18px 30px -20px rgba(0, 0, 30, .7); }
.reel figure.wide { flex-basis: clamp(300px, 46vw, 520px); }
.reel figure.wide video { aspect-ratio: 16 / 9; }
.reel { align-items: flex-start; }
.pbody .reel-ui + .numbers { margin-top: clamp(48px, 7vw, 90px); }

/* Vídeo de entrevistas */
.film { margin: 16px 0 0; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(16px, 3vw, 36px); align-items: end; }
.film video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; background: #0d34bd; box-shadow: 0 18px 30px -20px rgba(0, 0, 30, .7); rotate: -1.2deg; transition: rotate .5s var(--ease); }
.film video:hover { rotate: 0deg; }
.film figcaption { font: 400 clamp(1.3rem, 2.4vw, 1.9rem)/1.2 var(--serif); max-width: 22ch; padding-bottom: 8px; }
.film figcaption span { display: block; margin-bottom: 10px; font: 400 .88rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pbody .film + .role { margin-top: clamp(40px, 6vw, 70px); }
@media (max-width: 560px) { .film { grid-template-columns: 1fr; } .film video { max-width: 280px; } }

.reel:has(video) img { aspect-ratio: 9 / 16; }

/* —— Versión aligerada —— */
.small.one { margin-top: 26px; color: var(--ink); max-width: 56ch; font-size: 1.15rem; }
.small.one span { display: block; margin-bottom: 4px; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dot); }
.pbody > .small.one:first-child { margin-top: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tabs button { font: 400 1.05rem var(--sans); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; cursor: pointer; transition: background .3s, color .3s; }
.tabs button:hover { border-color: #fff; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--bg); border-color: #fff; }
.panel[hidden] { display: none; }
.panel .reel { margin-top: 14px; }
.kit { grid-template-columns: repeat(2, 1fr); }
.pbody .links { margin-top: 30px; }

/* —— Movimiento más suave —— */
.reel { scroll-snap-type: x proximity; scroll-behavior: smooth; }
.reel:has(video) figure, .reel:has(video) figure:nth-child(even), .reel:has(video) figure:hover { rotate: 0deg; translate: 0 0; }
.reel:has(video) figure:not(.on), .anim .reel:has(video) figure.rv.in:not(.on) { opacity: .4; }
.reel:has(video) figure { cursor: pointer; transition: opacity .9s ease, transform .8s var(--ease) var(--d, 0s); }
.reel:has(video) figure:not(.on):hover, .anim .reel:has(video) figure.rv.in:not(.on):hover { opacity: .75; }
.reel video { box-shadow: none; }
.reel figure { transition: opacity 1s ease var(--d, 0s), transform 1s var(--ease) var(--d, 0s), rotate .8s var(--ease), translate .8s var(--ease); }
.reel-ui .track i { transition: transform .8s var(--ease); }
.anim .rv { transition-duration: 1.1s, 1.1s, .5s, .3s, .3s; }
.reel.drag { scroll-behavior: auto; }

/* —— Todo más suave: entradas lentas, recorridos cortos, sin cortes —— */
:root { --soft: cubic-bezier(.22, .61, .36, 1); }
h1 .line > span { transition: transform 1.7s var(--soft); }
h1 .line:nth-child(2) > span { transition-delay: .14s; }
h1 .line:nth-child(3) > span { transition-delay: .28s; }
h1 .dot { transition: transform 1s var(--soft) 1.5s; }

.anim .row > :not(.idx) { transform: translateY(14px); transition: opacity 1.5s ease, transform 1.5s var(--soft); }
.anim .rv, .anim .did li.rv, .anim .works li.rv, .anim .cell.rv { transform: translateY(12px); transition: opacity 1.3s ease var(--d, 0s), transform 1.3s var(--soft) var(--d, 0s), padding .6s var(--soft), color .4s, background .4s; }
.anim .rv.in, .anim .did li.rv.in, .anim .works li.rv.in, .anim .cell.rv.in { transform: none; }
.anim .phead h2 { clip-path: none; opacity: 0; translate: 0 .1em; transition: opacity 1.5s ease, translate 1.5s var(--soft); }
.anim .phead.in h2 { clip-path: none; opacity: 1; translate: 0 0; }
.anim .phead .k, .anim .phead .n { transition: opacity 1.4s ease .3s; }
.anim .phead .plate, .anim .phead .burst { scale: .88; transition: scale 1.6s var(--soft) .1s; }
.anim .phead.in .plate, .anim .phead.in .burst { scale: 1; }

.reel { scroll-behavior: auto; }
.reel.glide { scroll-snap-type: none; }
.reel figure { rotate: -1deg; transition: opacity 1.3s ease var(--d, 0s), transform 1.3s var(--soft) var(--d, 0s), rotate 1s var(--soft), translate 1s var(--soft); }
.reel figure:nth-child(even) { rotate: 1deg; translate: 0 6px; }
.reel figure:hover { rotate: 0deg; translate: 0 -4px; }
.reel img { transition: transform 1.2s var(--soft); }
.reel:has(video) figure { transition: opacity 1.2s ease, transform 1.3s var(--soft) var(--d, 0s); }
.reel-ui .track i { transition: transform 1s var(--soft); }
.reel-ui button { transition: background .5s, color .5s, transform .6s var(--soft); }
.reel-ui button:hover { transform: scale(1.05); }

.panel:not([hidden]) { animation: panelIn .9s ease both; }
@keyframes panelIn { from { opacity: 0; } }
.tabs button { transition: background .5s, color .5s, border-color .5s; }

.works li { transition: padding .7s var(--soft), color .5s; }
@media (hover: hover) { .works li:hover { padding-left: 10px; } }
.tools li { transition: opacity 1.3s ease var(--d, 0s), transform 1.3s var(--soft) var(--d, 0s), background .5s, color .5s, rotate .6s var(--soft); }
.tools li:hover { rotate: -1.5deg; }
.swatches i { transition: transform .9s var(--soft); }
.swatches li:hover i { transform: scale(1.08) translateY(-3px); }
.photo img { transition: filter 1s ease, transform 1.6s var(--soft); }
.cursor { transition: width .5s var(--soft), height .5s var(--soft), margin .5s var(--soft), opacity .5s; }
.peek { transition: opacity .6s, scale .8s var(--soft), background .5s; }
.mail { transition: letter-spacing .9s var(--soft); }
.mail .dot { animation-duration: 2.6s; }
.band i { animation-duration: 16s; }
.film video { transition: rotate 1s var(--soft); }

/* Las reglas de entrada no deben pisar las transiciones de giro al pasar el ratón */
.anim .reel figure.rv { transition: opacity 1.3s ease var(--d, 0s), transform 1.3s var(--soft) var(--d, 0s), rotate 1s var(--soft), translate 1s var(--soft); }
.anim .reel:has(video) figure.rv { transition: opacity 1.2s ease, transform 1.3s var(--soft) var(--d, 0s); }
.anim .tools li.rv { transition: opacity 1.3s ease var(--d, 0s), transform 1.3s var(--soft) var(--d, 0s), background .5s, color .5s, rotate .6s var(--soft); }

@media (prefers-reduced-motion: reduce) { .panel:not([hidden]) { animation: none; } .reel figure, .reel figure:nth-child(even) { rotate: 0deg; translate: 0 0; } }

/* Portada de «A day»: misma caja que los vídeos, con la foto entera dentro */
.reel .cc { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 9 / 16; background: #0d34bd; border-radius: 4px; overflow: hidden; text-decoration: none; box-shadow: none; }
.reel .cc img, .reel:has(video) .cc img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; }
.cc-top, .cc-bot { display: flex; align-items: center; justify-content: center; text-align: center; flex: 1; padding: 0 10px; }
.cc-top { font: 400 clamp(1.05rem, 1.9vw, 1.5rem)/1.05 var(--serif); }
.cc-bot { font-size: .85rem; letter-spacing: .14em; color: var(--mute); }
.reel:has(video) figure.cover:not(.on), .anim .reel:has(video) figure.rv.in.cover:not(.on), .anim .reel:has(video) figure.rv.in.cover:not(.on):hover { opacity: 1; }

/* —— El Celler del Vi con su propia paleta: terracota, marrón, arena, oliva y granate —— */
#restaurant { --bg: #D8C3A5; --ink: #7A4A2A; --mute: rgba(122, 74, 42, .74); --line: rgba(122, 74, 42, .3); --dot: #C46A3C; background: var(--bg); color: var(--ink); border-top: 0; border-radius: 6px; padding: clamp(22px, 3.4vw, 48px); margin-bottom: clamp(40px, 6vw, 80px); }
#restaurant .phead h2 { color: #7A0000; }
#restaurant .big { color: #7A4A2A; }
#restaurant .big em { color: #C46A3C; }
#restaurant .small.one span { color: #7A0000; }
#restaurant .plate { border-color: #7A4A2A; }
#restaurant .tabs button:hover { border-color: #7A4A2A; }
#restaurant .tabs button[aria-selected="true"] { background: #7A0000; border-color: #7A0000; color: #D8C3A5; }
#restaurant .reel-ui button:hover { background: #7A4A2A; color: #D8C3A5; }
#restaurant .cc { background: #6E7B4D; color: #D8C3A5; }
#restaurant .cc-bot { color: rgba(216, 195, 165, .85); }
#restaurant .reel video { background: #7A4A2A; }
#restaurant .links a { color: #7A0000; border-color: rgba(122, 0, 0, .4); }
#restaurant .links a:hover { color: #C46A3C; border-color: #C46A3C; }
#restaurant ::selection { background: #7A0000; color: #D8C3A5; }
#restaurant + .project { border-top: 0; }

/* Portada granate y paleta del restaurante en el hueco de la derecha */
#restaurant .cc { background: #7A0000; }
#restaurant .pbody { position: relative; }
.palette5 { list-style: none; margin: 0; padding: 0; position: absolute; top: 6px; right: 0; width: min(34%, 300px); display: grid; gap: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 30px -22px rgba(74, 37, 20, .7); }
.palette5 li { display: flex; align-items: center; gap: 12px; background: var(--c); padding: 14px 16px; color: #D8C3A5; transition: padding 0.7s var(--soft); }
.palette5 li:nth-child(3) { color: #7A4A2A; box-shadow: inset 0 0 0 1px rgba(122, 74, 42, .25); }
.palette5 li:hover { padding-block: 24px; }
.palette5 i { display: none; }
.palette5 span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; font-size: 1rem; }
.palette5 b { font: 400 .82rem/1 var(--sans); letter-spacing: .1em; font-variant-numeric: tabular-nums; opacity: .85; }
#restaurant .pbody > .big { max-width: min(24ch, 60%); }
#restaurant .pbody > .small.one { max-width: min(56ch, 60%); }
@media (max-width: 900px) {
  .palette5 { position: static; width: 100%; grid-template-columns: repeat(5, 1fr); margin: 4px 0 6px; }
  .palette5 li { padding: 26px 6px 8px; }
  .palette5 li:hover { padding-block: 26px 8px; }
  .palette5 span { flex-direction: column; gap: 2px; font-size: .78rem; }
  .palette5 b { font-size: .62rem; letter-spacing: .04em; }
  #restaurant .pbody > .big, #restaurant .pbody > .small.one { max-width: none; }
}
