/* =========================================================
   ESTRANGE — flyer / zine
   preto, branco, xerox. fonte própria nos títulos,
   máquina de escrever no resto.
   ========================================================= */

@font-face {
  font-family: "Estrange Espinho";
  src: url("../fonts/Estrange-Espinho.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-2: #0c0c0c;
  --line: #262626;
  --text: #f4f4f4;
  --muted: #8a8a8a;
  --paper: #efefef;
  --brand: "Estrange Espinho", serif;
  --type: "Courier Prime", "Courier New", monospace;
  --header-h: 60px;
  --pad: clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--type); font-size: 14px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.lock, body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--text); color: #000; }
.tiny { font-size: 12px; color: var(--muted); }

.logo-mark { display: block; color: var(--text); line-height: 0; }
.logo-mark svg { width: 100%; height: auto; }

/* xerox */
.grain {
  position: fixed; inset: -50%; z-index: 998; pointer-events: none; opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
  animation: grain .9s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* intro: logo pisca como lâmpada velha */
.intro { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; transition: opacity .6s, visibility .6s; animation: intro-failsafe 0s 4s forwards; }
.intro.done { opacity: 0; visibility: hidden; }
.intro.gone { display: none; }
@keyframes intro-failsafe { to { visibility: hidden; } }
.intro-logo { width: min(80vw, 560px); animation: flicker 1.2s steps(1) both; }
@keyframes flicker { 0% { opacity: 0; } 10% { opacity: 1; } 14% { opacity: .1; } 20% { opacity: 1; } 24% { opacity: .3; } 32%, 100% { opacity: 1; } }

/* galhos laterais que crescem com o scroll */
.spine-wrap {
  position: fixed; z-index: 40; top: calc(var(--header-h) + 10px); bottom: 10px; width: 88px; pointer-events: none; color: var(--text); opacity: .6;
  clip-path: inset(0 0 calc(100% - var(--grow, 0%)) 0);
}
.spine-left { left: -16px; }
.spine-right { right: -16px; transform: scaleX(-1); }
.spine-wrap .spine { width: 100%; height: 100%; }
.spark { transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.6); } 45% { opacity: 1; transform: scale(1.1); } }

/* faixa do topo */
.topbar { margin: 0; padding: 6px var(--pad); background: var(--paper); color: #000; font-size: 12px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* header */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  background: var(--bg); border-bottom: 1px solid var(--line); transition: transform .35s;
}
.header.hide { transform: translateY(-100%); }
.logo { width: 150px; margin-right: auto; }
.nav { display: flex; gap: 24px; font-size: 13px; }
.nav a:hover, .cart-btn:hover, .burger:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-btn { font-size: 13px; }
.burger { display: none; font-size: 13px; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg); display: flex; flex-direction: column; padding: 24px var(--pad);
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a { font-family: var(--brand); font-size: 58px; line-height: 1.25; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; font-family: var(--type); font-size: 13px; font-weight: 700; border: 1px solid var(--text); transition: background .2s, color .2s; }
.btn-solid { background: var(--text); color: #000; }
.btn-solid:hover { background: transparent; color: var(--text); }
.btn-line:hover { background: var(--text); color: #000; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- CAPA (flyer) ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h) - 30px); display: grid; place-items: center; overflow: hidden; padding: 70px var(--pad); text-align: center; }
.hero-art { position: absolute; left: 50%; top: 2%; bottom: 2%; transform: translateX(-50%); color: var(--text); opacity: .45; pointer-events: none; }
.hero-art .sigil { height: 100%; width: auto; clip-path: inset(0 0 100% 0); transition: clip-path 2.6s cubic-bezier(.6, 0, .2, 1); }
.hero.on .hero-art .sigil { clip-path: inset(0 0 0 0); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1000px; }
.hero-logo { width: min(900px, 88vw); margin: 0 auto; }
.hero-sub { margin: 26px 0 6px; font-size: clamp(14px, 1.5vw, 17px); letter-spacing: .04em; }
.hero-drop { margin: 0 0 30px; font-size: 13px; color: var(--muted); }
.hero-link { font-size: 14px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hero-link:hover { color: var(--muted); }
.corner { position: absolute; z-index: 2; margin: 0; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.c-tl { top: 18px; left: var(--pad); }
.c-tr { top: 18px; right: var(--pad); }
.c-bl { bottom: 18px; left: var(--pad); }
.c-br { bottom: 18px; right: var(--pad); }

/* divisória de espinho */
.divider { width: min(900px, 90%); margin: 0 auto; color: var(--text); opacity: .7; }
.divider svg { width: 100%; height: auto; }

/* ---------- PRÓXIMO DROP ---------- */
.next { padding: 56px var(--pad) 10px; text-align: center; }
.next-inner:empty { display: none; }
.nd-k { margin: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.nd-name { margin: 6px 0 2px; font-family: var(--brand); font-weight: 400; font-size: clamp(56px, 9vw, 120px); line-height: 1; }
.nd-meta { margin: 14px 0 4px; font-size: 13px; color: var(--muted); }
.nd-cd { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.nd-cd b { font-size: 20px; }

/* ---------- SEÇÕES ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.sec-title { margin: 0; font-family: var(--brand); font-weight: 400; font-size: clamp(54px, 7vw, 92px); line-height: 1; }
.sec-meta { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- LOJA ---------- */
.shop { padding: 70px var(--pad); max-width: 1400px; margin: 0 auto; }
.filters { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-bottom: 26px; font-size: 13px; }
.filters[hidden] { display: none; }
.chip { color: var(--muted); }
.chip:hover { color: var(--text); }
.chip[aria-selected="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.chip-sep { width: 1px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 16px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; }
.card { position: relative; display: flex; flex-direction: column; cursor: pointer; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; margin-bottom: 10px; }
.card-media .mockup, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .mockup { padding: 10% 8%; }
.card:hover .card-name { text-decoration: underline; text-underline-offset: 3px; }
.card-idx { position: absolute; z-index: 3; bottom: 8px; left: 10px; font-size: 11px; color: var(--muted); }
.badge { position: absolute; top: 8px; left: 8px; z-index: 3; padding: 2px 6px; font-size: 11px; font-weight: 700; background: var(--text); color: #000; }
.badge.right { left: auto; right: 8px; background: transparent; color: var(--text); border: 1px solid var(--text); }
.soldout-tape { position: absolute; z-index: 3; left: 0; right: 0; top: 46%; text-align: center; font-weight: 700; font-size: 12px; letter-spacing: .2em; background: var(--paper); color: #000; padding: 6px 0; }
.card.is-soldout .card-media .mockup, .card.is-soldout .card-media img { opacity: .35; filter: grayscale(1); }
.card.is-locked .card-media .mockup, .card.is-locked .card-media img { filter: blur(10px) brightness(.55); }
.lock-layer { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; font-size: 12px; color: var(--muted); }
.lock-layer .lock-sigil { display: none; }
.lock-layer strong { font-family: var(--brand); font-weight: 400; font-size: 40px; color: var(--text); line-height: 1; }
.card.is-ghost { cursor: default; }
.ghost-shape { position: absolute; inset: 12%; color: #1d1d1d; }
.ghost-shape .sigil { width: 100%; height: 100%; }
.ghost-txt { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--brand); font-size: clamp(32px, 3.6vw, 48px); color: var(--text); }
.card-info { display: grid; gap: 0; }
.card-name { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.card.is-ghost .card-name { color: var(--muted); font-weight: 400; text-transform: lowercase; }
.card-price { margin: 0; font-size: 13px; }
.card-price s { color: var(--muted); margin-left: 6px; }
.card-pix { margin: 0; font-size: 12px; color: var(--muted); }
.card-buy { display: none; }

/* ---------- DROPS (tracklist) ---------- */
.drops { padding: 70px var(--pad); max-width: 1400px; margin: 0 auto; }
.tracklist { list-style: none; margin: 0; padding: 0; }
.track { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.t-n { font-size: 13px; color: var(--muted); }
.t-name { font-family: var(--brand); font-size: clamp(38px, 5vw, 64px); line-height: 1; text-align: left; }
.t-name:hover { color: var(--muted); }
.t-date { font-size: 13px; color: var(--muted); }
.t-st { font-size: 13px; min-width: 80px; text-align: right; }
.track.live .t-st { font-weight: 700; }
.track.soon .t-st, .track.past .t-st { color: var(--muted); }

/* ---------- SOBRE ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; padding: 70px var(--pad); max-width: 1400px; margin: 0 auto; }
.about-text p { font-size: 15px; max-width: 520px; color: #d6d6d6; }
.about-text strong { color: var(--text); }
.about-text .sec-title { margin-bottom: 16px; }
.about-art { height: min(70vh, 640px); display: flex; justify-content: center; color: var(--text); opacity: .85; }
.about-art .sigil { height: 100%; width: auto; }

/* ---------- LISTA ---------- */

/* ---------- FOOTER ---------- */
.footer { padding: 40px var(--pad) 26px; border-top: 1px solid var(--line); text-align: center; }
.footer-logo { width: min(420px, 70vw); margin: 0 auto 26px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 13px; margin-bottom: 16px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { margin: 0; font-size: 11px; color: var(--muted); }

/* ---------- MODAL ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .8); opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; z-index: 100; left: 50%; top: 50%; width: min(980px, calc(100vw - 32px)); max-height: calc(100svh - 40px); transform: translate(-50%, -50%);
  opacity: 0; pointer-events: none; transition: opacity .25s; background: var(--bg); border: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal-close { position: absolute; top: 10px; right: 14px; z-index: 3; font-size: 12px; }
.modal-media { background: var(--bg-2); display: grid; place-items: center; min-height: 0; overflow: hidden; }
.modal-media .mockup { width: 100%; height: 100%; max-height: calc(100svh - 40px); padding: 8%; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media.locked > * { filter: blur(14px) brightness(.55); }
.modal-info { padding: 44px 30px 30px; overflow-y: auto; }
.modal-drop { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.modal-name { margin: 0 0 12px; font-family: var(--brand); font-weight: 400; font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.modal-price { margin-bottom: 20px; }
.modal-price .now { font-size: 18px; font-weight: 700; }
.modal-price s { color: var(--muted); margin-left: 8px; }
.modal-price .pix, .modal-price .parc { display: block; font-size: 13px; color: var(--muted); }
.modal-label { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.size { min-width: 46px; height: 40px; padding: 0 10px; font-size: 13px; font-weight: 700; border: 1px solid #3a3a3a; }
.size:hover { border-color: var(--text); }
.size[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }
.sizes.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.qty-row { display: flex; gap: 10px; margin-bottom: 20px; }
.qty { display: flex; align-items: center; border: 1px solid #3a3a3a; height: 48px; flex: none; }
.qty button { width: 38px; height: 100%; font-size: 17px; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.modal-desc { margin: 0 0 14px; font-size: 14px; color: #d6d6d6; }
.modal-details { border-top: 1px solid var(--line); padding-top: 10px; }
.modal-details summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.size-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 6px; text-align: center; }
.size-table td:first-child { text-align: left; color: var(--muted); }
.modal-text { grid-template-columns: 1fr; width: min(620px, calc(100vw - 32px)); }
.policy-body { padding: 40px 30px; overflow-y: auto; }
.policy-body h3 { margin: 0 0 10px; font-family: var(--brand); font-weight: 400; font-size: 54px; line-height: 1; }
.policy-body p, .policy-body li { color: #d6d6d6; }

/* ---------- SACOLA ---------- */
.drawer { position: fixed; z-index: 100; top: 0; right: 0; height: 100%; height: 100dvh; width: min(420px, 100vw); background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s ease; }
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-family: var(--brand); font-weight: 400; font-size: 44px; line-height: 1.1; }
.drawer-head button { font-size: 12px; }
.ship-bar { padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ship-bar:empty { display: none; }
.ship-bar strong { color: var(--text); }
.ship-track { height: 2px; background: #222; margin-top: 8px; }
.ship-fill { height: 100%; background: var(--text); transition: width .4s; }
.drawer-items { flex: 1; overflow-y: auto; padding: 4px 20px; }
.cart-empty { text-align: center; padding: 60px 0; }
.cart-empty strong { display: block; font-family: var(--brand); font-weight: 400; font-size: 64px; line-height: 1; margin-bottom: 20px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { aspect-ratio: 4 / 5; background: var(--bg-2); }
.cart-thumb .mockup { width: 100%; height: 100%; padding: 6%; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { margin: 0 0 2px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.cart-meta { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-row .qty { height: 30px; }
.cart-row .qty button { width: 28px; font-size: 14px; }
.cart-remove { margin-top: 8px; font-size: 11px; color: var(--muted); text-decoration: underline; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.sum-row.pix { color: var(--muted); }
.sum-row.total { font-size: 16px; font-weight: 700; margin: 8px 0 14px; }
.drawer-note { margin: 10px 0 0; font-size: 11px; color: var(--muted); text-align: center; }

.toast { position: fixed; z-index: 200; left: 50%; top: 14px; transform: translate(-50%, -12px); background: var(--text); color: #000; font-weight: 700; font-size: 12px; padding: 10px 18px; opacity: 0; pointer-events: none; transition: .25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.svg-script { font-family: "Courier Prime", monospace; font-style: italic; }
.svg-display, .svg-goth { font-family: var(--brand); }
.svg-mono { font-family: var(--type); font-weight: 700; }

/* ============ RESPONSIVO ============ */
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  :root { --header-h: 54px; }
  .nav { display: none; }
  .burger { display: block; }
  .header { gap: 18px; }
  .logo { width: 118px; }
  .spine-left { display: none; }
  .spine-wrap { width: 42px; opacity: .28; }
  .hero { padding: 60px 16px; }
  .hero-logo { width: 92vw; }
  .hero-art { opacity: .22; }
  .corner { font-size: 9px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; }
  .track { grid-template-columns: 34px 1fr auto; gap: 4px 10px; }
  .t-date { display: none; }
  .t-st { min-width: 0; }
  .about { grid-template-columns: 1fr; }
  .about-art { height: 60vh; }
  .modal { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92dvh; transform: translateY(100%); opacity: 1; grid-template-columns: 1fr; overflow-y: auto; border-width: 1px 0 0; transition: transform .3s ease; }
  .modal.show { transform: none; }
  .modal-media { aspect-ratio: 1; max-height: 46dvh; }
  .modal-media .mockup { max-height: 46dvh; padding: 6%; }
  .modal-info { padding: 22px 16px calc(26px + env(safe-area-inset-bottom)); overflow: visible; }
  .modal-text .policy-body { padding: 40px 18px calc(30px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .hero-art .sigil { clip-path: none !important; }
  .spine-wrap { clip-path: none; }
}
@media (max-width: 760px) { .topbar { white-space: normal; font-size: 11px; line-height: 1.4; } }

/* =========================================================
   MOLDURAS (filigrana, ornamentos de título, janela gótica)
   ========================================================= */
.frame-corner { position: absolute; z-index: 1; width: clamp(150px, 25vw, 360px); aspect-ratio: 1; color: var(--text); opacity: .75; pointer-events: none; }
.frame-corner svg { width: 100%; height: 100%; }
.f-tl { top: 8px; left: 8px; }
.f-tr { top: 8px; right: 8px; transform: scaleX(-1); }
.f-bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.f-br { bottom: 8px; right: 8px; transform: scale(-1, -1); }
.vtext { position: absolute; z-index: 2; top: 50%; margin: 0; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.v-l { left: 18px; transform: translateY(-50%) rotate(180deg); }
.v-r { right: 18px; transform: translateY(-50%); }

.orn-head { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 22px); margin: 0 0 6px; }
.orn { width: min(300px, 26vw); color: var(--text); opacity: .85; flex: none; }
.orn svg { width: 100%; height: auto; }
.orn-r { transform: scaleX(-1); }
.orn-head + .sec-meta, .shop > .sec-meta { text-align: center; margin: 0 0 34px; }
.orn-head .sec-title { text-align: center; }

/* janela gótica nas peças */
.grid { padding-top: 26px; row-gap: 56px; }
.arch { position: relative; margin-bottom: 14px; }
.arch .card-media { clip-path: var(--arch); margin-bottom: 0; }
.arch-frame { position: absolute; left: -8%; top: -19.2%; width: 116%; max-width: none; height: 125.6%; color: var(--text); opacity: .8; pointer-events: none; overflow: visible; }
.card:hover .arch-frame { opacity: 1; }
.card-info { text-align: center; }
.card-name, .card-price, .card-pix { text-align: center; }

/* janela gótica no Sobre */
.about-window { position: relative; width: min(420px, 82%); aspect-ratio: 4 / 5; justify-self: center; margin-top: 30px; }
.arch-in { position: absolute; inset: 0; clip-path: var(--arch); background: var(--bg-2); display: flex; justify-content: center; overflow: hidden; }
.arch-in .about-art { height: 100%; opacity: 1; }
.arch-frame-slot { position: absolute; inset: 0; pointer-events: none; }

@media (max-width: 760px) {
  .frame-corner { width: 38vw; opacity: .6; }
  .vtext { font-size: 8px; letter-spacing: .24em; }
  .v-l { left: 6px; }
  .v-r { right: 6px; }
  .orn { width: 22vw; }
  .grid { row-gap: 44px; }
}
@media (max-width: 760px) { .ghost-txt { font-size: 20px; } .arch-frame { opacity: .7; } }

/* =========================================================
   v3 — arte em lâmina, molduras sem recorte
   ========================================================= */
.bladeart { display: block; }
/* galhos laterais dentro da tela (nada cortado) */
.spine-left { left: -14px; }
.spine-right { right: -14px; }
/* capa: sigilo central inteiro, cantos inteiros */
.hero { overflow: visible; }
.hero-art { top: 3%; bottom: 3%; opacity: .5; }
.hero-art .sigil { height: 100%; width: auto; max-width: none; }
.frame-corner { width: clamp(150px, 22vw, 320px); opacity: .85; }
.frame-corner .sigil { width: 100%; height: 100%; }
/* moldura das peças: caixa 4:5 inteira, enfeite por fora */
.framed { position: relative; margin: 34px 14% 26px; }
.framed .card-media { aspect-ratio: 4 / 5; margin: 0; clip-path: none; }
.frame-b { position: absolute; left: -14%; top: -30.4%; width: 128%; height: 141.6%; max-width: none; color: var(--text); opacity: .85; pointer-events: none; overflow: visible; }
.card:hover .frame-b { opacity: 1; }
.grid { row-gap: 40px; }
.ghost-txt { font-size: clamp(22px, 2.6vw, 38px); }
/* sobre: sigilo inteiro dentro da moldura */
.about-window { width: min(360px, 70%); aspect-ratio: 4 / 5; margin: 70px auto 40px; }
.about-window .about-art { position: absolute; inset: 6% 0; height: auto; display: flex; justify-content: center; background: transparent; }
.about-window .about-art .sigil { height: 100%; width: auto; max-width: none; }
.frame-slot { position: absolute; inset: 0; pointer-events: none; }
/* lista: sigilos dos lados */
.side-sigil { position: absolute; top: 6%; bottom: 6%; color: var(--text); opacity: .55; pointer-events: none; }
.side-sigil .sigil { height: 100%; width: auto; }
.s-l { left: 6%; }
.s-r { right: 6%; }
/* rodapé com cantos */
.footer { position: relative; overflow: hidden; }
.frame-corner.foot { width: clamp(110px, 14vw, 200px); opacity: .6; }
.f-bl.foot { left: 8px; bottom: 8px; top: auto; }
.f-br.foot { right: 8px; bottom: 8px; top: auto; }
.divider { width: min(820px, 92%); }

@media (max-width: 760px) {
  .frame-corner { width: 34vw; opacity: .7; }
  .framed { margin: 26px 12% 20px; }
  .ghost-txt { font-size: 18px; }
  .side-sigil { opacity: .3; }
  .s-l { left: -2%; }
  .s-r { right: -2%; }
  .frame-corner.foot { width: 22vw; }
}
.hero-art { opacity: .3; }
.frame-corner { width: clamp(140px, 19vw, 280px); }
.framed { margin-bottom: 44px; }
.hero-drop { position: relative; z-index: 3; }
@media (max-width: 760px) { .framed { margin-bottom: 34px; } .frame-corner { width: 30vw; } }
@media (max-width: 760px) { .s-l { left: 2%; } .s-r { right: 2%; } .side-sigil { top: 10%; bottom: 10%; } }

/* =========================================================
   v4 — cybersigilismo orgânico
   ========================================================= */
.hero-art { left: 0; right: 0; top: 0; bottom: 0; transform: none; opacity: .5; }
.hero-art .sigil { clip-path: inset(0 0 100% 0); transition: clip-path 2.4s cubic-bezier(.6, 0, .2, 1); }
.hero.on .hero-art .sigil { clip-path: inset(0 0 0 0); }
.hero-wings { position: absolute; left: 50%; top: 3%; width: min(1100px, 96vw); transform: translateX(-50%); }
.hero-wings .sigil { width: 100%; height: auto; max-width: none; }
.hero-tail { position: absolute; left: 50%; top: 36%; height: 60%; transform: translateX(-50%); }
.hero-tail .sigil { height: 100%; width: auto; max-width: none; }
/* peças da loja: foto inteira, cybersigilo "tatuado" no canto */
.framed { margin: 22px 4% 16px; }
.card-orn { position: absolute; z-index: 3; top: -14%; left: -12%; width: 64%; color: var(--text); opacity: .9; pointer-events: none; }
.card-orn .sigil { width: 100%; height: auto; }
.card:nth-child(even) .card-orn { left: auto; right: -12%; transform: scaleX(-1); }
.frame-b { display: none; }
/* sobre sem moldura: só o sigilo, inteiro */
.about-window { width: min(380px, 80%); aspect-ratio: 9 / 25; margin: 20px auto; }
.about-window .about-art { inset: 0; }
.about-window .about-art .sigil { height: 100%; width: auto; }
@media (max-width: 760px) {
  .hero-wings { top: 8%; }
  .hero-tail { top: 40%; height: 52%; }
  .card-orn { width: 70%; }
}
.card:nth-child(even) .card-orn { left: auto; top: auto; right: -12%; bottom: -14%; transform: rotate(180deg); }
.framed { margin-bottom: 34px; }
.card:nth-child(even) .card-orn { bottom: 4%; }

/* =========================================================
   v5 — poucas peças, bem desenhadas
   ========================================================= */
.orn, .card-orn, .side-sigil, .hero-tail, .frame-corner.foot, .hero .f-tr, .hero .f-bl { display: none !important; }
.orn-head { gap: 0; }
.hero-art { opacity: .75; }
.hero-wings { top: 6%; width: min(980px, 94vw); }
.frame-corner { width: clamp(130px, 16vw, 230px); opacity: .7; }
.divider { width: min(520px, 70%); opacity: .7; margin: 10px auto; }
.framed { margin: 0 0 14px; }
.grid { padding-top: 0; row-gap: 34px; }
.about-window { width: min(300px, 64%); aspect-ratio: 2 / 5; margin: 10px auto; }
@media (max-width: 760px) {
  .hero-wings { top: 12%; }
  .frame-corner { width: 26vw; }
}

/* =========================================================
   v6 — estrutura de loja: aviso correndo, logo no centro,
   menu embaixo, banner, grade de produtos com "comprar"
   ========================================================= */
.topbar { padding: 0; height: 30px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.topbar-track { display: flex; animation: marquee 34s linear infinite; }
.topbar-track span { padding: 0 34px; }
.topbar-track span::before { content: "✦"; margin-right: 34px; font-weight: 400; }

.store-header { height: auto; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; align-items: center; row-gap: 6px; padding: 14px var(--pad) 12px; }
.store-header .logo { width: clamp(170px, 20vw, 270px); margin: 0; grid-column: 2; }
.h-left { grid-column: 1; display: flex; align-items: center; gap: 14px; }
.h-right { grid-column: 3; justify-self: end; }
.h-insta { color: var(--text); display: grid; place-items: center; width: 38px; height: 38px; }
.h-insta:hover { opacity: .6; }
.store-header .cart-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; }
.store-header .cart-count { position: absolute; top: 3px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; background: var(--text); color: #000; font-size: 10px; font-weight: 700; border-radius: 8px; display: grid; place-items: center; line-height: 1; }
.store-header .nav { grid-column: 1 / -1; justify-content: center; margin: 0; gap: 34px; font-size: 12px; text-transform: lowercase; letter-spacing: .06em; }
.store-header .burger { display: none; }
.mobile-nav { inset: 0; top: var(--hh, 120px); }

/* banner */
.hero { min-height: min(78svh, 720px); }

/* grade de produtos estilo loja */
.shop { padding-top: 40px; }
.orn-head .sec-title { font-size: clamp(44px, 5.5vw, 76px); }
.card-info { justify-items: center; }
.card-buy { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 22px; font-size: 12px; font-weight: 700; text-transform: lowercase; letter-spacing: .08em; border: 1px solid var(--text); color: var(--text); transition: background .2s, color .2s; }
.card:hover .card-buy:not(.is-off) { background: var(--text); color: #000; }
.card-buy.is-off { border-color: #333; color: var(--muted); }
.card-buy:not(.is-off)::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%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 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat; }
.card-media { border: 1px solid #1c1c1c; }

@media (max-width: 760px) {
  .store-header { padding: 10px 14px; }
  .store-header .logo { width: 150px; }
  .store-header .nav { display: none; }
  .store-header .burger { display: block; font-size: 12px; }
  .h-insta { display: none; }
  .card-buy { padding: 7px 14px; font-size: 11px; }
}
:root { --header-h: 112px; }
.mobile-nav { top: var(--header-h); }
@media (max-width: 760px) { :root { --header-h: 62px; } }
/* v7 — tribal + estrelas cyber */
.about-window { width: min(440px, 86%); aspect-ratio: 600 / 860; }
.cyberstar { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .25)); }
.sobre-arte { filter: drop-shadow(0 0 2px rgba(255, 255, 255, .18)); }

/* v8 — gravura nos cards, títulos e drops */
.ghost-shape { inset: 7% 10%; color: var(--text); opacity: .42; }
.ghost-shape .sigil { width: 100%; height: 100%; }
.ghost-txt { text-shadow: 0 0 18px #000, 0 0 6px #000; }
.orn-g { flex: 0 1 clamp(80px, 18vw, 260px); color: var(--text); opacity: .75; display: block; line-height: 0; }
.orn-g .sigil { width: 100%; height: auto; }
.orn-g-l { transform: scaleX(-1); }
.drop-empty { display: grid; justify-items: center; gap: 6px; padding: 10px 0 30px; text-align: center; border-bottom: 1px dashed var(--line); }
.drop-empty-art { width: min(200px, 46vw); color: var(--text); opacity: .85; margin-bottom: 6px; }
.drop-empty-art .sigil { width: 100%; height: auto; }
.drop-empty .t-n { color: var(--muted); font-size: 12px; letter-spacing: .2em; }
.drop-empty-name { font-family: var(--brand); font-size: clamp(40px, 6vw, 84px); line-height: 1; }
.drop-empty .t-st { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .orn-g { flex-basis: 64px; } }

/* v9 — partículas de estrelinhas */
.stars-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; } /* só no fundo: atrás de cards, textos e artes */

/* v10 — rodapé com braços */
.footer-logo { width: min(900px, 94vw); display: flex; align-items: center; justify-content: center; gap: 0; }
.footer-logo .fl-mark { flex: 0 1 420px; min-width: 0; }
.footer-logo .fl-mark svg { width: 100%; height: auto; display: block; }
.footer-logo .orn-g { flex: 0 1 200px; opacity: .6; }
@media (max-width: 760px) { .footer-logo .orn-g { flex-basis: 48px; } }

/* v11 — moldura de canto nos cards */
.cm { position: absolute; width: 22%; max-width: 92px; aspect-ratio: 1; color: var(--text); opacity: .55; pointer-events: none; z-index: 2; transition: opacity .3s; }
.cm .sigil { width: 100%; height: 100%; display: block; }
.cm-tl { top: 6px; left: 6px; }
.cm-br { bottom: 6px; right: 6px; transform: rotate(180deg); }
.card:hover .cm { opacity: .9; }

/* v12 — animações de rolagem (js/scroll.js) */
.rv { opacity: 0; transform: translate3d(0, 38px, 0); filter: blur(7px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }
.rv-win { transform: translate3d(0, 60px, 0) scale(.96); }
/* fios das divisórias: desenham do centro pra fora */
.rv-wipe > * { clip-path: inset(0 50% 0 50%); transition: clip-path 1.6s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--d, 0s); }
.rv-wipe.in > * { clip-path: inset(0 0 0 0); }
/* braços dos títulos: nascem do título pra fora (o da esquerda é espelhado) */
.orn-g.rv-wipe > * { clip-path: inset(0 100% 0 0); transition-duration: 1.3s; }
.orn-g.rv-wipe.in > * { clip-path: inset(0 0 0 0); }
/* cards: acendem piscando como lâmpada velha */
.rv-card.in .card-media { animation: rv-flicker 1s steps(1) both; animation-delay: var(--d, 0s); }
@keyframes rv-flicker { 0% { opacity: .1; } 10% { opacity: 1; } 16% { opacity: .25; } 24% { opacity: 1; } 29% { opacity: .55; } 38%, 100% { opacity: 1; } }
/* capa: asas e texto afundam e somem ao descer */
.hero-art { overflow: hidden; }
.hero-wings { opacity: var(--ho, 1); }
.hero-wings .sigil { transform: translate3d(0, var(--hy, 0px), 0) scale(var(--hs, 1)); transform-origin: 50% 30%; will-change: transform; }
.hero-inner { transform: translate3d(0, var(--iy, 0px), 0); opacity: var(--io, 1); }
/* sobre: arte desliza dentro da janela */
.about-window .about-art .sigil { transform: translate3d(0, var(--ay, 0px), 0); }
/* reduzir movimento: só fade e desenho */
.rv-calm .rv { transform: none; filter: none; }
.rv-calm .rv-card.in .card-media { animation: none; }
