/* ============================================================
   FOUNDERY · PROJECT DETAIL STYLES
   The per-project view, modals, buttons, generic components.
   ============================================================ */

/* ============================================================
   PROJECT HERO
   ============================================================ */
.proj-hero {
  position: relative;
  padding: 1rem 0 2.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.4rem;
}
.proj-hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex; align-items: center; gap: 0.32rem;
  padding: 0.22rem 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--t-mute);
  border-radius: 3px;
}
.badge.accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.badge.green { color: var(--good); border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.08); }
.badge.yellow { color: var(--warn); border-color: rgba(245, 176, 66, 0.3); background: rgba(245, 176, 66, 0.08); }
.badge.red { color: var(--bad); border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); }
.badge .dot { width: 0.36rem; height: 0.36rem; border-radius: 50%; background: currentColor; }

.proj-hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.7rem;
  color: var(--t);
}
.proj-hero-title em {
  font-style: italic;
  color: var(--accent);
}
.proj-hero-vision {
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--t-soft);
  max-width: 56rem;
  margin: 0 0 1.4rem;
}
.proj-hero-vision b { color: var(--t); font-weight: 500; }

.proj-hero-cta {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* stats row inside hero */
.proj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 1.4rem;
}
@media (max-width: 720px) { .proj-stats { grid-template-columns: repeat(2, 1fr); } }
.proj-stat {
  padding: 0.95rem 1rem;
  background: var(--bg-1);
}
.proj-stat-label {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-mute);
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.proj-stat-value {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--t);
  line-height: 1;
}
.proj-stat-value.accent { color: var(--accent); }

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.proj-section {
  padding: 1.4rem 0 0.4rem;
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.proj-section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.proj-section-eyebrow::before {
  content: "//";
  color: var(--t-faint);
}
.proj-section h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--t);
  margin: 0 0 0.9rem;
}
.proj-section h3 em { font-style: italic; color: var(--accent); }
.proj-section p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--t-soft);
  margin: 0 0 1rem;
}
.proj-section p b { color: var(--t); font-weight: 500; }
.proj-section p:last-child { margin-bottom: 0; }

.section-divider {
  border: 0;
  border-top: 1px dashed var(--line-2);
  margin: 2rem 0;
}

/* ============================================================
   TYPE / TAGS chips
   ============================================================ */
.chip-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0.6rem 0;
}
.chip {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.10em;
  padding: 0.3rem 0.7rem;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--t-soft);
  font-weight: 500;
}
.chip.accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ============================================================
   USP / FEATURE LIST
   ============================================================ */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.7rem;
  margin: 0.8rem 0;
}
.usp-item {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.2rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  color: var(--t-soft);
  line-height: 1.45;
  transition: border-color 0.22s var(--e);
}
.usp-item:hover { border-color: var(--accent-line); }
.usp-item::before {
  content: "";
  position: absolute;
  left: 0.95rem; top: 1.1rem;
  width: 0.42rem; height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================================
   ASK BOX
   ============================================================ */
.ask-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.8rem 0;
}
@media (max-width: 720px) { .ask-grid { grid-template-columns: 1fr; } }
.ask-card {
  padding: 1.2rem 1.3rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.ask-card.is-finance {
  border-color: var(--accent-line);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-1) 60%);
}
.ask-card-label {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-mute);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.ask-card.is-finance .ask-card-label { color: var(--accent); }
.ask-card-value {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.012em;
  color: var(--t);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.ask-card.is-finance .ask-card-value { color: var(--accent); font-style: italic; }
.ask-card-text {
  font-size: 0.84rem;
  color: var(--t-soft);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-row {
  display: flex; gap: 0.7rem; flex-wrap: wrap;
  margin: 0.8rem 0;
}
.team-card {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.team-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-lo));
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--t-on-accent);
  font-weight: 500;
  flex-shrink: 0;
}
.team-card-name {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--t);
  line-height: 1;
}
.team-card-role {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.10em;
  color: var(--t-mute);
  text-transform: uppercase;
  margin-top: 0.28rem;
}

/* ============================================================
   STREAMS / NUMBERED LIST
   ============================================================ */
.streams-list {
  display: flex; flex-direction: column;
  gap: 0.5rem;
  margin: 0.8rem 0;
  counter-reset: streams;
}
.streams-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  color: var(--t-soft);
  line-height: 1.5;
  counter-increment: streams;
}
.streams-list li::before {
  content: counter(streams, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  align-self: start;
  padding-top: 0.18rem;
}

/* ============================================================
   MARKET TAM/SAM/SOM
   ============================================================ */
.market-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0.8rem 0;
}
@media (max-width: 720px) { .market-row { grid-template-columns: 1fr; } }
.market-cell {
  padding: 1.1rem 1.1rem;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.market-cell::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent-soft) 0%, transparent 50%);
  pointer-events: none;
}
.market-cell .lbl {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}
.market-cell .val {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--t);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.market-cell .meaning {
  font-size: 0.74rem;
  color: var(--t-mute);
  margin-top: 0.5rem;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

/* ============================================================
   ROADMAP TIMELINE
   ============================================================ */
.roadmap {
  position: relative;
  padding-left: 1.4rem;
  margin: 1rem 0;
  border-left: 2px solid var(--line-2);
}
.roadmap-item {
  position: relative;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}
.roadmap-item:last-child { margin-bottom: 0; padding-bottom: 0; }
.roadmap-item::before {
  content: "";
  position: absolute;
  left: -1.6rem; top: 0.42rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
}
.roadmap-item.in-progress::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent-glow);
}
.roadmap-item.planned::before {
  background: transparent;
  border-color: var(--accent-line);
}
.roadmap-item.future::before {
  background: var(--bg);
  border-color: var(--line);
  border-style: dashed;
}
.roadmap-q {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.roadmap-m {
  font-size: 0.92rem;
  color: var(--t-soft);
  line-height: 1.5;
}
.roadmap-item.in-progress .roadmap-m { color: var(--t); }

/* ============================================================
   SWOT GRID
   ============================================================ */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.8rem 0;
}
@media (max-width: 720px) { .swot-grid { grid-template-columns: 1fr; } }
.swot-cell {
  padding: 1rem 1.2rem;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-left-width: 3px;
  border-radius: var(--r-md);
}
.swot-cell.s { border-left-color: var(--good); }
.swot-cell.w { border-left-color: var(--warn); }
.swot-cell.o { border-left-color: var(--accent); }
.swot-cell.t { border-left-color: var(--bad); }
.swot-cell h4 {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.6rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.swot-cell h4 .full { color: var(--t-mute); font-weight: 400; }
.swot-cell.s h4 { color: var(--good); }
.swot-cell.w h4 { color: var(--warn); }
.swot-cell.o h4 { color: var(--accent); }
.swot-cell.t h4 { color: var(--bad); }
.swot-cell ul { display: flex; flex-direction: column; gap: 0.3rem; }
.swot-cell ul li {
  font-size: 0.84rem;
  color: var(--t-soft);
  line-height: 1.45;
  padding-left: 0.9rem;
  position: relative;
}
.swot-cell ul li::before {
  content: "+";
  position: absolute; left: 0; top: 0.05em;
  color: currentColor;
  font-weight: 700;
  font-family: var(--f-mono);
  font-size: 0.8em;
  opacity: 0.5;
}
.swot-cell.w ul li::before { content: "−"; }
.swot-cell.o ul li::before { content: "↑"; }
.swot-cell.t ul li::before { content: "△"; }

/* ============================================================
   RISKS LIST
   ============================================================ */
.risks-list {
  display: flex; flex-direction: column; gap: 0.55rem;
  margin: 0.8rem 0;
}
.risks-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.4rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--bad);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  color: var(--t-soft);
  line-height: 1.5;
}
.risks-list li::before {
  content: "△";
  position: absolute;
  left: 1rem; top: 0.85rem;
  color: var(--bad);
  font-weight: 700;
}

/* ============================================================
   BACKER BENEFITS
   ============================================================ */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.benefits-list li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.2rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  color: var(--t);
  line-height: 1.45;
}
.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0.95rem; top: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.8rem 0; }
.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.22s var(--e);
}
.faq-item.is-open { border-color: var(--accent-line); }
.faq-q {
  width: 100%;
  padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--t);
  text-align: left;
}
.faq-q-icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--t-mute);
  flex-shrink: 0;
  transition: all 0.22s var(--e);
}
.faq-item.is-open .faq-q-icon {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  transform: rotate(45deg);
}
.faq-q-icon svg { width: 12px; height: 12px; }
.faq-a {
  display: none;
  padding: 0 1.2rem 1.2rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--t-soft);
}
.faq-item.is-open .faq-a { display: block; animation: fadein 0.25s var(--e); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--line-3);
  color: var(--t);
  background: var(--bg-2);
  border-radius: var(--r-sm);
  transition: all 0.22s var(--e);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: var(--bg-3); border-color: var(--t-mute); }
.btn-primary {
  background: var(--accent);
  color: var(--t-on-accent);
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--accent-line), 0 6px 24px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--t-soft);
}
.btn-ghost:hover { color: var(--t); border-color: var(--t-mute); background: var(--bg-2); }
.btn svg { width: 13px; height: 13px; }

/* ============================================================
   VIDEO + DECK section
   ============================================================ */
.video-deck-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1rem;
  margin: 0.8rem 0;
}
@media (max-width: 980px) { .video-deck-grid { grid-template-columns: 1fr 1fr; } .video-frame { grid-column: 1 / -1; } }
@media (max-width: 600px) { .video-deck-grid { grid-template-columns: 1fr; } .video-frame { grid-column: auto; } }
.video-frame {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.video-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}
.video-play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--t-on-accent);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 0 30px var(--accent-glow);
  transition: transform 0.22s var(--e);
  position: relative;
  z-index: 1;
}
.video-play:hover { transform: scale(1.08); }
.video-play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-status {
  position: absolute;
  bottom: 0.7rem; left: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-mute);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
}
.deck-card {
  padding: 1rem 1.2rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.deck-card-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent);
}
.deck-card-icon svg { width: 18px; height: 18px; }
.deck-card-title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--t);
}
.deck-card-meta {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.10em;
  color: var(--t-mute);
}
.deck-card .btn { margin-top: auto; }

/* live-pitch variant — highlighted */
.deck-card-live {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-1) 70%);
  border-color: var(--accent-line);
}
.deck-card-live .deck-card-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.deck-card-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.45rem;
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  border-radius: 99px;
  background: var(--accent);
  color: var(--bg);
  vertical-align: middle;
  position: relative;
  top: -2px;
}

/* PITCH section CTA-row */
.pitch-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.pitch-cta-meta {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.10em;
  color: var(--t-mute);
  line-height: 1.5;
  text-transform: uppercase;
}

/* ============================================================
   EMBEDDED PITCH — iframe inside project tab
   ============================================================ */
body.is-pitch-view .view {
  /* Banner + iframe go full-width; gutters happen inside the iframe via
     CSS-injection so the BG/banner stretch fully. */
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  animation: none !important;
  /* No fixed BG — each pitch's iframe carries its own (yupa/fairlane = cream, rest = dark) */
  background: transparent !important;
}
.pitch-embed {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h, 64px));
  width: 100%;
  background: var(--bg);
}
.pitch-embed-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  flex: 0 0 auto;
}
.pitch-embed-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 0 0 auto;
}
.pitch-embed-name {
  font-family: var(--f-display);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--t);
  line-height: 1.1;
}
.pitch-embed-tag {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  color: var(--t-mute);
  text-transform: uppercase;
  margin-top: 0.18rem;
}
/* Description / FAQ / Updates — banner tabs */
.pitch-embed-tabs {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 1.4rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
  flex: 1 1 auto;
}
.pe-tab {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--t-mute);
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-sm, 5px);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.pe-tab:hover { color: var(--t-soft); background: var(--bg-2); }
.pe-tab.is-active { color: var(--accent); background: var(--accent-soft); }
.pitch-embed-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.pitch-embed-cta .btn {
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem;
  white-space: nowrap;
}
.pitch-embed-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  display: block;
  background: var(--bg);
  min-height: 60vh;
  margin: 0;
}
/* FAQ modal — accordion items */
.modal-faq {
  border: 1px solid var(--line);
  border-radius: var(--r-md, 8px);
  background: var(--bg-1);
  padding: 0.7rem 1rem;
  margin-bottom: 0.55rem;
  transition: background 0.15s, border-color 0.15s;
}
.modal-faq[open] {
  background: var(--bg-2);
  border-color: var(--accent);
}
.modal-faq summary {
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  color: var(--t);
  list-style: none;
  padding-right: 1.4rem;
  position: relative;
}
.modal-faq summary::-webkit-details-marker { display: none; }
.modal-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1;
}
.modal-faq[open] summary::after { content: "−"; }
.modal-faq p {
  font-size: 0.86rem;
  color: var(--t-soft);
  line-height: 1.55;
  margin: 0.55rem 0 0;
}

/* PITCH VIEW MODE — hide foundery global header entirely.
   The pitch-embed-toolbar banner is the ONLY visible navigation. */
body.is-pitch-view .header { display: none !important; }
body.is-pitch-view .main { padding: 0 !important; }
body.is-pitch-view .view {
  /* Banner + iframe go full-width; the inner pitch content gets overview-
     like gutters injected inside the iframe (see app.js injectPitchOverrideStyles). */
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  /* No fixed BG — each pitch's iframe carries its own (yupa/fairlane = cream, rest = dark) */
  background: transparent !important;
}
body.is-pitch-view .pitch-embed { height: 100vh; }
@media (max-width: 980px) {
  .pitch-embed-tabs { margin-left: 0.7rem; padding-left: 0.7rem; }
  .pe-tab { padding: 0.38rem 0.55rem; font-size: 0.62rem; }
}
@media (max-width: 760px) {
  .pitch-embed-toolbar { flex-wrap: wrap; padding: 0.45rem 0.7rem; gap: 0.5rem; }
  .pitch-embed-tabs { order: 3; margin-left: 0; padding-left: 0; border-left: 0; width: 100%; }
  .pitch-embed-cta { order: 2; }
  .pitch-embed-cta .btn { padding: 0.35rem 0.6rem; font-size: 0.66rem; }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
}
.modal-overlay.is-open { display: flex; animation: fadein 0.22s var(--e); }
.modal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.modal-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--t);
}
.modal-close {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--t-mute);
}
.modal-close:hover { color: var(--t); background: var(--bg-3); }
.modal-body {
  padding: 1.4rem 1.3rem;
}
.modal-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--t-soft);
  margin: 0 0 1rem;
}
.modal-foot {
  display: flex; gap: 0.5rem; justify-content: flex-end;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

/* ============================================================
   ENGAGE MODAL — six-paths hub + per-path detail
   ============================================================ */
.engage-modal-intro {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--t-soft);
  margin: 0 0 1.4rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 300;
}
.engage-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
@media (max-width: 720px) {
  .engage-modal-grid { grid-template-columns: 1fr; }
}
.engage-modal-card {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  align-items: start;
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  padding: 0.95rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--t);
  transition: border-color .18s, background .18s, transform .18s;
  cursor: pointer;
}
.engage-modal-card:hover {
  border-color: var(--accent-line);
  background: var(--bg-3);
  transform: translateY(-1px);
}
.engage-modal-card-icon {
  grid-row: span 2;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(167,139,250,.10);
  border: 1px solid rgba(167,139,250,.25);
  border-radius: var(--r-sm);
  color: var(--accent);
}
.engage-modal-card-icon svg { width: 18px; height: 18px; }
.engage-modal-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--t);
}
.engage-modal-card-tag {
  grid-column: 2 / 3;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #34d399;       /* green tagline — visible on the card */
  font-weight: 500;
}
.engage-modal-card-arrow {
  grid-row: span 2;
  align-self: center;
  color: var(--t-mute);
  transition: color .18s, transform .18s;
}
.engage-modal-card:hover .engage-modal-card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* engage detail (popup body for one of the six paths) */
.engage-detail-tag {
  font-size: 0.96rem;
  line-height: 1.55;
  color: #34d399;
  font-weight: 600;
  margin: 0 0 1rem;
  padding: 0 0 0.9rem;
  border-bottom: 1px solid var(--line);
}
.engage-detail-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--t-soft);
  margin: 0 0 1.4rem;
}
.engage-detail-cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.engage-chat-btn {
  background: #f4d35e;          /* yellow chat button */
  color: #0b0e10;
  border: 1px solid #e0bf4b;
  font-weight: 600;
}
.engage-chat-btn:hover {
  background: #f7df7c;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie {
  position: fixed;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1rem 0.7rem 1.3rem;
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  font-size: 0.78rem;
  color: var(--t-soft);
  max-width: calc(100% - 2rem);
}
.cookie.is-hidden { display: none; }
.cookie .accept {
  padding: 0.4rem 0.95rem;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--t-on-accent);
}
.cookie .accept:hover { background: var(--accent-hi); }

/* ============================================================
   PRINT — clean print of the current view
   ============================================================ */
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body { background: #fff; color: #111; overflow: visible; font-size: 10pt; }
  body::before, body::after { display: none; }
  .sidebar, .header, .modal-overlay, .cookie, .mobile-overlay { display: none !important; }
  .app { grid-template-columns: 1fr; }
  .view { padding: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
