:root {
  --bg: #f8f9fa;
  --ink: #121212;
  --ink-dim: #5b6167;
  --accent: #ff4500;
  --line: #e4e6e8;
  --card: #ffffff;
  --max: 920px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

nav.top {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(248, 249, 250, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
}
nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  background: #121212;
}
.brand .mark span {
  background: linear-gradient(135deg, #ff4500, #ffb199);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.navlinks {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-dim);
}
.navlinks a:hover {
  color: var(--ink);
}

header.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
h1 {
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.2;
  margin: 0 0 22px;
  max-width: 18ch;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 16px;
  color: var(--ink-dim);
  max-width: 58ch;
  margin: 0 0 32px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-size: 12.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 14px;
}
h2 {
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}
p {
  color: var(--ink-dim);
  margin: 0 0 16px;
  max-width: 64ch;
}
p:last-child {
  margin-bottom: 0;
}

.placeholder-frame {
  margin-top: 24px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--card);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-align: center;
  color: var(--ink-dim);
  font-size: 13.5px;
}
.placeholder-frame strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}
.placeholder-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.placeholder-frame.chart-frame img {
  object-fit: contain;
  padding: 16px;
}

.link-row {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.link-btn {
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-block;
}
.link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.link-btn-primary {
  border-color: var(--accent);
  color: var(--accent);
}
.link-btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.repo-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--card);
}
.repo-card .repo-name {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.repo-card .repo-desc {
  font-size: 13.5px;
  color: var(--ink-dim);
}

.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}
.headshot-slot {
  width: min(180px, 100%);
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1.5px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: var(--ink-dim);
  padding: 0;
  overflow: hidden;
}
.headshot-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.badge-slot {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-dim);
  background: var(--card);
}

.contact-form {
  margin-top: 24px;
  max-width: 480px;
}
.bot-field-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-row {
  margin-bottom: 16px;
}
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.contact-form .btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.form-status {
  margin: 14px 0 0;
  font-size: 13.5px;
  min-height: 1.4em;
}
.form-status.success {
  color: #2e7d32;
}
.form-status.error {
  color: #c0392b;
}
.form-status.pending {
  color: var(--ink-dim);
}

footer {
  padding: 40px 0 64px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-dim);
}
footer a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  header.hero {
    padding: 64px 0 48px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .headshot-slot {
    width: 100%;
  }
  footer .wrap {
    flex-direction: column;
  }
  .brand {
    font-size: 13.5px;
    gap: 8px;
  }
  .navlinks {
    gap: 12px 16px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
