/* ============================================================
   SPECTARE · Piano Bar — Carta de Coctelería
   Layout language: the square portrait sits on one side;
   its name + description float into the LOWER-OPPOSITE
   corner, kissing the image but never stacked beneath it.
   Rows alternate side to side — disorder that is, in fact,
   a strict grid. Black ground, hairline structure.
   ============================================================ */

:root {
  --bg: #0a0908;            /* sophisticated warm black */
  --bg-pure: #000;
  --line: #211f1c;         /* hairlines on black */
  --line-soft: #16140f;
  --name: #f3efe6;
  --muted: #9b958a;
  --faint: #6a655c;
  --no: #34302a;           /* big index numerals */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--name);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection, ::selection { background: var(--name); color: var(--bg); }

#app { overflow-x: hidden; }

/* ---------- Shell ---------- */
.wrap { max-width: 660px; margin: 0 auto; padding: 0 22px; }

/* ---------- Masthead ---------- */
.mast {
  padding: 38px 0 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.mast__logo { width: 168px; height: auto; opacity: .96; }
.mast__sub {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-logo);
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}
.mast__rule { width: 100%; height: 1px; background: var(--line); margin-top: 6px; }
.mast__tag {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(26px, 9vw, 40px);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
  margin: 0;
}
.mast__tag .script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.32em;
  letter-spacing: 0;
  line-height: .6;
}
.mast__note {
  max-width: 38ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---------- Section header ---------- */
.sec { padding-top: 50px; }
.sec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 30px;
}
.sec__ey {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.sec__ey::before { content: ""; width: 22px; height: 1px; background: var(--signal); }
.sec__count { font-size: 11px; letter-spacing: .14em; color: var(--faint); font-variant-numeric: tabular-nums; }
.sec__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(34px, 13vw, 64px);
  line-height: .96;
  letter-spacing: -.035em;
  margin: 0;
}

/* ---------- The cocktail entry ---------- */
.pour {
  position: relative;
  padding-bottom: 54px;
}
.pour:last-child { padding-bottom: 8px; }

.pour__img {
  display: block;
  width: 60%;
  height: auto;
  aspect-ratio: 1 / 1;
  color: rgba(243, 239, 230, .42);   /* placeholder icon/text on dark */
}
.pour__img::part(frame) {
  background: #131110;
  border: 1px solid var(--line);
}
.pour--r .pour__img { margin-left: auto; }

/* big thin index numeral, top, opposite the image */
.pour__no {
  position: absolute;
  top: -10px;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(40px, 16vw, 60px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--no);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.pour--l .pour__no { right: 2%; }
.pour--r .pour__no { left: 2%; }

/* the floating name + description — lower, opposite corner */
.pour__meta {
  position: absolute;
  bottom: 0;
  width: 54%;
  z-index: 2;
}
.pour--l .pour__meta { right: 0; }
.pour--r .pour__meta { left: 0; text-align: right; }

.pour__tick {
  width: 26px; height: 1px; background: var(--signal);
  margin-bottom: 12px;
}
.pour--r .pour__tick { margin-left: auto; }

.pour__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(19px, 5.6vw, 23px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 9px;
  color: var(--name);
  text-shadow: 0 1px 14px rgba(0,0,0,.65);
}
.pour__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}

/* spacing rhythm between pours — alternating so floats never collide */
.pour + .pour { margin-top: 30px; }

/* hover: quiet editorial lift */
.pour__img::part(box) { transition: filter var(--duration-base,.22s) var(--ease-out, ease); }
.pour:hover .pour__name { color: #fff; }

/* ============================================================
   Animaciones — activas solo bajo .anim (lo agrega el JS).
   Si el JS no corre, todo queda visible. Respeta reduced-motion.
   ============================================================ */
html { scroll-behavior: smooth; }

/* Scroll-reveal: aparecen al entrar en viewport */
.anim .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.anim .reveal.in { opacity: 1; transform: none; }

/* Masthead: intro escalonada en carga */
.anim .mast > * { animation: riseIn .9s cubic-bezier(.2,.7,.2,1) both; }
.anim .mast__logo { animation-delay: .06s; }
.anim .mast__sub  { animation-delay: .18s; }
.anim .mast__rule { animation: growLine 1s cubic-bezier(.2,.7,.2,1) .28s both; transform-origin: center; }
.anim .mast__tag  { animation-delay: .36s; }
.anim .mast__note { animation-delay: .50s; }
@keyframes riseIn  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes growLine { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }

/* Micro-interacciones (hover) */
.pour__img { transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.pour:hover .pour__img { transform: scale(1.04); filter: brightness(1.07); }
.pour__tick { transition: width .45s cubic-bezier(.2,.7,.2,1); }
.pour:hover .pour__tick { width: 48px; }
.pour__no { transition: color .55s ease; }
.pour:hover .pour__no { color: #4a443c; }
.mast__logo { transition: transform .5s ease, opacity .4s ease; }
.foot__mark { transition: letter-spacing .55s ease; }
.foot:hover .foot__mark { letter-spacing: .42em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .anim .mast > * { animation: none !important; }
  .pour:hover .pour__img { transform: none; filter: none; }
  .pour:hover .pour__tick { width: 26px; }
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 64px;
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.foot__mark {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: var(--tracking-logo);
  text-transform: uppercase;
  font-size: 12px;
  color: var(--name);
}
.foot__note { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ============================================================
   Wider screens — keep the single editorial column, but
   let the images breathe and the stagger widen.
   ============================================================ */
@media (min-width: 680px) {
  .wrap { max-width: 720px; }
  .pour__img { width: 52%; }
  .pour__meta { width: 46%; }
  .pour { padding-bottom: 60px; }
  .pour + .pour { margin-top: 40px; }
  .pour__desc { font-size: 13px; }
}
