/* marshall.nexus — single committed dark look */
:root {
  --bg: #0b0e14;
  --bg-2: #10141c;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eef1f6;
  --text-2: #aab3c2;
  --dim: #6d778a;
  --amber: #ffb020;
  --amber-soft: rgba(255, 176, 32, 0.16);
  --amber-glow: rgba(255, 176, 32, 0.45);
  --sea: #58a6c9;
  --green: #4ade80;
  --radius: 16px;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; }
.dim { color: var(--dim); }

/* ---------- background layers ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.bg-grid {
  position: absolute; inset: -1px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 10%, transparent 75%);
}

.bg-glow {
  position: absolute; left: 50%; top: -22vh;
  width: 90vw; max-width: 900px; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 176, 32, 0.16), rgba(88, 166, 201, 0.05) 45%, transparent 75%);
  filter: blur(12px);
}

.bg-trace {
  position: absolute; left: 0; right: 0; top: 62vh;
  width: 100%; height: 140px; opacity: 0.55;
}
.trace {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: sweep 9s linear infinite;
  filter: drop-shadow(0 0 6px var(--amber-glow));
}
@keyframes sweep {
  0%   { stroke-dashoffset: 1400; opacity: 0; }
  8%   { opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  85%  { opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------- page ---------- */
.page {
  position: relative; z-index: 1;
  width: min(100% - 2rem, 34rem);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2.5rem) 0 3rem;
}

/* ---------- hero ---------- */
.hero { text-align: center; margin-bottom: 2rem; }

.hero-banner {
  position: relative;
  height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-banner img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  filter: saturate(0.85) contrast(1.05);
}
.hero-banner::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 14, 20, 0.05), rgba(11, 14, 20, 0.55) 70%, var(--bg) 100%),
    linear-gradient(to right, rgba(11, 14, 20, 0.35), transparent 30%, transparent 70%, rgba(11, 14, 20, 0.35));
}

.avatar-wrap {
  position: relative;
  width: 112px; height: 112px;
  margin: -56px auto 0.9rem;
}
.avatar {
  width: 112px; height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  position: relative; z-index: 1;
  background: var(--bg-2);
}
.avatar-ring {
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--amber), var(--sea), transparent 55%, var(--amber));
  animation: spin 8s linear infinite;
  filter: drop-shadow(0 0 10px var(--amber-glow));
}
@keyframes spin { to { transform: rotate(360deg); } }

.kicker {
  display: inline-flex; align-items: center; gap: 0.45em;
  color: var(--amber);
  margin: 0 0 0.35rem;
}
.bolt { width: 14px; height: 14px; fill: var(--amber); filter: drop-shadow(0 0 5px var(--amber-glow)); }

.name {
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.tagline {
  color: var(--text-2);
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
}

.status {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.4em 0.85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-2);
  margin: 0;
}

/* LED indicators */
.led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
  flex: none;
}
.led.amber {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow), 0 0 0 2px var(--amber-soft);
  animation: blink 2.2s ease-in-out infinite;
}
.led.green {
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5), 0 0 0 2px rgba(74, 222, 128, 0.15);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- links ---------- */
.links { display: grid; gap: 0.75rem; margin-bottom: 2.5rem; }

.link {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.link::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(255, 176, 32, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.link:hover, .link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 176, 32, 0.55);
  background: var(--panel-hover);
  box-shadow: 0 10px 30px -12px rgba(255, 176, 32, 0.35);
  outline: none;
}
.link:hover::before, .link:focus-visible::before { opacity: 1; }
.link:focus-visible { box-shadow: 0 0 0 3px var(--amber-soft); }
.link:active { transform: translateY(0); }

.link > * { position: relative; }
.link-pin { color: var(--dim); width: 1.6em; flex: none; }
.link-icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.link-icon svg { width: 18px; height: 18px; fill: var(--text); }
.link-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.link-label { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.link-sub { color: var(--dim); letter-spacing: 0.02em; font-size: 0.74rem; }
.link-arrow {
  color: var(--dim);
  transition: transform 160ms ease, color 160ms ease;
}
.link:hover .link-arrow, .link:focus-visible .link-arrow { transform: translateX(4px); color: var(--amber); }

/* ---------- projects ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { margin: 0; font-weight: 500; color: var(--text-2); }

.project-grid { display: grid; gap: 0.75rem; }

.project {
  position: relative;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), transparent);
}
.project.queued { opacity: 0.72; }
.project-top {
  display: flex; align-items: center; gap: 0.55em;
  color: var(--text-2);
  margin-bottom: 0.55rem;
}
.project-id { margin-left: auto; }
.project h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.project p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

.meter {
  margin-top: 0.9rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.meter span {
  display: block; height: 100%; width: 38%;
  background: linear-gradient(90deg, var(--amber), var(--sea));
  box-shadow: 0 0 8px var(--amber-glow);
  animation: pulse 2.6s ease-in-out infinite;
}
.project.queued .meter span { width: 6%; background: var(--dim); box-shadow: none; animation: none; }
@keyframes pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.projects-note {
  margin: 1.1rem 0 0;
  color: var(--text-2);
  font-size: 0.95rem;
}
.projects-note a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(255, 176, 32, 0.35); }
.projects-note a:hover { border-bottom-color: var(--amber); }

/* ---------- footer ---------- */
.foot {
  display: flex; justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .trace, .avatar-ring, .led.amber, .meter span { animation: none; }
  .trace { stroke-dashoffset: 0; opacity: 0.6; }
  .link, .link-arrow { transition: none; }
}
