:root {
  --steel: #1a2333;
  --panel: #0f1923;
  --amber: #f5a623;
  --cyan: #00d4ff;
  --green: #00e676;
  --text: #cdd6e0;
  --dim: #6b7c8d;
}

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

body {
  background: var(--panel);
  color: var(--text);
  font-family: 'Courier New', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.cockpit-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,212,255,0.015) 2px, rgba(0,212,255,0.015) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,212,255,0.015) 2px, rgba(0,212,255,0.015) 4px);
}

header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(0,212,255,0.2);
  background: rgba(15,25,35,0.95);
  position: relative; z-index: 10;
}

.callsign {
  font-size: 0.75rem; letter-spacing: 0.3em;
  color: var(--amber); opacity: 0.7;
}

nav a {
  color: var(--cyan); text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.2em;
  border: 1px solid rgba(0,212,255,0.3);
  padding: 0.4rem 1rem;
  transition: all 0.3s;
}
nav a:hover { background: rgba(0,212,255,0.1); border-color: var(--cyan); }

main {
  flex: 1; display: flex; align-items: center;
  padding: 3rem 4rem; gap: 4rem;
  position: relative; z-index: 1;
}

.ident { flex: 1; max-width: 540px; }

.label {
  font-size: 0.65rem; letter-spacing: 0.5em;
  color: var(--amber); margin-bottom: 1rem;
}

h1 {
  font-family: 'Georgia', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: normal; letter-spacing: 0.05em;
  color: #fff; margin-bottom: 1rem;
}

.title-bar {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}

.bar-light {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.bar-light:last-child { background: linear-gradient(90deg, var(--cyan), transparent); }

.title-text {
  font-size: 0.8rem; letter-spacing: 0.3em;
  color: var(--cyan); white-space: nowrap;
}

.bio {
  color: var(--dim); line-height: 1.8;
  font-family: 'Arial', sans-serif;
  font-size: 0.95rem; margin-bottom: 2rem;
}

.tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tags span {
  font-size: 0.65rem; letter-spacing: 0.15em;
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--amber); padding: 0.3rem 0.7rem;
}

.cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--amber);
  color: var(--amber); text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.3em;
  transition: all 0.3s;
}
.cta:hover {
  background: var(--amber); color: var(--panel);
}

/* Instrument Panel */
.instrument-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.8rem;
  flex-shrink: 0;
}

.instrument {
  background: #0a1520;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 4px;
  padding: 0.8rem;
  display: flex; flex-direction: column; align-items: center;
  width: 130px; height: 130px;
}

.inst-label {
  font-size: 0.6rem; letter-spacing: 0.3em;
  color: var(--dim); margin-bottom: 0.4rem;
  align-self: flex-start;
}

/* ADI */
.adi-inner {
  width: 85px; height: 85px;
  border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(0,212,255,0.3);
  position: relative;
}
.adi-sky { position: absolute; top: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(180deg, #1a3a6b, #2756a0); }
.adi-ground { position: absolute; bottom: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(0deg, #3d2008, #7a4420); }
.adi-horizon { position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.6); transform: translateY(-50%); }
.adi-cross { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cross-h { width: 40px; height: 2px; background: var(--amber); }
.cross-v { position: absolute; width: 2px; height: 12px; background: var(--amber); }

/* HSI */
.hsi-ring {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid rgba(0,212,255,0.3);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hsi-tick { position: absolute; font-size: 0.55rem; color: var(--cyan); font-weight: bold; }
.hsi-tick.n { top: 2px; left: 50%; transform: translateX(-50%); }
.hsi-tick.s { bottom: 2px; left: 50%; transform: translateX(-50%); }
.hsi-tick.e { right: 3px; top: 50%; transform: translateY(-50%); }
.hsi-tick.w { left: 3px; top: 50%; transform: translateY(-50%); }
.hsi-needle {
  width: 2px; height: 30px;
  background: linear-gradient(180deg, var(--cyan) 50%, var(--amber) 50%);
  transform: rotate(274deg); transform-origin: bottom center;
  position: absolute; bottom: 50%;
}
.hsi-readout { font-size: 0.7rem; color: var(--cyan); margin-top: 0.3rem; }

/* ALT / SPD tape */
.tape { text-align: center; }
.tape-val { font-size: 1.2rem; color: var(--green); letter-spacing: 0.1em; }
.tape-sub { font-size: 0.55rem; color: var(--dim); margin-top: 0.2rem; }

/* Photo frame */
.photo-frame {
  grid-column: 1 / -1;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.cockpit-photo {
  width: 100%; height: 200px;
  object-fit: cover; object-position: center 30%;
  display: block;
  filter: brightness(0.9) contrast(1.05);
}
.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--dim); font-size: 0.6rem; letter-spacing: 0.15em;
  padding: 1rem 0.75rem 0.5rem;
}

footer {
  border-top: 1px solid rgba(0,212,255,0.2);
  padding: 0.8rem 2rem;
  background: rgba(15,25,35,0.95);
}

.status-bar { display: flex; gap: 2rem; font-size: 0.65rem; color: var(--dim); }
.status-item { letter-spacing: 0.15em; }
.green { color: var(--green); }

@media (max-width: 900px) {
  main { flex-direction: column; padding: 2rem; }
  .instrument-panel { grid-template-columns: 1fr 1fr; }
}
