/* Geis pitch, supplements on top of Funder Games theme (.pitch-page) */

.pitch-page .hero {
  overflow: visible;
}

.pitch-page .deck-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.15rem;
}

.pitch-page .hero-grid > div:first-child {
  /* Grid/flex min-width:0 avoids horizontal stretch of replaced content in narrow columns */
  min-width: 0;

  /* Let gradient + drop-shadow title paint past the grid cell so glyphs are not clipped */
  overflow: visible;
}

.pitch-page .pitch-hero-flagship {
  margin: 0 0 0.45rem;
}

/* Keep hero title on one line; scale down slightly on narrow columns */
.pitch-page .hero .geis-hero-title {
  white-space: nowrap;
  width: fit-content;
  max-width: none;

  /* Room for background-clip:text + drop-shadow (last letter / descenders often clipped otherwise) */
  line-height: 1.22;
  padding: 0.12em 0.35em 0.18em 0.06em;
  box-sizing: content-box;
  font-size: clamp(1.2rem, 3.35vw + 0.72rem, 3.75rem);
}

/* Hero key art + title logo (matches home flagship treatment) */
.pitch-page .geis-hero-keyart {
  position: relative;
  width: 100%;
  max-width: min(100%, 42rem);
  margin: 0 auto clamp(1.25rem, 3vw, 1.85rem);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--bg);
  box-sizing: border-box;
  aspect-ratio: 1536 / 1024;
}

.pitch-page .geis-hero-keyart::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 32%, transparent 52%);
}

.pitch-page .geis-hero-keyart-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.pitch-page .geis-hero-keyart-logo {
  position: absolute;

  /* Middle term % is height of .geis-hero-keyart so the mark tracks the frame (mobile + resizes). */
  top: clamp(0.65rem, 8.25%, 2.65rem);
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: block;
  box-sizing: border-box;
  width: min(88%, 20.5rem);
  height: auto;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;

  /* Black silhouette glow only (drop-shadow follows PNG alpha) */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.82))
    drop-shadow(0 0 24px rgba(0, 0, 0, 0.68)) drop-shadow(0 0 40px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 58px rgba(0, 0, 0, 0.35)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.72));
}

.pitch-page .deck-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.28);
}

.pitch-page .bullet-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.pitch-page .timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pitch-page .timeline-item {
  min-height: 100%;
}

.pitch-page .budget-panel {
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--primary) 10%, transparent), var(--surface));
  padding: 1.25rem;
}

.pitch-page .raise-amount {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  font-weight: 800;
  font-family: Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text);
  text-shadow: none;
}

.pitch-page .budget-note {
  max-width: 720px;
}

.pitch-page .budget-grid .metric {
  min-height: 100%;
}

.pitch-page .role {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .pitch-page .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 740px) {
  .pitch-page .timeline {
    grid-template-columns: 1fr;
  }

  /* Hero title logo: smaller + higher in the frame on narrow viewports */
  .pitch-page .geis-hero-keyart-logo {
    width: min(58%, 13.5rem);
    top: clamp(0.05rem, 2.85%, 0.95rem);
  }
}

/* Geis: core systems as a vertical list with section dividers (⸻) */
.pitch-page .geis-core-systems {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 44rem;
  margin-inline: auto;
}

.pitch-page .geis-core-divider {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  margin: 1.35rem 0;
  width: 100%;
}

/* Geis: player identity row (You are) */
.pitch-page .geis-you-are-section .section-head {
  margin-bottom: 1rem;
}

.pitch-page .geis-you-are-section .section-head p {
  max-width: 40rem;
}

.pitch-page .geis-you-are-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pitch-page .geis-you-are-item {
  margin: 0;
  padding: 1rem 1.15rem;
  color: var(--text);
  line-height: 1.5;
}

/* Feature stills: realm, reactive world, readable combat; core: combat, oaths, exploration, puzzle */
.pitch-page .geis-feature-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.pitch-page .geis-feature-card-visual {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}

/* Absolute fill keeps object-fit: cover honest in grid/flex (avoids distorted “stretch”) */
.pitch-page .geis-feature-card-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
}

.pitch-page .geis-feature-card--realm .geis-feature-card-visual img {
  object-position: 48% 36%;
}

.pitch-page .geis-feature-card--reactive .geis-feature-card-visual img {
  object-position: 52% 32%;
}

.pitch-page .geis-feature-card--combat-read .geis-feature-card-visual img {
  object-position: 50% 40%;
}

.pitch-page .geis-feature-card--oaths .geis-feature-card-visual img {
  object-position: 50% 44%;
}

.pitch-page .geis-feature-card--combat-core .geis-feature-card-visual img {
  object-position: 50% 38%;
}

.pitch-page .geis-feature-card--exploration .geis-feature-card-visual img {
  object-position: 50% 45%;
}

.pitch-page .geis-feature-card--puzzle .geis-feature-card-visual img {
  object-position: 50% 42%;
}

.pitch-page .geis-feature-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.22) 68%,
    rgba(0, 0, 0, 0.68) 100%
  );
}

.pitch-page .geis-feature-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.1rem 1.2rem;
  min-height: 0;
}

.pitch-page .geis-feature-card-body .label {
  margin-bottom: 0.45rem;
}

.pitch-page .geis-feature-card-body h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.pitch-page .geis-feature-card-body p {
  margin: 0;
  flex: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .pitch-page .geis-feature-card-visual img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pitch-page .geis-feature-card:hover .geis-feature-card-visual img {
    transform: scale(1.045);
  }
}
