:root {
  --bg: #fbfaf7;
  --fg: #1a1a1a;
  --fg-dim: #6b6b6b;
  --fg-faint: #9a9a9a;
  --link: #c2410c;
  --rule: rgba(0, 0, 0, 0.09);
  --rule-soft: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg: #0e0e0d;
  --fg: #ebe9e3;
  --fg-dim: #8a8a85;
  --fg-faint: #5a5a55;
  --link: #f59e6a;
  --rule: rgba(255, 255, 255, 0.09);
  --rule-soft: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.25s ease, color 0.25s ease;
  font-feature-settings: "ss01", "cv11", "kern";
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page {
  max-width: 580px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* ---- intro ---- */
.intro { margin-bottom: 40px; }

.intro-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.intro-text { display: flex; flex-direction: column; gap: 2px; }

.intro h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.intro .role {
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.intro .lede {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 14px;
  color: var(--fg);
}

.intro .lede strong { font-weight: 600; }

.intro .lede a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--link);
  transition: color 0.15s;
}

.intro .lede a:hover { color: var(--link); }

.intro .meta {
  font-size: 13.5px;
  color: var(--fg-dim);
  margin: 22px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  letter-spacing: 0.01em;
}

.meta .dot { color: var(--fg-faint); }

/* ---- links ---- */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
  align-items: center;
}

.links a {
  color: var(--fg);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s, color 0.15s;
}

.links a:hover {
  color: var(--link);
  border-bottom-color: var(--link);
}

.links a.cta {
  color: var(--link);
  border-bottom-color: var(--link);
  font-weight: 500;
}

.links.small { font-size: 12.5px; }

/* ---- sections ---- */
section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

section h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 18px;
}

section p {
  margin-bottom: 12px;
  color: var(--fg);
}

section p:last-child { margin-bottom: 0; }

section p strong { font-weight: 600; }

section a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

section a:hover { border-bottom-color: var(--link); }

section a.cta {
  display: inline-block;
  padding: 2px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--link);
}

.profile-note {
  font-size: 15px;
  color: var(--fg-dim);
  padding: 14px 16px;
  border-left: 2px solid var(--link);
  background: rgba(194, 65, 12, 0.04);
  border-radius: 0 6px 6px 0;
  line-height: 1.55;
}

[data-theme="dark"] .profile-note { background: rgba(245, 158, 106, 0.05); }

/* ---- capability blocks ---- */
.caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.cap h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.cap p {
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ---- industries ---- */
.industries {
  font-size: 15.5px;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* ---- track record rows ---- */
.hl-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 6px !important;
  padding: 2px 0;
}

.hl-num {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.hl-lbl { color: var(--fg-dim); font-size: 15px; }

.accounts {
  margin-top: 18px !important;
  font-size: 14.5px;
  color: var(--fg-dim);
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

/* ---- jobs / experience ---- */
.job {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-soft);
}

.job:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
}

.job .company {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.job .company a {
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--rule);
}

.job .company a:hover {
  color: var(--link);
  border-bottom-color: var(--link);
}

.job .title {
  font-size: 13.5px;
  color: var(--fg-dim);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.job .when {
  font-size: 13px;
  color: var(--fg-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.job .company-desc {
  font-size: 14.5px;
  color: var(--fg-dim);
  font-style: italic;
  margin-bottom: 12px !important;
  line-height: 1.55;
}

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

.achievements li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.6;
}

.achievements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 1px;
  background: var(--fg-faint);
}

.achievements li strong { font-weight: 600; }
.achievements li em { color: var(--link); font-style: normal; }

/* ---- stack ---- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-dim);
}

.stack-row:last-child { border-bottom: none; }

.stack-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  padding-top: 2px;
}

/* ---- footer ---- */
footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.theme-btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg-dim);
  padding: 4px 12px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 11.5px;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.15s;
}

.theme-btn:hover {
  color: var(--fg);
  border-color: var(--fg-dim);
}

/* ---- selection ---- */
::selection {
  background: var(--link);
  color: var(--bg);
}

/* ---- responsive ---- */
@media (max-width: 500px) {
  .page { padding: 44px 20px 64px; }
  .intro h1 { font-size: 22px; }
  .avatar { width: 56px; height: 56px; }
  .caps { grid-template-columns: 1fr; gap: 18px; }
  .hl-row { grid-template-columns: 88px 1fr; gap: 12px; }
  .job-head { flex-direction: column; gap: 2px; }
  .stack-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
