:root {
  --ink: #0d1b18;
  --ink-soft: #11211e;
  --surface: #14251f;
  --surface-2: #1a2e28;
  --teal: #19e6c4;
  --teal-dim: #14bba0;
  --text: #e6efec;
  --text-dim: #8fa8a2;
  --text-faint: #5d746e;
  --border: rgba(25, 230, 196, 0.14);
  --max-width: 860px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.page { max-width: var(--max-width); margin: 0 auto; padding: 0 22px 60px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 64px 0 46px;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 230, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 230, 196, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
}

.hero-inner { position: relative; }

.terminal-line {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 4px;
}

.terminal-line .prompt { color: var(--teal); font-weight: 700; }
.terminal-line.dim { color: var(--text-faint); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--teal);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 26px 0 6px;
  line-height: 1.05;
}

h1 .accent { color: var(--teal); }

.role {
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 0 20px;
  font-weight: 500;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--teal);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(25, 230, 196, 0.05);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.3; } }

.endpoints {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 22px 0 34px;
}

.endpoints li { font-size: 13px; color: var(--text-dim); }
.endpoints a { font-family: var(--mono); }

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.metric:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 230, 196, 0.35);
}

.metric-value {
  display: block;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-value .plus { color: var(--teal-dim); font-size: 20px; }

.metric-label { font-size: 12px; color: var(--text-dim); }

/* ============ SECTIONS ============ */
.section { margin-top: 54px; }

.section-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.section-title .tag {
  color: var(--teal);
  margin-right: 10px;
}

.summary { font-size: 16px; color: var(--text); margin: 0; max-width: 72ch; }
.summary strong { color: var(--teal); }
.summary em { color: var(--text-dim); font-style: normal; }

/* Capabilities */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.cap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.cap h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--teal);
  font-family: var(--mono);
  letter-spacing: 0.4px;
}

.cap ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.cap li { margin-bottom: 5px; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--teal-dim), var(--border), transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 28px 28px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--teal);
}

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.tl-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.tl-head .loc { color: var(--text-faint); font-weight: 500; font-size: 14px; }

.date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-dim);
  white-space: nowrap;
}

.tl-role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-dim);
  margin: 3px 0 8px;
  letter-spacing: 0.3px;
}

.tl-item > p:last-child { margin: 0; font-size: 14px; color: var(--text-dim); }

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.proj-head h3 { margin: 0; font-size: 15px; font-weight: 800; }

.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--teal);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: 2px;
  margin-left: 6px;
}

.proj-sub { font-size: 12.5px; color: var(--text-dim); margin: 6px 0 10px; }

.project ul { margin: 0; padding-left: 16px; font-size: 13px; color: var(--text-dim); }
.project li { margin-bottom: 6px; }

/* Foundation */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

.col h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 22px 0 12px;
}

.col h3:first-child { margin-top: 0; }

.edu { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.edu strong { color: var(--text); }
.dim { color: var(--text-faint); font-size: 13px; }

ul.plain { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--text-dim); }
ul.plain li { margin-bottom: 8px; }
ul.plain strong { color: var(--teal); }

/* Footer */
.footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-endpoints { margin-bottom: 8px; }

.foot-note { font-size: 13px; color: var(--text-faint); }
.foot-note a { color: var(--teal-dim); }

/* ============ PRINT ============ */
@media print {
  body { background: #fff; color: #111; }
  .page { max-width: 100%; padding: 0; }
  .hero { padding: 24px 0 20px; }
  .grid-bg { display: none; }
  .cursor, .dot { display: none; }
  .section { margin-top: 26px; page-break-inside: avoid; }
  .metric, .cap, .project, .tl-item { page-break-inside: avoid; }
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metric { border-color: #ddd; background: #f7f7f7; }
  h1 { color: #0d1b18; }
  h1 .accent, .metric-value, .section-title .tag, .dot { color: #0e8a74; }
  a { color: #0e8a74; }
  .role, .summary, .tl-item > p:last-child, .cap ul, .project ul,
  .proj-sub, .edu, ul.plain, .endpoints li, .foot-note { color: #333; }
  .tl-head .loc, .dim { color: #666; }
  .status-line, .chip { border-color: #ccc; color: #0e8a74; }
}
