:root {
  --ink: #0b0617;
  --night: #140a33;
  --sky-0: #26105c;
  --sky-1: #2e1569;
  --sky-2: #4b2690;
  --sky-3: #6d2f9f;
  --lav: #dcc6fc;
  --lav-2: #d4c0f8;
  --muted: #b6a8de;
  --hot: #ff2d8f;
  --frost: rgba(255, 255, 255, 0.11);
  --frost-on: rgba(255, 255, 255, 0.075);
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gut: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.t1 { color: var(--lav); }
.blk {
  background: var(--frost);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-radius: 3px;
}
.wrap { width: 100%; max-width: 1296px; margin: 0 auto; padding: 0 var(--gut); position: relative; }
.backed { font-size: 13.5px; color: #cfbef2; letter-spacing: 0.005em; }
.backed a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  background: #fff;
  color: #150b33;
  font: 500 17px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #f1eaff; }
.btn:active { transform: scale(0.98); }

/* Nav: frosted rectangular blocks floating over the sky */
.nav {
  position: absolute;
  z-index: 10;
  top: 14px;
  left: var(--gut);
  right: var(--gut);
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 46px;
}
.nav .logo { margin-right: auto; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  font: 500 19px/1 var(--sans);
  letter-spacing: -0.02em;
}
.logo svg { width: 24px; height: 24px; color: #fff; }
.group { display: none; align-items: center; padding: 5px; gap: 2px; }
.group a, .group button {
  display: inline-flex;
  align-items: center;
  height: 100%;
  min-height: 36px;
  padding: 0 18px;
  color: #bdb2d4;
  font-size: 16px;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.group a:hover, .group button:hover { color: #fff; }
.group .on, .group [aria-selected='true'], .group [aria-checked='true'] { background: var(--frost-on); color: #fff; }
.bag-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  font: 500 12.5px/1 var(--sans);
}
.has-items .count { background: var(--hot); }
.count.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 660px;
  overflow: hidden;
  background:
    radial-gradient(70% 45% at 96% 50%, rgba(146, 52, 170, 0.6), transparent 70%),
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 30%, #3e1e82 52%, var(--sky-2) 64%, #5e2c98 78%, var(--ink) 100%);
}
.scene { position: absolute; inset: 0; z-index: 0; }
.scene::after, .catalog::before, .howto::before, .story::before, .foot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image: var(--grain);
}
.catalog > .wrap, .howto > .wrap, .story > .wrap, .foot > .wrap { z-index: 6; }
.foot { position: relative; }
.layer {
  position: absolute;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  will-change: transform;
}
.layer.on { opacity: 1; }
.mist {
  position: absolute;
  left: 0;
  width: calc(100% + var(--tile) * 2);
  background-image: var(--mist-img), linear-gradient(180deg, rgba(190, 172, 255, 0) 10%, rgba(190, 172, 255, 0.16) 55%, rgba(190, 172, 255, 0) 95%);
  background-size: var(--tile) 100%, 100% 100%;
  background-repeat: repeat-x;
  opacity: 0;
  transition: opacity 2.4s ease;
  will-change: transform;
  pointer-events: none;
}
.mist.on { opacity: var(--a); }
.hero-in {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 92px var(--gut) 0;
  will-change: transform, opacity;
}
h1 {
  font: 300 42px/1 var(--serif);
  letter-spacing: -0.045em;
  margin-top: 14px;
  font-optical-sizing: auto;
}
.hero-r p { margin-top: 18px; font-size: 16px; line-height: 1.4; color: var(--lav-2); max-width: 30em; }
.hero-r .btn { margin-top: 20px; }

/* Catalog sits in the mist below the ridges */
main { position: relative; }
.catalog {
  position: relative;
  padding: 48px 0 88px;
  background:
    radial-gradient(60% 30% at 70% 42%, rgba(171, 152, 246, 0.14), transparent 70%),
    linear-gradient(180deg, var(--ink) 0, #1c0d46 180px, #25115a 40%, #2a1462 100%);
  overflow: hidden;
}
.mist-band {
  position: absolute;
  left: 0;
  width: calc(100% + 900px);
  height: 260px;
  background: var(--mist) repeat-x;
  background-size: 900px 100%;
  opacity: 0.22;
  pointer-events: none;
  animation: drift 160s linear infinite;
}
.mb-1 { top: 34%; height: 420px; background-size: 900px 100%; }
.mb-2 { top: -60px; opacity: 0.32; animation-duration: 120s; animation-direction: reverse; }
@keyframes drift { to { transform: translate3d(-900px, 0, 0); } }
.sec-head h2, .story h2, .bag h2 {
  font: 300 36px/1.02 var(--serif);
  letter-spacing: -0.04em;
  margin-top: 12px;
  max-width: 14em;
}
.tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 28px 0 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button { min-height: 44px; font-size: 15px; padding: 0 15px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card-hit {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  border: 0;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}
.card-hit:hover { background: rgba(255, 255, 255, 0.09); }
.wide { grid-column: span 2; }
.wide .art { aspect-ratio: 8 / 5; }
.art {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--backdrop, linear-gradient(180deg, #2a1464 0%, #4c2690 58%, #9a7cf0 72%, #3a2670 100%));
  background-size: auto 100%;
  background-position: var(--bx, 50%) 50%;
  overflow: hidden;
}
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.6s var(--ease), filter 0.6s; }
.card-hit:hover .art svg { transform: translateY(-5px); filter: drop-shadow(0 0 14px rgba(255, 45, 143, 0.35)); }
.out .art { filter: saturate(0.35) brightness(0.72); }
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  font: 500 11.5px/1.2 var(--sans);
  background: rgba(16, 8, 40, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 2px;
}
.s-nuevo { box-shadow: inset 2px 0 0 var(--hot); }
.s-ultimas { color: #ffc7ea; }
.s-agotado { color: #c9bfe6; }
.meta { display: block; padding: 11px 12px 14px; }
.house { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name { display: block; margin-top: 3px; font: 300 21px/1.05 var(--serif); letter-spacing: -0.03em; }
.price { display: block; margin-top: 8px; font: 500 14px/1 var(--sans); color: #efe6ff; }
.price small { font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* How to order */
.howto {
  position: relative;
  padding: 80px 0 96px;
  background: linear-gradient(180deg, #2a1462 0%, #331a74 50%, #2a1462 100%);
  overflow: hidden;
}
.lede { margin-top: 18px; color: var(--lav-2); font-size: 16px; max-width: 30em; }
.steps { list-style: none; display: grid; gap: 10px; margin-top: 36px; }
.steps li, .fact { padding: 22px 20px 24px; }
.n { display: block; font: 300 34px/1 var(--serif); color: var(--lav); letter-spacing: -0.03em; }
.steps h3, .fact h3 { margin-top: 14px; font: 500 17px/1.2 var(--sans); letter-spacing: -0.01em; }
.fact h3 { margin-top: 0; }
.steps p, .fact p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--lav-2); }
.facts { display: grid; gap: 10px; margin-top: 10px; }

/* Story over the painted ridges */
.story {
  --art: clamp(320px, 52vw, 620px);
  position: relative;
  padding: 88px 0 0;
  background: #2a1462;
  overflow: hidden;
}
.story > .wrap { padding-bottom: var(--art); }
.story-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--art) + 180px);
  background: var(--backdrop, linear-gradient(180deg, #2a1462, #6d2f9f 70%, var(--ink))) 58% 100% / cover no-repeat;
}
.story-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2a1462 0%, rgba(42, 20, 98, 0) 38%, rgba(11, 6, 23, 0) 86%, var(--ink) 100%);
}
.story-in { position: relative; }
.story-cols { display: grid; gap: 14px; margin-top: 22px; max-width: 40em; }
.story-cols p { color: var(--lav-2); font-size: 16px; }

/* Footer */
.foot { background: var(--ink); padding: 40px 0 110px; }
.foot-in { display: grid; gap: 28px; }
.foot .logo { justify-self: start; min-height: 46px; }
.foot-info { display: grid; gap: 14px; }
.foot-info dt { font-size: 12.5px; color: var(--muted); }
.foot-info dd { font-size: 15px; margin-top: 2px; }
.foot-info a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fine { font-size: 12.5px; color: #8f84b4; max-width: 46em; }

/* Fixed chrome */
.maito {
  position: fixed;
  z-index: 45;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 11.5px;
  color: #d4c6f4;
  text-decoration: none;
  background: rgba(20, 10, 50, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 3px;
}
.maito b { color: #fff; font-weight: 500; margin-left: 0.3em; }
.bag-float {
  position: fixed;
  z-index: 46;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(70, 40, 150, 0.45);
  font-size: 15px;
  cursor: pointer;
  transform: translateY(calc(100% + 30px));
  transition: transform 0.45s var(--ease);
}
.bag-float svg { width: 19px; height: 19px; }
.past-nav .bag-float, .has-items .bag-float { transform: none; }

/* Sheets: product and bag */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(8, 4, 22, 0.6); opacity: 0; transition: opacity 0.35s; }
.open .scrim { opacity: 1; }
.panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #2b1567 0%, #1d0e47 60%, #160a38 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(102%);
  transition: transform 0.42s var(--ease);
}
.open .panel { transform: none; }
.x {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: rgba(16, 8, 40, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.x svg { width: 18px; height: 18px; }
.sheet-art {
  position: relative;
  height: 46svh;
  max-height: 420px;
  min-height: 280px;
  background: var(--backdrop, linear-gradient(180deg, #2a1464 0%, #4c2690 58%, #9a7cf0 72%, #3a2670 100%)) 40% 50% / cover;
}
.sheet-art svg { position: absolute; inset: 4% 0 0; width: 100%; height: 96%; }
.sheet-body { padding: 22px 20px 32px; }
.sheet-body .house { font-size: 13px; white-space: normal; }
.sheet-body h2 { font: 300 38px/1 var(--serif); letter-spacing: -0.04em; margin-top: 6px; }
.sheet-price { margin-top: 12px; font: 500 20px/1 var(--sans); }
.sheet-price small { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.seg { display: inline-flex; margin-top: 18px; }
.seg button { min-height: 44px; }
.seg .na { color: #8a7eb0; }
.desc { margin-top: 18px; color: var(--lav-2); font-size: 15.5px; }
.notes { margin-top: 20px; }
.tier { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.tier dt { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tier dt::before { content: ''; width: 14px; height: 3px; border-radius: 2px; background: #ff2a5c; }
.tier.t1 dt::before { background: #ea22d8; }
.tier.t2 dt::before { background: #8a3cf0; }
.tier dd { font-size: 15px; }
.add { width: 100%; margin-top: 22px; min-height: 56px; }
.add:disabled { background: rgba(255, 255, 255, 0.16); color: #b6a8de; cursor: not-allowed; }

.bag-body { padding: 26px 20px 32px; }
.lines { list-style: none; margin-top: 18px; }
.line {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  grid-template-areas: 't i q' 't i s';
  column-gap: 12px;
  row-gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}
.thumb { grid-area: t; display: block; position: relative; width: 58px; height: 72px; background: var(--backdrop, #3a1d7a) 50% / cover; border-radius: 2px; overflow: hidden; }
.thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-info { grid-area: i; min-width: 0; }
.l-name { display: block; font: 300 20px/1.1 var(--serif); letter-spacing: -0.03em; }
.l-var { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.qty { grid-area: q; display: inline-flex; align-items: center; background: var(--frost); border-radius: 3px; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty output { min-width: 18px; text-align: center; font-weight: 500; font-size: 15px; }
.l-sub { grid-area: s; justify-self: end; font-weight: 500; font-size: 14.5px; }
.empty { margin-top: 18px; color: var(--lav-2); }
.bag-foot { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px; }
.bag-foot[hidden], .empty[hidden] { display: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total span { color: var(--muted); font-size: 14px; }
.total strong { font: 300 32px/1 var(--serif); letter-spacing: -0.03em; }
.hint { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.wa { width: 100%; margin-top: 18px; min-height: 56px; }

.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  font-size: 14px;
  background: rgba(40, 20, 96, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  :root { --gut: 32px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .steps, .facts { grid-template-columns: repeat(3, 1fr); }
  .foot-in { grid-template-columns: auto 1fr; align-items: start; }
  .foot-info { grid-template-columns: repeat(3, auto); justify-content: end; gap: 40px; }
  .fine { grid-column: 1 / -1; }
  .story-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (min-width: 1000px) {
  :root { --gut: 72px; }
  .nav { top: 32px; height: 47px; gap: 22px; }
  .logo { padding: 0 26px; font-size: 21px; }
  .nav .logo { margin-right: 0; }
  .nav .group { display: flex; margin-right: auto; }
  .bag-top { padding: 0 26px; font-size: 16.5px; }
  .hero { min-height: 720px; }
  .hero-in { padding: 0; }
  .hero-l { position: absolute; left: var(--gut); top: 22.4%; }
  .hero-r { position: absolute; left: 61.8%; right: var(--gut); top: 21.4%; }
  .backed { font-size: 14.5px; }
  h1 { font-size: clamp(54px, 4.45vw, 80px); line-height: 1; margin-top: 18px; }
  .hero-r p { margin-top: 0; font-size: clamp(17px, 1.36vw, 21px); line-height: 1.32; max-width: 25em; }
  .hero-r .btn { margin-top: 30px; min-height: 60px; padding: 0 28px; font-size: clamp(18px, 1.5vw, 22px); }
  .catalog { padding: 120px 0 130px; }
  .sec-head h2, .story h2 { font-size: clamp(48px, 4.4vw, 72px); }
  .sec-head.split { display: grid; grid-template-columns: 1fr 0.62fr; gap: 48px; align-items: end; }
  .lede { font-size: 19px; }
  .tabs { margin: 40px 0 28px; }
  .tabs button { font-size: 16px; padding: 0 18px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .name { font-size: 26px; }
  .meta { padding: 14px 16px 18px; }
  .house { font-size: 13px; }
  .price { font-size: 15px; }
  .howto { padding: 120px 0 140px; }
  .steps { margin-top: 56px; gap: 16px; }
  .facts { gap: 16px; margin-top: 16px; }
  .steps li, .fact { padding: 30px 28px 32px; }
  .n { font-size: 44px; }
  .story { padding-top: 130px; }
  .story-cols p { font-size: 18px; }
  .maito { left: 20px; bottom: 20px; font-size: 12.5px; padding: 0 14px; }
  .bag-float { right: 20px; bottom: 20px; }
  .panel {
    left: auto;
    top: 0;
    width: min(520px, 100%);
    max-height: none;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateX(102%);
  }
  .sheet-art { height: 48vh; max-height: none; }
  .sheet-body, .bag-body { padding: 28px 36px 40px; }
  .bag-body { padding-top: 40px; }
  .sheet-body h2 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
