:root {
  --bg: #ffffff;
  --panel: #f9f7fc;
  --text: #20093a;
  /* Dark purple */
  --muted: #6e5b87;
  --accent: #00ff66;
  /* Cyberpunk light green */
  --accent-2: #ccff00;
  /* Highlighter green */
  --accent-red: #ff0055;
  /* Highlighter red */
  --accent-soft: rgba(0, 255, 102, 0.15);
  --line: #d4c5e3;
  --shadow: 0 8px 24px rgba(32, 9, 58, 0.08);
  --radius: 0px;
  --font-body: "Inter", sans-serif;
  --font-heading: "Outfit", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

h2 {
  font-size: 42px;
  line-height: 1.2;
}

h3 {
  font-size: 26px;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--text);
  background-color: var(--accent);
}

.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
  /* Thick marathon border */
  position: relative;
  overflow: hidden;
}

.nav-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid var(--text);
  box-shadow: 2px 2px 0px var(--text);
}

.nav-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links a:hover {
  background: var(--accent);
  color: var(--text);
  border-bottom: 2px solid var(--text);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--text);
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0px var(--text);
}

.btn.primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--text);
  background: var(--accent-2);
}

.btn.ghost {
  border: 2px solid var(--line);
  color: var(--text);
  background: transparent;
}

.btn.ghost:hover {
  border-color: var(--accent-red);
  color: var(--text);
  background: var(--accent-red);
  box-shadow: 4px 4px 0px var(--text);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 28px 100px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 72px;
  margin: 10px 0 16px;
  line-height: 1.05;
  text-shadow: 4px 4px 0px var(--accent);
}

.lead {
  font-size: 22px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero-card .card {
  background: var(--panel);
  border: 2px solid var(--text);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
  position: relative;
}

.hero-card .card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent-red);
  z-index: -1;
  transform: translate(4px, 4px);
}

.hero-profiles {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-profile-pic {
  width: 420px;
  height: 420px;
}

.profile-pic-container {
  width: 280px;
  height: 280px;
  border: 4px solid var(--text);
  padding: 0;
  background: var(--accent);
  box-shadow: 12px 12px 0px var(--accent-red);
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
}

.card-detail {
  margin: 0 0 6px;
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 10px;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 28px;
}

.section-header {
  max-width: 820px;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 17px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  padding: 8px 12px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: 0px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 2px 2px 0px var(--accent-red);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--panel);
  border: 3px solid var(--text);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 8px 8px 0px var(--text);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px var(--accent-2);
}

.card-meta {
  color: var(--muted);
  margin: 0 0 8px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.list li:last-child {
  border-bottom: none;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Project cards: image top, text below */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: var(--panel);
  border: 3px solid var(--text);
  box-shadow: 8px 8px 0px var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px var(--accent);
}

.project-img img {
  width: 100%;
  max-width: 700px;
  display: block;
  border: 2px solid var(--text);
  background: #fff;
}

.project-img--lg img {
  max-width: 900px;
}

.project-img--sm img {
  max-width: 400px;
}

.project-img--duo {
  display: flex;
  gap: 16px;
  align-items: start;
}

.project-img--duo img {
  max-width: none;
  flex: 1;
  min-width: 0;
}

.project-img--duo img.img-smaller {
  flex: 0.6;
}

.project-info h3 {
  margin-bottom: 6px;
}

.project-info p {
  font-size: 16px;
  line-height: 1.55;
}

.project-links {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.pub {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 3px solid var(--text);
  box-shadow: 8px 8px 0px var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px var(--accent-red);
}

.pub-link {
  color: var(--accent);
}

.pub-link:hover {
  color: var(--text);
}

.pub-meta {
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 6px;
}

.pub-authors {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 2px solid var(--line);
  padding-left: 16px;
  position: relative;
}

.timeline-item {
  position: relative;
  padding: 16px 20px;
  background: var(--panel);
  border: 3px solid var(--text);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0px var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px var(--accent);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 18px;
  width: 12px;
  height: 12px;
  background: var(--accent-red);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.timeline-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.timeline-org {
  font-weight: 600;
  margin: 0 0 6px;
}

.timeline-note {
  margin: 0;
  color: var(--muted);
}

.footer {
  background: var(--panel);
  color: var(--text);
  border-top: 2px solid var(--text);
  padding: 40px 28px 48px;
  margin-top: 32px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer a {
  color: var(--accent-red);
}

.footer-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 900px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Accent glow in header - removed for marathon solid look */
.site-header::after {
  content: none;
}

/* Drawing grid */
.drawing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.drawing-card {
  background: var(--panel);
  border: 2px solid var(--text);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--muted);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

.drawing-card img {
  width: 100%;
  max-height: 820px;
  display: block;
  border-radius: 0px;
  border: 2px solid var(--text);
  object-fit: contain;
  background: #ffffff;
}

.drawing-label {
  color: var(--text);
  font-weight: 600;
}

.drawing-placeholder {
  border: 2px dashed var(--accent);
  border-radius: 0px;
  background: var(--panel);
  color: var(--muted);
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .drawing-card img {
    max-height: 520px;
  }
}