/* MyQRMart — shop lintel, cubes, galleries, clips. Loads after gilt.css. */

:root {
  --lapis: #2f7fb3;
  --lapis-deep: #1e5a82;
  --ice: #7ec8ea;
  --cube-gold: #c9a24e;
}

/* page rises */
main > * {
  animation: rise 0.7s ease both;
}
main > *:nth-child(1) { animation-delay: 0.02s; }
main > *:nth-child(2) { animation-delay: 0.08s; }
main > *:nth-child(3) { animation-delay: 0.14s; }
main > *:nth-child(4) { animation-delay: 0.2s; }
main > *:nth-child(5) { animation-delay: 0.26s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ── unique shop fascia (not a SaaS bar) ── */
.lintel {
  position: relative;
  z-index: 30;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(126, 200, 234, 0.16), transparent 42%),
    #fff;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 10px 0 -7px rgba(47, 127, 179, 0.18);
  overflow: hidden;
}
.lintel .sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.cube-field {
  position: absolute;
  inset: -20px -40px -10px;
  perspective: 900px;
  transform-style: preserve-3d;
}
.vox {
  position: absolute;
  width: var(--s, 16px);
  height: var(--s, 16px);
  transform-style: preserve-3d;
  animation: drift var(--t, 18s) linear infinite;
  animation-delay: var(--d, 0s);
}
.vox i {
  position: absolute;
  inset: 0;
  background: var(--c, var(--lapis));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.vox i.t {
  transform: rotateX(90deg) translateZ(calc(var(--s, 16px) / 2));
  background: var(--ice);
  filter: brightness(1.08);
}
.vox i.f {
  transform: translateZ(calc(var(--s, 16px) / 2));
}
.vox i.r {
  transform: rotateY(90deg) translateZ(calc(var(--s, 16px) / 2));
  background: var(--lapis-deep);
}
.vox.gilt i.f { background: var(--cube-gold); }
.vox.gilt i.t { background: #e8cc7a; }
.vox.gilt i.r { background: #8a6a28; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotateX(-28deg) rotateZ(45deg); }
  50% { transform: translate3d(12px, -18px, 24px) rotateX(-22deg) rotateZ(52deg); }
  100% { transform: translate3d(0, 0, 0) rotateX(-28deg) rotateZ(45deg); }
}

.fascia {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 10px;
}
.sign {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--halo-bright);
  text-decoration: none;
  transform: rotate(-1.4deg);
  background: #fffdf6;
  border: 1.5px solid var(--gold);
  padding: 8px 14px 8px 8px;
  box-shadow:
    3px 3px 0 rgba(47, 127, 179, 0.18),
    0 0 0 4px #fff inset;
}
.sign:hover { color: var(--gold-bright); }
.sign .mark {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  transform: rotate(3deg);
  box-shadow: 0 0 0 1px var(--gold);
}
.sign-text { display: flex; flex-direction: column; line-height: 1.05; }
.sign .word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}
.place-line {
  color: var(--lapis-deep);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}
.open-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--lapis);
  margin-right: 6px;
  box-shadow: 4px 0 0 var(--ice), 8px 0 0 var(--gold);
}

.lintel .menu-btn {
  display: none;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px dashed var(--lapis);
  color: var(--halo);
  border-radius: 2px;
  padding: 8px 12px;
  min-height: 44px;
  font: inherit;
  cursor: pointer;
}

.tickets {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  padding: 4px 0 16px;
  align-items: flex-end;
}
.tickets a {
  --tilt: 0deg;
  color: var(--halo);
  background: #fff8eb;
  border: 1px solid var(--border);
  border-top: 2px solid var(--lapis);
  padding: 8px 12px 7px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transform: rotate(var(--tilt));
  clip-path: polygon(0 0, 100% 0, 100% 78%, 92% 100%, 8% 100%, 0 78%);
  box-shadow: 1px 2px 0 rgba(30, 90, 130, 0.12);
}
.tickets a:hover,
.tickets a[aria-current="page"] {
  color: var(--halo-bright);
  background: #fff;
  border-top-color: var(--gold);
}
.tickets a[aria-current="page"] {
  box-shadow: 0 0 0 1px var(--gold), 1px 2px 0 rgba(201, 162, 78, 0.25);
}

/* hero cube well */
.void-well {
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 127, 179, 0.16), transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(201, 162, 78, 0.18), transparent 70%);
}
.hero-clip {
  position: relative;
  min-height: 280px;
}

/* filmstrip on home */
.strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.strip .tile {
  flex: 0 0 auto;
  width: min(280px, 72vw);
  scroll-snap-align: start;
  margin: 0;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--border); }

/* masonry galleries — not a 3-tile grid */
.mason {
  columns: 3 210px;
  column-gap: 12px;
}
.tile {
  break-inside: avoid;
  margin: 0 0 12px;
  position: relative;
  background: var(--surface);
  border: 0.5px solid var(--border);
  overflow: hidden;
  display: block;
  color: inherit;
  cursor: zoom-in;
}
.tile img,
.tile video {
  width: 100%;
  height: auto;
  display: block;
}
.tile .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(30, 40, 20, 0.72));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tile:hover .cap,
.tile:focus-visible .cap { opacity: 1; }

.g-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.g-filters button {
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 12px;
  min-height: 40px;
  cursor: pointer;
  border-radius: 2px;
}
.g-filters button[aria-pressed="true"],
.g-filters button:hover {
  border-color: var(--gold);
  color: var(--halo-bright);
}

/* hover video + slow 3d pop */
.clip {
  perspective: 980px;
  cursor: pointer;
}
.clip .stage {
  transform: rotateX(0deg) rotateY(0deg) scale(1);
  transform-origin: 50% 80%;
  transition: transform 0.95s cubic-bezier(0.16, 0.84, 0.32, 1);
  background: #1a2430;
}
.clip:hover .stage,
.clip:focus-within .stage {
  transform: rotateX(7deg) rotateY(-5deg) scale(1.045) translateZ(18px);
  box-shadow:
    0 18px 40px -12px rgba(30, 90, 130, 0.35),
    0 0 0 1px var(--gold);
}
.clip video {
  width: 100%;
  height: auto;
  display: block;
  background: #1a2430;
}
.clip .playhint {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(47, 127, 179, 0.85);
  padding: 4px 7px;
  pointer-events: none;
}

/* lightbox */
.loupe {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1100px);
}
.loupe::backdrop { background: rgba(255, 248, 235, 0.88); }
.loupe-card {
  background: #fff;
  border: 1px solid var(--gold);
  padding: 10px;
  box-shadow: 0 20px 80px rgba(47, 127, 179, 0.2);
}
.loupe-card img,
.loupe-card video {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}
.loupe-card p {
  margin: 8px 4px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.side-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.side-shots .tile {
  width: 120px;
  margin: 0;
  cursor: zoom-in;
}

.about-pic {
  max-width: 340px;
  transform: rotate(-1.2deg);
  border: 1px solid var(--gold);
  box-shadow: 8px 8px 0 rgba(47, 127, 179, 0.16);
}
.about-pic img { width: 100%; height: auto; display: block; }

@media (max-width: 820px) {
  .mason { columns: 2 140px; }
  .lintel .menu-btn { display: inline-flex; margin-bottom: 8px; }
  .tickets { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .lintel.open .tickets { display: flex; }
  .tickets a { clip-path: none; transform: none; }
  .sign { transform: none; }
}
/* ── home floor: native aspect, some ghost (no card chrome) ── */
.home-floor {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 16px;
  align-items: flex-end;
  padding: 8px 0 32px;
}
.home-floor .tile {
  flex: 0 0 auto;
  margin: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  cursor: zoom-in;
}
.home-floor .tile img,
.home-floor .tile video,
.home-floor .tile .stage {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 420px);
  background: transparent;
}
.home-floor .tile.wide img,
.home-floor .tile.wide video,
.home-floor .tile.wide .stage { max-height: 240px; max-width: min(100%, 520px); }
.home-floor .tile.tall img,
.home-floor .tile.tall video,
.home-floor .tile.tall .stage { max-height: 380px; max-width: min(42vw, 220px); }
.home-floor .tile.sq img,
.home-floor .tile.sq video,
.home-floor .tile.sq .stage { max-height: 260px; max-width: min(48vw, 260px); }
.home-floor .tile.ghost img {
  background: transparent;
  box-shadow: 0 10px 28px -12px rgba(47, 127, 179, 0.28);
}
.home-floor .tile:not(.ghost) img {
  box-shadow: 0 8px 22px -14px rgba(90, 74, 40, 0.35);
}
.home-floor .clip .stage {
  background: transparent;
  max-width: 100%;
}
.home-floor .clip video { background: transparent; }
.home-floor .tile .cap {
  position: static;
  padding: 6px 0 0;
  background: none;
  color: var(--muted);
  opacity: 1;
  font-size: 0.68rem;
}

/* ── footer: building + paper ── */
.block {
  margin-top: 48px;
  padding: 40px 0 28px;
  background:
    linear-gradient(180deg, #fff, #fff8eb 40%, #f3ead4);
  border-top: 3px solid var(--gold);
  color: var(--muted);
}
.block-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 0.95fr;
  gap: 32px 28px;
  align-items: end;
}
.block-who { font-size: 0.9rem; }
.block-who .tomb-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--halo);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.block-who .tomb-brand img { width: 32px; height: 32px; border-radius: 6px; }
.block-who a { color: var(--gold); }

.tower {
  position: relative;
  background: linear-gradient(90deg, #e4d9bc 0%, #fbf6ea 14%, #fbf6ea 86%, #e4d9bc 100%);
  border: 2px solid var(--gold);
  box-shadow:
    10px 14px 0 rgba(47, 127, 179, 0.12),
    inset 0 0 0 1px #fff;
}
.tower-roof {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--halo-bright);
  background: var(--gold);
  color: #fff;
  padding: 8px 8px 7px;
}
.tower-ground {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lapis-deep);
  padding: 7px 8px 8px;
  border-top: 1px solid rgba(201, 162, 78, 0.35);
  background: #efe4c8;
}
.storey {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 12px;
  min-height: 40px;
  color: var(--halo);
  border-top: 1px solid rgba(201, 162, 78, 0.22);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.storey .wins {
  display: flex;
  gap: 3px;
}
.storey .win {
  display: inline-block;
  width: 7px;
  height: 9px;
  font-style: normal;
  background: #cfc3a4;
  box-shadow: inset 0 -2px 0 #8d7d58;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.storey .fl-no {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.storey .fl-name { font-size: 0.92rem; }
.storey::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(243, 213, 107, 0.45), transparent);
  transition: width 0.45s ease;
}
.storey:hover,
.storey:focus-visible {
  background: #fff4cc;
  color: var(--halo-bright);
  box-shadow: inset 0 0 22px rgba(201, 162, 78, 0.28);
  z-index: 1;
}
.storey:hover::after,
.storey:focus-visible::after { width: 100%; }
.storey:hover .win,
.storey:focus-visible .win {
  background: #f6d56a;
  box-shadow: 0 0 8px 2px rgba(246, 213, 106, 0.85);
  animation: wink 0.55s ease;
}
.storey[aria-current="page"] {
  background: #fff8eb;
  box-shadow: inset 3px 0 0 var(--gold);
}
.storey[aria-current="page"] .win {
  background: #e8cc7a;
}
@keyframes wink {
  0% { transform: scaleY(0.4); }
  55% { transform: scaleY(1.15); }
  100% { transform: scaleY(1); }
}

.sheet {
  background: #fffdf6;
  border: 1px solid rgba(201, 162, 78, 0.45);
  box-shadow:
    4px 6px 0 rgba(47, 127, 179, 0.08),
    inset 0 0 0 1px #fff;
  padding: 18px 20px 16px 28px;
  transform: rotate(-0.7deg);
  position: relative;
  background-image: repeating-linear-gradient(
    transparent 0,
    transparent 27px,
    rgba(201, 162, 78, 0.12) 28px
  );
}
.sheet::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(196, 80, 80, 0.28);
}
.sheet-head {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.sheet .line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--halo);
  min-height: 28px;
  padding: 2px 0;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: var(--font-display);
  overflow: hidden;
}
.sheet .words {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.35s ease, color 0.35s ease;
}
.sheet .tick {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #2a9d44;
}
.sheet .tick-mark {
  fill: none;
  stroke: #2a9d44;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.4s ease;
}
.sheet .tick-ring {
  fill: none;
  stroke: #2a9d44;
  stroke-width: 1.4;
  opacity: 0;
  transform-origin: 12px 12px;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.35s ease;
}
.sheet .line:hover .words,
.sheet .line:focus-visible .words {
  transform: translateX(8px);
  color: var(--gold-bright);
}
.sheet .line:hover .tick-mark,
.sheet .line:focus-visible .tick-mark { stroke-dashoffset: 0; }
.sheet .line:hover .tick-ring,
.sheet .line:focus-visible .tick-ring {
  opacity: 1;
  transform: scale(1);
}

.block-note {
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 0.5px dashed var(--border);
  font-size: 0.8rem;
  max-width: var(--max);
}

@media (max-width: 820px) {
  .home-floor .tile.tall img,
  .home-floor .tile.tall video,
  .home-floor .tile.tall .stage { max-width: min(46vw, 180px); max-height: 300px; }
  .home-floor .tile.wide img,
  .home-floor .tile.wide video,
  .home-floor .tile.wide .stage { max-width: 100%; max-height: 200px; }
  .block-grid { grid-template-columns: 1fr; align-items: stretch; }
  .sheet { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  main > *, .vox, .clip .stage { animation: none; transition: none; }
  .clip:hover .stage { transform: none; }
  .storey:hover .win { animation: none; }
  .sheet .tick-mark { transition: none; stroke-dashoffset: 0; }
}
