/*
Theme Name: Phaze Website
Theme URI: https://phazeventures.com
Author: Phaze Ventures
Description: Custom public website theme for Phaze Ventures.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: phaze-website
*/

@font-face {
  font-family: "Corbel";
  src: url("https://phazeventures.com/wp-content/uploads/fonts/CORBEL.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Corbel";
  src: url("https://phazeventures.com/wp-content/uploads/fonts/Corbel-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f8f6;
  --paper: #ffffff;
  --ink: #07111f;
  --ink-soft: #263142;
  --muted: #647082;
  --line: #dbe2e8;
  --line-strong: #b7c3ce;
  --blue: #009bff;
  --blue-dark: #006fbb;
  --green: #1c9f78;
  --sunset: #c57963;
  --plum: #51407d;
  --max: 1200px;
  --shadow: 0 18px 50px rgba(16, 32, 48, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--ink);
  font-family: "Corbel", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.48;
}

body.admin-bar .site-header {
  top: 32px;
}

body::selection {
  background: rgba(0, 155, 255, 0.2);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
}

main {
  background: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 62px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  width: 174px;
  max-width: 44vw;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.header-action,
.footer-nav a,
.footer-bottom a {
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease;
}

.main-nav a {
  padding: 7px 10px;
}

.main-nav a:hover,
.main-nav a.active,
.header-action:hover,
.footer-nav a:hover,
.footer-bottom a:hover {
  background: rgba(0, 155, 255, 0.1);
  color: var(--blue-dark);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 10px;
  width: auto;
  margin: 24px 0 0;
  padding: 0;
}

.stat-row div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf9;
}

.stat-row dt {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.stat-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.logo-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), calc(100% - 48px));
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.logo-band a {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
}

.logo-band img {
  max-width: 132px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.content-section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 50px 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading-center {
  margin: 0 auto;
  text-align: center;
}

.section-heading h2,
.proof-panel h2,
.platform-copy h2,
.coinvestor-copy h2,
.page-hero h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.04;
}

.section-heading p,
.platform-copy p,
.page-hero p {
  color: var(--muted);
}

.section-heading p:last-child,
.platform-copy p,
.page-hero p {
  margin: 12px 0 0;
  font-size: 1.04rem;
}

.section-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-link {
  flex: 0 0 auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 700;
  transition: transform 180ms ease;
}

.pillar-grid,
.process-grid,
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pillar-card,
.platform-item,
.process-step,
.quote-card,
.company-card,
.story-card,
.investor-panel,
.submission-success {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.pillar-card,
.platform-item,
.process-step {
  padding: 20px;
}

.pillar-card svg,
.platform-item svg,
.process-step svg {
  color: var(--blue-dark);
}

.pillar-card h3,
.platform-item h3,
.process-step h3,
.company-card h3,
.story-card h3,
.team-card h3,
.investor-panel h3,
.submission-success h3 {
  margin: 10px 0 0;
  font-size: 1.14rem;
  line-height: 1.15;
}

.pillar-card p,
.platform-item p,
.process-step p,
.company-card p,
.story-card p,
.team-card p,
.investor-panel p,
.submission-success p {
  color: var(--muted);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.company-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 18px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.company-card:hover,
.company-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 32, 48, 0.08);
}

.company-card-compact {
  min-height: auto;
}

.company-card-no-meta {
  min-height: auto;
  padding: 16px;
}

.company-logo-wrap {
  position: relative;
  width: min(170px, 100%);
  height: 38px;
  margin-bottom: 14px;
}

.company-card-no-meta .company-logo-wrap {
  width: min(154px, 100%);
  height: 34px;
  margin-bottom: 10px;
}

.company-card-no-meta h3 {
  margin-top: 0;
}

.company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.company-fallback {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 700;
}

.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-meta span,
.stage-pill,
.portfolio-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #f8faf9;
  font-size: 0.76rem;
  line-height: 1;
}

.company-card h3 a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.company-card p {
  margin: 8px 0 12px;
  font-size: 0.96rem;
  line-height: 1.45;
}

.company-card-compact p {
  margin-bottom: 0;
}

.stage-pill {
  margin-top: auto;
  width: fit-content;
  border-color: rgba(0, 155, 255, 0.25);
  color: var(--blue-dark);
}

.proof-section {
  width: 100%;
  padding: 0;
}

.proof-panel {
  position: relative;
  overflow: hidden;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, #08111f 0%, #102f41 48%, #4d315f 100%);
  color: white;
}

.proof-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(135deg, rgba(0, 155, 255, 0.3), transparent 38%),
    linear-gradient(42deg, transparent 0 34%, rgba(197, 121, 99, 0.28) 34% 48%, transparent 48%),
    linear-gradient(152deg, transparent 0 58%, rgba(255, 255, 255, 0.12) 58% 70%, transparent 70%);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 72% 100%, 0 100%);
  opacity: 0.75;
}

.proof-panel > * {
  position: relative;
  z-index: 1;
}

.proof-panel .eyebrow {
  color: #7cd2ff;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.quote-card {
  padding: 20px;
}

.proof-panel .quote-card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.quote-card blockquote {
  margin: 0;
  color: inherit;
  font-size: 1.02rem;
  font-style: italic;
}

.quote-card figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.proof-panel .quote-card figcaption {
  color: rgba(255, 255, 255, 0.66);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.story-grid-spaced {
  margin-top: 18px;
}

.story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.story-card:hover,
.story-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 32, 48, 0.08);
}

.story-card-compact {
  align-self: start;
}

.story-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  min-height: 360px;
  margin-bottom: 14px;
}

.story-image {
  position: relative;
  display: block;
  min-height: 182px;
  overflow: hidden;
  background: #dce5eb;
}

.story-card-featured .story-image {
  min-height: 360px;
}

.story-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.story-card:hover .story-image img {
  transform: scale(1.03);
}

.story-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.story-card-compact .story-content {
  padding: 16px;
}

.story-card h3 a {
  color: var(--ink);
}

.story-date {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.story-card p {
  margin: 10px 0 14px;
  font-size: 0.98rem;
}

.story-card .text-link {
  margin-top: auto;
  gap: 5px;
  font-size: 0.9rem;
}

.story-card-compact h3 {
  min-height: calc(3 * 1.15em);
  margin-top: 0;
}

.story-card-compact p {
  min-height: calc(3 * 1.42em);
  margin: 8px 0 12px;
  font-size: 0.94rem;
  line-height: 1.42;
}

.story-explorer {
  display: grid;
  gap: 16px;
}

.story-controls,
.story-filter-row {
  display: grid;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.story-controls {
  grid-template-columns: minmax(260px, 1fr) auto;
  padding: 12px;
}

.story-search,
.story-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.story-search {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
}

.story-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.story-search input::placeholder {
  color: var(--muted);
}

.story-sort {
  color: var(--muted);
  font-weight: 700;
}

.story-filter-row {
  grid-template-columns: minmax(0, 1fr);
  padding: 8px 10px;
}

.story-filter-row .segmented {
  flex-wrap: wrap;
  white-space: normal;
}

.story-filter-row-combined {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.story-tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.story-tag-filters {
  overflow: visible;
}

.story-tag-filters button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf9;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1;
}

.story-tag-filters button {
  cursor: pointer;
}

.story-tag-filters button.active {
  border-color: var(--blue);
  background: rgba(0, 155, 255, 0.1);
  color: var(--blue-dark);
  font-weight: 700;
}

.story-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-results-meta button {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 700;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 24px;
}

.empty-state h3 {
  margin: 0;
  font-size: 1.14rem;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 28px;
  padding-bottom: 112px;
}

.platform-grid {
  margin-top: 0;
}

.page-hero {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 28px;
}

.page-hero::after {
  content: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  font-size: 2.8rem;
}

.page-hero p {
  max-width: 860px;
}

.home-page-hero .stat-row,
.page-stat-row {
  margin-top: 18px;
}

.home-page-hero .stat-row,
.page-stat-row {
  gap: 8px;
}

.home-page-hero .stat-row div,
.page-stat-row div {
  min-height: 26px;
  gap: 5px;
  padding: 4px 8px;
}

.home-page-hero .stat-row dt,
.home-page-hero .stat-row dd,
.page-stat-row dt,
.page-stat-row dd {
  font-size: 0.76rem;
}

.coinvestor-section {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 42px;
}

.coinvestor-copy {
  max-width: 430px;
}

.coinvestor-copy h2 {
  font-size: 2rem;
}

.coinvestor-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.coinvestor-strip a {
  display: grid;
  min-height: 70px;
  align-content: center;
  justify-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
}

.coinvestor-strip img {
  max-width: 126px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.portfolio-page-highlights {
  padding-top: 34px;
}

.portfolio-explorer {
  margin-top: 24px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.portfolio-filter-bar {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 8px 10px;
}

.portfolio-filter-groups {
  flex-wrap: nowrap;
  overflow: hidden;
}

.portfolio-filter-groups .compact-filter-group {
  flex: 0 1 auto;
}

.portfolio-filter-groups .compact-button-row {
  max-width: 100%;
}

.story-filter-groups {
  flex-wrap: nowrap;
  overflow: hidden;
}

.story-topic-group {
  flex: 1 1 360px;
}

.compact-filter-groups {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}

.compact-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.compact-filter-group > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.compact-button-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.compact-button-row::-webkit-scrollbar {
  display: none;
}

.compact-button-row button {
  min-height: 28px;
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
}

.compact-button-row button.active {
  border-color: var(--blue);
  background: rgba(0, 155, 255, 0.1);
  color: var(--blue-dark);
  font-weight: 700;
}

.compact-button-row-plain button {
  border-color: var(--line);
  background: #fbfcfd;
}

.segmented {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.segmented button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.segmented button.active {
  border-color: var(--blue);
  background: rgba(0, 155, 255, 0.1);
  color: var(--blue-dark);
  font-weight: 700;
}

.portfolio-count {
  margin-bottom: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.team-section {
  padding-top: 16px;
}

.team-section .team-grid {
  margin-top: 0;
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.team-card:hover,
.team-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 32, 48, 0.08);
}

.team-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #edf2f5;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 240ms ease;
}

.team-card:hover .team-image img,
.team-card:focus-within .team-image img {
  transform: scale(1.03);
}

.team-copy {
  padding: 18px;
}

.team-role {
  margin-top: 4px;
  color: var(--blue-dark) !important;
  font-weight: 700;
}

.process-section {
  padding-top: 36px;
}

.founder-quote-section {
  padding-top: 22px;
  padding-bottom: 24px;
}

.founder-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.founder-quote-card {
  position: relative;
  display: flex;
  min-height: 160px;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
}

.founder-quote-card::before,
.founder-quote-card::after {
  position: absolute;
  color: rgba(0, 155, 255, 0.18);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.founder-quote-card::before {
  content: "\201C";
  top: 10px;
  left: 14px;
}

.founder-quote-card::after {
  content: "\201D";
  right: 14px;
  bottom: 4px;
}

.founder-quote-card blockquote,
.founder-quote-card figcaption {
  position: relative;
  z-index: 1;
}

.founder-quote-card blockquote {
  padding-top: 18px;
}

.founder-quote-card figcaption {
  margin-top: auto;
}

.funding-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-top: 24px;
}

.funding-section .section-heading {
  max-width: 860px;
}

.funding-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 860px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.funding-form label,
.funding-form fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.funding-form input,
.funding-form select,
.funding-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 10px 12px;
}

.deck-upload-field {
  gap: 8px;
}

.file-upload-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  cursor: pointer;
}

.file-upload-control input {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.file-upload-name,
.file-upload-hint {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-name {
  color: var(--ink-soft);
  font-weight: 700;
}

.funding-form .primary-button.full-span {
  justify-self: end;
  min-width: 116px;
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.95rem;
}

.funding-form textarea {
  resize: vertical;
}

.funding-form fieldset {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.funding-form legend {
  padding: 0 6px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.checkbox-label {
  display: flex !important;
  min-height: 40px;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  font-weight: 400 !important;
}

.checkbox-label input {
  width: 16px;
  min-height: 16px;
}

.full-span {
  grid-column: 1 / -1;
}

.submission-success {
  display: grid;
  place-items: start;
  gap: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.submission-success svg {
  color: var(--green);
}

.investor-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 24px;
}

.investor-panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.investor-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(0, 155, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 155, 255, 0.1);
  color: var(--blue-dark);
}

.investor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.investor-panel .secondary-button {
  border-color: var(--line);
  background: #f7fafc;
  color: var(--ink);
}

.investor-note {
  grid-column: 1 / -1;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  gap: 16px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  flex: 0 0 auto;
}

.footer-brand img {
  width: 154px;
  height: auto;
}

.footer-nav,
.footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.footer-nav {
  justify-content: flex-end;
}

.footer-nav a,
.footer-bottom a {
  padding: 5px 8px;
}

.footer-bottom {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-bottom span,
.footer-bottom a {
  line-height: 1.2;
}

.is-hidden {
  display: none !important;
}

.wp-content-body {
  max-width: 860px;
}

.story-page-hero {
  padding-bottom: 12px;
}

.article-date {
  margin-top: 14px;
  font-size: 0.86rem;
}

.story-article {
  padding-top: 16px;
}

.article-hero-image {
  max-width: 860px;
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce5eb;
}

.article-hero-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.story-article-body {
  margin: 0;
  text-align: left;
}

.story-article-body :where(p, ul, ol, blockquote, h2, h3, h4, figure) {
  text-align: left;
}

.story-article-body :where(.sharedaddy, .sd-like, #jp-post-flair) {
  display: none !important;
}

.wp-content-body :where(p, ul, ol, blockquote) {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.wp-content-body a {
  color: var(--blue-dark);
  font-weight: 700;
}

.footer-bottom span:not(:last-child)::after,
.footer-bottom a:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--line-strong);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .logo-band,
  .pillar-grid,
  .company-grid,
  .quote-grid,
  .founder-quote-grid,
  .story-grid,
  .process-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-section,
  .coinvestor-section,
  .funding-section,
  .investor-section,
  .story-card-featured {
    grid-template-columns: 1fr;
  }

  .coinvestor-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .story-controls,
  .story-filter-row {
    grid-template-columns: 1fr;
  }

  .story-filter-row-combined {
    align-items: start;
  }

  .footer-top {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    padding: 10px 18px;
  }

  .brand {
    width: 158px;
  }

  .header-action {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .stat-row {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
    margin-top: 22px;
  }

  .stat-row dt {
    font-size: 0.84rem;
  }

  .stat-row dd {
    font-size: 0.84rem;
  }

  .primary-button,
  .secondary-button {
    width: auto;
  }

  .logo-band,
  .pillar-grid,
  .company-grid,
  .quote-grid,
  .founder-quote-grid,
  .story-grid,
  .process-grid,
  .team-grid,
  .checkbox-grid,
  .coinvestor-strip,
  .funding-form {
    grid-template-columns: 1fr;
  }

  .logo-band {
    width: min(100% - 36px, var(--max));
    margin-top: -18px;
  }

  .logo-band a {
    min-height: 78px;
  }

  .content-section,
  .page-hero,
  .proof-panel,
  .footer-inner {
    width: min(100% - 36px, var(--max));
  }

  .footer-inner {
    gap: 16px;
    padding: 24px 0;
  }

  .footer-top {
    display: grid;
    gap: 14px;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .content-section {
    padding: 40px 0;
  }

  .section-heading h2,
  .proof-panel h2,
  .platform-copy h2,
  .coinvestor-copy h2 {
    font-size: 1.85rem;
  }

  .page-hero {
    padding-top: 42px;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .section-split {
    display: grid;
    align-items: start;
  }

  .story-controls,
  .story-filter-row {
    padding: 10px;
  }

  .story-sort {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .story-tag-filters {
    max-height: none;
    overflow: visible;
  }

  .story-results-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-filter-bar {
    align-items: start;
  }

  .compact-filter-groups,
  .portfolio-filter-groups,
  .story-filter-groups {
    flex-wrap: wrap;
    overflow: visible;
  }

  .compact-filter-group {
    width: 100%;
  }

  .compact-button-row {
    flex: 1 1 auto;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
  }

  .proof-panel {
    padding: 34px 22px;
  }

  .company-card {
    min-height: auto;
  }

  .story-card-compact h3,
  .story-card-compact p {
    min-height: auto;
  }

  .story-card-featured .story-image {
    min-height: 240px;
  }

  .funding-form {
    padding: 18px;
  }

  .funding-form .primary-button.full-span {
    width: auto;
    justify-self: end;
  }

}
