/* ==========================================================
   Flor del Desierto — hoja de estilos
   ========================================================== */

:root {
  --ink: #121110;
  --ink-2: #181614;
  --ink-3: #201d1a;
  --ink-4: #2b2723;
  --line: rgba(255, 236, 220, 0.09);
  --line-2: rgba(255, 236, 220, 0.16);

  --text: #f5efe8;
  --text-2: rgba(245, 239, 232, 0.74);
  --text-3: rgba(245, 239, 232, 0.52);
  --text-4: rgba(245, 239, 232, 0.3);

  --rose: #f2779f;
  --rose-2: #e04d80;
  --rose-3: #c43a6c;
  --rose-glow: rgba(242, 119, 159, 0.28);
  --sage: #cfe7b0;
  --sand: #ecc8a2;
  --sky: #7fa7b5;
  --dusk: #d89a7a;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --paper: #f4ecdd;
  --paper-ink: #3d2c24;
  --tape-rose: rgba(242, 119, 159, 0.62);
  --tape-sage: rgba(170, 214, 140, 0.62);
  --tape-sand: rgba(236, 200, 162, 0.7);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

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

/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose);
}

.display {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(255, 240, 230, 0.04);
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

.btn-rose {
  background: linear-gradient(180deg, var(--rose-2), var(--rose-3));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px -10px var(--rose-glow);
}
.btn-rose:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 34px -10px rgba(242, 119, 159, 0.6); }

.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.22); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }

.btn-ink {
  background: var(--ink);
  color: var(--text);
  box-shadow: 0 14px 30px -14px rgba(18, 17, 16, 0.8);
}
.btn-ink:hover { box-shadow: 0 20px 40px -14px rgba(18, 17, 16, 0.9); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s, gap 0.3s var(--ease-out);
}
.link-arrow:hover { color: var(--text); gap: 12px; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  transition: background-color 0.4s, padding 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(18, 17, 16, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  justify-self: start;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s var(--ease-out);
}
.brand:hover img { transform: rotate(-12deg) scale(1.06); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  position: relative;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { justify-self: end; padding: 8px 16px; font-size: 13px; }

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 100px var(--gutter) 40px;
  background: rgba(18, 17, 16, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.35s;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.25;
  text-decoration: none;
}
.mobile-menu .btn { align-self: flex-start; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #6c95a3;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 104%;
  object-fit: cover;
  object-position: 50% 22%;
  transform-origin: 50% 30%;
  animation: heroZoom 2.8s var(--ease-out) both;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1.06); filter: saturate(0.8) brightness(1.08); }
  to   { transform: scale(1); filter: none; }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 17, 16, 0.32) 0%, rgba(18, 17, 16, 0) 18%),
    linear-gradient(180deg, rgba(18, 17, 16, 0) 42%, rgba(18, 17, 16, 0.5) 66%, rgba(18, 17, 16, 0.92) 88%, var(--ink) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: end;
  gap: 40px;
  padding-bottom: clamp(56px, 11vh, 120px);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 100px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span {
  display: inline-block;
  animation: lineUp 1.3s var(--ease-out) both;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.35s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.5s; }
.hero-title em { color: #ffb3cb; }
@keyframes lineUp {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}

.hero-side {
  max-width: 360px;
  justify-self: end;
  padding-bottom: 10px;
  animation: fadeUp 1.2s var(--ease-out) 0.8s both;
}
.hero-side p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15.5px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.nav { animation: fadeDown 1s var(--ease-out) 0.2s both; }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================
   FEEL / NOTES BOARD
   ========================================================== */
.feel {
  --tape-rose: rgba(242, 119, 159, 0.62);
  --tape-sage: rgba(170, 214, 140, 0.62);
  --tape-sand: rgba(236, 200, 162, 0.7);
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0 clamp(90px, 11vw, 150px);
  overflow: hidden;
}
.board { position: relative; height: 780px; }
.board::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 47%;
  width: 62%;
  height: 72%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(216, 154, 122, 0.1), transparent);
  pointer-events: none;
}

/* a stitched thread that sews the notes together */
.thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.thread-line {
  fill: none;
  stroke: var(--sand);
  stroke-opacity: 0.38;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
}
.thread-mask {
  fill: none;
  stroke: #fff;
  stroke-width: 12;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}
[data-reveal='draw'].is-in .thread-mask { stroke-dashoffset: 0; }

.doodle {
  position: absolute;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--sand);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.4;
  animation: twinkle 4s ease-in-out infinite;
}
.d1 { left: 27%; top: 36%; }
.d2 { left: 70%; top: 58%; width: 34px; height: 34px; animation-delay: -1.3s; }
.d3 { left: 64%; top: 30%; width: 16px; height: 16px; animation-delay: -2.6s; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
  50%      { transform: scale(0.75) rotate(12deg); opacity: 0.18; }
}

.board-center {
  position: absolute;
  left: 50%;
  top: 47%;
  translate: -50% -50%;
  width: min(46%, 560px);
  text-align: center;
  z-index: 1;
}
.feel-title {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.scribble { position: relative; white-space: nowrap; }
.scribble svg {
  position: absolute;
  left: -4%;
  bottom: -0.2em;
  width: 108%;
  height: 0.42em;
  overflow: visible;
}
.scribble path {
  fill: none;
  stroke: var(--rose);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) 1s;
}
.is-in .scribble path { stroke-dashoffset: 0; }
.board-sub { margin-top: 22px; color: var(--text-3); font-size: 15.5px; }

/* each moment is a paper note taped under the real piece */
.scraps { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.scrap {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 214px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateY(var(--py, 0px)) rotate(var(--r, 0deg));
}
.scrap:hover { z-index: 3; }
.scrap img,
.scrap-art {
  height: 168px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.55));
  transition: transform 0.6s var(--ease-out);
}
.scrap:hover img,
.scrap:hover .scrap-art { transform: translateY(-8px) scale(1.06); }
.pinata-mini-body { transform-origin: 80px 0; animation: swing 4.5s ease-in-out infinite alternate; }

.paper {
  position: relative;
  width: 100%;
  margin-top: -12px;
  padding: 16px 14px 12px;
  border-radius: 2px;
  background-color: #f4ecdd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  color: #3d2c24;
  font-family: 'Caveat', 'Segoe Print', cursive;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.12;
  text-align: center;
  rotate: var(--nr, 2deg);
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.75), 0 2px 5px rgba(0, 0, 0, 0.28);
  transition: rotate 0.5s var(--ease-out), translate 0.5s var(--ease-out);
}
.scrap:hover .paper { rotate: 0deg; translate: 0 -3px; }
.paper b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--rose-3);
  font-size: 23px;
  font-weight: 700;
}
.paper .heart { width: 16px; height: 16px; fill: var(--rose-2); flex-shrink: 0; }
.tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 78px;
  height: 22px;
  translate: -50% 0;
  rotate: -4deg;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 6px, transparent 6px 12px),
    var(--tape, var(--tape-rose));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
  mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
}

@media (max-width: 900px) {
  .board { height: auto; }
  .board::before, .thread, .doodle { display: none; }
  .board-center { position: static; translate: none; width: auto; max-width: 560px; margin: 0 auto 56px; }
  .scraps { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 18px; pointer-events: auto; }
  .scrap { position: relative; left: auto; top: auto; width: auto; transform: rotate(var(--r, 0deg)); }
  .scrap img, .scrap-art { height: 124px; }
  .paper { font-size: 18.5px; padding: 15px 10px 10px; }
  .paper b { font-size: 20px; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 60px);
}
.about::before {
  content: '';
  position: absolute;
  left: -10%;
  top: 10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(216, 154, 122, 0.12), transparent);
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.about-media {
  position: relative;
  margin: 0;
}
.about-media > img:first-child {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 42% 50%;
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  mask-image: linear-gradient(180deg, #000 70%, rgba(0, 0, 0, 0.85));
  -webkit-mask-image: linear-gradient(180deg, #000 70%, rgba(0, 0, 0, 0.85));
}
.about-badge {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: clamp(110px, 13vw, 160px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--ink), 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: bob 6s ease-in-out infinite alternate;
}
@keyframes bob {
  from { transform: translateY(-6px) rotate(-4deg); }
  to   { transform: translateY(6px) rotate(3deg); }
}

.about-copy { max-width: 520px; }
.about-copy .display { margin: 18px 0 22px; }
.about-copy p { color: var(--text-2); font-size: 16px; }
.about-copy p + p { margin-top: 14px; }
.about-copy .quote {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 2px solid var(--rose);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  font-size: 13px;
  color: var(--text-2);
}
.facts svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .display { margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--text-2); max-width: 560px; }
.section-head-row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 270px 270px 250px;
  grid-template-areas:
    'fl fl te pi'
    'fl fl te pn'
    'mu mu id id';
  gap: 14px;
}
.tile-fl { grid-area: fl; }
.tile-te { grid-area: te; }
.tile-pi { grid-area: pi; }
.tile-pn { grid-area: pn; }
.tile-mu { grid-area: mu; }
.tile-id { grid-area: id; }

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.1s var(--ease-out);
}
.tile:hover > img { transform: scale(1.06); }
.tile-fl > img { object-position: 50% 30%; }
.tile-te > img { object-position: 50% 40%; }
.tile-pi > img { object-position: 50% 62%; }
.tile:not(.tile-art):not(.tile-id)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0) 40%, rgba(18, 17, 16, 0.86) 100%);
}
.tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
}
.tile-body h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
}
.tile-body p {
  margin-top: 6px;
  max-width: 360px;
  font-size: 14px;
  color: var(--text-2);
}
.tile-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-3);
}
.price-chip {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 500;
}

.tile-art { background: radial-gradient(120% 90% at 50% 0%, #3a2b28 0%, var(--ink-3) 70%); }
.pinata {
  position: absolute;
  top: 0;
  right: 6%;
  width: 62%;
  height: auto;
  z-index: -1;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.4));
}
.pinata-body {
  transform-origin: 100px 0;
  animation: swing 4.5s ease-in-out infinite alternate;
}
@keyframes swing {
  from { transform: rotate(-7deg); }
  to   { transform: rotate(7deg); }
}
.tile-mu .mural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  transition: transform 1.1s var(--ease-out);
}
.tile-mu:hover .mural { transform: scale(1.05); }
.tile-mu::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 17, 16, 0.82) 0%, rgba(18, 17, 16, 0.25) 55%, rgba(18, 17, 16, 0) 100%);
}
.tile-mu .tile-body { max-width: 360px; right: auto; }
.mural-sun { animation: sunGlow 6s ease-in-out infinite alternate; transform-origin: 450px 112px; }
@keyframes sunGlow {
  from { transform: scale(0.96); }
  to   { transform: scale(1.04); }
}

.tile-id {
  background:
    radial-gradient(90% 120% at 100% 100%, rgba(242, 119, 159, 0.22), transparent 60%),
    radial-gradient(80% 100% at 0% 0%, rgba(207, 231, 176, 0.1), transparent 60%),
    var(--ink-3);
}
.tile-body-static { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 26px; }
.tile-body-static .btn { margin-top: 18px; }

/* ==========================================================
   TALLER 3D
   ========================================================== */
.taller {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
}
.taller-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.stage {
  position: relative;
  aspect-ratio: 1;
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}
.stage canvas:active { cursor: grabbing; }
.stage-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
  pointer-events: none;
  transition: opacity 0.5s;
}
.stage.is-ready .stage-status { opacity: 0; }
.stage-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.stage-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(18, 17, 16, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--text-2);
  pointer-events: none;
  transition: opacity 0.6s;
}
.stage-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stage.was-dragged .stage-hint { opacity: 0; }

.panel .display { margin: 16px 0 18px; }
.panel > p { color: var(--text-2); max-width: 460px; }

.model-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 30px;
}
.model-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.3s var(--ease-out);
}
.model-tab:hover { transform: translateY(-2px); border-color: var(--line-2); color: var(--text); }
.model-tab[aria-selected='true'] {
  border-color: rgba(242, 119, 159, 0.6);
  background: linear-gradient(180deg, rgba(242, 119, 159, 0.14), rgba(242, 119, 159, 0.04));
  color: var(--text);
}
.model-tab svg { width: 30px; height: 30px; }

.options { margin-top: 22px; display: grid; gap: 18px; }
.opt-group > span {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s, transform 0.3s var(--ease-out);
}
.opt:hover { transform: translateY(-1px); color: var(--text); border-color: var(--line-2); }
.opt[aria-pressed='true'] { border-color: var(--rose); color: var(--text); background: rgba(242, 119, 159, 0.08); }
.opt i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 -4px 6px rgba(0, 0, 0, 0.18);
}
.opt-text { padding-left: 13px; }

.summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.summary span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.summary strong { font-family: var(--serif); font-weight: 400; font-size: 21px; }
#tallerCta { margin-top: 20px; }
.note { margin-top: 14px; font-size: 12.5px; color: var(--text-3); max-width: 440px; }

/* ==========================================================
   GALLERY
   ========================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filters button:hover { color: var(--text); border-color: var(--line-2); }
.filters button.is-active { background: var(--text); color: var(--ink); border-color: var(--text); }

.gallery {
  columns: 3 280px;
  column-gap: 18px;
}
.card {
  break-inside: avoid;
  margin-bottom: 26px;
}
.card[hidden] { display: none; }
.card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  cursor: zoom-in;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.8);
}
.card-media.is-tilting { transition: transform 0.12s linear, box-shadow 0.5s var(--ease-out); }
.card-media:hover { box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.9); }
.card-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.card-media:hover img { transform: scale(1.04); }
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card-media:hover::after { opacity: 1; }
.card-price {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(18, 17, 16, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 500;
}
.card-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 0;
}
.card-info h3 { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.card-cat { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.card-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(242, 119, 159, 0.45);
  color: var(--rose);
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease-out);
}
.card-cta:hover { background: var(--rose-2); color: #fff; transform: translateY(-1px); }
.gallery-note { margin-top: 20px; text-align: center; color: var(--text-3); font-size: 14.5px; }
.gallery-note a { color: var(--rose); }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.lightbox[open] { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: center; }
.lightbox::backdrop {
  background: rgba(10, 9, 8, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.3s ease;
}
.lightbox[open]::backdrop { animation: lbFade 0.4s ease both; }
.lightbox.is-closing::backdrop { opacity: 0; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure {
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: center;
  width: min(1120px, 100%);
}
/* fixed frame: switching between tall and wide photos never shifts the caption */
.lb-media {
  --lb-h: min(84dvh, 860px);
  height: var(--lb-h);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.lb-media img {
  max-height: var(--lb-h);
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  will-change: transform, opacity, filter;
}
.lb-figure:focus { outline: none; }
.lb-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-count { font-size: 12px; letter-spacing: 0.12em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lb-cat { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); }
.lb-figure h3 { margin-top: 8px; font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.lb-figure p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.lb-row { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.lb-row strong { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.lb-close, .lb-nav {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, transform 0.4s var(--ease-out);
}
.lb-close svg, .lb-nav svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease-out);
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.lb-close:hover svg { transform: rotate(90deg); }
.lb-prev:hover svg { transform: translateX(-3px); }
.lb-next:hover svg { transform: translateX(3px); }
.lb-nav:active { transform: scale(0.92); }
.lb-close { position: fixed; top: 20px; right: 20px; z-index: 2; }
.lb-nav { justify-self: center; }

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 46px);
  color: var(--text-2);
  white-space: nowrap;
}
.marquee i {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--rose);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg%3E%3Cellipse rx='4' ry='7.5' cy='-6'/%3E%3Cellipse rx='4' ry='7.5' cy='-6' transform='rotate(72)'/%3E%3Cellipse rx='4' ry='7.5' cy='-6' transform='rotate(144)'/%3E%3Cellipse rx='4' ry='7.5' cy='-6' transform='rotate(216)'/%3E%3Cellipse rx='4' ry='7.5' cy='-6' transform='rotate(288)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg%3E%3Cellipse rx='4' ry='7.5' cy='-6'/%3E%3Cellipse rx='4' ry='7.5' cy='-6' transform='rotate(72)'/%3E%3Cellipse rx='4' ry='7.5' cy='-6' transform='rotate(144)'/%3E%3Cellipse rx='4' ry='7.5' cy='-6' transform='rotate(216)'/%3E%3Cellipse rx='4' ry='7.5' cy='-6' transform='rotate(288)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: spin 12s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   STEPS — three recipe cards taped to the wall
   ========================================================== */
.how-title { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 26px; }
.how-title .display { margin-top: 16px; }
.section-head .how-aside {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  max-width: none;
  margin: 0 0 6px;
  font-family: 'Caveat', cursive;
  font-size: 28px;
  font-weight: 700;
  color: var(--rose);
  rotate: -5deg;
}
.how-aside svg {
  width: 52px;
  height: 36px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  translate: 0 -8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px;
  margin-top: 16px;
  padding-top: 14px;
}
.step {
  position: relative;
  padding: 34px 28px 30px;
  color: var(--paper-ink);
  border-radius: 3px;
  background-color: var(--paper);
  background-image: var(--paper-grain);
  box-shadow: inset 0 0 40px rgba(150, 110, 70, 0.12), 0 2px 5px rgba(0, 0, 0, 0.28), 0 30px 50px -24px rgba(0, 0, 0, 0.8);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.step:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: inset 0 0 40px rgba(150, 110, 70, 0.12), 0 2px 5px rgba(0, 0, 0, 0.28), 0 40px 60px -24px rgba(0, 0, 0, 0.9);
}
.step .tape { top: -12px; }
.step[data-reveal='drop'] {
  transition:
    opacity 0.6s ease var(--d, 0s),
    translate 1.2s cubic-bezier(0.34, 1.4, 0.5, 1) var(--d, 0s),
    scale 1.2s cubic-bezier(0.34, 1.4, 0.5, 1) var(--d, 0s),
    rotate 1.2s cubic-bezier(0.34, 1.4, 0.5, 1) var(--d, 0s),
    transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

/* hand-drawn arrows between the cards */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 46%;
  right: -66px;
  width: 58px;
  height: 34px;
  background: var(--sand);
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 34'%3E%3Cpath d='M3 20 C 16 6, 36 6, 52 18 M52 18 l-9 1 M52 18 l-3 -8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 34'%3E%3Cpath d='M3 20 C 16 6, 36 6, 52 18 M52 18 l-9 1 M52 18 l-3 -8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.step-top { display: flex; align-items: flex-start; justify-content: space-between; }
.step-n {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-family: 'Caveat', cursive;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--rose-3);
}
.step-ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  fill: none;
  stroke: var(--rose-2);
  stroke-width: 2;
  stroke-linecap: round;
  overflow: visible;
}
.step-doodle {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: rgba(61, 44, 36, 0.55);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step h3 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.15;
  color: #2f221c;
}
.step p {
  margin-top: 10px;
  font-family: 'Caveat', cursive;
  font-size: 23px;
  line-height: 1.22;
  color: #55402f;
}
.step-link {
  display: inline-block;
  margin-top: 14px;
  font-family: 'Caveat', cursive;
  font-size: 24px;
  font-weight: 700;
  color: var(--rose-3);
  text-decoration: none;
  border-bottom: 1.5px dashed rgba(196, 58, 108, 0.5);
  transition: letter-spacing 0.3s var(--ease-out), color 0.2s;
}
.step-link:hover { letter-spacing: 0.02em; color: var(--rose-2); }

/* the number gets circled and the doodle drawn once the card lands */
.step .step-ring path,
.step .step-doodle path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.step .step-ring path { transition: stroke-dashoffset 0.9s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--d, 0s) + 0.9s); }
.step .step-doodle path { transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--d, 0s) + 1.1s); }
.step.is-in .step-ring path,
.step.is-in .step-doodle path { stroke-dashoffset: 0; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 78px; max-width: 520px; margin-inline: auto; }
  .step:not(:last-child)::after { top: auto; right: auto; left: 50%; bottom: -54px; translate: -50% 0; rotate: 90deg; }
}

/* ==========================================================
   CTA — a letter from Yandiri on her worktable
   ========================================================== */
.cta-wrap { padding: clamp(30px, 5vw, 60px) 0 clamp(100px, 12vw, 160px); overflow: hidden; }
.desk { position: relative; max-width: 1040px; margin: 0 auto; padding: 40px 0 60px; }
.desk::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  width: 90%;
  height: 80%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(236, 200, 162, 0.09), transparent);
  pointer-events: none;
}

.desk-item {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 26px 26px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.desk-girasol { left: -2%; top: 18%; width: 170px; transform: rotate(-24deg); z-index: 0; }
.desk-rosa { right: 1%; top: 6%; width: 190px; transform: rotate(21deg); z-index: 0; }
.desk-patito {
  right: 4%;
  bottom: 0;
  width: 210px;
  transform: rotate(7deg);
  z-index: 3;
  pointer-events: auto;
  transform-origin: 50% 100%;
}
.desk-patito:hover { animation: wiggle 0.7s ease-in-out; }
@keyframes wiggle {
  0%, 100% { transform: rotate(7deg); }
  25%      { transform: rotate(-3deg) translateY(-6px); }
  60%      { transform: rotate(12deg); }
}

.letter {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 64px 72px 60px;
  color: #2f221c;
  border-radius: 3px;
  background-color: #f5eee1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  box-shadow:
    inset 0 0 60px rgba(150, 110, 70, 0.14),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 50px 90px -30px rgba(0, 0, 0, 0.85);
  transform: rotate(-1.2deg);
}
.letter-tape {
  position: absolute;
  top: -14px;
  width: 112px;
  height: 30px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0 7px, transparent 7px 14px),
    rgba(242, 119, 159, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.lt-1 { left: 9%; rotate: -6deg; }
.lt-2 { right: 34%; rotate: 4deg; background-color: rgba(170, 214, 140, 0.6); }

.stamp {
  position: absolute;
  top: 34px;
  right: 46px;
  width: 116px;
  height: 138px;
  padding: 7px;
  rotate: 5deg;
  background: radial-gradient(circle at 50% 50%, transparent 4px, #fffdf8 4.6px) -6px -6px / 12px 12px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.22));
}
.stamp-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e9f2dc;
  outline: 1px solid rgba(47, 34, 28, 0.15);
  outline-offset: -5px;
}
.stamp-inner img { width: 78px; height: 78px; border-radius: 50%; }
.stamp-inner span {
  font-family: var(--serif);
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #7a4a3c;
}
.postmark {
  position: absolute;
  top: 82px;
  right: 104px;
  width: 190px;
  rotate: -14deg;
  fill: none;
  stroke: rgba(196, 58, 108, 0.7);
  stroke-width: 1.6;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.postmark text {
  fill: rgba(196, 58, 108, 0.75);
  stroke: none;
  font-family: var(--sans);
  font-size: 8.4px;
  font-weight: 600;
  letter-spacing: 1.6px;
}
.postmark .pm-center { font-family: var(--serif); font-size: 15px; letter-spacing: 1px; }

.letter-to {
  margin-top: 64px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: #6b5144;
}
.letter-to b { color: var(--rose-3); font-weight: 700; }
.letter-title {
  max-width: 600px;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.letter-title em { color: var(--rose-3); }
.letter-body {
  max-width: 470px;
  margin-top: 26px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  line-height: 36px;
  color: #4a372d;
  background-image: repeating-linear-gradient(to bottom, transparent 0 34px, rgba(74, 55, 45, 0.14) 34px 35px);
}
.letter-sign {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: #6b5144;
}
.letter-sign b { font-size: 40px; font-weight: 700; color: var(--rose-3); line-height: 1; }
.letter-sign .heart { width: 22px; height: 22px; fill: var(--rose-2); rotate: 12deg; }

.letter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 30px;
}
.letter-actions .btn svg { width: 20px; height: 20px; }
.letter-links { display: flex; flex-direction: column; gap: 8px; }
.letter-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: #3d2c24;
  text-decoration: none;
  transition: color 0.2s, gap 0.3s var(--ease-out);
}
.letter-link span { border-bottom: 1px dashed rgba(61, 44, 36, 0.4); }
.letter-link svg { width: 17px; height: 17px; fill: var(--rose-3); flex-shrink: 0; }
.letter-link:hover { color: var(--rose-3); gap: 12px; }
.letter-link[hidden] { display: none; }

.letter-art {
  position: absolute;
  right: 40px;
  bottom: 30px;
  width: 250px;
  fill: none;
  stroke: rgba(61, 44, 36, 0.3);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.letter-art .art-rose { stroke: rgba(196, 58, 108, 0.55); }

/* the letter slides onto the table, then gets taped, stamped and sealed */
[data-reveal='desk'] { opacity: 1; }
.desk .letter {
  opacity: 0;
  translate: 0 90px;
  rotate: 5deg;
  transition: opacity 0.9s var(--ease-out), translate 1.5s var(--ease-out), rotate 1.5s var(--ease-out);
}
.desk.is-in .letter { opacity: 1; translate: 0 0; rotate: 0deg; }
.desk .letter-tape { scale: 0 1; transition: scale 0.45s var(--ease-out) 0.9s; }
.desk .lt-2 { transition-delay: 1.05s; }
.desk.is-in .letter-tape { scale: 1 1; }
.desk .stamp { opacity: 0; scale: 1.8; transition: opacity 0.25s ease 1.1s, scale 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 1.1s; }
.desk.is-in .stamp { opacity: 1; scale: 1; }
.desk .postmark { opacity: 0; scale: 0.9; transition: opacity 0.5s ease 1.45s, scale 0.5s var(--ease-out) 1.45s; }
.desk.is-in .postmark { opacity: 1; scale: 1; }
.desk .letter-art * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s cubic-bezier(0.65, 0, 0.35, 1) 1.3s; }
.desk.is-in .letter-art * { stroke-dashoffset: 0; }
.desk .desk-item { opacity: 0; transition: opacity 1s ease 0.5s, translate 1.5s var(--ease-out) 0.5s; }
.desk .desk-girasol { translate: -90px 40px; }
.desk .desk-rosa { translate: 90px -40px; }
.desk .desk-patito { translate: 0 90px; transition-delay: 1.2s; }
.desk.is-in .desk-item { opacity: 1; translate: 0 0; }

@media (max-width: 900px) {
  .desk-girasol { width: 120px; left: -6%; top: 6%; }
  .desk-rosa { display: none; }
  .letter { padding: 56px 40px 150px; }
  .letter-art { right: 24px; bottom: 20px; width: 200px; }
}
@media (max-width: 600px) {
  .desk { padding: 20px 0 70px; }
  .desk-girasol { display: none; }
  .letter { padding: 44px 22px 140px; transform: none; }
  .letter-to { margin-top: 40px; }
  .lt-1 { left: 6%; }
  .lt-2 { right: 6%; left: auto; }
  .stamp { top: 22px; right: 18px; width: 80px; height: 96px; padding: 6px; }
  .stamp-inner img { width: 52px; height: 52px; }
  .stamp-inner span { display: none; }
  .postmark { top: 64px; right: 52px; width: 130px; }
  .letter-title { max-width: 75%; }
  .letter-body { font-size: 23px; line-height: 32px; background-image: repeating-linear-gradient(to bottom, transparent 0 30px, rgba(74, 55, 45, 0.14) 30px 31px); }
  .letter-actions .btn { width: 100%; }
  .desk-patito { width: 130px; right: 2%; bottom: 10px; }
  .letter-art { left: 18px; right: auto; width: 170px; }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { border-top: 1px solid var(--line); padding-top: 50px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.footer-brand span { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--rose); }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out);
}
.socials a:hover { background: var(--rose-2); border-color: var(--rose-2); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-base {
  margin-top: 40px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-4);
}

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: translateY(120px);
  transition: transform 0.6s var(--ease-out), box-shadow 0.3s;
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { box-shadow: 0 18px 40px -8px rgba(37, 211, 102, 0.7); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping {
  from { transform: scale(1); opacity: 0.7; }
  to   { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================
   REVEAL
   ========================================================== */
/* text and small pieces rise out of a soft blur */
[data-reveal=''] {
  opacity: 0;
  translate: 0 30px;
  filter: blur(8px);
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    translate 1.3s var(--ease-out) var(--d, 0s),
    filter 1s var(--ease-out) var(--d, 0s);
}
[data-reveal=''].is-in { opacity: 1; translate: 0 0; filter: blur(0); }
.btn[data-reveal=''] {
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    translate 1.3s var(--ease-out) var(--d, 0s),
    filter 1s var(--ease-out) var(--d, 0s),
    transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

/* headings: every word slides up from behind a mask */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.14em 0.08em 0.16em 0;
  margin: -0.14em -0.08em -0.16em 0;
}
.wi {
  display: inline-block;
  translate: 0 115%;
  rotate: 7deg;
  transform-origin: 0 100%;
  transition:
    translate 1.25s var(--ease-out) calc(var(--d, 0s) + var(--wd, 0s)),
    rotate 1.25s var(--ease-out) calc(var(--d, 0s) + var(--wd, 0s));
}
.is-in .wi { translate: 0 0; rotate: 0deg; }

/* cards: unveil from the bottom while the photo settles */
[data-reveal='card'] {
  opacity: 0;
  translate: 0 70px;
  scale: 0.96;
  clip-path: inset(14% 3% 0 3% round 18px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    translate 1.4s var(--ease-out) var(--d, 0s),
    scale 1.4s var(--ease-out) var(--d, 0s),
    clip-path 1.4s var(--ease-out) var(--d, 0s),
    transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s;
}
[data-reveal='card'].is-in { opacity: 1; translate: 0 0; scale: 1; clip-path: inset(0 0 0 0 round 14px); }
[data-reveal='card'].is-done { clip-path: none; }
.is-resetting, .is-resetting img { transition: none !important; }
[data-reveal='card'] img,
[data-reveal='card'] .mural,
[data-reveal='card'] .pinata {
  scale: 1.2;
  transition: scale 1.9s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out);
}
[data-reveal='card'].is-in img,
[data-reveal='card'].is-in .mural,
[data-reveal='card'].is-in .pinata { scale: 1; }

/* notes drop onto the board, then get taped down */
[data-reveal='drop'] {
  opacity: 0;
  translate: 0 -48px;
  scale: 1.12;
  rotate: 9deg;
  transition:
    opacity 0.6s ease var(--d, 0s),
    translate 1.2s cubic-bezier(0.34, 1.4, 0.5, 1) var(--d, 0s),
    scale 1.2s cubic-bezier(0.34, 1.4, 0.5, 1) var(--d, 0s),
    rotate 1.2s cubic-bezier(0.34, 1.4, 0.5, 1) var(--d, 0s);
}
[data-reveal='drop'].is-in { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; }
[data-reveal='drop'] .tape { scale: 0 1; transition: scale 0.45s var(--ease-out) calc(var(--d, 0s) + 0.75s); }
[data-reveal='drop'].is-in .tape { scale: 1 1; }
[data-reveal='draw'] { opacity: 1; }

/* about: photo settles, the logo badge spins into place */
.about-media > img:first-child { scale: 1.08; transition: scale 1.8s var(--ease-out); }
.about-media.is-in > img:first-child { scale: 1; }
.about-media .about-badge {
  opacity: 0;
  scale: 0.4;
  rotate: -120deg;
  transition: opacity 0.8s var(--ease-out) 0.5s, scale 1.4s var(--ease-out) 0.5s, rotate 1.4s var(--ease-out) 0.5s;
}
.about-media.is-in .about-badge { opacity: 1; scale: 1; rotate: 0deg; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1000px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 380px 260px 260px 260px 240px;
    grid-template-areas:
      'fl fl'
      'te pi'
      'te pn'
      'mu mu'
      'id id';
  }

  .taller-grid { grid-template-columns: 1fr; }
  .stage { max-width: 620px; width: 100%; margin-inline: auto; }
  .panel { max-width: 620px; margin-inline: auto; width: 100%; }

  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 760px) {
  .hero-content { grid-template-columns: 1fr; gap: 22px; }
  .hero-side { justify-self: start; max-width: 440px; }
  .hero-media img { object-position: 50% 18%; }


  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin-right: 24px; }
  .about-badge { right: -20px; bottom: -26px; }

  .lightbox[open] { grid-template-columns: 1fr; align-content: center; padding: 76px 16px 24px; overflow-y: auto; }
  .lb-figure { grid-template-columns: 1fr; gap: 20px; }
  .lb-media { --lb-h: 56dvh; }
  .lb-nav { position: fixed; top: 20px; width: 46px; height: 46px; z-index: 2; }
  .lb-prev { left: 16px; }
  .lb-next { left: 70px; }
  .lb-close { width: 46px; height: 46px; }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-template-areas: 'fl' 'te' 'pi' 'pn' 'mu' 'id';
  }
  .tile { min-height: 300px; }
  .tile-fl { min-height: 440px; }
  .tile-te { min-height: 400px; }
  .tile-id { min-height: 0; }
  .model-tabs { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2 150px; column-gap: 12px; }
  .card-info { flex-direction: column; gap: 10px; }
  .card-info h3 { font-size: 18px; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* phones: let headings wrap naturally and give fingers room */
@media (max-width: 560px) {
  .section-head .display br,
  .panel .display br { display: none; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .hero-title { font-size: clamp(42px, 12vw, 56px); }
  .hero-side p { font-size: 15px; }
  .display { font-size: clamp(34px, 9.6vw, 44px); }
  .letter-title { font-size: clamp(32px, 9vw, 40px); }
  .feel-title { font-size: clamp(32px, 9vw, 40px); }
}
@media (pointer: coarse) {
  .link-arrow, .letter-link { min-height: 44px; }
  .gallery-note a { display: inline-block; padding: 10px 4px; margin: -10px -4px; }
  .card-cta { min-height: 40px; padding: 9px 14px; }
  .opt, .filters button { min-height: 40px; }
  .footer-links a { display: inline-block; padding: 8px 0; }
  .step-link { padding: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal] img, .wi, .tape, .about-badge {
    opacity: 1 !important; translate: none !important; scale: none !important;
    rotate: none !important; filter: none !important; clip-path: none !important;
  }
}
