@import url('/soulforcenetwork/tokens.css?v=304c53a3');

/* Mobile first: the audience arrives from a WhatsApp link on a phone.
 *
 * Dynamics follow references/brand/heroic-dynamics-20260716, which exists to
 * transfer motion and composition rather than assets. The four observations
 * driving this file, from audit/brand-spec.md and audit/TEARDOWN.md:
 *
 *  1. "Motion is scroll-led: sticky stages, directional reveals."
 *     -> a sticky stage index that marks the active section.
 *  2. "Headlines are stacked, uppercase, tightly tracked, intentionally
 *     oversized."  -> poster masthead, not a sentence.
 *  3. "Sections alternate between dense editorial clusters and large fields of
 *     nearly black negative space."  -> rhythm, not an even stack of cards.
 *  4. "Product imagery is composited as physical artifacts rather than placed
 *     in conventional rounded cards."  -> hard edges, accent as a FIELD.
 *
 * Colours stay the documented purple/cyan brand. What is borrowed is the
 * posture and the accent DISCIPLINE: accent marks action language and stage
 * labels, it is not sprinkled everywhere.
 */

*, *::before, *::after { box-sizing: border-box; }

/* clip, not hidden: overflow-x:hidden on an ancestor turns it into a scroll
   container and silently breaks position:sticky, which the stage index needs. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--sf-bg);
  color: var(--sf-ink-body);
  font-family: var(--sf-font-body);
  font-size: var(--sf-size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.depth { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.depth span { position: absolute; border-radius: 50%; filter: blur(150px); }
.depth span:nth-child(1) { width: 460px; height: 460px; background: var(--sf-accent); top: -180px; left: -190px; opacity: 0.42; }
.depth span:nth-child(2) { width: 400px; height: 400px; background: var(--sf-cyan); top: 45%; right: -230px; opacity: 0.2; }
.depth span:nth-child(3) { width: 480px; height: 480px; background: var(--sf-accent-dark); bottom: -260px; left: -160px; opacity: 0.3; }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  z-index: 40; background: var(--sf-gradient-accent); transition: width 120ms linear;
}

.wrap {
  position: relative; z-index: 1;
  max-width: var(--sf-max-width);
  margin: 0 auto;
  padding: var(--sf-gap-lg) var(--sf-gap-md) var(--sf-gap-xl);
}

/* ── Directional reveals ────────────────────────────────────────────────
 * Restrained kinetic emphasis: only major blocks move, and they alternate
 * direction so the scroll has a rhythm instead of one repeated fade. */

.reveal { opacity: 0; transition: opacity 0.7s var(--sf-ease), transform 0.7s var(--sf-ease); }
.reveal[data-from="up"]    { transform: translateY(26px); }
.reveal[data-from="left"]  { transform: translateX(-24px); }
.reveal[data-from="right"] { transform: translateX(24px); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Sticky stage index ─────────────────────────────────────────────────
 * The board's equivalent of Heroic's THEORY / PRACTICE / MASTERY rail: it
 * stays with you and marks where you are. On a long board this is navigation,
 * not decoration. */

.stage-index {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 calc(-1 * var(--sf-gap-md)) var(--sf-gap-lg);
  padding: var(--sf-gap-sm) var(--sf-gap-md);
  background: rgba(10, 10, 26, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--sf-border);
  display: flex;
  gap: var(--sf-gap-md);
  overflow-x: auto;
  scrollbar-width: none;
}
.stage-index::-webkit-scrollbar { display: none; }

.stage-index a {
  flex: 0 0 auto;
  text-decoration: none;
  font-family: var(--sf-font-display);
  font-size: var(--sf-size-micro);
  font-weight: var(--sf-weight-display);
  letter-spacing: var(--sf-tracking-label);
  text-transform: uppercase;
  color: var(--sf-ink-faint);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--sf-transition), border-color var(--sf-transition);
}
.stage-index a:hover { color: var(--sf-ink-body); }
.stage-index a.is-active { color: var(--sf-cyan-light); border-bottom-color: var(--sf-cyan); }
.stage-index a .tally { color: var(--sf-ink-faint); font-weight: var(--sf-weight-body); }

/* ── Poster masthead ────────────────────────────────────────────────────
 * Stacked, uppercase, tightly tracked, oversized. Accent lands on one word,
 * the way "WE TRAIN HEROES" puts the load on TRAIN. */

.masthead { margin-bottom: var(--sf-gap-xl); }

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sf-gap-sm);
  margin: calc(-1 * var(--sf-gap-lg)) 0 var(--sf-gap-lg);
  padding: var(--sf-gap-sm) 0;
  border-top: 1px solid var(--sf-border);
  border-bottom: 1px solid var(--sf-border);
  font-size: var(--sf-size-small);
}
.week-nav a {
  color: var(--sf-cyan-light);
  text-decoration: none;
  font-weight: var(--sf-weight-strong);
}
.week-nav a:hover { text-decoration: underline; }
.week-nav-current {
  color: var(--sf-ink-muted);
  flex: 1;
  text-align: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sf-gap-xs);
  font-size: var(--sf-size-micro);
  letter-spacing: var(--sf-tracking-label);
  text-transform: uppercase;
  color: var(--sf-cyan-light);
  font-weight: var(--sf-weight-strong);
  margin: 0 0 var(--sf-gap-md);
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sf-good); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(244, 244, 248, 0.55); }
  50%      { opacity: 0.75; box-shadow: 0 0 0 7px rgba(244, 244, 248, 0); }
}

/* The masthead is a full sentence, not a two-word poster line. Setting a
   sentence in oversized all-caps would shout; instead the NAME keeps the
   display treatment, the sentence carries at a readable weight, and the
   payoff phrase takes the gradient so the eye lands there. */
h1 {
  font-family: var(--sf-font-display);
  font-size: clamp(1.45rem, 5.6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--sf-ink-muted);
  margin: 0 0 var(--sf-gap-md);
  max-width: 26ch;
  text-wrap: balance;
}
h1 .lede {
  display: block;
  font-size: clamp(1.9rem, 8vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--sf-ink);
  margin-bottom: var(--sf-gap-xs);
}
h1 .accent {
  color: transparent;
  background: var(--sf-gradient-text);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
  animation: gradient-shift 5s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.standfirst { color: var(--sf-ink-muted); margin: 0; max-width: 32rem; }

/* ── Coherence band ─────────────────────────────────────────────────────
 * Accent as a FIELD. Full bleed, hard edges, the one place on the board that
 * carries a solid accent surface. */

.meter {
  position: relative;
  margin: 0 calc(-1 * var(--sf-gap-md)) var(--sf-gap-xl);
  padding: var(--sf-gap-lg) var(--sf-gap-md);
  background: var(--sf-gradient-accent);
  display: flex;
  gap: var(--sf-gap-md);
  align-items: center;
  overflow: hidden;
}
/* A faint tick field, echoing Heroic's compass ticks, kept far back. */
.meter::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 1px, transparent 1px 13px);
  opacity: 0.42;
  pointer-events: none;
}
.meter > * { position: relative; z-index: 1; }

.dial { flex: 0 0 auto; width: 92px; height: 92px; position: relative; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-track { stroke: rgba(0, 0, 0, 0.32); }
.dial-value { stroke: #ffffff; stroke-linecap: butt; transition: stroke-dashoffset 1.2s var(--sf-ease); }
.dial-number {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--sf-font-display); font-weight: 900; font-size: 1.85rem;
  letter-spacing: -0.04em; color: #ffffff;
}

.meter-body { min-width: 0; }
.meter-label {
  font-size: var(--sf-size-micro);
  letter-spacing: var(--sf-tracking-label);
  text-transform: uppercase;
  font-weight: var(--sf-weight-display);
  font-family: var(--sf-font-display);
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 var(--sf-gap-xs);
  display: flex; align-items: center; gap: var(--sf-gap-sm); flex-wrap: wrap;
}
.meter-note { margin: 0; color: #ffffff; font-size: var(--sf-size-small); line-height: 1.45; }
.period-label { font-family: var(--sf-font-body); font-weight: var(--sf-weight-body); letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.72); }

.trend { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: var(--sf-gap-md); }
.trend span { flex: 0 1 14px; min-width: 8px; max-width: 20px; background: rgba(255,255,255,0.3); }
.trend span.is-current { background: #ffffff; }

.delta { font-family: var(--sf-font-body); letter-spacing: 0; text-transform: none; font-weight: var(--sf-weight-strong); }
.delta.up { color: #d9ffe9; }
.delta.down { color: #ffe9b8; }
.delta.flat { color: rgba(255,255,255,0.7); }

/* ── Stat row: hard-edged, no cards ─────────────────────────────────── */

/* auto-fit rather than a fixed count: the row holds five tiles now and has to
   reflow cleanly at every width instead of orphaning the last one. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 1px;
  background: var(--sf-border);
  border-top: 1px solid var(--sf-border);
  border-bottom: 1px solid var(--sf-border);
  margin-bottom: var(--sf-gap-xl);
}
/* Members is the headline figure of the five. */
.stats .stat:first-child b {
  background: var(--sf-gradient-stat);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat { background: var(--sf-bg); padding: var(--sf-gap-md) var(--sf-gap-sm); transition: background var(--sf-transition); }
.stat:hover { background: var(--sf-bg-sunken); }
.stat b {
  display: block;
  font-family: var(--sf-font-display);
  font-size: 2.1rem; font-weight: 900;
  letter-spacing: -0.045em; line-height: 1;
  color: var(--sf-ink);
  margin-bottom: 4px;
}
.stat span {
  font-size: var(--sf-size-micro);
  letter-spacing: var(--sf-tracking-label);
  text-transform: uppercase;
  color: var(--sf-ink-faint);
}

/* ── Stage sections ─────────────────────────────────────────────────────
 * Big stage markers and generous negative space between clusters, so the
 * board reads as stages rather than an even run of boxes. */

section { margin-bottom: calc(var(--sf-gap-xl) * 1.4); scroll-margin-top: 4rem; }

.stage-marker {
  display: flex; align-items: baseline; gap: var(--sf-gap-sm);
  margin: 0 0 var(--sf-gap-lg);
  padding-bottom: var(--sf-gap-sm);
  border-bottom: 1px solid var(--sf-border);
}
.stage-marker .num {
  font-family: var(--sf-font-display); font-weight: 900;
  font-size: var(--sf-size-micro); letter-spacing: var(--sf-tracking-label);
  color: var(--sf-cyan); flex: 0 0 auto;
}
h2 {
  flex: 1 1 auto;
  font-family: var(--sf-font-display);
  font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--sf-ink);
  margin: 0;
}
.stage-marker small {
  flex: 0 0 auto;
  font-family: var(--sf-font-body); font-size: var(--sf-size-micro);
  letter-spacing: var(--sf-tracking-label); text-transform: uppercase;
  color: var(--sf-ink-faint);
}

.ideas-controls { display: flex; justify-content: flex-start; margin: calc(var(--sf-gap-md) * -1) 0 var(--sf-gap-md); }
.stage-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sf-gap-xs) var(--sf-gap-sm);
  margin: 0 0 var(--sf-gap-md);
  font-family: var(--sf-font-body);
  font-size: var(--sf-size-micro);
  color: var(--sf-ink-faint);
}
.stage-legend .stage { margin-bottom: 0; }
.priority-filter {
  font-family: var(--sf-font-display);
  font-size: var(--sf-size-micro);
  font-weight: 800;
  letter-spacing: var(--sf-tracking-label);
  text-transform: uppercase;
  border: 1px solid var(--sf-border-strong);
  border-radius: var(--sf-radius-pill);
  background: var(--sf-bg-raised);
  color: var(--sf-ink-muted);
  padding: 6px 14px;
  cursor: pointer;
  transition: background var(--sf-transition), border-color var(--sf-transition), color var(--sf-transition);
}
.priority-filter:hover { color: var(--sf-ink); }
/* Amber on, same as the priority mark it is filtering by. */
.priority-filter[aria-pressed="true"] {
  background: var(--sf-warn);
  border-color: var(--sf-warn);
  color: var(--sf-bg);
}

ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sf-gap-md); }

/* Hard-edged blocks. A left accent rule marks the item, the way a stage label
   marks a stage, instead of a rounded container floating on the ground. */
.card {
  background: var(--sf-bg-raised);
  border-left: 3px solid var(--sf-border-strong);
  padding: var(--sf-gap-md);
  transition: border-color var(--sf-transition), background var(--sf-transition), transform var(--sf-transition);
}
.card:hover { border-left-color: var(--sf-cyan); background: var(--sf-bg-sunken); transform: translateX(3px); }
.card p { margin: 0; font-size: var(--sf-size-item); color: var(--sf-ink); line-height: 1.45; }

.card.idea { border-left-color: var(--sf-accent); }
/* The need is the JOB ON OFFER. It was the quietest thing on the card, muted
   grey below everything else, which is backwards: it is the one line that
   might make someone put their hand up. It now reads as a posted vacancy, with
   a solid chip label and the ask at full brightness. */
.card.idea .needs {
  margin-top: var(--sf-gap-md);
  padding: var(--sf-gap-md);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-left: 4px solid var(--sf-cyan);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(108, 60, 224, 0.08) 60%, transparent);
  font-size: var(--sf-size-item);
  line-height: 1.45;
  color: var(--sf-ink);
  font-weight: var(--sf-weight-strong);
}
.card.idea .needs b {
  display: inline-block;
  margin-right: var(--sf-gap-sm);
  margin-bottom: var(--sf-gap-sm);
  padding: 3px 9px;
  background: var(--sf-cyan);
  color: #04222a;
  font-family: var(--sf-font-display);
  font-size: var(--sf-size-micro);
  font-weight: 900;
  letter-spacing: var(--sf-tracking-label);
  text-transform: uppercase;
}
/* A running idea is not recruiting, so its ask recedes into the live colour. */
.card.idea:has(.stage.operationalized) .needs {
  border-color: rgba(244, 244, 248, 0.35);
  border-left-color: var(--sf-stage-live);
  background: linear-gradient(135deg, rgba(244, 244, 248, 0.12), transparent 65%);
}
.card.idea:has(.stage.operationalized) .needs b {
  background: var(--sf-stage-live);
  color: var(--sf-bg);
}

.stage {
  display: inline-block;
  font-family: var(--sf-font-display);
  font-size: var(--sf-size-micro);
  letter-spacing: var(--sf-tracking-label);
  text-transform: uppercase;
  font-weight: var(--sf-weight-display);
  color: var(--sf-bg);
  background: var(--sf-stage-proposed);
  padding: 3px 9px;
  margin-bottom: var(--sf-gap-sm);
}
.stage.in_progress { background: var(--sf-stage-progress); }
.stage.operationalized { background: var(--sf-stage-live); }

/* Priority mark: the Heroic bird, admin-flagged onto an idea (see admin's
   "Mark prioritized"). The source PNG is a solid silhouette with alpha, used
   here as a mask so it can be filled with the brand's amber and glow in that
   colour, rather than sitting flat black against a near-black card. */
.priority-mark {
  display: inline-block;
  vertical-align: middle;
  width: 15px;
  height: 26px;
  margin-right: var(--sf-gap-sm);
  margin-bottom: var(--sf-gap-sm);
  background: var(--sf-warn);
  -webkit-mask-image: url('/soulforcenetwork/assets/heroic-mark.png');
  mask-image: url('/soulforcenetwork/assets/heroic-mark.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  animation: priority-flight 2.6s ease-in-out infinite, priority-glow 2.6s ease-in-out infinite;
}
@keyframes priority-flight {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-4px) rotate(6deg); }
}
@keyframes priority-glow {
  0%, 100% { filter: drop-shadow(0 0 1px var(--sf-warn)); opacity: 0.85; }
  50% { filter: drop-shadow(0 0 8px var(--sf-warn)) drop-shadow(0 0 3px var(--sf-warn)); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .priority-mark { animation: none; filter: drop-shadow(0 0 4px var(--sf-warn)); }
}

.quote {
  border-left: 3px solid var(--sf-accent);
  padding: var(--sf-gap-xs) 0 var(--sf-gap-xs) var(--sf-gap-md);
  font-size: var(--sf-size-item);
  line-height: 1.45;
  color: var(--sf-ink);
  transition: border-color var(--sf-transition);
}
.quote:hover { border-left-color: var(--sf-cyan); }
/* Quotes carry no attribution of any kind, by design. */

.empty {
  color: var(--sf-ink-faint); font-size: var(--sf-size-small);
  border: 1px dashed var(--sf-border-strong); padding: var(--sf-gap-md); text-align: center;
}

footer { border-top: 1px solid var(--sf-border); padding-top: var(--sf-gap-md); color: var(--sf-ink-faint); font-size: var(--sf-size-small); }
footer p { margin: 0 0 var(--sf-gap-xs); }
.stale { color: var(--sf-warn); }

/* ── Idea sections ──────────────────────────────────────────────────── */

.section { border-top: 1px solid var(--sf-border-strong); padding-top: var(--sf-gap-md); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sf-gap-sm); margin-bottom: var(--sf-gap-xs); }
.section-head h3 {
  margin: 0;
  font-family: var(--sf-font-display);
  font-size: var(--sf-size-item);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sf-cyan-light);
}
.section-count { flex: 0 0 auto; font-size: var(--sf-size-micro); letter-spacing: var(--sf-tracking-label); text-transform: uppercase; color: var(--sf-ink-faint); }
.section-summary { margin: 0 0 var(--sf-gap-md); font-size: var(--sf-size-small); color: var(--sf-ink-muted); line-height: 1.5; max-width: 34rem; }
.section-items { gap: var(--sf-gap-sm); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dial-value { transition: none; }
  h1 span { animation: none; }
  .eyebrow::before { animation: none; }
  .card:hover { transform: none; }
}

/* Admin-set, period-scoped announcement. Amber, not the brand accent
   gradient, so it reads as temporary/urgent rather than a permanent section
   of the board -- the same reason the coherence band and this one are never
   the same colour. */
.banner {
  margin: 0 0 var(--sf-gap-lg);
  padding: var(--sf-gap-md);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid var(--sf-warn);
  border-radius: 2px;
}
.banner p {
  margin: 0;
  color: var(--sf-ink);
  font-weight: var(--sf-weight-strong);
  line-height: 1.5;
  white-space: pre-line;
}
.banner a {
  color: var(--sf-warn);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The stat row states its window once, above the numbers, rather than
   repeating it inside every label and forcing a two-line wrap. */
.stats-scope {
  margin: 0 0 var(--sf-gap-sm);
  font-size: var(--sf-size-micro);
  letter-spacing: var(--sf-tracking-label);
  text-transform: uppercase;
  color: var(--sf-ink-faint);
}

/* Source quote: what a member actually typed, under the summary of it.
   Deliberately quieter than the item text so the board still scans, and
   carrying no attribution of any kind, consistent with the quotes section. */
.source-quote {
  margin: var(--sf-gap-md) 0 0;
  padding-left: var(--sf-gap-md);
  border-left: 1px solid var(--sf-border-strong);
  font-size: var(--sf-size-small);
  color: var(--sf-ink-muted);
  line-height: 1.45;
}
.source-quote b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--sf-font-display);
  font-size: var(--sf-size-micro);
  font-weight: var(--sf-weight-display);
  letter-spacing: var(--sf-tracking-label);
  text-transform: uppercase;
  color: var(--sf-ink-faint);
}
/* When an idea carries both, the needs block owns the accent and the quote
   stays recessive, so the eye still goes to the actionable line. */
.card.idea .source-quote + .needs { margin-top: var(--sf-gap-md); }

/* Admin-attached image. Full card width, hard edges to match everything else,
   and an intrinsic aspect ratio is not assumed: screenshots arrive in every
   shape, so height is left to the image and only the width is constrained. */
.card-image {
  margin: var(--sf-gap-md) 0 0;
  border: 1px solid var(--sf-border);
  background: var(--sf-bg-sunken);
  line-height: 0;
}
.card-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

/* ── Footer panels ──────────────────────────────────────────────────────
   Live connection brainstorm, and suggestions for Heroic. Both are folded away
   so the board reads as what the group is doing, and both carry a glow so they
   read as an invitation to open rather than something discarded. */

.panel {
  position: relative;
  margin-top: var(--sf-gap-lg);
  border: 1px solid var(--sf-border-strong);
  background: var(--sf-bg-sunken);
}
/* The glow is the draw. Kept on the border rather than the whole block so it
   frames the panel instead of washing out the text inside it. */
.panel-brainstorm { border-color: var(--sf-cyan); box-shadow: 0 0 22px rgba(6, 182, 212, 0.22); }
.panel-inventory  { border-color: var(--sf-accent); box-shadow: 0 0 22px rgba(108, 60, 224, 0.22); }

.panel > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sf-gap-sm);
  flex-wrap: wrap;
  row-gap: 2px;
  padding: var(--sf-gap-md);
  cursor: pointer;
  transition: background var(--sf-transition);
}
.panel > summary:hover { background: var(--sf-bg-raised); }
.panel > summary .section-count { margin-left: auto; }

.panel-title {
  font-family: var(--sf-font-display);
  font-size: var(--sf-size-item);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.panel-brainstorm .panel-title { color: var(--sf-cyan-light); }
.panel-inventory .panel-title { color: var(--sf-accent-bright); }

.panel[open] > summary { border-bottom: 1px solid var(--sf-border); }

.panel-note {
  margin: 0;
  padding: var(--sf-gap-md) var(--sf-gap-md) 0;
  font-size: var(--sf-size-small);
  color: var(--sf-ink-muted);
  max-width: 36rem;
}
.panel-sections { padding: var(--sf-gap-md); gap: var(--sf-gap-lg); }
.panel-sections .section { border-top-color: var(--sf-border); }

@media (prefers-reduced-motion: reduce) {
  .panel { box-shadow: none; }
}

/* ── Image gallery ──────────────────────────────────────────────────────
   Uniform thumbnails, never full size inline. A full-size image inside a card
   pushed the card wider than the viewport and shoved the text off screen; the
   full picture belongs in the overlay, sized to the viewport. */

.card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 3px;
  margin-top: var(--sf-gap-md);
}
/* A lone image gets a little more presence without dominating the card. */
.card-gallery.count-1 { grid-template-columns: minmax(0, 190px); }

.card-gallery .shot {
  display: block;
  padding: 0;
  border: 1px solid var(--sf-border);
  background: var(--sf-bg-sunken);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color var(--sf-transition), opacity var(--sf-transition);
}
.card-gallery .shot:hover { border-color: var(--sf-cyan); opacity: 0.9; }
.card-gallery .shot:focus-visible { outline: 2px solid var(--sf-cyan); outline-offset: 2px; }
.card-gallery .shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Lightbox ───────────────────────────────────────────────────────────
   Fixed to the viewport and sized in vw/vh, so an image can never widen the
   page no matter its intrinsic dimensions. */

body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--sf-gap-lg) var(--sf-gap-md);
  background: rgba(6, 6, 14, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lightbox-in 180ms ease;
}
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox figure {
  margin: 0;
  display: grid;
  gap: var(--sf-gap-sm);
  justify-items: center;
  max-width: 100%;
}
.lightbox img {
  display: block;
  max-width: min(96vw, 1100px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--sf-border-strong);
}
.lightbox figcaption {
  font-size: var(--sf-size-small);
  color: var(--sf-ink-muted);
  text-align: center;
  max-width: 42rem;
}

.lightbox-close {
  position: absolute;
  top: var(--sf-gap-md);
  right: var(--sf-gap-md);
  font: inherit;
  font-size: var(--sf-size-micro);
  font-weight: var(--sf-weight-display);
  letter-spacing: var(--sf-tracking-label);
  text-transform: uppercase;
  color: var(--sf-ink);
  background: none;
  border: 1px solid var(--sf-border-strong);
  padding: 8px 14px;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--sf-cyan); color: var(--sf-cyan-light); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
  color: var(--sf-ink);
  background: rgba(10, 10, 26, 0.7);
  border: 1px solid var(--sf-border-strong);
  width: 44px;
  height: 56px;
  cursor: pointer;
}
.lightbox-nav.prev { left: var(--sf-gap-sm); }
.lightbox-nav.next { right: var(--sf-gap-sm); }
.lightbox-nav:hover { border-color: var(--sf-cyan); color: var(--sf-cyan-light); }

@media (prefers-reduced-motion: reduce) {
  .card-gallery .shot { transition: none; }
  .lightbox { animation: none; }
}
