/* ── Pulse — festival anatomy ───────────────────────────────────────────────
   Camps, classes, community. Layout devices: floating pill nav, split hero
   with a taped-up ticket visual, diagonal marquee ribbon, staggered card
   field. The ticket punch-holes stay from v1. Motion: the visual slaps in
   once, the ribbon scrolls, cards straighten on hover. */

.theme-pulse {
  --ink: #17131f;
  --ink-soft: #4a4358;
  --muted: #756d8a;
  --line: #e5dff2;
  --bg: #f4f0fb;
  --card: #ffffff;
  --radius: 18px;
  font-family: 'Prompt', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.65;
}

/* ── Nav: detached floating pill ── */
.theme-pulse .nav {
  position: sticky; top: 12px; z-index: 50; margin: 12px 16px 0;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, white);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--brand) 28%, white);
}
.theme-pulse .nav-inner { height: 60px; padding: 0 10px; }
.theme-pulse .nav-links a { font-weight: 600; }
.theme-pulse .brand { font-weight: 800; font-size: 1.1rem; }
.theme-pulse .brand-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
@media (max-width: 768px) {
  .theme-pulse .nav { margin: 10px 10px 0; }
  .theme-pulse .mobile-nav { border-radius: 0 0 20px 20px; border: 1.5px solid var(--ink); border-top: none; }
}

/* ── Hero: split stage — copy left, taped ticket visual right ── */
.theme-pulse .hero { text-align: left; padding: 72px 0 52px; }
.theme-pulse .hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 1.3px, transparent 1.3px);
  background-size: 22px 22px; opacity: 0.35;
  mask-image: linear-gradient(105deg, transparent 30%, black 75%);
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, black 75%);
}
.theme-pulse .hero .container { position: relative; }
.theme-pulse .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
.theme-pulse .hero h1 { font-size: clamp(2rem, 4.8vw, 3rem); font-weight: 800; letter-spacing: -0.02em; max-width: 15ch; }
.theme-pulse .hero-sub { margin: 0; font-size: 1.06rem; max-width: 44ch; }
.theme-pulse .hero-cta { justify-content: flex-start; }
.theme-pulse .eyebrow {
  border-radius: 9px; border: 1.5px solid var(--brand); color: var(--brand);
  background: #fff; font-weight: 700; letter-spacing: 0.02em; text-transform: none;
  font-size: 0.88rem; padding: 6px 14px;
}
/* the visual: a taped-up ticket, slaps in once, straightens on hover */
.theme-pulse .hero-visual { display: block; position: relative; transform: rotate(-2.5deg); }
.theme-pulse .hero-visual img {
  border-radius: 16px; border: 2px solid var(--ink); aspect-ratio: 1 / 1;
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--brand) 32%, white);
  animation: ss-slap 0.6s cubic-bezier(0.2, 1.4, 0.3, 1) 0.12s both;
}
.theme-pulse .hero-visual::before,
.theme-pulse .hero-visual::after {
  content: ""; position: absolute; width: 84px; height: 26px; top: -12px;
  background: color-mix(in srgb, var(--brand) 26%, white); opacity: 0.9;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, white);
}
.theme-pulse .hero-visual::before { left: 8%; transform: rotate(-6deg); }
.theme-pulse .hero-visual::after { right: 8%; transform: rotate(5deg); }
.theme-pulse .hero-visual:hover img { transform: rotate(0.5deg) scale(1.01); }
.theme-pulse .hero-visual img { transition: transform 0.25s ease; }
@keyframes ss-slap { from { opacity: 0; transform: scale(1.12) rotate(4deg); } to { opacity: 1; transform: none; } }

/* ── Diagonal marquee ribbon ── */
.theme-pulse .ticker {
  display: block; background: var(--brand); color: #fff;
  transform: rotate(-1.2deg) scale(1.02); margin: 8px -12px 20px;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.theme-pulse .ticker-item { font-size: 0.95rem; padding: 11px 0; letter-spacing: 0.01em; }
.theme-pulse .ticker-track { animation: ss-marquee 26s linear infinite; }
@keyframes ss-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Staggered card field ── */
.theme-pulse .grid.cols-3 { gap: 24px 20px; align-items: start; }
.theme-pulse .product-card {
  border: 1.5px solid var(--ink); border-radius: 16px; padding: 0; overflow: hidden;
  background: #fff; position: relative;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--brand) 30%, white);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.theme-pulse .grid.cols-3 .product-card:nth-child(even) { margin-top: 26px; }
.theme-pulse .product-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 color-mix(in srgb, var(--brand) 34%, white); }
.theme-pulse .product-media { border-radius: 0; aspect-ratio: 16 / 10; background: #f6f2fd; }
.theme-pulse .product-body { padding: 14px 16px 16px; position: relative; }
.theme-pulse .product-body::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 0;
  border-top: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line));
}
.theme-pulse .product-card::before,
.theme-pulse .product-card::after {
  content: ""; position: absolute; top: calc(100% - 44px); width: 18px; height: 18px;
  border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); z-index: 2;
}
.theme-pulse .product-card::before { left: -11px; clip-path: inset(0 0 0 50%); }
.theme-pulse .product-card::after { right: -11px; clip-path: inset(0 50% 0 0); }
.theme-pulse .product-name { font-weight: 700; font-size: 1.02rem; }
.theme-pulse .price { font-weight: 800; color: var(--brand); }
.theme-pulse .product-card .btn { width: 100%; }
@media (max-width: 900px) { .theme-pulse .grid.cols-3 .product-card:nth-child(even) { margin-top: 0; } }

/* ── Announcement rows ── */
.theme-pulse .post-row {
  border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 10px;
  padding: 18px 20px; background: #fff;
}
.theme-pulse .post-row:hover { border-color: var(--brand); background: #fff; }
.theme-pulse .post-title { font-weight: 700; }
.theme-pulse .post-date { font-weight: 500; color: var(--brand); }
.theme-pulse .section-head h2, .theme-pulse .page-head h1 { font-weight: 800; letter-spacing: -0.015em; }

/* ── Buttons ── */
.theme-pulse .btn { border-radius: 999px; font-weight: 700; padding: 12px 26px; }
.theme-pulse .btn-primary {
  box-shadow: 0 4px 0 color-mix(in srgb, var(--brand) 45%, #17131f);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.theme-pulse .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 color-mix(in srgb, var(--brand) 45%, #17131f); }
.theme-pulse .btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 0 color-mix(in srgb, var(--brand) 45%, #17131f); }
.theme-pulse .btn-ghost { border: 1.5px solid var(--line); }
.theme-pulse .mobile-cart-bar { border-radius: 999px; border: 2px solid var(--ink); background: var(--brand); }

.theme-pulse .pill { border-radius: 999px; font-weight: 600; }
.theme-pulse .card { border-radius: 16px; }
.theme-pulse .prose { font-size: 1.05rem; }
.theme-pulse .prose h2, .theme-pulse .prose h3 { font-weight: 700; }
.theme-pulse .prose blockquote { border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; font-weight: 500; }
.theme-pulse .footer { background: var(--ink); margin-top: 30px; }
.theme-pulse .footer-note { border-top: 1px solid rgb(255 255 255 / 10%); }
