.project-board { width: min(1200px, calc(100% - 48px)); padding-block: 30px 64px; }
.board-intro {
  display: grid;
  justify-items: center;
  padding: clamp(30px, 5.6vw, 69px) clamp(18px, 6vw, 56px) clamp(32px, 5vw, 59px);
  text-align: center;
  margin-bottom: 30px;
}
.board-intro h1 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5.05vw, 4.13rem);
  line-height: 1.04;
  letter-spacing: -.064em;
  font-weight: 650;
  text-wrap: balance;
}
.board-intro p {
  max-width: 55ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(.99rem, 2vw, 1.12rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.project-search { position: relative; width: min(100%, 590px); margin-top: 29px; }
.project-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.project-search input {
  width: 100%;
  min-height: 60px;
  padding: 13px 18px 13px 49px;
  border: 1px solid #ffffff36;
  border-radius: 19px;
  background: #191d25b8;
  box-shadow: 0 14px 34px -22px #101419aa, inset 0 1px 0 #ffffff14;
  backdrop-filter: blur(14px);
  font-size: 1rem;
}
.project-search input::placeholder { color: #c6cfcd; }
.project-search::before, .project-search::after { z-index: 1; }
.project-search::before { top: 21px; left: 19px; width: 15px; height: 15px; border-color: #bbc9c7; }
.project-search::after { top: 37px; left: 32px; width: 7px; background: #bbc9c7; }

.board-workspace { display: grid; grid-template-columns: 222px minmax(0, 1fr); align-items: start; gap: 26px; }
.project-filters {
  position: sticky;
  top: 90px;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 17px;
  border-radius: 20px;
}
.project-filters > div { display: grid; gap: 5px; }
.project-filters .filter-header { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.filter-header h2 { font-size: 1rem; letter-spacing: -.022em; font-weight: 650; }
.project-filters label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  color: #d5ddda;
  font-size: .81rem;
  font-weight: 550;
}
.projects-page select {
  min-height: 43px;
  padding-block: 8px;
  border-color: #596566;
  border-radius: 10px;
  background-color: #22282d;
  background-image: linear-gradient(45deg, transparent 50%, #d0dbd7 50%), linear-gradient(135deg, #d0dbd7 50%, transparent 50%);
  font-size: .875rem;
}
.project-clear { color: #c7eaba; font-size: .81rem; text-underline-offset: 2px; }
.board-results { min-height: 31px; margin: 1px 0 13px; gap: 12px; }
.board-results h2 { font-size: clamp(1.25rem, 3vw, 1.68rem); letter-spacing: -.045em; font-weight: 650; }
.board-results p { font-size: .81rem; color: var(--muted); text-align: right; }

.project-board .project-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-board .opportunity {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: clamp(17px, 2vw, 24px);
  border-radius: 22px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.project-board .opportunity:hover,
.project-board .opportunity:focus-within {
  border-color: #82998f;
  background-color: #282e35ed;
  box-shadow: 0 18px 42px -28px #0b1015ab;
}
.opportunity-top,
.opportunity-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.opportunity-top { margin-bottom: 13px; }
.opportunity-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.opportunity-icon {
  width: 43px;
  border-radius: 13px;
  background: linear-gradient(145deg, #354843, #252f34);
  border: 1px solid #62756b;
  box-shadow: inset 0 1px 0 #ffffff14;
}
.project-glyph { transform: scale(.57); color: #d0e5d4; }
.project-board .opportunity h3 {
  font-size: clamp(1.12rem, 2.3vw, 1.38rem);
  font-weight: 650;
  letter-spacing: -.043em;
  line-height: 1.19;
  overflow-wrap: anywhere;
}
.opportunity-description { margin: 8px 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.projects-page .project-board .project-area,
.projects-page .project-board .project-access {
  padding: 4px 9px;
  border: 1px solid #687377;
  border-radius: 999px;
  background: #30383c;
  color: #e0e8e4;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.projects-page .project-board .project-access.prime {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #473823;
  border-color: #8b6e3e;
  color: #f7d98f;
}
.projects-page .project-board .project-access.prime::before {
  content: "";
  width: 13px;
  height: 13px;
  background: url("./prime-diamond.svg") center / contain no-repeat;
}
.projects-page .opportunity-role-row { display: grid; gap: 7px; color: #cbd6d0; font-size: .78rem; }
.projects-page .opportunity-role-row > span { font-weight: 550; }
.projects-page .opportunity-roles li {
  padding: 4px 8px;
  border: 1px solid #525c59;
  border-radius: 7px;
  color: #d7e0dc;
  background: #2a3235;
  font-size: .77rem;
}
.opportunity-footer {
  margin-top: auto;
  padding-top: 14px;
}
.project-board .project-investment { margin-left: 0; color: #c3cfca; font-size: .76rem; line-height: 1.4; }
.project-board .opportunity-action {
  flex: 0 0 auto;
  min-height: 36px;
  min-width: 0;
  gap: 7px;
  padding: 5px 10px 5px 12px;
  border: 1px solid #657770;
  border-radius: 999px;
  background: #314640;
  color: #e0f3df;
  font-size: .81rem;
  font-weight: 650;
}
.project-board .opportunity-action::after { content: '→'; font-size: 1rem; line-height: 1; }
.project-board .opportunity-action:hover { background: #426053; }
.project-empty { padding: 24px; color: var(--muted); border-radius: 18px; }

.project-detail { max-width: 1080px; }
.project-detail .login-back { display: inline-block; margin-bottom: 16px; color: #cbe8bd; }
.detail-header { padding: clamp(23px, 5vw, 48px); margin-bottom: 18px; }
.detail-header h1 { margin-top: 12px; font-size: clamp(2.1rem, 5vw, 3.65rem); line-height: 1.04; font-weight: 650; }
.detail-header p { color: var(--muted); }
.detail-columns { grid-template-columns: minmax(0, 1fr) minmax(245px, .56fr); gap: 17px; }
.projects-page .detail-panel { border-radius: 21px; }
.detail-panel h2 { font-size: 1.27rem; letter-spacing: -.035em; }
.company-facts > div + div { border-color: var(--line); }
.projects-page .company-facts dt { color: #e0e8e3; }
.projects-page .company-responsibilities { color: var(--muted); }
#detail-investment { color: #c7eaba; font-weight: 650; }
.detail-application .button { width: 100%; border-radius: 12px; }
.detail-application .primary { color: #1f2b0f; background: #c7f464; }
.detail-application .primary:hover { background: #d9ff9c; }
.detail-application .outline { color: #deece1; background: #303b39; border-color: #5a7466; }

@media (max-width: 1000px) {
  .board-workspace { grid-template-columns: 186px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 860px) {
  .board-workspace { grid-template-columns: minmax(0, 1fr); }
  .project-filters { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-filters .filter-header { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .project-board { width: calc(100% - 28px); padding-top: 16px; }
  .projects-page .board-intro { border-radius: 23px; margin-bottom: 16px; }
  .project-search { margin-top: 21px; }
  .project-board .project-results,
  .detail-columns { grid-template-columns: minmax(0, 1fr); }
  .detail-application { grid-row: 1; }
}
@media (max-width: 470px) {
  .project-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .project-filters > div:last-child { grid-column: 1 / -1; }
  .board-results p { max-width: 14ch; }
}
@media (prefers-reduced-motion: reduce) {
  .project-board .opportunity { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .project-search input { background: #20242a; }
}
