:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-soft: #ccfbf1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #ffffff !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: #1e293b;
}

/* Hero */
.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 1.15rem;
}

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

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric-value {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.metric-label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Portrait Card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  box-shadow: var(--shadow-md);
}

.portrait-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-alt);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.card-meta {
  padding: 0.9rem 0.35rem 0.25rem;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.card-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.compliance-band,
.stack-band {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 64ch;
  margin-bottom: 2.25rem;
}

.section-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.pillar-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Experience Timeline */
.timeline {
  display: grid;
  gap: 1.25rem;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}

.role-card.featured {
  border-left: 4px solid var(--accent);
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.role-header h3 {
  font-size: 1.15rem;
}

.role-company {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.94rem;
  margin-top: 0.15rem;
}

.role-period {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface-alt);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

.role-points li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.role-points li:last-child {
  margin-bottom: 0;
}

.role-points strong {
  color: var(--text);
}

.compact-copy {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.stack-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.stack-group h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 500;
}

.muted-tags span {
  background: var(--surface-alt);
  color: var(--text-muted);
}

/* Education & Governance */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}

.edu-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.edu-sub {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0.65rem;
}

.edu-note {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

.edu-list li {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0.45rem;
}

.edu-list li:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #ffffff;
  padding: 2.75rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.site-footer h2 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.site-footer p {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.footer-actions {
  display: flex;
  gap: 0.75rem;
}

.site-footer .btn-ghost {
  color: #e2e8f0;
  border-color: #334155;
}

@media (max-width: 900px) {
  .hero-grid,
  .pillars-grid,
  .stack-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 380px;
  }
}

@media (max-width: 680px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 2.75rem;
  }

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

  .role-header,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
.contact-section {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  font-size: 0.88rem;
  color: var(--accent-hover);
  min-height: 1.2em;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}