/* =========================================================
   carousels.css — LinkedIn-style feed mockup + square (1080)
   swipeable carousels. Loads AFTER ../styles.css; reuses tokens.
   Per-post persona tint set on .post via --brand / --brand-line.
   Slides size via container-query units: 1em == 10 design-px.
   ========================================================= */

.cz-page { padding-top: 112px; padding-bottom: 100px; }

/* ---- Intro band ---- */
.cz-intro { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.cz-intro .eyebrow { justify-content: center; }
.cz-intro h1 { margin: 18px 0 16px; }
.cz-intro .lead { margin: 0 auto; }
.cz-note {
  margin-top: 22px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  letter-spacing: 0.04em; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 9px;
}
.cz-note::before {
  content: "↔ swipe"; color: var(--accent);
  border: 1px solid var(--accent-line); border-radius: 5px;
  padding: 2px 8px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
}

/* =========================================================
   Feed + post card
   ========================================================= */
.feed { max-width: 552px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }

.post {
  --brand: var(--accent);
  --brand-line: var(--accent-line);
  scroll-margin-top: 92px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ---- Author header ---- */
.post-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; }
.post-av {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 32% 28%, color-mix(in oklch, var(--brand) 55%, transparent), transparent 60%),
    linear-gradient(150deg, var(--surface-2), oklch(0.16 0.008 260));
  border: 1px solid var(--brand-line);
  font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 18px;
  letter-spacing: -0.02em; color: var(--text);
}
.post-av::after {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand); border: 2.5px solid var(--bg-2);
}
.post-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.post-name {
  font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--text); letter-spacing: -0.01em; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.post-name .deg { font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 10px; color: var(--text-dim); }
.post-role { font-size: 12.5px; color: var(--text-mute); line-height: 1.35; }
.post-meta {
  font-size: 11.5px; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 6px;
}
.post-meta .globe { width: 12px; height: 12px; opacity: 0.7; }
.post-follow {
  flex-shrink: 0; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 13px;
  color: var(--accent); background: none; border: none; cursor: pointer;
  padding: 4px 2px;
}
.post-follow svg { width: 14px; height: 14px; }
.post-more {
  flex-shrink: 0; color: var(--text-dim); background: none; border: none;
  cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; letter-spacing: 1px;
}

/* ---- Caption ---- */
.post-cap { padding: 2px 18px 14px; font-size: 14px; line-height: 1.58; color: var(--text); }
.post-cap p { margin: 0 0 0.7em; }
.post-cap p:last-child { margin-bottom: 0; }
.post-cap .tag { color: var(--accent); }
.post-cap .muted-more { color: var(--text-dim); }

/* =========================================================
   Carousel viewport
   ========================================================= */
.cz {
  position: relative;
  width: 100%;
  background: #000;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  user-select: none;
  touch-action: pan-y;
}
.cz-viewport { overflow: hidden; container-type: inline-size; }
.cz-track {
  display: flex;
  transition: transform .42s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.cz.dragging .cz-track { transition: none; }

/* ---- Counter + dots ---- */
.cz-counter {
  position: absolute; top: 12px; right: 12px; z-index: 6;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  color: var(--text); background: oklch(0.13 0.006 260 / 0.62);
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 4px 10px; backdrop-filter: blur(8px);
}
.cz-dots {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 6;
  display: flex; gap: 6px; padding: 5px 9px;
  background: oklch(0.13 0.006 260 / 0.5); border-radius: 999px; backdrop-filter: blur(8px);
}
.cz-dots i {
  width: 6px; height: 6px; border-radius: 50%; cursor: pointer;
  background: oklch(1 0 0 / 0.32); transition: all .25s ease;
}
.cz-dots i.on { width: 18px; border-radius: 3px; background: var(--brand); }

/* ---- Arrows (outside the scaled slide) ---- */
.cz-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: oklch(0.13 0.006 260 / 0.66); color: var(--text);
  border: 1px solid var(--hairline-2); backdrop-filter: blur(8px);
  transition: opacity .2s ease, background .2s ease, transform .2s ease;
}
.cz-arrow:hover { background: oklch(0.19 0.010 260 / 0.9); }
.cz-arrow.prev { left: 12px; }
.cz-arrow.next { right: 12px; }
.cz-arrow svg { width: 17px; height: 17px; }
.cz-arrow[disabled] { opacity: 0; pointer-events: none; }

/* =========================================================
   Slide system — 1080×1080 design, 1em == 10 design-px
   ========================================================= */
.cz-slide {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  font-size: 0.926cqw;            /* 1em = 10px @ 1080 */
  position: relative;
  color: var(--text);
  background:
    radial-gradient(120em 70em at 78% -8%, color-mix(in oklch, var(--brand) 16%, transparent), transparent 60%),
    radial-gradient(90em 60em at -6% 108%, oklch(0.80 0.130 235 / 0.10), transparent 60%),
    linear-gradient(168deg, oklch(0.165 0.009 260), oklch(0.125 0.006 260));
  padding: 7.2em;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cz-slide::before {
  /* faint hairline grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.022) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.022) 1px, transparent 1px);
  background-size: 7.2em 7.2em;
}
.cz-slide > * { position: relative; z-index: 1; }

/* slide header: brand + persona chip */
.cz-top { display: flex; align-items: center; justify-content: space-between; gap: 2em; }
.cz-brand { display: inline-flex; align-items: center; gap: 1.1em; }
.cz-mark {
  width: 3.2em; height: 3.2em; border-radius: 0.7em; position: relative; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--violet));
}
.cz-mark::after { content: ""; position: absolute; inset: 0.55em; border-radius: 0.3em; background: oklch(0.13 0.006 260); }
.cz-mark::before { content: ""; position: absolute; inset: 1.1em; border-radius: 0.18em; background: var(--accent); box-shadow: 0 0 1.2em var(--accent); }
.cz-wordmark { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 1.95em; letter-spacing: -0.02em; color: var(--text); }
.cz-chip {
  display: inline-flex; align-items: center; gap: 0.7em; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 1.15em; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mute); padding: 0.6em 1em; border-radius: 99em;
  border: 1px solid var(--brand-line); background: color-mix(in oklch, var(--brand) 10%, transparent);
}
.cz-chip i { width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0.7em var(--brand); }

/* generic eyebrow */
.cz-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 1.35em; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); display: inline-flex; align-items: center; gap: 0.9em;
}
.cz-eyebrow::before { content: ""; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--brand); box-shadow: 0 0 1em var(--brand); }

/* body region grows to fill */
.cz-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3.0em; }
.cz-body.center { align-items: flex-start; }

/* headings & text */
.cz-h {
  font-family: 'Inter Tight', sans-serif; font-weight: 500; letter-spacing: -0.03em; line-height: 1.0;
  color: var(--text); margin: 0;
}
.cz-h.xl { font-size: 9.4em; }
.cz-h.lg { font-size: 7.0em; }
.cz-h.md { font-size: 4.7em; line-height: 1.06; }
.cz-h em { font-style: normal; color: var(--accent); }
.cz-h b { font-weight: 500; color: var(--brand); }
.cz-sub { font-size: 2.4em; line-height: 1.5; color: var(--text-mute); margin: 0; max-width: 27ch; }
.cz-sub strong { color: var(--text); font-weight: 500; }
.cz-kicker { font-family: 'Inter Tight', sans-serif; font-size: 2.4em; font-weight: 500; color: var(--text-dim); letter-spacing: -0.01em; }

/* big stat */
.cz-stat { display: flex; flex-direction: column; gap: 2.6em; }
.cz-stat .n { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 13.5em; line-height: 0.92; letter-spacing: -0.04em; color: var(--text); white-space: nowrap; }
.cz-stat .n em { font-style: normal; color: var(--brand); }
.cz-stat .l { font-size: 2.4em; line-height: 1.45; color: var(--text-mute); max-width: 25ch; }

/* quote / pull */
.cz-quote { font-family: 'Inter Tight', sans-serif; font-weight: 500; font-size: 5.4em; line-height: 1.12; letter-spacing: -0.025em; color: var(--text); margin: 0; }
.cz-quote .mk { color: var(--brand); }

/* footer: page number + wordmark + url */
.cz-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 2em;
  font-family: 'JetBrains Mono', monospace; font-size: 1.25em; letter-spacing: 0.08em;
  color: var(--text-dim); padding-top: 2em; border-top: 1px solid var(--hairline);
}
.cz-foot .pg b { color: var(--text); font-weight: 500; }
.cz-foot .url { color: var(--text-mute); }

/* swipe cue on cover */
.cz-swipe {
  display: inline-flex; align-items: center; gap: 0.9em;
  font-family: 'JetBrains Mono', monospace; font-size: 1.35em; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.cz-swipe .arrow {
  width: 2.6em; height: 2.6em; border-radius: 50%; border: 1px solid var(--hairline-2);
  display: grid; place-items: center; color: var(--brand);
}
@media (prefers-reduced-motion: no-preference) {
  .cz-slide[data-active] .cz-swipe .arrow { animation: czNudge 1.8s ease-in-out infinite; }
}
@keyframes czNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(0.35em); } }

/* ---- list of beats ---- */
.cz-list { display: flex; flex-direction: column; gap: 1.5em; margin: 0; padding: 0; list-style: none; }
.cz-list li { display: flex; align-items: flex-start; gap: 1.2em; font-size: 2.4em; line-height: 1.34; color: var(--text-mute); }
.cz-list li .b { flex-shrink: 0; width: 1.5em; height: 1.5em; border-radius: 50%; margin-top: 0.15em;
  display: grid; place-items: center; font-size: 0.65em; font-family: 'JetBrains Mono', monospace;
  color: var(--bg); background: var(--brand); font-weight: 600; }
.cz-list li strong { color: var(--text); font-weight: 500; }
.cz-list li.muted .b { background: transparent; border: 1px solid var(--hairline-2); color: var(--text-dim); }

/* =========================================================
   Mini committee map (inside slides)
   ========================================================= */
.cz-map { position: relative; width: 100%; aspect-ratio: 1 / 0.66; margin-top: 0.4em; }
.cz-map .hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 13.5em; height: 13.5em; border-radius: 50%; z-index: 2;
  display: grid; place-content: center; text-align: center; gap: 0.2em;
  background: radial-gradient(circle at 50% 36%, oklch(0.21 0.012 260), oklch(0.14 0.008 260));
  border: 1px solid var(--brand-line);
  box-shadow: 0 0 0 0.7em color-mix(in oklch, var(--brand) 8%, transparent);
}
.cz-map .hub .k { font-family: 'JetBrains Mono', monospace; font-size: 1.0em; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.cz-map .hub .v { font-family: 'Inter Tight', sans-serif; font-size: 1.55em; font-weight: 500; color: var(--text); line-height: 1.05; letter-spacing: -0.01em; }
.cz-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cz-map svg line { stroke: var(--hairline-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cz-map svg line.lit { stroke: var(--brand-line); }
.cz-node { position: absolute; transform: translate(-50%,-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6em; width: 12em; text-align: center; }
.cz-node .d { width: 1.5em; height: 1.5em; border-radius: 50%; background: oklch(0.30 0.012 260); border: 1px solid var(--hairline-2); }
.cz-node .r { font-size: 1.45em; line-height: 1.15; color: var(--text-mute); font-weight: 500; }
.cz-node.on .d { background: var(--brand); border-color: transparent; box-shadow: 0 0 0 0.4em color-mix(in oklch, var(--brand) 16%, transparent), 0 0 1.2em var(--brand); }
.cz-node.on .r { color: var(--text); }
.cz-node.gap .d { background: transparent; border: 1px dashed var(--hairline-2); }
.cz-node.gap .r { color: var(--text-dim); }

/* solution slide CTA pill */
.cz-cta {
  display: inline-flex; align-items: center; gap: 0.8em; align-self: flex-start;
  font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 2.4em; letter-spacing: -0.01em;
  color: var(--bg); background: var(--text); border-radius: 99em; padding: 0.7em 1.3em;
}
.cz-cta .ar { transition: none; }

/* =========================================================
   Engagement + action bar
   ========================================================= */
.post-eng {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; font-size: 12.5px; color: var(--text-dim);
  border-bottom: 1px solid var(--hairline);
}
.post-react { display: inline-flex; }
.post-react span {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  margin-left: -5px; border: 2px solid var(--bg-2); font-size: 10px;
}
.post-react span:first-child { margin-left: 0; }
.post-react span svg { width: 11px; height: 11px; }
.post-react .r1 { background: oklch(0.80 0.130 235); color: var(--bg); }
.post-react .r2 { background: oklch(0.82 0.130 70); color: var(--bg); }
.post-react .r3 { background: var(--brand); color: var(--bg); }
.post-eng .ct { color: var(--text-mute); }
.post-eng .sp { margin-left: auto; }

.post-actions { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 8px 8px; }
.post-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  font-family: 'Inter Tight', sans-serif; font-weight: 500; font-size: 13.5px;
  color: var(--text-mute); padding: 10px 6px; border-radius: var(--r-sm);
  transition: background .2s ease, color .2s ease;
}
.post-act:hover { background: oklch(1 0 0 / 0.04); color: var(--text); }
.post-act svg { width: 17px; height: 17px; }
.post-act.liked { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .feed { max-width: 100%; }
  .post-act .lbl { display: none; }
  .cz-arrow { width: 32px; height: 32px; }
}
