:root {
  --void: #06080A;
  --machine: #0E1218;
  --panel: #13181F;
  --rail: #1C2330;
  --neon: #FF4D1A;
  --amber: #FFA620;
  --cyan: #00D4FF;
  --cream: #E8DFC8;
  --silver: #6B7A8D;
  --dim: #3A4556;
  --border: rgba(255, 77, 26, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 10%, rgba(0, 212, 255, 0.08), transparent 28%),
    radial-gradient(circle at 12% 20%, rgba(255, 77, 26, 0.12), transparent 30%),
    var(--void);
  color: var(--cream);
  font-family: 'Space Mono', monospace;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.16) 2px, rgba(0, 0, 0, 0.16) 4px);
  pointer-events: none;
  z-index: 20;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5%;
  background: rgba(6, 8, 10, 0.75);
  border-bottom: 1px solid rgba(255, 77, 26, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.2em;
  color: var(--cream);
  text-decoration: none;
}

.logo span {
  color: var(--neon);
  text-shadow: 0 0 14px rgba(255, 77, 26, 0.55);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

nav a {
  color: var(--silver);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 0.25s;
}

nav a:hover,
nav a.active {
  color: var(--cream);
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 54px 5% 90px;
}

.finder-hero {
  min-height: 340px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 34px;
}

.hero-kicker,
.filter-title {
  font-size: 8px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 16px;
}

.finder-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(58px, 8vw, 118px);
  letter-spacing: 0.03em;
  line-height: 0.9;
  max-width: 760px;
}

.finder-hero p {
  margin-top: 28px;
  max-width: 620px;
  color: var(--silver);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.75;
}

.hero-panel {
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 77, 26, 0.11), transparent 42%),
    rgba(14, 18, 24, 0.9);
  align-self: end;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
}

.panel-row:last-child {
  border-bottom: none;
}

.panel-row span {
  color: var(--silver);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.panel-row strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.finder-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 2px;
  align-items: start;
}

.filter-panel,
.results-panel {
  border: 1px solid var(--border);
  background: rgba(14, 18, 24, 0.92);
}

.filter-panel {
  position: sticky;
  top: 84px;
  padding: 22px;
}

.role-filter-list {
  display: grid;
  gap: 8px;
}

.role-filter {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255, 77, 26, 0.14);
  background: rgba(6, 8, 10, 0.38);
  color: var(--cream);
  font-family: 'Space Mono', monospace;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s;
}

.role-filter:hover,
.role-filter.active {
  border-color: var(--neon);
  background: rgba(255, 77, 26, 0.1);
}

.role-filter .icon {
  font-size: 18px;
}

.role-filter strong {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.role-filter span:last-child {
  color: var(--cyan);
  font-size: 10px;
}

.results-panel {
  min-height: 620px;
}

.search-stack {
  padding: 22px;
  border-bottom: 1px solid var(--border);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 10px;
}

.search-row input {
  min-height: 48px;
  border: 1px solid rgba(255, 77, 26, 0.16);
  background: rgba(6, 8, 10, 0.55);
  color: var(--cream);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  outline: none;
  padding: 0 14px;
}

.search-row input:focus {
  border-color: var(--neon);
}

.search-row button,
.crew-contact {
  border: none;
  background: var(--neon);
  color: var(--void);
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.result-status {
  margin-top: 14px;
  color: var(--silver);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
  padding: 2px;
}

.crew-card {
  min-height: 310px;
  border: 1px solid rgba(255, 77, 26, 0.12);
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.04), transparent 44%),
    rgba(6, 8, 10, 0.54);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}

.crew-card:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.crew-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--neon);
  background: rgba(255, 77, 26, 0.08);
  margin-bottom: 18px;
}

.crew-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1;
}

.crew-role {
  margin-top: 8px;
  color: var(--neon);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.crew-meta,
.crew-bio,
.crew-skills {
  color: var(--silver);
  font-size: 11px;
  line-height: 1.7;
}

.crew-meta {
  margin: 14px 0;
}

.crew-skills {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 77, 26, 0.1);
}

.crew-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crew-contact {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.crew-contact:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 166, 32, 0.24);
}

.crew-email {
  color: var(--dim);
  font-size: 10px;
  word-break: break-word;
  text-align: right;
}

.crew-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  border: 1px dashed rgba(255, 77, 26, 0.18);
  background: rgba(6, 8, 10, 0.38);
  padding: 30px;
  text-align: center;
}

@media (max-width: 980px) {
  .finder-hero,
  .finder-shell {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: relative;
    top: 0;
  }
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 5%;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .crew-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .crew-email {
    text-align: left;
  }
}
