/* ---------------------------------------------------
   Trevor Sparks — résumé
   shares the tuner/terminal visual language of index.html
--------------------------------------------------- */

:root{
  --bg: #08090b;
  --bg-vignette: #0c0e12;
  --panel: #12141a;
  --bubble: #1a2030;
  --bubble-border: #2a3448;
  --bubble-border-active: #4a5c82;
  --text: #eef0f4;
  --text-dim: #7d879c;
  --text-faint: #4c5464;
  --accent: #e7a75f;
  --accent-soft: rgba(231, 167, 95, 0.35);
  --accent-glow: rgba(231, 167, 95, 0.18);
  --mono: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;

  --stage-width: min(820px, 92vw);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}

body{
  font-family: var(--mono);
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, var(--bg-vignette) 0%, var(--bg) 60%),
    var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--accent-soft); color: var(--bg); }

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

a{ color: inherit; }

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

/* ---------------- Header ---------------- */

.site-header{
  width: var(--stage-width);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 48px 0 12px;
}

.callsign{
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-text h1{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 3.4vw, 28px);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.tagline{
  margin: 2px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.header-nav{
  margin-left: auto;
  flex-shrink: 0;
}

.header-nav a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border: 1px solid var(--bubble-border);
  border-radius: 999px;
  background: var(--bubble);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible{
  color: var(--accent);
  border-color: var(--bubble-border-active);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* ---------------- Contact bar ---------------- */

.contact-bar{
  width: var(--stage-width);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0 30px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.contact-label{
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.contact-bar a{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--bubble-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-bar a:hover,
.contact-bar a:focus-visible{
  color: var(--accent);
  border-color: var(--accent-soft);
}

.dot-sep{ color: var(--text-faint); }

.contact-status{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.35; }
}

/* ---------------- Panels ---------------- */

main{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel{
  width: var(--stage-width);
  background: var(--panel);
  border: 1px solid var(--bubble-border);
  border-radius: 12px;
  padding: 20px 24px 26px;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.panel.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.panel-head{
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bubble-border);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

.summary-text{
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  min-height: 1.7em;
}

/* ---------------- Pills ---------------- */

.pill-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill{
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bubble);
  border: 1px solid var(--bubble-border);
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover{
  color: var(--accent);
  border-color: var(--bubble-border-active);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* ---------------- Timeline / experience ---------------- */

.timeline{
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.job{
  display: flex;
  gap: 16px;
}

.job-marker{
  position: relative;
  width: 14px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.job-marker span{
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}

.job-marker::after{
  content: '';
  position: absolute;
  top: 21px;
  bottom: -26px;
  left: 50%;
  width: 1px;
  background: var(--bubble-border);
  transform: translateX(-50%);
}

.job:last-child .job-marker::after{ display: none; }

.job-content{ flex: 1; min-width: 0; }

.job-head{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 8px;
}

.job-head h3{
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.job-head h3 .role{
  font-family: var(--mono);
  font-weight: 400;
  color: var(--text-dim);
  font-size: 14.5px;
}

.job-dates{
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.job-content ul{
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
}

.job-content li{
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 6px;
}

.job-content li::marker{ color: var(--accent); }

.edu-note{
  margin: 0;
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-dim);
}

/* ---------------- References ---------------- */

.ref-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ref-card{
  border: 1px solid var(--bubble-border);
  background: var(--bubble);
  border-radius: 10px;
  padding: 16px 18px;
}

.ref-name{
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.ref-role{
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.ref-contact{
  margin: 0;
  font-size: 12.5px;
}

.ref-contact a{
  text-decoration: none;
  border-bottom: 1px solid var(--bubble-border);
}

.ref-contact a:hover,
.ref-contact a:focus-visible{
  color: var(--accent);
  border-color: var(--accent-soft);
}

/* ---------------- Footer ---------------- */

.site-footer{
  width: var(--stage-width);
  padding: 20px 0 60px;
  text-align: center;
}

.site-footer p{
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.site-footer a{
  color: var(--text-dim);
  border-bottom: 1px solid var(--bubble-border);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible{
  color: var(--accent);
  border-color: var(--accent-soft);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 640px){
  .site-header{ flex-wrap: wrap; row-gap: 12px; }
  .header-nav{ margin-left: 58px; }
  .contact-status{ margin-left: 0; width: 100%; }
  .job-head{ flex-direction: column; align-items: flex-start; }
  .ref-grid{ grid-template-columns: 1fr; }
}
