/* ============================================================================
   Zcribbler feature showcase — Apple-style editorial layout.
   Each zcribble type is a floating, tilted "paper sheet" beside a headline,
   alternating left/right, revealed on scroll. Card components are pixel-faithful
   to mobile/lib/features/feed/ui/cards/*. Theme via data-theme on <html>.
   ========================================================================== */

/* ── Showcase tokens (semantic + 12 accents live inline in index.html) ───── */
:root {
  --border: #36322E;
  --mention: #748FFC;
  --sp0:#7A9BB8; --sp1:#85AA6E; --sp2:#D07070; --sp3:#AA85C8; --sp4:#C0A060; --sp5:#5AADA0;
  --card-shadow: 0 6px 16px rgba(0,0,0,.40);
  --soft-shadow: 0 4px 12px rgba(0,0,0,.36);
  --sheet-shadow: 0 40px 80px -28px rgba(0,0,0,.55), 0 10px 24px rgba(0,0,0,.18);
  --grain: 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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] {
  --border: #CDCBC2;
  --mention: #3550B0;
  --sp0:#4A6090; --sp1:#537A3E; --sp2:#9E4242; --sp3:#7C549E; --sp4:#907030; --sp5:#2D7D6A;
  --card-shadow: 0 6px 16px rgba(0,0,0,.10);
  --soft-shadow: 0 4px 12px rgba(0,0,0,.08);
  --sheet-shadow: 0 40px 80px -30px rgba(0,0,0,.22), 0 10px 24px rgba(0,0,0,.07);
}

/* type → accent (used by both the card and its editorial section) */
[data-type="text"]{--accent:var(--accent-text)}
[data-type="opinion"]{--accent:var(--accent-opinion)}
[data-type="thought"]{--accent:var(--accent-thought)}
[data-type="quote"]{--accent:var(--accent-quote)}
[data-type="conversation"]{--accent:var(--accent-conversation)}
[data-type="poll"]{--accent:var(--accent-poll)}
[data-type="photo"]{--accent:var(--accent-photo)}
[data-type="video"]{--accent:var(--accent-video)}
[data-type="audio"]{--accent:var(--accent-audio)}
[data-type="memory"]{--accent:var(--accent-memory)}
[data-type="event"]{--accent:var(--accent-event)}
[data-type="card"]{--accent:var(--accent-card)}
[data-type="blip"]{--accent:#22C55E}
[data-type="space"]{--accent:var(--accent-memory)}

/* ── Top nav + watermark ("zcribbler." like the feed app bar) ─────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border-subtle);
}
.wordmark {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 21px;
  letter-spacing: .02em; color: var(--text); display: inline-flex; align-items: baseline;
}
.wordmark .dot { color: var(--tint); font-size: 24px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border-subtle); color: var(--text-secondary);
  cursor: pointer; transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--tint); border-color: var(--tint); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

/* ── Hero additions ──────────────────────────────────────────────────────── */
.hero-icon {
  width: 86px; height: 86px; border-radius: 20px; display: block; margin: 0 auto 22px;
  box-shadow: 0 10px 44px rgba(116,143,252,.30), 0 2px 10px rgba(0,0,0,.4);
}
.brand .dot { -webkit-text-fill-color: var(--tint); color: var(--tint); }
/* Wordless scroll cue: a subtle chevron anchored at the bottom of the hero. */
.scroll-chevron {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--text-secondary); opacity: .5;
}
.scroll-chevron svg { display: block; width: 26px; height: 26px; animation: bob 1.9s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================================
   EDITORIAL LAYOUT
   ========================================================================== */
.ed { position: relative; z-index: 1; }

.ed-intro { max-width: 760px; margin: 0 auto; padding: 40px 28px 24px; text-align: center; }
.ed-intro h2 {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12; letter-spacing: .004em; color: var(--text);
}
.ed-intro p {
  margin-top: 18px; font-family: 'Source Serif 4', Georgia, serif; font-weight: 400;
  font-size: clamp(17px, 2.4vw, 20px); line-height: 1.6; color: var(--text-secondary);
}

.ed-section {
  max-width: 1140px; margin: 0 auto; padding: clamp(64px, 11vh, 130px) 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.ed-section.rev .ed-stage { order: -1; }

.ed-text { max-width: 440px; }
.ed-section.rev .ed-text { margin-left: auto; }
.ed-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.ed-title {
  margin-top: 16px; font-family: 'Source Serif 4', Georgia, serif; font-weight: 600;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; letter-spacing: .002em; color: var(--text);
}
.ed-desc { margin-top: 20px; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.62; color: var(--text-secondary); }

.ed-stage { display: flex; justify-content: center; align-items: center; }

/* the floating paper sheet */
.sheet {
  width: min(384px, 86vw); background: var(--surface);
  border: 1px solid var(--border-subtle); border-radius: 26px; padding: 22px 22px 20px;
  box-shadow: var(--sheet-shadow); transform: translateY(var(--py, 0px)) rotate(var(--tilt, -2deg));
  transition: box-shadow .4s ease;
}
.ed-stage:hover .sheet { transform: translateY(calc(var(--py, 0px) - 5px)) rotate(calc(var(--tilt, -2deg) * .4)); box-shadow: 0 50px 90px -28px rgba(0,0,0,.5), 0 12px 28px rgba(0,0,0,.2); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(46px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.d1 { transition-delay: .08s; }
.reveal.in { opacity: 1; transform: none; }

/* ── Blips feature section ───────────────────────────────────────────────── */
.feature {
  max-width: 1140px; margin: 0 auto; padding: clamp(56px, 9vh, 110px) 40px; text-align: center;
}
.feature .ed-eyebrow { display: block; }
.feature h3 {
  margin-top: 14px; font-family: 'Source Serif 4', Georgia, serif; font-weight: 600;
  font-size: clamp(28px, 4.4vw, 44px); line-height: 1.14; color: var(--text);
}
.feature p { margin: 16px auto 0; max-width: 520px; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6; color: var(--text-secondary); }
.feature .stage { margin-top: 44px; display: flex; justify-content: center; }

/* Blip rings (blip_rings_row.dart) */
.blips { display: flex; align-items: flex-start; gap: 22px; padding: 18px 8px; flex-wrap: wrap; justify-content: center; }
.blip { flex: none; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.blip .ring { width: 72px; height: 72px; border-radius: 20px; padding: 2.5px; }
.blip .ring.unseen { background: linear-gradient(135deg, #22C55E, #16A34A); }
.blip .ring.seen { background: color-mix(in srgb, var(--border) 30%, transparent); }
.blip .ring .inner { width: 100%; height: 100%; border-radius: 17.5px; background: var(--bg); padding: 1.5px; }
.blip .ring img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; display: block; }
.blip .lbl { font-size: 12px; font-weight: 500; color: var(--text); max-width: 78px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blip.add .tile {
  position: relative; width: 72px; height: 72px; border-radius: 20px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3C3936, #2E2B28 55%, #262320);
  box-shadow: 0 2px 6px rgba(0,0,0,.16), 0 6px 16px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.16);
}
:root[data-theme="light"] .blip.add .tile {
  background: linear-gradient(135deg, #E4E2DF, #D0CCC7 55%, #C8C4BE);
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 6px 16px rgba(0,0,0,.06), inset 0 0 0 1px rgba(255,255,255,.4);
}
.blip.add .tile svg { width: 22px; height: 22px; color: #D0CBC6; position: relative; z-index: 2; }
:root[data-theme="light"] .blip.add .tile svg { color: #8a857f; }
.blip.add .tile::after {
  content: ""; position: absolute; top: -50%; left: -60%; width: 60%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
  transform: rotate(18deg); animation: shimmer-sweep 5.5s linear infinite;
}
.blip.add .lbl { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--text-secondary); }

/* ── Spaces feature section ──────────────────────────────────────────────── */
.spaces-cluster { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; max-width: 640px; margin: 0 auto; }
.space-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--sp-accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sp-accent) 22%, transparent);
  font-size: 16px; font-weight: 600; color: var(--text); transform: rotate(var(--tilt, 0deg));
}
.space-chip.active { background: var(--sp-accent); color: #fff; border-color: transparent; }
.space-chip .sdp { width: 24px; height: 24px; border-radius: 999px; object-fit: cover; }
.space-chip .dot { width: 12px; height: 12px; border-radius: 999px; background: var(--sp-accent); }
.space-chip svg { width: 16px; height: 16px; color: var(--sp-accent); }
.space-chip .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sp-accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.space-chip.active .dot, .space-chip.active svg { background: rgba(255,255,255,.9); color: rgba(255,255,255,.9); }

/* ============================================================================
   CARD SHELL  (zcribble_card.dart) — rendered inside a sheet
   ========================================================================== */
.zc-head { height: 44px; display: flex; align-items: center; gap: 12px; }
.zc-avatar { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover; background: var(--accent, var(--tint)); }
.zc-meta { flex: 1; min-width: 0; }
.zc-name { font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-sub { margin-top: 2px; font-size: 13px; line-height: 1.2; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-sub .in-space { color: var(--text-secondary); }
.zc-badge {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent);
}
.zc-badge svg { width: 14px; height: 14px; }
.zc-badge span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }

.zc-body { margin-top: 12px; }

.zc-mentions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zc-mentions .lead { font-size: 13px; color: var(--text-secondary); }
.zc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.zc-chip .av { width: 18px; height: 18px; border-radius: 4px; background: var(--accent); object-fit: cover; display: block; }
.zc-chip span { font-size: 13px; font-weight: 600; color: var(--accent); }

.zc-stamps { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zc-stamp-add { height: 30px; width: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border-subtle); background: color-mix(in srgb, var(--tint) 4%, transparent); color: var(--text-secondary); }
.zc-stamp-add svg { width: 16px; height: 16px; }
.zc-stamp { height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid color-mix(in srgb, var(--tint) 14%, transparent); background: color-mix(in srgb, var(--tint) 6%, transparent); font-size: 14px; font-weight: 600; color: var(--text); }
.zc-stamp.mine { background: color-mix(in srgb, var(--tint) 14%, transparent); border-color: color-mix(in srgb, var(--tint) 30%, transparent); color: var(--tint); font-weight: 700; }

.zc-space { margin-top: 12px; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--space-accent) 8%, transparent); }
.zc-space .d { width: 7px; height: 7px; border-radius: 999px; background: var(--space-accent); }
.zc-space .n { font-size: 12px; font-weight: 600; color: var(--space-accent); }
.zc-space svg { width: 12px; height: 12px; color: var(--space-accent); }

.zc-reply { margin-top: 10px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.zc-reply .avs { position: relative; height: 22px; }
.zc-reply .avs img, .zc-reply .avs i { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 5px; background: var(--accent); object-fit: cover; box-shadow: 0 0 0 2px var(--surface); }
.zc-reply .txt { font-size: 13px; color: var(--text-secondary); }
.zc-reply.btn { justify-content: flex-end; }
.zc-reply .reply-link { font-size: 13px; font-weight: 600; color: var(--accent); }

.mention { color: var(--mention); font-weight: 600; }

/* ── 1. TEXT ── */
.c-text { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 19px; line-height: 1.58; letter-spacing: .1px; color: var(--text); }

/* ── 2. OPINION ── */
.c-opinion { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.c-opinion .op-bar { flex: none; width: 4px; border-radius: 2px; background: linear-gradient(to bottom, var(--accent), color-mix(in srgb, var(--accent) 66%, transparent), color-mix(in srgb, var(--accent) 33%, transparent)); }
.c-opinion .op-text { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 17px; line-height: 1.58; color: var(--text); }

/* ── 3. THOUGHT ── */
.c-thought { padding-bottom: 14px; }
.th-bubble { padding: 24px; border-radius: 24px 24px 24px 4px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 9%, transparent) 55%, color-mix(in srgb, var(--accent) 3%, transparent)); font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 17px; line-height: 1.65; letter-spacing: .15px; color: var(--text); }
.th-tail { margin: 4px 0 0 20px; display: flex; align-items: center; gap: 6px; }
.th-tail i { border-radius: 999px; display: block; }
.th-tail .d1 { width: 8px; height: 8px; background: color-mix(in srgb, var(--accent) 19%, transparent); }
.th-tail .d2 { width: 14px; height: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* ── 4. QUOTE ── */
.c-quote { position: relative; padding: 24px 0 0 15px; }
.c-quote .q-mark { position: absolute; top: -8px; left: 0; font-family: 'Source Serif 4', Georgia, serif; font-size: 48px; line-height: 1; color: var(--accent); }
.c-quote .q-text { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 19px; line-height: 1.58; letter-spacing: .2px; color: var(--text); }
.c-quote .q-attr { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.c-quote .q-rule { width: 20px; height: 2px; border-radius: 1px; background: var(--accent); }
.c-quote .q-author { font-size: 14px; font-weight: 600; letter-spacing: .5px; color: var(--text-secondary); }

/* ── 5. CONVERSATION ── */
.c-convo { display: flex; flex-direction: column; gap: 12px; }
.cv-line { display: flex; align-items: baseline; }
.cv-speaker { width: 84px; flex: none; text-align: right; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--sp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-bar { flex: none; width: 2px; align-self: stretch; min-height: 23px; margin: 0 12px 0 8px; border-radius: 1px; background: var(--sp); }
.cv-text { flex: 1; font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 17px; line-height: 1.58; color: var(--text); }

/* ── 6. POLL ── (fills always visible — accent/green) */
.c-poll .pl-q { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 17px; line-height: 1.58; color: var(--text); margin-bottom: 12px; }
.pl-choice { position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 8px; display: flex; align-items: center; padding: 12px 16px; gap: 6px; }
.pl-choice .pl-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--pct, 0)); background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 8px; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.pl-choice.win .pl-fill { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.pl-choice .pl-check { position: relative; width: 16px; height: 16px; color: var(--accent); flex: none; }
.pl-choice .pl-label { position: relative; flex: 1; font-family: 'Source Serif 4', Georgia, serif; font-size: 17px; color: var(--text); }
.pl-choice.voted .pl-label { font-weight: 600; }
.pl-choice .pl-pct { position: relative; font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.c-poll .pl-foot { margin-top: 8px; font-size: 13px; color: var(--text-secondary); }

/* ── 7. PHOTO ── */
.c-photo .ph-note { font-family: 'Source Serif 4', Georgia, serif; font-size: 17px; line-height: 1.58; color: var(--text); margin-bottom: 12px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 4px; }
.ph-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; background: var(--bg); }
.ph-grid .g1 { grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.ph-grid .g2 { aspect-ratio: 1 / 1; }
.ph-grid .g3 { aspect-ratio: 1 / 1; }

/* ── 8. VIDEO ── */
.c-video .vd-note { font-family: 'Source Serif 4', Georgia, serif; font-size: 17px; line-height: 1.58; color: var(--text); margin-bottom: 12px; }
.vd-frame { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg); }
.vd-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-frame .vignette { position: absolute; inset: auto 0 0 0; height: 80px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.30)); }
.vd-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1.5px solid rgba(255,255,255,.30); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.vd-play svg { width: 32px; height: 32px; color: #fff; margin-left: 3px; }

/* ── 9. AUDIO ── */
.c-audio .au-note { font-family: 'Source Serif 4', Georgia, serif; font-size: 17px; line-height: 1.58; color: var(--text); margin-bottom: 12px; }
.au-box { padding: 12px 16px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent) 3%, transparent)); }
.au-track { height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); position: relative; margin: 8px 0; }
.au-track .au-fill { position: absolute; inset: 0 70% 0 0; background: var(--accent); border-radius: 999px; }
.au-track .au-thumb { position: absolute; top: 50%; left: 30%; transform: translate(-50%,-50%); width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.au-row { display: flex; align-items: center; }
.au-play { width: 34px; height: 34px; border-radius: 999px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.au-play svg { width: 18px; height: 18px; color: #fff; margin-left: 2px; }
.au-row .au-time { margin-left: auto; font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ── 10. MEMORY ── */
.c-memory { position: relative; transform: rotate(-.5deg); border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), color-mix(in srgb, var(--accent) 5%, transparent) 55%, color-mix(in srgb, var(--surface) 25%, transparent)); box-shadow: var(--card-shadow); }
.c-memory::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 160px 160px; opacity: .04; mix-blend-mode: overlay; pointer-events: none; }
.mem-inner { position: relative; padding: 16px 16px 24px; }
.mem-note { font-family: 'Source Serif 4', Georgia, serif; font-size: 19px; line-height: 1.55; color: var(--text); }
.mem-media { margin-top: 12px; border-radius: 8px; overflow: hidden; }
.mem-media img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 3; background: var(--bg); }
.mem-divider { height: 1px; margin: 12px 0; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.mem-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mem-chip { height: 56px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: color-mix(in srgb, var(--surface) 80%, transparent); border: .5px solid color-mix(in srgb, var(--border) 40%, transparent); }
.mem-chip .lab { font-size: 11px; font-weight: 600; letter-spacing: .5px; line-height: 1.1; color: var(--text-secondary); text-transform: uppercase; }
.mem-chip .val { font-size: 15px; font-weight: 600; line-height: 1.15; color: var(--text); }
.mem-loc { margin-top: 12px; height: 48px; padding: 0 16px; border-radius: 8px; display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--accent) 5%, transparent); border: .5px solid color-mix(in srgb, var(--border) 40%, transparent); }
.mem-loc svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.mem-loc span { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 11. EVENT ── */
.c-event { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg); border: .5px solid color-mix(in srgb, var(--accent) 19%, transparent); box-shadow: var(--soft-shadow); }
.ev-cover { position: relative; aspect-ratio: 16 / 10; }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-cover .vignette { position: absolute; inset: auto 0 0 0; height: 48px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.38)); }
.ev-badge { position: absolute; top: 12px; right: 16px; width: 52px; height: 60px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); display: flex; flex-direction: column; }
:root[data-theme="dark"] .ev-badge { background: #2C2826; }
.ev-badge .m { height: 18px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; }
.ev-badge .d { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--text); }
.ev-perf { position: relative; height: 20px; }
.ev-perf::before, .ev-perf::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 999px; background: var(--surface); }
.ev-perf::before { left: -10px; }
.ev-perf::after { right: -10px; }
.ev-perf .dash { position: absolute; top: 50%; left: 12px; right: 12px; height: 1px; background-image: repeating-linear-gradient(to right, color-mix(in srgb, var(--text) 18%, transparent) 0 6px, transparent 6px 10px); }
.ev-details { padding: 0 24px 24px; }
.ev-title { font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--text); }
.ev-desc { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.ev-meta { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ev-row { height: 44px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--accent) 5%, transparent); border: .5px solid color-mix(in srgb, var(--border) 40%, transparent); }
.ev-row svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.ev-row span { font-size: 14px; font-weight: 500; color: var(--text); }

/* ── 12. CARD ── */
.c-card { position: relative; min-height: 180px; border-radius: 12px; overflow: hidden; padding: 24px; display: flex; flex-direction: column; background: linear-gradient(135deg, var(--g1), var(--g2)); color: var(--ctxt); }
.c-card::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 160px 160px; opacity: var(--grain-op, .14); mix-blend-mode: overlay; pointer-events: none; }
.c-card::after { content: ""; position: absolute; top: -50%; left: -60%; width: 60%; height: 200%; background: linear-gradient(90deg, transparent, var(--shimmer, rgba(255,255,255,.10)), transparent); transform: rotate(18deg); animation: shimmer-sweep 4s linear infinite; pointer-events: none; }
@keyframes shimmer-sweep { 0%{ left: -60%; } 100%{ left: 160%; } }
.c-card .gc-stripe { width: 100%; height: 3px; border-radius: 1.5px; background: var(--stripe); margin-bottom: 16px; }
.c-card .gc-to { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: color-mix(in srgb, var(--ctxt) 80%, transparent); margin-bottom: 12px; }
.c-card .gc-msg { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.5; text-align: center; color: var(--ctxt); margin: 16px 0; }
.c-card .gc-from { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 14px; line-height: 1.5; text-align: right; color: color-mix(in srgb, var(--ctxt) 80%, transparent); margin-top: 12px; }
.tmpl-platinum { --g1:#4a4e58; --g2:#383c44; --ctxt:#e4e4e8; --stripe:#9a9da4; --grain-op:.21; --shimmer:rgba(255,255,255,.10); }
.tmpl-obsidian { --g1:#1e1e26; --g2:#121218; --ctxt:#e8e8ec; --stripe:transparent; --grain-op:.10; --shimmer:rgba(255,255,255,.09); }
.tmpl-rosegold { --g1:#3d2828; --g2:#2c1c1c; --ctxt:#f0dcd4; --stripe:#b08878; --grain-op:.18; --shimmer:rgba(255,255,255,.10); }
.tmpl-sapphire { --g1:#0c1a32; --g2:#081224; --ctxt:#e0e8f0; --stripe:transparent; --grain-op:.09; --shimmer:rgba(255,255,255,.09); }
.tmpl-emerald  { --g1:#0c1c16; --g2:#081410; --ctxt:#f0ece0; --stripe:#c8a455; --grain-op:.09; --shimmer:rgba(255,255,255,.09); }
.tmpl-ivory    { --g1:#28241e; --g2:#1c1814; --ctxt:#e8e0d4; --stripe:#c4b8a4; --grain-op:.18; --shimmer:rgba(255,255,255,.10); }
:root[data-theme="light"] .tmpl-platinum { --g1:#c8cbd0; --g2:#b0b4bc; --ctxt:#1a1a20; --stripe:#9a9da4; --shimmer:rgba(0,0,0,.06); }
:root[data-theme="light"] .tmpl-rosegold { --g1:#cfad9e; --g2:#bc9684; --ctxt:#1c1412; --stripe:#b08878; --shimmer:rgba(0,0,0,.06); }
:root[data-theme="light"] .tmpl-ivory    { --g1:#f5f1ea; --g2:#ede6dc; --ctxt:#2c2418; --stripe:#c4b8a4; --shimmer:rgba(0,0,0,.06); }

/* ============================================================================
   COMING-SOON CTA
   ========================================================================== */
.cta { position: relative; z-index: 1; text-align: center; padding: clamp(80px,12vh,120px) 28px 90px; display: flex; flex-direction: column; align-items: center; }
.cta .lockup { display: flex; align-items: center; gap: 14px; }
.cta .lockup img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 24px rgba(116,143,252,.28); }
.cta .lockup .name { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 28px; color: var(--text); }
.cta .lockup .name .dot { color: var(--tint); }
.cta .eyebrow { margin-top: 28px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary); }
.cta .promise { margin-top: 10px; font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(20px,3vw,24px); line-height: 1.4; color: var(--text); }
.store-badges { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 11px; background: #000; color: #fff; cursor: default; border: 1px solid rgba(255,255,255,.14); opacity: .92; transition: opacity .2s; }
.store-badge:hover { opacity: 1; }
:root[data-theme="light"] .store-badge { box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .bt { text-align: left; line-height: 1.1; }
.store-badge .bt small { display: block; font-size: 10px; font-weight: 500; opacity: .85; }
.store-badge .bt b { display: block; font-size: 17px; font-weight: 600; }

/* ── Footer ── */
.site-footer { position: relative; z-index: 1; text-align: center; padding: 40px 28px 56px; color: var(--text-secondary); border-top: 1px solid var(--border-subtle); }
.site-footer .fmark { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 20px; color: var(--text); }
.site-footer .fmark .dot { color: var(--tint); }
.site-footer .co { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; opacity: .7; }
.site-footer .links { margin-top: 12px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.site-footer .links a { color: var(--text-secondary); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .04em; opacity: .8; transition: color .2s, opacity .2s; }
.site-footer .links a:hover { color: var(--tint); opacity: 1; }

/* ============================================================================
   RESPONSIVE + reduced-motion
   ========================================================================== */
@media (max-width: 860px) {
  .ed-section { grid-template-columns: 1fr; gap: 28px; text-align: center; padding: 56px 28px; }
  .ed-section.rev .ed-stage { order: 0; }
  .ed-text { max-width: 540px; margin: 0 auto !important; }
  .ed-stage { order: -1; }
  .sheet { --tilt: -1.5deg; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .c-card::after, .scroll-chevron svg, .blip.add .tile::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sheet { transition: none; }
}
