/**
 * Pitch In page styles. Scoped to /pitch-in/. Enqueued conditionally from functions.php.
 *
 * Source: extracted from .support-mockups-v11-2.html. Site header/footer/nav-dropdown
 * styles removed since theme parts handle those. Locally-scoped CSS variables prefixed
 * --pi-* to avoid collision with the theme's tokens.
 */

:root {
  --pi-ink: #1f1d18;
  --pi-paper: #f4eedb;
  --pi-accent: #B7883E;
  --pi-accent-soft: rgba(183,136,62,0.16);
  --pi-muted: #7a7268;
  --pi-hairline: #2a2a27;
  --pi-bg: #000000;
  --pi-bg-2: #0f0f0e;
  --pi-bg-3: #16140f;
  --pi-contrast: #F2EDE7;
  --pi-ok: #5fa172;
  --pi-warn: #d6b56b;
  --pi-alert: #d36e74;
}

.pitch-in-page { background: var(--pi-bg); color: var(--pi-contrast); }
.pitch-in-page * { box-sizing: border-box; }
.pitch-in-page a { color: inherit; text-decoration: none; }

/* HERO */
.pitch-in-page .hero {
  padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 40px) clamp(24px, 4vw, 40px);
  display: grid;
  gap: 12px;
  max-width: none;
  margin: 0;
  background:
    radial-gradient(120% 70% at 80% -5%, rgba(183,136,62,0.10), transparent 60%),
    radial-gradient(80% 60% at -10% 90%, rgba(183,136,62,0.06), transparent 60%),
    var(--pi-bg);
}
.pitch-in-page .hero .eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pi-accent);
}
.pitch-in-page .hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 4px 0 6px;
  max-width: none;
  white-space: nowrap;
  color: var(--pi-contrast);
}
@media (max-width: 980px) { .pitch-in-page .hero h1 { white-space: normal; } }
.pitch-in-page .hero h1 em { font-style: italic; color: var(--pi-accent); font-weight: 500; }
.pitch-in-page .hero .lede {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.45;
  color: #d4cdb8;
  max-width: none;
  margin: 0;
}
.pitch-in-page .hero .lede em { font-style: italic; color: var(--pi-accent); }
.pitch-in-page .hero .scope {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pi-muted);
}
.pitch-in-page .hero .scope b { color: var(--pi-contrast); font-weight: 500; }
.pitch-in-page .hero .scope .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pi-accent); }

/* ROW */
.pitch-in-page .row {
  padding: 18px clamp(16px, 4vw, 40px) 28px;
  max-width: none;
  margin: 0;
  background: var(--pi-bg);
}
.pitch-in-page .row + .row { border-top: 1px solid var(--pi-hairline); }
.pitch-in-page .row__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.pitch-in-page .row__title { display: grid; gap: 4px; max-width: none; flex: 1 1 auto; }
.pitch-in-page .row__title h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--pi-contrast);
}
.pitch-in-page .row__title h2 em { color: var(--pi-accent); font-style: italic; }
.pitch-in-page .row__title p { color: #c9c2ad; margin: 4px 0 0; font-size: 14px; max-width: none; }
.pitch-in-page .row__nav { display: flex; gap: 6px; }
.pitch-in-page .row__nav button {
  appearance: none;
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--pi-hairline);
  color: var(--pi-contrast);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font: 18px 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.pitch-in-page .row__nav button:hover {
  color: var(--pi-accent);
  border-color: rgba(183,136,62,0.45);
  background: rgba(183,136,62,0.08);
}
.pitch-in-page .row__nav button[disabled] { opacity: 0.32; cursor: not-allowed; }

.pitch-in-page .row__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  padding: 4px 4px 14px;
  margin: 0 -4px;
  scrollbar-color: rgba(183,136,62,0.5) transparent;
  scrollbar-width: thin;
}
.pitch-in-page .row__rail::-webkit-scrollbar { height: 8px; }
.pitch-in-page .row__rail::-webkit-scrollbar-track { background: transparent; }
.pitch-in-page .row__rail::-webkit-scrollbar-thumb { background: rgba(183,136,62,0.35); border-radius: 999px; }
.pitch-in-page .row__rail > * { scroll-snap-align: start; align-self: stretch; height: 100%; }
@media (min-width: 900px) {
  .pitch-in-page .row__rail { grid-auto-columns: minmax(300px, 340px); }
}

/* MEDIA SLOT */
.pitch-in-page .card__media,
.pitch-in-page .item__media,
.pitch-in-page .project__media {
  display: block;
  position: relative;
  margin: -16px -16px 12px;
  aspect-ratio: 16 / 9;
  background: var(--pi-bg-2);
  overflow: hidden;
  border-bottom: 1px solid var(--pi-hairline);
  z-index: 1;
}
.pitch-in-page .item__media { margin: -14px -16px 10px; }
.pitch-in-page .card__media img,
.pitch-in-page .item__media img,
.pitch-in-page .project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms ease;
}
.pitch-in-page .card:hover .card__media img,
.pitch-in-page .item:hover .item__media img,
.pitch-in-page .project:hover .project__media img {
  transform: scale(1.04);
}
.pitch-in-page .card__media::after,
.pitch-in-page .item__media::after,
.pitch-in-page .project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,19,15,0) 55%, rgba(20,19,15,0.55) 100%);
  pointer-events: none;
}
.pitch-in-page .item__media--product { background: #f6f4ee; }
.pitch-in-page .item__media--product img { object-fit: cover; padding: 0; }
.pitch-in-page .item__media--product::after { display: none; }

/* CARD */
.pitch-in-page .card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--pi-bg-3), var(--pi-bg-2));
  border: 1px solid var(--pi-hairline);
  border-radius: 14px;
  padding: 16px 16px 14px;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  min-height: 320px;
}
.pitch-in-page .card:hover {
  border-color: rgba(183,136,62,0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.pitch-in-page .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 0%, rgba(183,136,62,0.08), transparent 60%);
  pointer-events: none;
}
.pitch-in-page .card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pitch-in-page .card__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pi-muted);
}
.pitch-in-page .card__eyebrow b { color: var(--pi-accent); font-weight: 500; }
.pitch-in-page .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--pi-hairline);
  background: rgba(0,0,0,0.2);
  color: var(--pi-contrast);
}
.pitch-in-page .status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pi-warn);
  box-shadow: 0 0 0 3px rgba(214,181,107,0.18);
}
.pitch-in-page .status.is-covered { color: #c9e7d2; }
.pitch-in-page .status.is-covered::before { background: var(--pi-ok); box-shadow: 0 0 0 3px rgba(95,161,114,0.18); }
.pitch-in-page .status.is-open { color: #f1d8a1; }
.pitch-in-page .status.is-active { color: #c9e7d2; }
.pitch-in-page .status.is-active::before { background: var(--pi-ok); box-shadow: 0 0 0 3px rgba(95,161,114,0.18); }

.pitch-in-page .card__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--pi-contrast);
}
.pitch-in-page .card__desc { margin: 0 0 12px; color: #c9c2ad; font-size: 13.5px; line-height: 1.5; }
.pitch-in-page .summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(183,136,62,0.32);
  background: rgba(183,136,62,0.06);
  border-radius: 10px;
  margin-bottom: 12px;
}
.pitch-in-page .summary__big { font-family: 'Fraunces', serif; font-size: 28px; line-height: 1; color: var(--pi-accent); align-self: center; }
.pitch-in-page .summary__meta { display: grid; gap: 2px; align-content: center; }
.pitch-in-page .summary__meta .l1 { font-size: 12.5px; color: var(--pi-contrast); }
.pitch-in-page .summary__meta .l2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pi-muted);
}

.pitch-in-page .card__actions { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pitch-in-page .btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: 500 13px 'Inter', sans-serif;
  letter-spacing: 0.01em;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--pi-accent);
  color: #1a120a;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.pitch-in-page .btn:hover { background: #d3a04d; box-shadow: 0 4px 14px rgba(183,136,62,0.25); }
.pitch-in-page .btn.ghost {
  background: transparent;
  color: #d8d2bd;
  border: 1px solid var(--pi-hairline);
}
.pitch-in-page .btn.ghost:hover { color: var(--pi-contrast); border-color: rgba(183,136,62,0.45); box-shadow: none; }
.pitch-in-page .btn.sm { padding: 8px 11px; font-size: 12.5px; border-radius: 8px; }
.pitch-in-page .btn.lg { padding: 12px 18px; font-size: 14px; }

.pitch-in-page .card.is-committed {
  border-color: rgba(95,161,114,0.45);
  background: linear-gradient(180deg, rgba(95,161,114,0.10), rgba(95,161,114,0.04));
}
.pitch-in-page .card.is-committed .status {
  background: rgba(95,161,114,0.14);
  border-color: rgba(95,161,114,0.4);
  color: #c9e7d2;
}
.pitch-in-page .card.is-committed .status::before { background: var(--pi-ok); box-shadow: 0 0 0 3px rgba(95,161,114,0.22); }
.pitch-in-page .commit-confirm {
  display: none;
  border-top: 1px dashed rgba(95,161,114,0.4);
  margin-top: 10px;
  padding-top: 10px;
  font-size: 13.5px;
  color: #cfe5d5;
}
.pitch-in-page .commit-confirm strong { color: #e3f0e7; }
.pitch-in-page .card.is-committed .commit-confirm { display: block; }
.pitch-in-page .card.is-committed .card__actions .pi-btn:not(.undo) { display: none; }
.pitch-in-page .undo { display: none; }
.pitch-in-page .card.is-committed .undo { display: inline-flex; align-items: center; gap: 6px; }
.pitch-in-page .card.is-committed .summary { opacity: 0.55; }

/* ITEM (one-off gear) */
.pitch-in-page .item {
  background: var(--pi-bg-2);
  border: 1px solid var(--pi-hairline);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  min-height: 230px;
}
.pitch-in-page .item:hover {
  border-color: rgba(183,136,62,0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.26);
}
.pitch-in-page .item__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pitch-in-page .item__title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 19px; margin: 0; color: var(--pi-contrast); }
.pitch-in-page .item__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pi-muted);
  margin-top: 2px;
}
.pitch-in-page .item__count { font-family: 'Fraunces', serif; font-size: 24px; color: var(--pi-accent); white-space: nowrap; line-height: 1; }
.pitch-in-page .item__count small {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pi-muted);
  margin-left: 4px;
}
.pitch-in-page .bar { position: relative; height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.pitch-in-page .bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--pi-accent); border-radius: 999px; }
.pitch-in-page .item__nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--pi-muted); }
.pitch-in-page .item__nums b { color: var(--pi-contrast); font-weight: 500; }
.pitch-in-page .item__actions { display: flex; gap: 6px; flex-wrap: wrap; }
/* Pin the bar-and-everything-below group to the bottom of each item card so
   the bar, "X of Y covered" line, and action buttons line up across the row. */
.pitch-in-page .item .bar { margin-top: auto; }

/* PROJECT (capital) */
.pitch-in-page .project {
  position: relative;
  background:
    radial-gradient(70% 40% at 100% 0%, rgba(183,136,62,0.10), transparent 60%),
    linear-gradient(180deg, var(--pi-bg-3), var(--pi-bg-2));
  border: 1px solid var(--pi-hairline);
  border-radius: 14px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  min-height: 320px;
}
.pitch-in-page .project:hover {
  border-color: rgba(183,136,62,0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.pitch-in-page .project__top { display: flex; justify-content: space-between; gap: 10px; }
.pitch-in-page .project__type {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pi-accent);
}
.pitch-in-page .project__scale {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pi-muted);
}
.pitch-in-page .project h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; line-height: 1.2; margin: 0; color: var(--pi-contrast); }
.pitch-in-page .project p { margin: 0; font-size: 13.5px; color: #c9c2ad; line-height: 1.5; }
/* Bottom group on capital cards: % funded + bar + actions sit pinned to the
   bottom and align across cards regardless of how long the description copy is. */
.pitch-in-page .project__nums { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: auto; }
.pitch-in-page .project__pct { font-family: 'Fraunces', serif; font-size: 28px; color: var(--pi-accent); line-height: 1; }
.pitch-in-page .project__pct small {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pi-muted);
  display: block;
  margin-top: 2px;
}
.pitch-in-page .project__nums .label { font-size: 12.5px; color: var(--pi-muted); text-align: right; }
.pitch-in-page .project__nums .label b { color: var(--pi-contrast); font-weight: 500; }
.pitch-in-page .project__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pitch-in-page .project.necessary { border-color: rgba(183,136,62,0.55); }
/* "necessary" marker on capital cards: editorial italic emphasis on its own
   line, sitting between project__top (type + scale) and the h3 title. Same
   vertical position on every necessary card — no pill, no wrapping. */
.pitch-in-page .nec-flag {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: lowercase;
  color: #d6a85a;
  margin: -2px 0 -4px;
}
.pitch-in-page .nec-flag::before {
  content: '· ';
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--pi-muted);
}

/* COMMIT MODAL */
.pitch-in-page .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,6,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.pitch-in-page .modal-overlay.is-open { display: flex; animation: pi-overlayIn 200ms ease both; }
@keyframes pi-overlayIn { from { opacity: 0; } to { opacity: 1; } }
.pitch-in-page .modal {
  background: linear-gradient(180deg, var(--pi-bg-3), var(--pi-bg-2));
  border: 1px solid rgba(183,136,62,0.45);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 24px;
  position: relative;
  animation: pi-modalIn 240ms ease both;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
@keyframes pi-modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pitch-in-page .modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--pi-hairline);
  background: rgba(0,0,0,0.2);
  color: var(--pi-contrast);
  font: 16px 'Inter', sans-serif;
  cursor: pointer;
}
.pitch-in-page .modal__close:hover { color: var(--pi-accent); border-color: rgba(183,136,62,0.45); }
.pitch-in-page .modal__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pi-accent);
  margin-bottom: 4px;
}
.pitch-in-page .modal__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--pi-contrast);
}
.pitch-in-page .modal__sub { color: #d4cdb8; margin: 0 0 18px; font-size: 14.5px; }
.pitch-in-page .modal__sub b { color: var(--pi-contrast); font-weight: 500; }
.pitch-in-page .modal form { display: grid; gap: 12px; }
.pitch-in-page .modal .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .pitch-in-page .modal .row2 { grid-template-columns: 1fr; } }
.pitch-in-page .modal label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pi-muted);
  margin-bottom: -4px;
}
.pitch-in-page .modal input,
.pitch-in-page .modal textarea {
  background: rgba(0,0,0,0.4);
  color: var(--pi-contrast);
  border: 1px solid var(--pi-hairline);
  border-radius: 8px;
  padding: 9px 12px;
  font: 14px 'Inter', sans-serif;
  width: 100%;
}
.pitch-in-page .modal input:focus,
.pitch-in-page .modal textarea:focus { outline: none; border-color: var(--pi-accent); }
.pitch-in-page .modal textarea { min-height: 70px; resize: vertical; }
.pitch-in-page .modal__anon { margin-top: -2px; }
.pitch-in-page .anon-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  /* override the page's global label rule (uppercase + letter-spacing) */
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: inherit !important;
  color: inherit !important;
  font-weight: inherit !important;
}
.pitch-in-page .anon-toggle input[type="checkbox"] {
  margin: 3px 0 0;
  width: 14px;
  height: 14px;
  accent-color: var(--pi-accent);
  flex-shrink: 0;
  cursor: pointer;
}
.pitch-in-page .anon-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}
.pitch-in-page .anon-toggle__title {
  font-weight: 500;
  color: var(--pi-text, var(--pi-contrast));
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: 0;
}
.pitch-in-page .anon-toggle__desc {
  font-size: 12px;
  color: var(--pi-muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}
.pitch-in-page .modal__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.pitch-in-page .modal__note { font-size: 11.5px; color: var(--pi-muted); }
.pitch-in-page .modal__success {
  display: none;
  padding: 14px;
  border: 1px dashed rgba(95,161,114,0.45);
  background: rgba(95,161,114,0.10);
  border-radius: 10px;
  color: #cfe5d5;
  margin-top: 6px;
}
.pitch-in-page .mode-pick { display: grid; gap: 8px; margin-bottom: 4px; }
.pitch-in-page .mode-pick[hidden] { display: none; }
.pitch-in-page .mode-pick__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pi-muted);
}
.pitch-in-page .mode-pick__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { .pitch-in-page .mode-pick__buttons { grid-template-columns: 1fr; } }
.pitch-in-page .mode-opt {
  appearance: none;
  text-align: left;
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--pi-hairline);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--pi-contrast);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  display: grid;
  gap: 4px;
}
.pitch-in-page .mode-opt:hover { border-color: rgba(183,136,62,0.45); }
.pitch-in-page .mode-opt__title {
  font: 500 13.5px 'Inter', sans-serif;
  color: var(--pi-contrast);
}
.pitch-in-page .mode-opt__desc {
  font-size: 11.5px;
  color: var(--pi-muted);
  line-height: 1.4;
}
.pitch-in-page .mode-opt.is-active {
  border-color: var(--pi-accent);
  background: rgba(183,136,62,0.14);
}
.pitch-in-page .mode-opt.is-active .mode-opt__title { color: var(--pi-accent); }
.pitch-in-page .modal.is-sent form { display: none; }
.pitch-in-page .modal.is-sent .modal__success { display: block; }
.pitch-in-page .modal.is-sent .modal__title { color: var(--pi-ok); }

/* ---- Mode-aware modal eyebrow (capital cards: cover-full vs cover-half) ----
   Editorial differentiation: same uppercase letter-spaced eyebrow as the rest
   of the page, with a single color shift. The eyebrow TEXT itself ("Cover the
   full cost" / "Cover half the cost") does the heavy lifting; color reinforces.
   No chip, no border, no side stripe (banned per DESIGN.md). */
.pitch-in-page .modal.is-mode-cover-half .modal__eyebrow { color: var(--pi-ok, #4fb872); }

@media (max-width: 560px) {
  .pitch-in-page .row__head { flex-direction: column; align-items: flex-start; }
  .pitch-in-page .row__nav { align-self: flex-end; }
  .pitch-in-page .hero h1 { font-size: 36px; }
}

/* ============================================================
   LIGHT MODE
   The theme toggles html[data-theme="light"]. Flip the palette
   tokens and override the dark literal colors that live outside
   the --pi-* variables (lede text, descriptions, ghost buttons).
   ============================================================ */
html[data-theme="light"] {
  --pi-bg: #F2EDE7;
  --pi-bg-2: #ffffff;
  --pi-bg-3: #f6f1e7;
  --pi-hairline: #d9cfbb;
  --pi-contrast: #1f1d18;
  --pi-muted: #857c6f;
}

html[data-theme="light"] .pitch-in-page { background: var(--pi-bg); color: var(--pi-contrast); }

/* Hero + body copy hardcoded grays flip to dark ink */
html[data-theme="light"] .pitch-in-page .hero .lede,
html[data-theme="light"] .pitch-in-page .row__title p,
html[data-theme="light"] .pitch-in-page .card__desc,
html[data-theme="light"] .pitch-in-page .project p,
html[data-theme="light"] .pitch-in-page .modal__sub { color: #3a342c; }

html[data-theme="light"] .pitch-in-page .summary__meta .l1 { color: var(--pi-contrast); }

/* Card / project gradient backgrounds — make them readable on paper */
html[data-theme="light"] .pitch-in-page .card {
  background: linear-gradient(180deg, #ffffff, #f6f1e7);
}
html[data-theme="light"] .pitch-in-page .project {
  background:
    radial-gradient(70% 40% at 100% 0%, rgba(183,136,62,0.14), transparent 60%),
    linear-gradient(180deg, #ffffff, #f6f1e7);
}
html[data-theme="light"] .pitch-in-page .card::before {
  background: radial-gradient(60% 50% at 100% 0%, rgba(183,136,62,0.12), transparent 60%);
}

/* Status pills — switch the dark backdrop for a paper one */
html[data-theme="light"] .pitch-in-page .status { background: rgba(0,0,0,0.04); }
html[data-theme="light"] .pitch-in-page .status.is-open { color: #8a6018; }
html[data-theme="light"] .pitch-in-page .status.is-covered { color: #2f6a45; }
html[data-theme="light"] .pitch-in-page .status.is-active { color: #2f6a45; }

/* Row scroll arrow buttons (used dark rgba bg) */
html[data-theme="light"] .pitch-in-page .row__nav button { background: rgba(0,0,0,0.04); }
html[data-theme="light"] .pitch-in-page .row__nav button:hover { background: rgba(183,136,62,0.10); }

/* Bars need visible track on paper */
html[data-theme="light"] .pitch-in-page .bar { background: rgba(31,29,24,0.10); }

/* Ghost button + form fields */
html[data-theme="light"] .pitch-in-page .btn.ghost { color: #3a342c; }
html[data-theme="light"] .pitch-in-page .btn.ghost:hover { color: var(--pi-contrast); }
html[data-theme="light"] .pitch-in-page .modal input,
html[data-theme="light"] .pitch-in-page .modal textarea {
  background: #ffffff;
  color: var(--pi-contrast);
}
html[data-theme="light"] .pitch-in-page .modal__close { background: rgba(0,0,0,0.04); color: var(--pi-contrast); }

/* Modal mode-pick buttons */
html[data-theme="light"] .pitch-in-page .mode-opt { background: rgba(0,0,0,0.03); color: var(--pi-contrast); }
html[data-theme="light"] .pitch-in-page .mode-opt__title { color: var(--pi-contrast); }

/* Committed card success state still reads on paper */
html[data-theme="light"] .pitch-in-page .card.is-committed {
  background: linear-gradient(180deg, rgba(95,161,114,0.14), rgba(95,161,114,0.04));
}
html[data-theme="light"] .pitch-in-page .commit-confirm { color: #2f6a45; }
html[data-theme="light"] .pitch-in-page .commit-confirm strong { color: #1d4a2e; }

/* Modal success block + overlay tint */
html[data-theme="light"] .pitch-in-page .modal-overlay { background: rgba(40,36,28,0.55); }
html[data-theme="light"] .pitch-in-page .modal { background: linear-gradient(180deg, #ffffff, #f6f1e7); }
html[data-theme="light"] .pitch-in-page .modal__success { color: #2f6a45; }

/* =============================================================================
   NO-PHOTOS MODE
   Pitch In ships without imagery until photo selection is finalised. Strip
   every __media block and let typography carry the cards. Remove the
   `no-photos` class from `<div class="pitch-in-page">` to flip imagery back on.
   ============================================================================= */
.pitch-in-page.no-photos .card__media,
.pitch-in-page.no-photos .item__media,
.pitch-in-page.no-photos .project__media {
  display: none;
}

/* Title becomes the visual anchor of each card */
.pitch-in-page.no-photos .card__title,
.pitch-in-page.no-photos .item__title,
.pitch-in-page.no-photos .project__title {
  margin-top: 0;
}

/* Restore tidy top padding now that the media bleed is gone */
.pitch-in-page.no-photos .card,
.pitch-in-page.no-photos .item,
.pitch-in-page.no-photos .project {
  padding-top: 20px;
}

/* Subtle accent rule above each title to give cards a vertical anchor */
.pitch-in-page.no-photos .card::before,
.pitch-in-page.no-photos .item::before,
.pitch-in-page.no-photos .project::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--pi-accent);
  margin-bottom: 14px;
  opacity: 0.85;
}

