:root {
  --paper: #f5f0e6;
  --paper-deep: #ebe4d7;
  --ink: #141313;
  --muted: #665f57;
  --rule: #aaa398;
  --magenta: #cf0065;
  --blue: #0759c7;
  --display: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
}

button,
input { font: inherit; }

a {
  color: inherit;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
}

a:hover { color: var(--magenta); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.site-header,
main,
footer {
  width: min(100% - 4rem, 1380px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 3px solid var(--ink);
  font-family: var(--display);
}

.site-header p { margin: 0; }

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero { padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(3rem, 6vw, 5.5rem); }

.hero-title-wrap {
  display: flex;
  align-items: flex-end;
  gap: clamp(2rem, 6vw, 7rem);
}

h1,
h2,
.startup-name { font-family: var(--display); }

h1 {
  flex: 1 1 auto;
  margin: 0;
  font-size: clamp(4rem, 7.8vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.84;
  text-transform: uppercase;
  animation: register-in 560ms cubic-bezier(.2,.8,.2,1) both;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.stamp {
  flex: 0 0 auto;
  display: grid;
  gap: 0.1rem;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 3px solid var(--magenta);
  color: var(--magenta);
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.1;
  transform: rotate(-3deg);
  animation: stamp-in 480ms 260ms cubic-bezier(.2,.8,.2,1) both;
}

.lede {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.lede span {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}

.search-wrap {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 0.5rem;
  padding-block: 0.5rem;
  background: var(--paper);
}

.search-wrap label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#search {
  width: 100%;
  height: 68px;
  padding: 0 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: rgb(255 255 255 / 20%);
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  appearance: none;
}

#search:focus {
  border-color: var(--blue);
  outline: 3px solid color-mix(in srgb, var(--blue) 30%, transparent);
  outline-offset: 0;
}

.filters {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 0 1.75rem;
}

.status-filters,
.season-options {
  display: flex;
  align-items: stretch;
}

.filter,
.season {
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.filter {
  position: relative;
  padding: 0.6rem 1.2rem;
}

.filter:first-child { padding-left: 0; }
.filter span { margin-left: 0.35rem; font-family: var(--display); }

.filter::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  bottom: 0;
  left: 1.2rem;
  height: 4px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.filter:first-child::after { left: 0; }
.filter:hover::after,
.filter.is-active::after { transform: scaleX(1); }
.filter.is-active { color: var(--magenta); }

.season-filter {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.season-label { font-weight: 700; }

.season-options {
  overflow-x: auto;
  scrollbar-width: thin;
}

.season {
  min-width: 48px;
  padding: 0 0.8rem;
  border-block: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.season:first-child { min-width: auto; border-left: 1px solid var(--ink); }
.season:hover,
.season.is-active { background: var(--magenta); color: white; }

.results-summary {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.88rem;
}

.list-head,
.startup-row {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1.15fr) 130px minmax(240px, 1.8fr) 150px 68px;
  gap: 1rem;
  align-items: center;
}

.list-head {
  min-height: 50px;
  border-top: 3px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-weight: 800;
}

.startup-entry { border-bottom: 1px solid var(--rule); }

.startup-row {
  width: 100%;
  min-height: 72px;
  padding: 0;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.startup-row:hover,
.startup-row[aria-expanded="true"] {
  border-left-color: var(--magenta);
  background: rgb(255 255 255 / 28%);
}

.startup-index {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.startup-name { font-size: clamp(1.1rem, 1.5vw, 1.45rem); }
.startup-mobile-meta { display: none; }
.startup-season,
.startup-status { font-size: 0.95rem; }
.startup-founders { color: #2d2b28; }

.details-label {
  color: var(--magenta);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.startup-details {
  padding: 1.35rem 1.5rem 1.5rem 74px;
  border-left: 4px solid var(--magenta);
  background: var(--paper-deep);
}

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

.detail-item { min-width: 0; }
.detail-item.detail-wide { grid-column: span 2; }

.detail-label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-value { margin: 0; }
.detail-value a { color: var(--blue); overflow-wrap: anywhere; }

.empty-state {
  padding: 4rem 0;
  border-top: 2px solid var(--ink);
  text-align: center;
}

.empty-state p { font-family: var(--display); font-size: 1.4rem; }
.empty-state button,
.contribute-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.empty-state button:hover,
.contribute-link:hover { background: var(--magenta); color: white; }

.about {
  display: grid;
  grid-template-columns: minmax(130px, 0.5fr) minmax(280px, 1.5fr);
  gap: 3rem;
  margin-top: clamp(5rem, 10vw, 9rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 3px solid var(--ink);
}

.section-number {
  margin: 0;
  color: var(--magenta);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
}

.about h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.about div { max-width: 760px; }
.about p { font-family: Georgia, serif; font-size: 1.2rem; }
.contribute-link { margin-top: 1rem; font-family: var(--body); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--ink);
  font-size: 0.9rem;
}

footer p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes register-in {
  from { opacity: 0; transform: translateY(22px); letter-spacing: -0.02em; }
  to { opacity: 1; transform: none; letter-spacing: -0.055em; }
}

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-3deg) scale(1.16); }
  to { opacity: 1; transform: rotate(-3deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .site-header,
  main,
  footer { width: min(100% - 2rem, 1380px); }

  .hero-title-wrap { display: block; }
  .stamp { width: fit-content; margin: 1.75rem 0 0 0.25rem; }
  .filters { display: grid; }
  .list-head { display: none; }

  .startup-row {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 0.85rem;
    padding: 0.9rem 0;
  }

  .startup-index { grid-row: 1 / span 2; }
  .startup-identity { min-width: 0; }
  .startup-mobile-meta { display: block; margin-top: 0.25rem; color: var(--muted); }
  .startup-season,
  .startup-founders { display: none; }
  .startup-status { align-self: start; font-weight: 700; text-align: right; }
  .details-label { grid-column: 3; text-align: right; }
  .startup-details { padding-left: 1rem; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-header { display: grid; gap: 0.85rem; align-items: start; padding: 1rem 0; }
  .site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.65rem 1.25rem; font-family: var(--body); font-size: 0.82rem; }
  .eyebrow { max-width: 8rem; }
  .hero { padding: 2rem 0 2rem; }
  h1 { font-size: clamp(2.15rem, 9vw, 2.75rem); line-height: 0.92; }
  .stamp { margin-top: 1.1rem; font-size: 0.9rem; }
  .lede { font-size: 1.15rem; }

  .search-wrap {
    position: sticky;
    top: 0;
    margin-inline: -1rem;
    padding: 0.65rem 1rem 0.75rem;
    border-bottom: 1px solid var(--ink);
  }

  #search { height: 56px; padding-inline: 0.9rem; }
  .filters { grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; gap: 1.25rem; padding-top: 1.1rem; }
  .status-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; }
  .filter { min-width: 0; padding-inline: 0.35rem; border-bottom: 1px solid var(--rule); font-size: 0.88rem; line-height: 1.15; white-space: normal; }
  .filter:first-child { padding-left: 0.6rem; }
  .filter::after,
  .filter:first-child::after { left: 0.6rem; right: 0.6rem; }
  .season-filter { display: grid; gap: 0.35rem; }
  .season-options { margin-right: -1rem; scroll-snap-type: x proximity; }
  .season { scroll-snap-align: start; }
  .results-summary { margin-top: 0.25rem; }

  .startup-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .startup-status { max-width: 7rem; font-size: 0.83rem; }
  .startup-name { font-size: 1.25rem; }
  .details-label { font-size: 0.7rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 1rem; }
  .detail-item.detail-wide { grid-column: auto; }

  .about { grid-template-columns: 1fr; gap: 1.5rem; }
  .about p { font-size: 1.05rem; }
  footer { display: grid; }
}

@media (max-width: 360px) {
  h1 { font-size: 10.2vw; }
  .site-header nav { font-size: 0.76rem; }
  .filter { font-size: 0.8rem; }
}
