/* ============================================================
   THE CREATIONSHIP — DESIGN SYSTEM
   Warm, minimal, premium — inspired by specialty craft branding
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');

/* --- Tokens --- */
:root {
  /* Palette — clean white wall for stencil graffiti */
  --bg:            #ffffff;
  --bg-elevated:   #ffffff;
  --bg-hover:      #f5f5f5;
  --bg-input:      #ffffff;
  --bg-dark:       #1a1a1a;
  --bg-accent:     #d6336c;       /* Vivid magenta — from the spray-paint flowers */

  --text:          #1a1a1a;
  --text-dim:      #4a4540;
  --text-muted:    #7a756e;
  --text-on-dark:  #f8f7f4;
  --accent:        #2b9a66;       /* Deep emerald green — from the leaves/stems */
  --accent-hover:  #238655;
  --accent-reflect:#7c5cbf;       /* Rich violet — from the purple flowers */

  /* Warm functional aliases */
  --gold:          #d6336c;
  --gold-light:    #e8719a;
  --gold-dim:      #b82d5e;

  /* Functional */
  --border:        rgba(26, 26, 26, 0.08);
  --border-hover:  rgba(26, 26, 26, 0.18);
  --success:       #2b9a66;
  --error:         #d6336c;

  /* Stage colors (ideas page) */
  --stage-seed:    #e8a317;
  --stage-project: #7c5cbf;
  --stage-company: #2b9a66;

  /* Typography */
  --font:          'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:  'DM Sans', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --radius-full: 50%;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  font-size: 1.05rem;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }

img { max-width: 100%; display: block; }

::selection { background: rgba(124, 92, 191, 0.3); }

/* --- Layout --- */
.container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================================
   NAVIGATION — quiet, editorial
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-bottom: none;
}

.site-nav__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--space-lg);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.site-nav__brand:hover { opacity: 0.8; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.site-nav__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  opacity: 1;
}

.site-nav__link.active {
  color: var(--bg-dark);
  background: var(--accent);
  font-weight: 600;
}

/* Hide nav SVG icons — text-only nav per brand doc */
.site-nav__link svg { display: none; }

/* ============================================================
   TYPOGRAPHY — editorial sans
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================================
   HERO — Clean, warm, organic
   ============================================================ */

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 80vh;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}

/* Two-column hero grid */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 80vh;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

/* Organic gradient blob (simplified) */
.hero__blob {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 70%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(214, 51, 108, 0.08) 0%,
    rgba(124, 92, 191, 0.07) 40%,
    rgba(43, 154, 102, 0.04) 70%,
    transparent 100%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* Headline block */
.hero__content {
  position: relative;
  z-index: 10;
  padding: clamp(3rem, 8vh, 6rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Art column */
.hero__art {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: calc(clamp(1.5rem, 5vw, 5rem) * -1); /* Break out of grid padding on the right */
  mix-blend-mode: multiply;
}

.hero__art .section-art {
  width: 100%;
  max-width: 750px;
  margin-right: -5%; /* Subtle off-screen bleed without transform conflict */
}

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }
  .hero__art {
    order: -1;
    padding: 1rem 2rem 0;
    margin-right: 0;
    justify-content: center;
    max-height: 280px;
    overflow: hidden;
  }
  .hero__art .section-art {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .hero__content {
    padding: 1rem 0 3rem;
  }
}



.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 0.92;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin-bottom: 2.5rem;
}

.hero__headline .accent {
  color: var(--bg-accent);
}

/* Subtitle — clean flowing text */
.hero__subtitle {
  font-family: var(--font);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 520px;
  font-weight: 400;
}

.hero__subtitle strong {
  font-weight: 600;
  color: var(--text);
}

/* Meta line */
.hero__meta {
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero__meta .dot {
  width: 6px; height: 6px;
  background: var(--bg-accent);
  border-radius: 50%;
  display: inline-block;
}

/* ============================================================
   SECTION GRID — side-by-side text + art layout
   Art and text each get their own column so they never overlap.
   Sections alternate art-left and art-right for visual rhythm.
   mix-blend-mode: multiply preserves the stencil-on-wall effect.
   ============================================================ */

.section-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: var(--space-xl);
  align-items: start;
}

.section-grid--art-left {
  grid-template-columns: 0.75fr 1fr;
}

.section-grid__text {
  position: relative;
  z-index: 2;
}

.section-grid__art {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-md) 0;
  mix-blend-mode: multiply;
}

/* The art image itself — stencil effect */
.section-art {
  width: 100%;
  max-width: 420px;
  pointer-events: none;
}

/* Sticky art that drifts with scroll within its section */
.section-grid__art--sticky {
  position: sticky;
  top: 80px;
}

@media (max-width: 768px) {
  .section-grid,
  .section-grid--art-left {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .section-grid__art {
    order: -1; /* Art stacks above text on mobile */
    max-height: 260px;
    overflow: hidden;
    justify-content: center;
  }
  .section-art {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Legacy .ambient-art — keep for any pages that still use old markup */
.ambient-art { display: none; }

/* ============================================================
   LANDING PAGE — narrative sections
   ============================================================ */

/* --- Premise / Story --- */
.landing-section {
  padding: 4rem 0 5rem;
  border-bottom: none;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  position: relative;
  overflow: visible;
  mix-blend-mode: darken;
}

/* Decorative section divider — gradient fade instead of boring 1px line */
.landing-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(26, 26, 26, 0.12) 20%,
    rgba(214, 51, 108, 0.18) 50%,
    rgba(26, 26, 26, 0.12) 80%,
    transparent 100%
  );
}

.landing-section:last-of-type::after {
  display: none;
}

.landing-section__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
}

.landing-section__heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: var(--space-xl);
  max-width: 640px;
  position: relative;
  z-index: 2;
}

/* ============================================================
   THEME CARRY-THROUGH — Basquiat marks on landing sections
   Rule: every © (wherever it appears on the site) is struck through.
   ============================================================ */

/* Eyebrow label modifiers — add ONE of these to .landing-section__label */
.landing-section__label--tally::after {
  content: ' |||';
  letter-spacing: 0.05em;
  margin-left: 0.4rem;
  color: var(--bg-accent);
  font-weight: 800;
}
.landing-section__label--copyright {
  position: relative;
}
.landing-section__label--copyright::after {
  content: ' ©';
  margin-left: 0.3rem;
  color: var(--bg-accent);
  font-size: 1.15em;
  text-decoration: line-through;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.09em;
  text-decoration-skip-ink: none;
}
.landing-section__label--swipe {
  position: relative;
  padding-bottom: 6px;
  display: inline-block;
}
.landing-section__label--swipe::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px;
  bottom: 0;
  height: 3px;
  background: var(--bg-accent);
  transform: skewX(-8deg);
}

/* Section heading: wrap one key word in <span class="swipe"> for soft underline */
.landing-section__heading .swipe {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 0.06em;
}
.landing-section__heading .swipe::before {
  content: '';
  position: absolute;
  inset: 78% -2% -4% -1%;
  background: rgba(214, 51, 108, 0.15);
  z-index: -1;
  border-radius: 4px;
}

/* Body strike-through: wrap a word/phrase in <span class="tier-strike"> */
.tier-strike {
  position: relative;
}
.tier-strike::after {
  content: '';
  position: absolute;
  left: -3%; right: -3%;
  top: 52%;
  height: 0.18em;
  background: currentColor;
  transform: rotate(-2deg);
  border-radius: 2px;
}

/* Proof cards: crown marker on "shipped" items (add <svg class="proof__crown">) */
.proof__crown {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 22px;
  color: var(--accent);
  pointer-events: none;
}

/* Role cards: orange arrow SVG replaces the text "→" on hover */
.role-card__arrow-svg {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 56px;
  height: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
  pointer-events: none;
}
.role-card:hover .role-card__arrow-svg {
  opacity: 1;
  transform: translateX(0);
}
/* Hide the old text arrow now that the SVG version is wired in */
.role-card::after { display: none !important; }

/* "New here?" callout — rough-edged torn-paper */
.new-here {
  position: relative;
  z-index: 2;
  transform: rotate(-0.5deg);
  box-shadow:
    2px 3px 0 rgba(10, 10, 10, 0.08),
    0 12px 30px rgba(10, 10, 10, 0.10);
  clip-path: polygon(
    0 6%, 3% 0, 25% 4%, 50% 0, 75% 3%, 97% 0, 100% 8%,
    99% 40%, 100% 72%, 97% 96%, 82% 100%, 55% 97%,
    28% 100%, 4% 96%, 0 88%
  );
}

/* Hero © — per site rule, struck through like all other ©s */
.hero .copyright {
  text-decoration: line-through;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.08em;
  text-decoration-skip-ink: none;
}

.landing-section__body {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.landing-section__body p {
  margin-bottom: var(--space-md);
}

.landing-section__body p:last-child {
  margin-bottom: 0;
}

.landing-section__body strong {
  color: var(--text);
  font-weight: 600;
}

.landing-section__body em {
  color: var(--bg-accent);
  font-style: normal;
  font-weight: 500;
}

/* --- Three Currents --- */
.currents {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.current {
  padding: var(--space-xl);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.current:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.current__number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.current__name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.current__desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

.current__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-md);
}

.current__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65);
  text-transform: lowercase;
}

.currents__coda {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
  font-style: italic;
}

/* Accordion header — always show on desktop, interactive on mobile */
.current__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.current__header .current__number {
  margin-bottom: 0;
}

.current__header .current__name {
  flex: 1;
  margin-bottom: 0;
}

.current__chevron {
  display: none; /* hidden on desktop */
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.current.open .current__chevron {
  transform: rotate(90deg);
}

/* On desktop: body always visible, header is non-interactive */
.current__body {
  margin-top: var(--space-sm);
}

@media (max-width: 640px) {
  .current__chevron { display: block; }
  .current__header { cursor: pointer; }
  .current__body { margin-top: 0; }
}

/* --- Schedule Timeline --- */
.schedule {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-xl);
  position: relative;
  z-index: 2;
}

.schedule__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  margin-left: calc(-1 * var(--space-md));
  margin-right: calc(-1 * var(--space-md));
}

.schedule__item:hover {
  background: rgba(214, 51, 108, 0.04);
  transform: translateX(4px);
}

.schedule__item:last-child {
  border-bottom: none;
}

.schedule__time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-accent);
  letter-spacing: 0.02em;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.schedule__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.schedule__desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* --- Proof / Past Work --- */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.proof__item {
  flex: 1;
  min-width: 200px;
  padding: var(--space-lg);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.proof__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.proof__item--link {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.proof__name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.proof__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}

/* --- Location --- */
.location-card {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
}

.location-card__info { flex: 1; }

.location-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.location-card__address {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}

.location-card__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Next Sunday badge --- */
.next-sunday {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: 10px 16px;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
}

.next-sunday__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.next-sunday__date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

/* --- Luma Events --- */
.luma-events {
  margin-top: var(--space-xl);
  position: relative;
  z-index: 2;
}

.luma-events__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.luma-events__label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.luma-events__cal-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.luma-events__cal-link:hover {
  color: var(--bg-accent);
}

.luma-events__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.luma-event {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}

.luma-event:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.luma-event:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-bottom: none;
}

.luma-event:only-child {
  border-radius: var(--radius-lg);
}

.luma-event:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
}

.luma-event--next {
  border-left: 3px solid var(--bg-accent);
}

.luma-event__date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 42px;
}

.luma-event__month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-accent);
}

.luma-event__day {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.luma-event__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.luma-event__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.luma-event__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.luma-event__rel {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-accent);
  background: rgba(214, 51, 108, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.luma-event__datestr {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.luma-event__rsvp {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bg-accent);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
}

.luma-event:hover .luma-event__rsvp {
  background: var(--gold-dim);
  transform: scale(1.04);
}

.luma-events__empty {
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.luma-events__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--bg-accent);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}

.luma-events__fallback:hover {
  background: var(--bg-hover);
  color: var(--gold-dim);
}

@media (max-width: 640px) {
  .luma-event {
    grid-template-columns: 42px 1fr;
    gap: var(--space-sm);
    padding: var(--space-md);
  }

  .luma-event__rsvp {
    display: none;
  }

  .luma-events__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}

.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.skeleton-card {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-elevated) 50%, var(--bg-hover) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line--title { width: 60%; margin-bottom: 8px; }
.skeleton-line--sub { width: 40%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- New Here callout --- */
.new-here {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--bg-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  text-align: center;
}

.new-here__heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.new-here__body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Join CTA --- */
.join-cta {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.join-cta__heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.join-cta__sub {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: var(--space-xl);
}

.join-cta__tagline {
  margin-top: var(--space-xl);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .currents { gap: var(--space-md); }
  .schedule__item { grid-template-columns: 56px 1fr; }
  .location-card { flex-direction: column; }
  .proof { flex-direction: column; }
}

/* ============================================================
   ROLE CARDS — full-width editorial blocks
   ============================================================ */

.roles {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: var(--space-2xl) 0;
}

.role-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.role-card:last-child {
  border-bottom: 1px solid var(--border);
}

.role-card::before { display: none; }

.role-card:hover {
  border-color: var(--border-hover);
  transform: none;
  box-shadow: none;
}

/* Role card number — rendered via ::before on the card itself */
.role-card::before {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 6px;
  width: 40px;
}

.role-card:nth-child(1)::before { content: '01'; }
.role-card:nth-child(2)::before { content: '02'; }
.role-card:nth-child(3)::before { content: '03'; }

.role-card h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.role-card:hover h3 { color: var(--bg-accent); }
.role-card[data-role="brain_trust"]:hover h3 { color: var(--accent-reflect); }

.role-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

/* CTA arrow on hover */
.role-card::after {
  content: '→';
  position: absolute;
  right: 0;
  top: var(--space-2xl);
  font-size: 1.2rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}

.role-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   VIEW SYSTEM — preserved for JS
   ============================================================ */

.view { display: none; }
.view.active {
  display: block;
  animation: viewFade 0.5s var(--ease);
}

@keyframes viewFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 1rem 2.25rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 154, 102, 0.3);
}

.btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn--full { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}

.btn--ghost:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--sm { padding: 6px 16px; font-size: 0.72rem; }

/* ============================================================
   FORMS — clean monochrome
   ============================================================ */

.form-view { padding-top: var(--space-md); }

.form-header { margin-bottom: var(--space-xl); }

.form-header h2 {
  margin-bottom: var(--space-xs);
}

.form-header p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.form-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--border-hover);
  background: var(--bg);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-lg) 0;
}

/* ============================================================
   BACK LINK
   ============================================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-lg);
  transition: color var(--transition);
}

.back-link:hover { color: var(--text); }

.back-link svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
}

/* ============================================================
   THANK YOU
   ============================================================ */

.thanks {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.thanks__checkmark {
  width: 48px; height: 48px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkPop 0.5s var(--ease);
}

@keyframes checkPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.thanks__checkmark svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--bg); stroke-width: 2.5;
}

.thanks h2 {
  margin-bottom: var(--space-sm);
}

.thanks p {
  color: var(--text-dim);
  max-width: 380px;
  margin: 0 auto;
  font-size: 0.92rem;
}

/* ============================================================
   TOAST
   ============================================================ */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-dark);
  border: 1px solid rgba(184, 255, 114, 0.3);
  color: var(--text-on-dark);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.4s var(--ease);
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   FOOTER — minimal
   ============================================================ */

.site-footer {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  /* Full-bleed */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.site-footer p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   COLLABORATIVE PLAYLIST SECTION
   ============================================================ */

.playlist-section {
  position: relative;
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px;
}

/* Ensure anchor targets clear sticky nav */
[id] { scroll-margin-top: 72px; }

.playlist-header {
  margin-bottom: var(--space-xl);
}

.playlist-header__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  animation: vinylSpin 20s linear infinite;
}

.playlist-header__icon svg {
  width: 100%;
  height: 100%;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.playlist-header h2 {
  margin-bottom: var(--space-sm);
}

.playlist-header__subtitle {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 440px;
  line-height: 1.7;
}

/* Spotify Embed */
.playlist-embed {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.playlist-embed iframe { display: block; }

/* Playlist Paths */
.playlist-paths {
  margin-bottom: var(--space-xl);
}

.playlist-paths__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.playlist-paths__subtitle {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: var(--space-lg);
}

/* Path Toggle */
.path-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: var(--space-lg);
}

.path-toggle__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.65rem 1rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}

.path-toggle__btn:hover { color: var(--text-dim); }

.path-toggle__btn.active {
  background: var(--bg-hover);
  color: var(--text);
}

.path-toggle__btn svg { flex-shrink: 0; }

/* Path Panels */
.path-panel { display: none; animation: viewFade 0.4s var(--ease); }
.path-panel.active { display: block; }

/* Spotify Path Card */
.spotify-path-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
}

.spotify-path-card__icon { margin-bottom: var(--space-md); }

.spotify-path-card h4 {
  margin-bottom: var(--space-sm);
  text-transform: lowercase;
}

.spotify-path-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 360px;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
}

.btn--spotify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.8rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  background: #1ed760;
  color: #000;
}

.btn--spotify:hover {
  background: #1fdf64;
  color: #000;
  opacity: 1;
  transform: translateY(-1px);
}

.spotify-path-card__hint {
  display: block;
  margin-top: var(--space-md);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Song Suggestion Form */
.playlist-suggest {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.playlist-suggest__header { margin-bottom: var(--space-lg); }
.playlist-suggest__header h3,
.playlist-suggest__header h4 {
  margin-bottom: 4px;
  text-transform: lowercase;
}
.playlist-suggest__header p { color: var(--text-dim); font-size: 0.85rem; }

.song-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.song-form textarea { min-height: 60px; }

.song-form__footer {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.song-form__footer .btn { white-space: nowrap; height: fit-content; }

/* Suggestions Feed */
.playlist-feed { margin-bottom: var(--space-xl); }

.playlist-feed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.playlist-feed__header h3 {
  font-size: 1rem;
  text-transform: lowercase;
}

.playlist-feed__count { font-size: 0.75rem; color: var(--text-muted); }

.playlist-feed__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.playlist-feed__loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.playlist-feed__empty {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Suggestion Card */
.suggestion-card {
  display: flex;
  gap: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: all var(--transition);
}

.suggestion-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.suggestion-card__music-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  margin-top: 2px;
}

.suggestion-card__content { flex: 1; min-width: 0; }

.suggestion-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.suggestion-card__title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  display: block;
}

.suggestion-card__artist {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: block;
  margin-top: 1px;
}

.suggestion-card__spotify {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: var(--radius-full);
  background: rgba(30, 215, 96, 0.08);
  color: #1ed760;
  transition: all var(--transition);
}

.suggestion-card__spotify:hover {
  background: rgba(30, 215, 96, 0.15);
  opacity: 1;
}

.suggestion-card__reason {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: var(--space-xs);
  line-height: 1.5;
}

.suggestion-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.suggestion-card__meta strong { color: var(--text-dim); font-weight: 500; }

/* Playlist CTA */
.playlist-cta { text-align: center; }
.playlist-cta__btn svg { flex-shrink: 0; }

/* ============================================================
   CONNECTION ERROR
   ============================================================ */

.connection-error {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(154, 76, 76, 0.95);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  z-index: 200;
  transition: transform 0.4s var(--ease);
  border: 1px solid rgba(154, 76, 76, 0.4);
}

.connection-error.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   IDEAS REPOSITORY
   ============================================================ */

/* Login */
.login-view {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; text-align: center;
}

.login-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  width: 100%; max-width: 400px;
}

.login-card h2 { margin-bottom: var(--space-xs); }
.login-card .subtitle {
  color: var(--text-dim); font-size: 0.88rem;
  margin-bottom: var(--space-lg);
}

/* Vault features — context bullets on login */
.vault-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-lg);
  text-align: left;
}

.vault-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.vault-feature__icon {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.vault-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-sm);
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.login-features__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.login-features__icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
}

.login-features__icon svg {
  width: 12px; height: 12px;
  fill: none; stroke: var(--text-muted); stroke-width: 1.5;
}

.check-email { text-align: center; padding: var(--space-3xl) 0; }
.check-email__icon {
  width: 48px; height: 48px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--text);
  display: flex; align-items: center; justify-content: center;
  animation: checkPop 0.5s var(--ease);
}
.check-email__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--bg); stroke-width: 2;
}

.name-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px); z-index: 200;
}
.name-modal.hidden { display: none; }

/* Board Header */
.board-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap; gap: var(--space-sm);
}

.board-header__user {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 0.82rem; color: var(--text-dim);
}
.board-header__user strong { color: var(--text); font-weight: 500; }
.board-header__actions { display: flex; gap: var(--space-sm); }

/* Pipeline */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
}

.pipeline__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.3s var(--ease);
  padding: 0 var(--space-lg);
}

.pipeline__stage:hover { transform: translateY(-2px); }
.pipeline__stage.active { transform: translateY(-2px); }

.pipeline__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  transition: all 0.3s var(--ease);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.pipeline__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--text-dim); stroke-width: 1.5;
  transition: all 0.3s;
}

.pipeline__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.pipeline__count {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2px;
  color: var(--text-dim);
  transition: color 0.3s;
}

.pipeline__connector {
  width: 40px; height: 1px;
  background: var(--border);
  margin-bottom: 36px;
}
.pipeline__connector::before { display: none; }
.pipeline__connector--1::before,
.pipeline__connector--2::before { display: none; }

/* Stage states */
.pipeline__stage--seed.active .pipeline__icon,
.pipeline__stage--seed:hover .pipeline__icon {
  background: rgba(232, 163, 23, 0.08);
  border-color: var(--stage-seed);
}
.pipeline__stage--seed.active .pipeline__icon svg,
.pipeline__stage--seed:hover .pipeline__icon svg { stroke: var(--stage-seed); }
.pipeline__stage--seed.active .pipeline__label { color: var(--stage-seed); }
.pipeline__stage--seed.active .pipeline__count { color: var(--stage-seed); }
.pipeline__stage--seed .pipeline__count { color: var(--stage-seed); }

.pipeline__stage--project.active .pipeline__icon,
.pipeline__stage--project:hover .pipeline__icon {
  background: rgba(124, 92, 191, 0.08);
  border-color: var(--stage-project);
}
.pipeline__stage--project.active .pipeline__icon svg,
.pipeline__stage--project:hover .pipeline__icon svg { stroke: var(--stage-project); }
.pipeline__stage--project.active .pipeline__label { color: var(--stage-project); }
.pipeline__stage--project.active .pipeline__count { color: var(--stage-project); }
.pipeline__stage--project .pipeline__count { color: var(--stage-project); }

.pipeline__stage--company.active .pipeline__icon,
.pipeline__stage--company:hover .pipeline__icon {
  background: rgba(43, 154, 102, 0.08);
  border-color: var(--stage-company);
}
.pipeline__stage--company.active .pipeline__icon svg,
.pipeline__stage--company:hover .pipeline__icon svg { stroke: var(--stage-company); }
.pipeline__stage--company.active .pipeline__label { color: var(--stage-company); }
.pipeline__stage--company.active .pipeline__count { color: var(--stage-company); }
.pipeline__stage--company .pipeline__count { color: var(--stage-company); }

.pipeline__stage--all.active .pipeline__icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
}
.pipeline__stage--all.active .pipeline__label { color: var(--text-dim); }

/* Section Headers */
.section-header {
  display: flex; align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  margin-top: var(--space-xl);
}

.section-header__icon {
  width: 16px; height: 16px;
  fill: none; stroke: var(--text-muted); stroke-width: 1.5;
}

.section-header__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-header__count {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: auto;
}

.section-header--seed .section-header__icon { stroke: var(--stage-seed); }
.section-header--seed .section-header__label { color: var(--stage-seed); }
.section-header--project .section-header__icon { stroke: var(--stage-project); }
.section-header--project .section-header__label { color: var(--stage-project); }
.section-header--company .section-header__icon { stroke: var(--stage-company); }
.section-header--company .section-header__label { color: var(--stage-company); }

/* Idea Cards */
.ideas-list {
  display: flex; flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.idea-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition);
  position: relative;
  border-left: 3px solid transparent;
}

.idea-card::before { display: none; }
.idea-card:hover { transform: translateY(-1px); border-color: var(--border-hover); }

.idea-card--seed { border-left-color: var(--stage-seed); }
.idea-card--project { border-left-color: var(--stage-project); }
.idea-card--company { border-left-color: var(--stage-company); }

.idea-card__top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.idea-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.idea-card--seed .idea-card__title { color: var(--text); }
.idea-card--project .idea-card__title { color: var(--text); }
.idea-card--company .idea-card__title { color: var(--text); }

.stage-pill {
  display: inline-flex; align-items: center;
  gap: 4px; padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid; flex-shrink: 0;
}

.stage-pill svg {
  width: 9px; height: 9px;
  fill: none; stroke: currentColor; stroke-width: 2;
}

.stage-pill--seed { color: var(--stage-seed); border-color: rgba(232, 163, 23, 0.3); background: rgba(232, 163, 23, 0.06); }
.stage-pill--project { color: var(--stage-project); border-color: rgba(124, 92, 191, 0.3); background: rgba(124, 92, 191, 0.06); }
.stage-pill--company { color: var(--stage-company); border-color: rgba(43, 154, 102, 0.3); background: rgba(43, 154, 102, 0.06); }

.company-badge {
  display: inline-flex; align-items: center;
  gap: 5px; padding: 3px 12px;
  background: rgba(43, 154, 102, 0.06);
  border: 1px solid rgba(43, 154, 102, 0.2);
  border-radius: 100px;
  font-size: 0.68rem; font-weight: 600;
  color: var(--stage-company);
  margin-bottom: var(--space-sm);
}

.company-badge svg {
  width: 11px; height: 11px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
}

.idea-card__desc {
  font-size: 0.85rem; color: var(--text-dim);
  line-height: 1.65; margin-bottom: var(--space-md);
  white-space: pre-wrap;
}

/* Links */
.idea-card__links {
  display: flex; flex-wrap: wrap;
  gap: var(--space-sm); margin-bottom: var(--space-md);
}

.idea-link {
  display: inline-flex; align-items: center;
  gap: 5px; padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.72rem;
  font-weight: 500; color: var(--text-dim);
  text-decoration: none; transition: all 0.2s;
}
.idea-link:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--border-hover); color: var(--text); opacity: 1; }
.idea-link svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.idea-link--github { color: var(--text-dim); }
.idea-link--demo { color: var(--stage-company); border-color: rgba(43, 154, 102, 0.2); }

/* Team */
.idea-card__team { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-md); }
.idea-card__team-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 4px; align-self: center; }
.team-name-tooltip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  background: rgba(124, 92, 191, 0.06);
  border: 1px solid rgba(124, 92, 191, 0.15);
  border-radius: 100px; font-size: 0.68rem; color: var(--stage-project);
}

.idea-card__footer {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-sm);
}
.idea-card__meta { font-size: 0.72rem; color: var(--text-muted); }
.idea-card__meta strong { color: var(--text-dim); font-weight: 500; }
.idea-card__actions { display: flex; gap: var(--space-xs); }

.btn--danger {
  background: transparent; color: var(--error);
  border: 1px solid rgba(154, 76, 76, 0.2);
}
.btn--danger:hover { background: rgba(154, 76, 76, 0.08); }

/* New Idea Form */
.new-idea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.new-idea__header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md); cursor: pointer;
}
.new-idea__header h3 { font-size: 0.88rem; color: var(--text-dim); }
.new-idea__toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); transition: transform 0.3s var(--ease);
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
}
.new-idea.collapsed .new-idea__form { display: none; }
.new-idea.collapsed .new-idea__header { margin-bottom: 0; }
.new-idea.collapsed .new-idea__toggle { transform: rotate(-90deg); }

/* Paste-and-prefill */
.extract-panel {
  margin-bottom: var(--space-md);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: transparent;
}

.extract-panel__summary {
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.extract-panel__summary::-webkit-details-marker { display: none; }
.extract-panel__summary::marker { content: ''; }

.extract-panel__summary:hover { color: var(--text); }

.extract-panel__summary > span:first-child::before {
  content: '✨ ';
}

.extract-panel__hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.extract-panel__body {
  padding: 0 var(--space-md) var(--space-md);
}

.extract-panel__textarea {
  width: 100%;
  padding: var(--space-sm);
  font-size: 0.85rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  resize: vertical;
  min-height: 100px;
}

.extract-panel__row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.extract-panel__status {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Stage Selector */
.stage-selector { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); }

.stage-option {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: var(--space-md) var(--space-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.stage-option input { display: none; }

.stage-option__icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.stage-option__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--text-muted); stroke-width: 1.5; transition: all 0.25s; }

.stage-option__label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.25s;
}

.stage-option--seed.selected { border-color: var(--stage-seed); background: rgba(232, 163, 23, 0.05); }
.stage-option--seed.selected .stage-option__icon svg { stroke: var(--stage-seed); }
.stage-option--seed.selected .stage-option__label { color: var(--stage-seed); }

.stage-option--project.selected { border-color: var(--stage-project); background: rgba(124, 92, 191, 0.05); }
.stage-option--project.selected .stage-option__icon svg { stroke: var(--stage-project); }
.stage-option--project.selected .stage-option__label { color: var(--stage-project); }

.stage-option--company.selected { border-color: var(--stage-company); background: rgba(43, 154, 102, 0.05); }
.stage-option--company.selected .stage-option__icon svg { stroke: var(--stage-company); }
.stage-option--company.selected .stage-option__label { color: var(--stage-company); }

.company-field { display: none; }
.company-field.visible { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

.link-input-group { position: relative; }
.link-input-group .link-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; fill: none; stroke: var(--text-muted); stroke-width: 1.5;
  pointer-events: none; opacity: 0.5;
}
.link-input-group input { padding-left: 36px !important; }

.team-section { margin-top: var(--space-sm); }
.team-members-list { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); min-height: 28px; }
.team-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124, 92, 191, 0.08);
  border: 1px solid rgba(124, 92, 191, 0.2);
  color: var(--stage-project); border-radius: 100px;
  padding: 4px 10px 4px 12px; font-size: 0.75rem; font-weight: 500;
}
.team-chip__remove {
  background: none; border: none; cursor: pointer;
  color: rgba(124, 92, 191, 0.4); font-size: 1rem; line-height: 1; padding: 0;
  display: flex; align-items: center; transition: color 0.2s;
}
.team-chip__remove:hover { color: var(--error); }

.team-add-row { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.team-add-row input { flex: 1; }
.btn--add-member {
  background: rgba(124, 92, 191, 0.1);
  border: 1px solid rgba(124, 92, 191, 0.2);
  color: var(--stage-project); padding: 0 14px;
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font); font-size: 0.78rem;
  transition: all 0.2s; white-space: nowrap;
}
.btn--add-member:hover { background: rgba(124, 92, 191, 0.18); }

.form-section-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-md) 0;
}

/* Search */
.search-bar { margin-bottom: var(--space-lg); position: relative; }
.search-bar .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; fill: none; stroke: var(--text-muted); stroke-width: 1.5;
  pointer-events: none;
}
.search-bar input {
  width: 100%; padding: 0.7rem 1rem 0.7rem 38px;
  font-family: var(--font); font-size: 0.82rem; color: var(--text);
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.search-bar input:focus { outline: none; border-color: var(--border-hover); }
.search-bar input::placeholder { color: var(--text-muted); }

.ideas-count { font-size: 0.75rem; color: var(--text-muted); margin-bottom: var(--space-md); }

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */

/* Gate */
.gate {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 100; background: var(--bg);
}
.gate.hidden { display: none; }

.gate__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center; width: 340px;
}
.gate__card h1, .gate__card h2 { font-size: 1.2rem; margin-bottom: 4px; }
.gate__card p { color: var(--text-muted); font-size: 0.82rem; margin-bottom: var(--space-lg); }
.gate__error { color: var(--error); font-size: 0.78rem; margin-top: 8px; min-height: 1.2em; display: none; }
.gate__subtitle { color: var(--text-muted); font-size: 0.82rem; margin-bottom: var(--space-lg); }

#gate-password {
  width: 100%; padding: 0.75rem 1rem; text-align: center;
  font-family: var(--font); font-size: 0.92rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  transition: all var(--transition); margin-bottom: var(--space-md);
}
#gate-password:focus { outline: none; border-color: var(--border-hover); }

/* Admin Header */
.admin-header { border-bottom: 1px solid var(--border); margin-bottom: var(--space-xl); }
.admin-header__inner {
  max-width: 900px; margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-sm);
}
.admin-header__inner h1 { font-size: 1rem; font-weight: 600; }
.admin-header__inner h1 span { color: var(--text-muted); font-weight: 400; }

.admin-nav { display: flex; gap: var(--space-xs); }
.admin-nav button {
  padding: 6px 14px; font-family: var(--font);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
  background: none; border: 1px solid transparent;
  border-radius: 100px; cursor: pointer; color: var(--text-muted);
  transition: all var(--transition);
}
.admin-nav button:hover { color: var(--text-dim); }
.admin-nav button.active { color: var(--text); border-color: var(--border); }

.admin-content { max-width: 900px; margin: 0 auto; padding: 0 var(--space-lg); }

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-sm); margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-md); text-align: center;
}
.stat-card .stat-number,
.stat-card__number {
  font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1;
}
.stat-card .stat-label,
.stat-card__label {
  font-size: 0.65rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px;
}

/* Tabs */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Filter bars */
.filter-bar { display: flex; gap: var(--space-xs); margin-bottom: var(--space-md); flex-wrap: wrap; }
.filter-btn {
  padding: 4px 12px; font-family: var(--font);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em;
  text-transform: lowercase; background: none;
  border: 1px solid transparent; border-radius: 100px;
  cursor: pointer; color: var(--text-muted); transition: all var(--transition);
}
.filter-btn:hover { color: var(--text-dim); }
.filter-btn.active { color: var(--text); border-color: var(--border); }

/* Signup List */
.signup-list { display: flex; flex-direction: column; gap: var(--space-md); }

.signup-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer; transition: all var(--transition);
}
.signup-item:hover { border-color: var(--border-hover); }

.signup-item__header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
}
.signup-item__name { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.signup-item__badges { display: flex; gap: var(--space-xs); }
.signup-item__meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.signup-item__detail {
  display: none; margin-top: var(--space-md);
  padding-top: var(--space-md); border-top: 1px solid var(--border);
}
.signup-item.expanded .signup-item__detail { display: block; }

.detail-grid { display: grid; gap: var(--space-md); margin-bottom: var(--space-md); }
.detail-field__label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--text-muted);
  text-transform: lowercase; margin-bottom: 2px;
}
.detail-field__value { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

.admin-notes {
  width: 100%; padding: 0.6rem 0.8rem;
  font-family: var(--font); font-size: 0.78rem; font-weight: 300;
  color: var(--text); background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  resize: vertical; min-height: 50px; margin-bottom: var(--space-md);
  transition: border-color var(--transition);
}
.admin-notes:focus { outline: none; border-color: var(--border-hover); }

.detail-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.btn--sage { background: rgba(90, 154, 107, 0.08); color: var(--success); border: 1px solid rgba(90, 154, 107, 0.2); }
.btn--gold { background: rgba(201, 168, 76, 0.06); color: var(--gold); border: 1px solid rgba(201, 168, 76, 0.15); }
.btn--small { padding: 4px 12px; font-size: 0.72rem; border-radius: 4px; }

.admin-tools { display: flex; justify-content: flex-end; margin-bottom: var(--space-md); }

/* Badges */
.badge {
  display: inline-block; padding: 2px 10px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 100px; border: 1px solid;
}
.badge--pending { color: var(--text-dim); border-color: var(--border); background: rgba(255,255,255,0.03); }
.badge--approved { color: var(--success); border-color: rgba(90,154,107,0.2); background: rgba(90,154,107,0.06); }
.badge--declined { color: var(--error); border-color: rgba(154,76,76,0.2); background: rgba(154,76,76,0.06); }
.badge--role { color: var(--text-dim); border-color: var(--border); background: rgba(255,255,255,0.03); }

/* Calendar */
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.calendar-header h3 { font-size: 1rem; }

.calendar-nav { display: flex; gap: var(--space-sm); }
.calendar-nav button {
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-dim); width: 32px; height: 32px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 1rem;
  transition: all var(--transition); display: flex; align-items: center; justify-content: center;
}
.calendar-nav button:hover { border-color: var(--border-hover); color: var(--text); }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.calendar-day-header,
.calendar-grid .day-header {
  text-align: center; font-size: 0.65rem; color: var(--text-muted);
  padding: var(--space-sm) 0; text-transform: uppercase; letter-spacing: 0.1em;
}

.calendar-day,
.calendar-grid .day {
  text-align: center; padding: var(--space-sm);
  border-radius: var(--radius-sm); font-size: 0.82rem;
  color: var(--text-muted); min-height: 56px; transition: all var(--transition);
}

.calendar-day--sunday,
.calendar-grid .day.sunday {
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-weight: 500;
}
.calendar-day--sunday:hover,
.calendar-grid .day.sunday:hover { border-color: var(--border-hover); }

.calendar-day--today { box-shadow: 0 0 0 1px var(--text-dim); }
.calendar-day__number { font-weight: 500; }
.calendar-day__tag { font-size: 0.58rem; margin-top: 4px; color: var(--text-dim); text-transform: lowercase; }
.calendar-day__tag--open { color: var(--text-muted); }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-md); }
.people-list { display: grid; gap: var(--space-sm); }

.person-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: var(--space-md); transition: all var(--transition);
}
.person-card:hover { border-color: var(--border-hover); }
.person-card__name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.person-card__email { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.person-card__roles { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }

.person-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.person-row:hover { border-color: var(--border-hover); }
.person-row__info { display: flex; flex-direction: column; gap: 2px; }
.person-row__name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.person-row__email { font-size: 0.72rem; color: var(--text-muted); }
.person-row__badges { display: flex; gap: var(--space-xs); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-xl);
  width: 100%; max-width: 480px;
}
.modal h3 { margin-bottom: var(--space-lg); }
.modal-actions { display: flex; gap: var(--space-sm); justify-content: flex-end; margin-top: var(--space-lg); }

/* Empty State */
.empty-state {
  text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--text-muted);
}
.empty-state p { font-size: 0.88rem; }

/* Utility */
.mt-xl { margin-top: var(--space-xl); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ============================================================
   VIEWPORT ENTRY ANIMATION
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  h1 { font-size: clamp(2rem, 6vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
  
  .hero__headline { font-size: clamp(2.2rem, 7vw, 3.6rem); }
  .hero__sub { font-size: 1rem; max-width: 100%; }

  .proof { flex-direction: column; }
  .showreel__grid { grid-template-columns: 1fr; }
  
  .join-cta__heading { font-size: clamp(1.3rem, 5vw, 2rem); }
  
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .role-card {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .role-card::after { display: none; }
  .next-sunday { flex-direction: column; align-items: flex-start; gap: 4px; }

  .song-form__row { grid-template-columns: 1fr; }
  .song-form__footer { flex-direction: column; align-items: stretch; }
  .song-form__footer .btn { width: 100%; }

  .pipeline { flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
  .pipeline__connector { display: none; }
  .pipeline__stage { padding: 0 var(--space-md); }

  .stage-selector { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .board-header { flex-direction: column; align-items: flex-start; }
  .admin-header__inner { flex-direction: column; text-align: center; }

  .idea-card__top { flex-direction: column; }
  
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  
  .location-card { padding: var(--space-lg); }
  .path-toggle { flex-direction: column; }
  .path-toggle__btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  
  /* Shorter brand on tiny screens */
  .site-nav__brand { font-size: 0.85rem; }
  .site-nav__link { font-size: 0.65rem; padding: 5px 8px; }
  
  .hero { padding: var(--space-2xl) 0 var(--space-xl); }
  

  .login-card { padding: var(--space-lg); }

  .stat-cards { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */

.projects-hero {
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.projects-hero__title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.1;
  margin: var(--space-sm) 0 var(--space-md);
}

.projects-hero__subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

.projects-stage {
  padding: var(--space-xl) var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.projects-stage__header {
  margin-bottom: var(--space-lg);
}

.projects-stage__heading {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.2;
  margin-top: var(--space-xs);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.14);
}

.project-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.project-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.project-card__company {
  font-size: 0.72rem;
  color: var(--bg-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.project-card__author {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

.project-card__team {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--space-xs);
}

.project-chip {
  font-size: 0.7rem;
  padding: 2px 10px;
  background: var(--bg-hover);
  color: var(--text-dim);
  border-radius: var(--radius-pill);
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-sm);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 6px 12px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition);
}

.project-link:hover {
  background: var(--bg-accent);
  color: #fff;
  transform: translateY(-1px);
}

.project-link__icon {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.projects-loading,
.projects-empty-all {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-muted);
}

.projects-cta {
  max-width: 720px;
  margin: var(--space-2xl) auto var(--space-3xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.projects-cta h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.projects-cta p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.projects-cta a {
  color: var(--bg-accent);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-stage { padding: var(--space-lg) var(--space-md); }
}

/* Cards signal they're clickable. */
.project-card {
  cursor: pointer;
}
.project-card:focus-visible {
  outline: 2px solid var(--bg-accent);
  outline-offset: 2px;
}

/* ============================================================
   PROJECT DETAIL MODAL
   ============================================================ */

body.modal-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.project-modal[hidden] { display: none; }

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFadeIn 0.24s var(--ease);
}

.project-modal__card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 40px);
  margin: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s var(--ease);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.project-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1;
}
.project-modal__close:hover { background: rgba(0, 0, 0, 0.12); }
.project-modal__close:focus-visible {
  outline: 2px solid var(--bg-accent);
  outline-offset: 2px;
}

.project-modal__body {
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  overflow-y: auto;
  flex: 1;
}

.project-modal__stage {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}
.project-modal__stage--company {
  background: var(--bg-accent);
  color: #fff;
}
.project-modal__stage--project {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.project-modal__stage--seed {
  background: transparent;
  border: 1px dashed var(--text-muted);
  color: var(--text-muted);
}

.project-modal__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

.project-modal__company {
  font-size: 0.78rem;
  color: var(--bg-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.project-modal__by {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: var(--space-lg);
}

.project-modal__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 var(--space-lg);
}

.project-modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.project-modal__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 10px 16px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition);
}
.project-modal__link:hover {
  background: var(--bg-accent);
  color: #fff;
  transform: translateY(-1px);
}

.project-modal__team {
  margin-bottom: var(--space-md);
}
.project-modal__team-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}
.project-modal__team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-modal__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-hover);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.project-modal__tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.project-modal__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.project-modal__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.project-modal__action:hover {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}
.project-modal__action--accent {
  background: var(--bg-accent);
  color: #fff;
  border-color: var(--bg-accent);
}
.project-modal__action--accent:hover {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
}

@media (min-width: 640px) {
  .project-modal {
    align-items: center;
  }
  .project-modal__card {
    margin: 40px;
  }
}

/* ============================================================
   ADMIN — BULK IMPORT TAB
   ============================================================ */

.bulk-import {
  max-width: 900px;
  margin: 0 auto;
}

.bulk-import__intro {
  margin-bottom: var(--space-lg);
}

.bulk-import__intro h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.bulk-import__intro p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.bulk-import__intro code {
  background: var(--bg-hover);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.bulk-import__textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  resize: vertical;
  min-height: 160px;
}

.bulk-import__controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.bulk-import__file-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
}

.bulk-import__file-label input[type="file"] {
  margin-right: 6px;
}

.bulk-import__status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bulk-import__results {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bulk-import__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.bulk-row {
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bulk-row__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.bulk-row__head input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
}

.bulk-row__title {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  font-size: 0.95rem;
  font-weight: 600;
}

.bulk-row__del {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  transition: color var(--transition);
}

.bulk-row__del:hover { color: var(--bg-accent); }

.bulk-row__meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.bulk-row__meta input[type="text"] {
  flex: 1;
  min-width: 160px;
  padding: 6px 10px;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}

.bulk-row__meta select {
  padding: 6px 10px;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
}

.bulk-row__desc {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  resize: vertical;
}

.bulk-row__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.bulk-row__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bulk-row__link input {
  padding: 6px 10px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}

.bulk-row__team {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
}

.bulk-row__team-label {
  color: var(--text-muted);
  margin-right: 4px;
}

/* ============================================================
   UX REDESIGN — NEW COMPONENTS
   ============================================================ */

/* Hero CTA Group */
.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.hero__cta {
  font-size: 0.88rem;
  padding: 1rem 2.5rem;
  animation: ctaFadeIn 1s var(--ease) 0.5s both;
}

@keyframes ctaFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink, var(--text));
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--transition);
  animation: ctaFadeIn 1s var(--ease) 0.8s both;
}

.hero__scroll-link:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .hero__cta-group {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* Pull Quote (The Room section) */
.pull-quote {
  border: none;
  border-left: 4px solid var(--bg-accent);
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) calc(var(--space-xl) + 8px);
  background: transparent;
  color: var(--text);
  border-radius: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  font-weight: 400;
  position: relative;
  font-style: italic;
  max-width: 600px;
  z-index: 2;
}

.pull-quote strong {
  color: var(--bg-accent);
  font-weight: 700;
  font-style: normal;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -24px;
  left: -8px;
  font-size: 6rem;
  font-weight: 800;
  color: rgba(214, 51, 108, 0.12);
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  pointer-events: none;
}

/* Territory Tags */
.territory-tags {
  margin-top: var(--space-xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.territory-tags__label {
  font-size: 0.82rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-bottom: var(--space-lg);
}

.territory-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.territory-tag {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  color: var(--text-dim);
  background: var(--bg-elevated);
  transition: all var(--transition);
  cursor: default;
}

.territory-tag:hover {
  border-color: var(--bg-accent);
  color: var(--bg-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(214, 51, 108, 0.12);
}

/* Staggered visual rhythm — every other tag gets a dark treatment */
.territory-tag:nth-child(3n+2) {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  border-color: var(--bg-dark);
}
.territory-tag:nth-child(3n+2):hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.territory-tag--accent {
  background: var(--bg-accent);
  color: #fff;
  border-color: var(--bg-accent);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 24px;
}

.territory-tag--accent:hover {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(214, 51, 108, 0.25);
}

/* Schedule Closing Line */
.schedule__closing {
  margin-top: var(--space-xl);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-dim);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

/* Featured Event Card */
.featured-event {
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 2;
}

.featured-event__card {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.featured-event__when {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.featured-event__rel {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--accent);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.featured-event__date {
  font-size: 0.82rem;
  color: rgba(248, 247, 244, 0.7);
}

.featured-event__name {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.featured-event__rsvp {
  font-size: 0.88rem;
  padding: 1rem 3rem;
}

/* Project Showcase Grid */
.project-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .project-showcase {
    grid-template-columns: 1fr;
  }
}

.project-showcase__footer {
  text-align: center;
  margin-top: var(--space-xl);
  position: relative;
  z-index: 2;
}

/* Showcase Card */
.showcase-card {
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 3px solid transparent;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: all 0.4s var(--ease);
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-left-color: var(--bg-accent);
}

.showcase-card__header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.showcase-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.showcase-card__author {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.showcase-card__desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-sm);
}

.showcase-card__links {
  display: flex;
  gap: var(--space-sm);
}

.showcase-card__link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bg-accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

.showcase-card__link:hover {
  opacity: 0.7;
}

.showcase-card__share {
  display: flex;
  gap: 4px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.share-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* ============================================================
   SUNDAYS CALENDAR — calendar.html
   Member sign-up + invite redemption + invite minting.
   Reuses existing tokens; warm, editorial, no new variables.
   ============================================================ */

.cal-header {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}
.cal-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.cal-header__subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: var(--space-md);
  max-width: 580px;
  line-height: 1.7;
}
.cal-header__subtitle em {
  font-style: italic;
  color: var(--bg-accent);
  font-weight: 500;
}

.cal-status {
  display: flex; align-items: center; gap: 8px;
  margin-top: var(--space-lg);
  padding: 10px var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-dim);
  width: 100%;
}
.cal-status strong { color: var(--text); font-weight: 500; }

/* --- Member panel (approved): your invites --- */
.member-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.member-panel__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
}
.member-panel__label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.member-panel__count {
  font-size: 1.1rem; font-weight: 600; color: var(--text);
  margin-top: 2px;
}
.invite-list {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--space-xs);
}
.invite-list__label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: var(--space-xs);
}
.invite-list__row {
  font-size: 0.8rem; color: var(--text-dim); font-family: ui-monospace, monospace;
}
.invite-list__row code {
  background: var(--bg); padding: 2px 6px; border-radius: 3px;
  color: var(--text); font-weight: 500;
}

/* --- Redeem panel (logged-in, not approved) --- */
.redeem-panel {
  background: rgba(214, 51, 108, 0.06);
  border: 1px solid rgba(214, 51, 108, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.redeem-panel h3 {
  font-size: 1rem; font-weight: 600; color: var(--text);
  margin-bottom: var(--space-xs);
}
.redeem-panel__hint {
  font-size: 0.85rem; color: var(--text-dim);
  margin-bottom: var(--space-md);
}
.redeem-panel form {
  display: flex; gap: var(--space-sm); align-items: stretch;
  flex-wrap: wrap;
}
.redeem-panel .form-group { flex: 1; min-width: 200px; margin: 0; }
.redeem-panel__error {
  margin-top: var(--space-sm);
  color: var(--bg-accent); font-size: 0.85rem;
}

/* --- Calendar list --- */
.cal-list {
  display: flex; flex-direction: column; gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.cal-list__loading {
  padding: var(--space-xl); text-align: center;
  color: var(--text-muted); font-size: 0.9rem;
}

.sunday-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color var(--transition);
}
.sunday-card:hover { border-color: var(--border-hover); }

.sunday-card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-md); margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.sunday-card__date {
  display: flex; align-items: baseline; gap: var(--space-sm);
}
.sunday-card__date-num {
  font-size: 1.4rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em;
}
.sunday-card__date-rel {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: lowercase; letter-spacing: 0.04em;
}
.sunday-card__theme {
  font-size: 0.95rem; font-style: italic; color: var(--bg-accent);
  font-weight: 500;
}

.sunday-card__slots {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md);
  padding-top: var(--space-md); border-top: 1px solid var(--border);
}
.slot {
  display: flex; flex-direction: column; gap: var(--space-xs);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition);
}
/* Filled slot: clean elevated, sage success cue */
.slot--filled {
  background: rgba(43, 154, 102, 0.06);
  border-color: rgba(43, 154, 102, 0.2);
}
/* Open slot: dashed terracotta border to read as "needs you" */
.slot--open {
  background: rgba(214, 51, 108, 0.04);
  border: 1px dashed rgba(214, 51, 108, 0.35);
}
.slot--open:hover {
  background: rgba(214, 51, 108, 0.08);
  border-color: rgba(214, 51, 108, 0.55);
}

.slot__role-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 2px;
}
.slot__role-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  font-size: 0.7rem; font-weight: 700;
  line-height: 1;
}
.slot--filled .slot__role-icon {
  background: var(--accent);
  color: var(--bg);
}
.slot--open .slot__role-icon {
  background: var(--bg-accent);
  color: var(--bg);
}
.slot__role {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.slot--filled .slot__role { color: var(--accent-hover); }
.slot--open .slot__role { color: var(--bg-accent); font-weight: 600; }

.slot__filled {
  font-size: 0.95rem; color: var(--text);
  font-weight: 500;
}
.slot__name { font-weight: 600; color: var(--text); }
.slot__topic { color: var(--text-dim); font-style: italic; font-weight: 400; }
.slot__open {
  font-size: 0.85rem; color: var(--bg-accent); font-style: italic;
}
.slot__actions {
  display: flex; gap: var(--space-xs); margin-top: var(--space-sm);
  flex-wrap: wrap;
}

/* Card fill summary pill (top-right) */
.sunday-card__fill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-weight: 600;
}
.sunday-card__fill-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.sunday-card__fill.fill-empty {
  background: rgba(214, 51, 108, 0.1);
  color: var(--bg-accent);
}
.sunday-card__fill.fill-empty .sunday-card__fill-dot { background: var(--bg-accent); }
.sunday-card__fill.fill-partial {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}
.sunday-card__fill.fill-partial .sunday-card__fill-dot { background: var(--gold); }
.sunday-card__fill.fill-full {
  background: rgba(43, 154, 102, 0.15);
  color: var(--accent-hover);
}
.sunday-card__fill.fill-full .sunday-card__fill-dot { background: var(--accent); }

/* --- Anonymous CTA --- */
.anon-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
}
.anon-cta h3 {
  font-size: 1.1rem; font-weight: 600; color: var(--text);
  margin-bottom: var(--space-xs);
}
.anon-cta__hint {
  font-size: 0.85rem; color: var(--text-dim);
  margin-bottom: var(--space-lg);
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.anon-cta form {
  display: flex; gap: var(--space-sm); justify-content: center;
  max-width: 420px; margin: 0 auto; flex-wrap: wrap;
}
.anon-cta .form-group { flex: 1; min-width: 220px; margin: 0; }
.anon-cta__sent {
  font-size: 0.9rem; color: var(--text-dim);
}

/* --- Modal additions (close button, hint, error) --- */
.modal__close {
  position: absolute; top: 12px; right: 16px;
  background: transparent; border: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--text-muted);
  transition: color var(--transition);
}
.modal__close:hover { color: var(--text); }
.modal { position: relative; }
.modal__hint {
  font-size: 0.85rem; color: var(--text-dim);
  margin-top: -8px; margin-bottom: var(--space-md);
}
.modal__error {
  margin-top: var(--space-sm);
  color: var(--bg-accent); font-size: 0.85rem;
}

/* --- Minted invite display --- */
.invite-code {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: 0.15em; text-align: center;
  color: var(--bg-accent);
  background: var(--bg);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  user-select: all;
}
.invite-share-url {
  margin-top: var(--space-sm);
  font-size: 0.7rem; color: var(--text-muted);
  text-align: center; word-break: break-all;
  font-family: ui-monospace, monospace;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .sunday-card__slots { grid-template-columns: 1fr; gap: var(--space-md); }
  .sunday-card__head { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
  .cal-status { flex-wrap: wrap; }
  .cal-status button { margin-left: 0 !important; margin-top: var(--space-xs); }
}

/* ============================================================
   ADMIN MEMBERS TAB — admin.html
   ============================================================ */

.member-signin-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-lg);
  max-width: 520px; margin: var(--space-xl) auto;
  text-align: center;
}
.member-signin-card h3 { font-size: 1rem; margin-bottom: var(--space-sm); }
.member-signin-card p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: var(--space-md); }
.member-signin-card form { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }
.member-signin-card .form-group { flex: 1; min-width: 220px; margin: 0; }

.admin-section {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}
.admin-section:last-child { border-bottom: none; }
.admin-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-md); margin-bottom: var(--space-md); flex-wrap: wrap;
}
.admin-section__head h3 { font-size: 1rem; font-weight: 600; }
.admin-section__hint { font-size: 0.8rem; color: var(--text-dim); flex-basis: 100%; }

/* Master code */
.master-code-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-md);
}
.master-code-card__loading { color: var(--text-muted); font-size: 0.85rem; }
.master-code-card p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: var(--space-sm); }
.master-code-card__form { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.master-code-card__form input {
  flex: 1; min-width: 200px;
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-input);
  font-family: ui-monospace, monospace; font-size: 0.85rem;
}
.master-code-card__active {
  display: flex; align-items: center; gap: var(--space-md);
  flex-wrap: wrap;
}
.master-code-card__token {
  font-size: 1rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--bg-accent); background: var(--bg);
  padding: 6px 12px; border-radius: var(--radius-sm);
}
.master-code-card__meta { font-size: 0.8rem; color: var(--text-dim); }
.master-code-card__status {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: var(--radius-pill);
}
.master-code-card__status.on { background: rgba(43, 154, 102, 0.15); color: var(--accent-hover); }
.master-code-card__status.off { background: rgba(160, 152, 144, 0.15); color: var(--text-muted); }

/* Member rows + Invite rows */
.members-list, .invites-list {
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.member-row, .invite-row {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.member-row__info { flex: 1; min-width: 220px; }
.member-row__name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.member-row__email { font-size: 0.75rem; color: var(--text-muted); }
.member-row__meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.member-row__controls { display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; }
.member-row__quota {
  display: flex; align-items: center; gap: var(--space-xs);
  font-size: 0.75rem; color: var(--text-dim);
}
.member-row__quota input {
  width: 60px; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-input); font-size: 0.85rem;
}

.invite-row__token {
  font-family: ui-monospace, monospace; font-size: 0.85rem;
  background: var(--bg); padding: 4px 8px; border-radius: 3px;
  color: var(--text); font-weight: 500; letter-spacing: 0.04em;
}
.invite-row__meta { flex: 1; font-size: 0.75rem; color: var(--text-dim); }
.invite-row__status {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.invite-row__status.on { background: rgba(43, 154, 102, 0.15); color: var(--accent-hover); }
.invite-row__status.off { background: rgba(160, 152, 144, 0.15); color: var(--text-muted); }

/* ============================================================
   CALENDAR: STATUS BADGES + PAST + DIRECTORY
   ============================================================ */

.sunday-card__badge {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-weight: 600;
}
.sunday-card__badge--cancel {
  background: rgba(214, 51, 108, 0.12);
  color: var(--bg-accent);
}
.sunday-card__badge--past {
  background: rgba(160, 152, 144, 0.18);
  color: var(--text-dim);
}
.sunday-card--cancelled {
  background: var(--bg);
}
.sunday-card--cancelled .sunday-card__date-num {
  color: var(--text-muted);
}

/* Cancelled callout — replaces the slots area on cancelled Sundays */
.sunday-card__cancelled-callout {
  margin-top: var(--space-md);
  padding: var(--space-lg);
  border: 1px dashed rgba(196, 101, 74, 0.35);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(196, 101, 74, 0.04);
}
.sunday-card__cancelled-headline {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bg-accent);
  text-transform: uppercase;
}
.sunday-card__cancelled-reason {
  margin-top: var(--space-xs);
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
}
.sunday-card__cancelled-detail {
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.sunday-card--past {
  background: var(--bg);
}
.sunday-card--past .sunday-card__date-num {
  color: var(--text-dim);
}

.past-toggle {
  text-align: center;
  margin: var(--space-xl) 0;
}
.cal-list--past {
  margin-top: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--border);
}

/* ============================================================
   MEMBER DIRECTORY — members.html
   ============================================================ */

.member-stats {
  display: inline-flex; align-items: baseline;
  margin-top: var(--space-md);
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.member-stats__num {
  font-weight: 700; color: var(--text);
  font-size: 1.1rem;
}
.member-stats__label { margin-left: 4px; }

.member-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}
.member-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color var(--transition);
  position: relative;
}
.member-card:hover { border-color: var(--border-hover); }
.member-card__num {
  position: absolute; top: 12px; right: 14px;
  font-size: 0.7rem; color: var(--text-muted);
  font-family: ui-monospace, monospace;
}
.member-card__name {
  font-size: 1.05rem; font-weight: 600; color: var(--text);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.005em;
}
.member-card__joined {
  font-size: 0.78rem; color: var(--text-dim);
  margin-bottom: var(--space-sm);
}
.member-card__invited {
  font-size: 0.78rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
}
.member-card__inviter { color: var(--accent-hover); font-weight: 500; }
.member-card__invited--founder { color: var(--bg-accent); font-style: italic; font-weight: 500; }

/* ============================================================
   CANCEL BANNER + CALENDAR FORMS — calendar.html
   ============================================================ */
.cancel-banner {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--border);
}
.cancel-banner--ok {
  background: rgba(143, 168, 133, 0.1);
  border-color: rgba(143, 168, 133, 0.3);
  color: var(--accent-hover);
}
.cancel-banner--error {
  background: rgba(196, 101, 74, 0.1);
  border-color: rgba(196, 101, 74, 0.3);
  color: var(--bg-accent);
}
/* Calendar modals: name + email side-by-side row */
#modal-teach .form-row,
#modal-mc .form-row {
  display: flex; gap: var(--space-md);
}
#modal-teach .form-row .form-group,
#modal-mc .form-row .form-group { flex: 1; }
@media (max-width: 600px) {
  #modal-teach .form-row,
  #modal-mc .form-row { flex-direction: column; gap: 0; }
}

/* DROP-OUT BAR — top-of-page, prominent, no scrolling required */
.dropout-bar {
  background: rgba(196, 101, 74, 0.05);
  border: 1px solid rgba(196, 101, 74, 0.18);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.dropout-bar__head {
  margin-bottom: var(--space-sm);
}
.dropout-bar__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.dropout-bar__hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 4px 0 0;
  line-height: 1.5;
}
.dropout-bar__form {
  display: flex; gap: var(--space-sm); align-items: stretch;
  flex-wrap: wrap;
}
.dropout-bar__form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  font-size: 0.9rem;
  font-family: inherit;
}

/* "need to drop out? →" — small discovery link on each filled card.
   Subtle so it doesn't compete with the primary claim CTAs. */
.sunday-card__drop-link {
  flex-basis: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: right;
  cursor: pointer;
  padding: 4px 0 0;
  margin-top: var(--space-xs);
  transition: color var(--transition);
  font-family: inherit;
}
.sunday-card__drop-link:hover {
  color: var(--bg-accent);
  text-decoration: underline;
}

/* "you" tag on cards where a localStorage entry says this is yours */
.slot__you {
  font-size: 0.75rem;
  color: var(--accent-hover);
  font-weight: 600;
  font-style: normal;
}
.slot--mine {
  box-shadow: inset 0 0 0 1px rgba(143, 168, 133, 0.4);
}

/* "find my sundays" results list inside the cancel-by-email panel */
.lookup-results {
  margin-top: var(--space-md);
  display: flex; flex-direction: column; gap: 8px;
}
.lookup-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.lookup-row__label {
  flex: 1; color: var(--text);
}

/* Cancel-code box on the success modal — shows the token in-page so
   the user has it without depending on email delivery. */
.cancel-code-box {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(196, 101, 74, 0.06);
  border: 1px dashed rgba(196, 101, 74, 0.35);
  border-radius: var(--radius-md);
  text-align: left;
}
.cancel-code-box__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg-accent);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.cancel-code-box__token {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--text);
  background: var(--bg-elevated);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  user-select: all;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}
.cancel-code-box__hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: var(--space-xs) 0 0;
  line-height: 1.5;
}

/* "Lost your cancel link?" — collapsible helper at bottom of calendar */
.resend-links {
  margin-top: var(--space-2xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.resend-links__summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dim);
  list-style: none;
  user-select: none;
  padding: 4px 0;
}
.resend-links__summary::-webkit-details-marker { display: none; }
.resend-links__summary::before {
  content: '＋';
  display: inline-block;
  width: 1em;
  margin-right: 6px;
  color: var(--text-muted);
}
.resend-links[open] .resend-links__summary::before { content: '−'; }
.resend-links__body {
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 1px solid var(--border);
}
.resend-links__hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}
.resend-links form {
  display: flex; gap: var(--space-sm); align-items: stretch;
  flex-wrap: wrap;
}
.resend-links input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  font-size: 0.9rem;
  font-family: inherit;
}
.resend-links__msg {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
}
.resend-links__msg--ok {
  background: rgba(143, 168, 133, 0.1);
  color: var(--accent-hover);
  border: 1px solid rgba(143, 168, 133, 0.25);
}
.resend-links__msg--error {
  background: rgba(196, 101, 74, 0.1);
  color: var(--bg-accent);
  border: 1px solid rgba(196, 101, 74, 0.25);
}

/* ============================================================
   EDIT-CREATION MODAL — ideas.html
   ============================================================ */
.modal--wide {
  max-width: 640px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.modal--wide .form-group { margin-bottom: var(--space-md); }
.modal--wide .form-row { display: flex; gap: var(--space-md); }
.modal--wide .form-row .form-group { flex: 1; }
.modal--wide .modal-actions {
  justify-content: flex-start;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}
@media (max-width: 600px) {
  .modal--wide .form-row { flex-direction: column; gap: 0; }
}

/* ============================================================
   PROJECTS — signed-in "submit yours" banner
   ============================================================ */
.member-cta-banner {
  background: rgba(143, 168, 133, 0.1);
  border: 1px solid rgba(143, 168, 133, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); flex-wrap: wrap;
  font-size: 0.9rem;
}
.member-cta-banner strong { color: var(--text); font-weight: 600; }
.member-cta-banner a {
  color: var(--accent-hover); font-weight: 500; white-space: nowrap;
}
.member-cta-banner a:hover { color: var(--accent); }

/* ============================================================
   DESIGN-FIRM POLISH — Scroll Reveals, Parallax, Micro-interactions
   ============================================================ */

/* --- Scroll Reveal System --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children within sections */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* --- Hero Entrance Sequence --- */
.hero__headline {
  animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero__subtitle {
  animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero__meta {
  animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* --- Section Art Parallax Drift --- */
.section-art {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- Button Premium Micro-interactions --- */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn--primary:hover::before {
  transform: translateX(100%);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

/* Ghost button ink-spread hover */
.btn--ghost {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: -1;
  border-radius: inherit;
}

.btn--ghost:hover::before {
  transform: scaleX(1);
}

.btn--ghost:hover {
  background: transparent;
}

/* --- Schedule Number Accent --- */
.schedule__time {
  position: relative;
}

.schedule__time::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--bg-accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.4s var(--ease);
}

.schedule__item:hover .schedule__time::after {
  opacity: 1;
  transform: scaleX(1);
}

/* --- Smooth Loading for Section Art --- */
.section-art {
  animation: artFadeIn 1.5s ease-out 0.3s both;
}

@keyframes artFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Location Card Hover --- */
.location-card {
  transition: all 0.4s var(--ease);
}

.location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* --- Featured Event Card Glow --- */
.featured-event__card {
  position: relative;
  overflow: hidden;
}

.featured-event__card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(43, 154, 102, 0.08) 0%,
    transparent 70%
  );
  animation: subtleGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes subtleGlow {
  from { transform: translate(-10%, -10%); }
  to { transform: translate(10%, 10%); }
}

/* --- New Here Card Enhancement --- */
.new-here {
  transition: all 0.4s var(--ease);
}

.new-here:hover {
  transform: rotate(-0.5deg) translateY(-3px);
  box-shadow: 4px 6px 0 rgba(10, 10, 10, 0.12),
              0 16px 40px rgba(10, 10, 10, 0.14);
}

/* --- Playlist Section Visual Break --- */
.playlist-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(214, 51, 108, 0.2) 50%,
    transparent
  );
}
