/* ==========================================================
   Mason Funderburg: Aviation × Cybersecurity
   Colors live in :root. Change them here and the whole site follows.
   ========================================================== */
:root {
  --bg:        #070c16;   /* night cockpit */
  --bg-alt:    #0b1322;
  --panel:     #0f1a2e;
  --line:      #1d2b45;
  --text:      #e7edf6;
  --muted:     #8d9cb5;
  --amber:     #ffb547;   /* avionics amber: primary accent */
  --cyan:      #4fd8ff;   /* cyber cyan: secondary accent */
  --green:     #3dff9a;   /* radar green */
  --radius:    14px;
  --wrap:      1120px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0; letter-spacing: .01em; }
.mono { font-family: var(--font-mono); }
.small { font-size: .8rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 12, 22, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.15rem/1 var(--font-head); letter-spacing: .12em; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { color: var(--muted); font: 500 .95rem/1 var(--font-body); padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
nav .nav-cta { color: var(--amber); border: 1px solid rgba(255, 181, 71, .4); }

.strip { border-top: 1px solid var(--line); background: #050911; }
.strip-inner { display: flex; gap: 28px; overflow: hidden; white-space: nowrap; height: 30px; align-items: center;
  font: 500 .72rem/1 var(--font-mono); letter-spacing: .14em; color: var(--muted); }
.strip .ok { color: var(--green); }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font: 600 1rem/1 var(--font-body); transition: transform .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1a1000; }
.btn-primary:hover { background: #ffc56e; }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--panel); }
.btn-ghost:hover { border-color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(800px 400px at 85% 30%, rgba(79, 216, 255, .08), transparent 70%),
    linear-gradient(var(--bg), var(--bg));
}
/* faint runway centerline at the bottom of the hero */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 40px, transparent 40px 80px);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow, .kicker { font: 500 .8rem/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin: 0 0 18px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 700; text-transform: uppercase; }
.accent { color: var(--cyan); }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 36em; margin: 22px 0 0; }

/* Radar scope */
.radar { justify-self: center; width: 100%; max-width: 400px; }
.radar-scope {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #0b1f1a 0%, #06110e 70%);
  border: 2px solid rgba(61, 255, 154, .35);
  box-shadow: 0 0 60px rgba(61, 255, 154, .08), inset 0 0 40px rgba(0,0,0,.6);
  overflow: hidden;
}
.ring { position: absolute; border: 1px solid rgba(61, 255, 154, .18); border-radius: 50%; inset: 0; margin: auto; }
.r1 { width: 75%; height: 75%; } .r2 { width: 50%; height: 50%; } .r3 { width: 25%; height: 25%; }
.cross { position: absolute; background: rgba(61, 255, 154, .15); }
.cross.h { left: 0; right: 0; top: 50%; height: 1px; }
.cross.v { top: 0; bottom: 0; left: 50%; width: 1px; }
.sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(61, 255, 154, .42), rgba(61, 255, 154, 0) 70deg, transparent 360deg);
  animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.blip { position: absolute; display: flex; align-items: center; gap: 8px; }
.blip i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s ease-in-out infinite; }
.blip em { font: 500 .62rem/1 var(--font-mono); font-style: normal; letter-spacing: .08em; color: var(--green); background: rgba(6, 17, 14, .8); padding: 3px 5px; border-radius: 3px; }
.blip.warn i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.blip.warn em { color: var(--amber); }
.b1 { top: 22%; left: 56%; } .b2 { top: 62%; left: 14%; animation-delay: .7s; } .b3 { top: 74%; left: 58%; }
@keyframes pulse { 50% { opacity: .35; } }
.radar-label { display: flex; justify-content: space-between; margin-top: 12px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .15em; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); text-transform: uppercase; }
.section-sub { color: var(--muted); margin: 10px 0 0; }

/* Video in a multi-function display bezel */
.mfd { background: #03060c; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.mfd-bar { display: flex; justify-content: space-between; padding: 6px 8px 12px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .15em; color: var(--muted); }
.mfd-bar .rec { color: var(--amber); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--panel); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; color: var(--muted);
  background: repeating-linear-gradient(0deg, rgba(79,216,255,.03) 0 2px, transparent 2px 4px), var(--panel); }
.video-placeholder p { margin: 0; }
.play { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--amber); color: #1a1000; font-size: 1.6rem; padding-left: 4px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fact-num { display: block; font: 700 2rem/1 var(--font-head); color: var(--cyan); margin-bottom: 8px; }
.fact-label { color: var(--muted); font-size: .95rem; }

/* Experience route */
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 47px; top: 10px; bottom: 10px; width: 2px;
  background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 14px); }
.leg { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding-bottom: 36px; position: relative; }
.leg:last-child { padding-bottom: 0; }
.wpt { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-top: 4px; }
.wpt span { position: relative; z-index: 1; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted);
  font: 500 .66rem/1 var(--font-mono); letter-spacing: .14em; padding: 7px 8px; border-radius: 6px; }
.leg.current .wpt span { color: #1a1000; background: var(--amber); border-color: var(--amber); }
.leg-body { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.leg.current .leg-body { border-color: rgba(255, 181, 71, .45); }
.leg.prior .leg-body { border-style: dashed; }
.when { color: var(--amber); font-size: .78rem; letter-spacing: .1em; margin: 0 0 8px; text-transform: uppercase; }
.leg h3 { font-size: 1.6rem; }
.org { color: var(--cyan); margin: 6px 0 0; font-weight: 500; }
.leg ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.leg li { margin: 4px 0; }

/* Skills */
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gauge { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.gauge::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
.gauge h3 { font-size: 1.4rem; margin-bottom: 14px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 .78rem/1 var(--font-mono); color: var(--text); background: #0a1424; border: 1px solid var(--line); padding: 7px 10px; border-radius: 6px; }

/* Certifications */
.ratings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rating { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.badge { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 10px; border: 1px solid rgba(255, 181, 71, .5); color: var(--amber); font-size: .72rem; letter-spacing: .08em; }
.rating h3 { font-size: 1.3rem; }
.rating p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* Contact */
.contact { text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(255, 181, 71, .08), transparent 70%); }
.contact h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; }
.contact .lede { margin: 18px auto 0; }

.footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .75rem; letter-spacing: .08em; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .radar { max-width: 320px; }
  .panel-grid, .ratings { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .brand span { display: none; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 72px 0; }
  .facts, .panel-grid, .ratings { grid-template-columns: 1fr; }
  .route::before { left: 0; display: none; }
  .leg { grid-template-columns: 1fr; gap: 10px; }
  .wpt { justify-content: flex-start; }
  .leg-body { padding: 18px; }
}

/* Respect visitors who turn off motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sweep, .blip i { animation: none; }
  .btn { transition: none; }
}
