@font-face {
  font-family: "Geist Selection";
  src: url("geist.woff2") format("woff2");
  font-display: swap;
}

:root {
  --sel-bg: #f0f0ed;
  --sel-paper: #fbfbf8;
  --sel-ink: #171816;
  --sel-muted: #676a64;
  --sel-line: #cfd1cb;
  --sel-accent: #e6533e;
}

.selection-page {
  margin: 0;
  background: var(--sel-bg);
  color: var(--sel-ink);
  font-family: "Geist Selection", Arial, sans-serif;
}

.selection-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sel-line);
  background: rgba(251, 251, 248, 0.96);
  padding: 0 28px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
}
.brand-lockup img {
  display: block;
  width: 112px;
  height: auto;
  filter: brightness(0);
}
.header-context {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sel-muted);
  font-size: 12px;
}
.stage-badge,
.geometry {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stage-badge {
  border: 1px solid var(--sel-line);
  border-radius: 999px;
  padding: 6px 9px;
}

.selection-page main {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
}

.selection-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  gap: 64px;
  align-items: end;
  padding: 58px 0 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sel-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.selection-intro h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.intro-copy {
  max-width: 580px;
  margin: 0;
  color: var(--sel-muted);
  font-size: 15px;
  line-height: 1.6;
}

.direction-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--sel-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sel-paper);
}

.direction-index a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--sel-line);
  color: inherit;
  padding: 14px 16px;
  text-decoration: none;
}
.direction-index a:last-child {
  border-right: 0;
}
.direction-index a:hover {
  background: #e7e8e3;
}
.direction-index b {
  color: var(--sel-muted);
  font: 500 11px/1 monospace;
}
.direction-index span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
}

.candidate {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  min-height: 690px;
  margin-top: 32px;
  border: 1px solid var(--sel-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--sel-paper);
  scroll-margin-top: 84px;
}

.candidate-preview {
  position: relative;
  display: grid;
  min-height: 560px;
  align-items: center;
  overflow: hidden;
  border-right: 1px solid var(--sel-line);
  background: #dedfda;
  color: var(--sel-ink);
  text-decoration: none;
}

.candidate-preview img {
  display: block;
  width: calc(100% - 48px);
  height: auto;
  margin: 24px;
  border: 1px solid rgba(22, 24, 21, 0.22);
  box-shadow: 0 18px 38px rgba(22, 24, 21, 0.14);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.candidate-preview > span {
  position: absolute;
  right: 36px;
  bottom: 36px;
  border: 1px solid rgba(22, 24, 21, 0.22);
  border-radius: 999px;
  background: rgba(251, 251, 248, 0.92);
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 650;
}
.candidate-preview:hover img {
  box-shadow: 0 24px 48px rgba(22, 24, 21, 0.18);
  transform: translateY(-3px);
}

.candidate-brief {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 36px;
}
.candidate-title {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.candidate-number {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--sel-muted);
  font: 500 12px/1 monospace;
}
.geometry {
  margin: 2px 0 7px;
  color: var(--sel-muted);
  font-size: 10px;
  font-weight: 650;
}
.candidate h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 620;
  letter-spacing: -0.045em;
}
.thesis {
  margin: 28px 0 24px;
  font-size: 18px;
  font-weight: 510;
  line-height: 1.45;
}
.candidate dl {
  margin: 0;
  border-top: 1px solid var(--sel-line);
}
.candidate dl > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--sel-line);
  padding: 12px 0;
}
.candidate dt {
  color: var(--sel-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.candidate dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.candidate-actions {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}
.candidate-actions a,
.candidate-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sel-ink);
  border-radius: 8px;
  padding: 0 15px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.open-button {
  background: transparent;
  color: var(--sel-ink);
}
.candidate-actions button {
  cursor: pointer;
  background: var(--sel-ink);
  color: #fff;
}
.candidate-actions a:hover {
  background: #ecece8;
}
.candidate-actions button:hover {
  background: #343631;
}

.candidate-dark .candidate-preview {
  background: #25262a;
}
.candidate-soft .candidate-preview {
  background: #e1e8df;
}
.candidate-context .candidate-preview {
  background: #dce6e1;
}
.candidate-flow .candidate-preview {
  background: #dedbd4;
}

.selection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 56px;
  border-top: 1px solid var(--sel-line);
  padding: 24px 0;
  color: var(--sel-muted);
  font-size: 13px;
}
.selection-footer p {
  margin: 0;
}
.selection-footer a {
  color: inherit;
}

@media (max-width: 1040px) {
  .candidate {
    grid-template-columns: 1fr;
  }
  .candidate-preview {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--sel-line);
  }
  .candidate-brief {
    min-height: 610px;
  }
}

@media (max-width: 720px) {
  .selection-header {
    min-height: 56px;
    padding: 0 16px;
  }
  .brand-lockup img {
    width: 96px;
  }
  .header-context > span:first-child {
    display: none;
  }
  .selection-page main {
    width: calc(100% - 24px);
  }
  .selection-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 38px 0 26px;
  }
  .selection-intro h1 {
    font-size: 38px;
  }
  .direction-index {
    grid-template-columns: 1fr;
  }
  .direction-index a {
    border-right: 0;
    border-bottom: 1px solid var(--sel-line);
  }
  .direction-index a:last-child {
    border-bottom: 0;
  }
  .candidate {
    min-height: 0;
    margin-top: 20px;
    border-radius: 10px;
  }
  .candidate-preview img {
    width: calc(100% - 24px);
    margin: 12px;
  }
  .candidate-preview > span {
    right: 22px;
    bottom: 22px;
  }
  .candidate-brief {
    min-height: 0;
    padding: 24px 18px;
  }
  .candidate dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .candidate-actions {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }
  .selection-footer {
    align-items: flex-start;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candidate-preview img {
    transition: none;
  }
}
