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

:root {
  --bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-body: #475569;
  --accent: #3b82f6;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --badge-bg: #eff6ff;
  --text-muted: #94a3b8;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --page-pad: 48px;
  --max-width: 860px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--page-pad);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-link:focus-visible,
.btn-dark:focus-visible,
.btn-outline:focus-visible,
.contact-email:focus-visible,
.mobile-nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 24px;
}

.hamburger:hover { opacity: 0.7; }

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
}

.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 14px; }
.hamburger span:nth-child(3) { width: 22px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--page-pad) 20px;
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-muted);
}

.mobile-nav-link:last-child { border-bottom: none; }

/* ── HERO ── */
.hero {
  padding: 72px var(--page-pad) 56px;
  border-bottom: 1px solid var(--bg-muted);
}

.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ── ACCENT LINE ── */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 48px var(--page-pad) 48px;
}

/* ── ABOUT ── */
.about {
  padding: 0 var(--page-pad) 64px;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.profile {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.profile-meta h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.bio p {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 18px;
  line-height: 1.8;
}

.bio p:last-child { margin-bottom: 0; }

.bio a { color: var(--accent); text-decoration: none; }
.bio a:hover { text-decoration: underline; }

/* ── CONTACT STRIP ── */
.contact-strip {
  margin: 0 var(--page-pad) 64px;
  padding: 28px 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
}

.contact-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-email {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.contact-email:hover { text-decoration: underline; }

.contact-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.btn-dark {
  padding: 9px 20px;
  background: var(--text-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-outline {
  padding: 9px 20px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-body);
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ── DOCUMENT PAGES ── */
.doc-page {
  padding: 64px var(--page-pad) 80px;
  max-width: calc(680px + var(--page-pad) * 2);
}

.doc-page h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.doc-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.doc-page h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doc-page p {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 12px;
  line-height: 1.75;
}

.doc-page a { color: var(--accent); text-decoration: none; }
.doc-page a:hover { text-decoration: underline; }

.doc-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── FOOTER ── */
footer {
  padding: 20px var(--page-pad);
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy { font-size: 12px; color: var(--text-muted); }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* ── 404 ── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 48px var(--page-pad);
}

.not-found .error-code {
  font-size: 80px;
  font-weight: 800;
  color: var(--bg-muted);
  line-height: 1;
  margin-bottom: 16px;
}

.not-found h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.not-found p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --page-pad: 24px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 28px; }
  .profile { flex-direction: column; gap: 16px; }
  .profile-photo { width: 80px; height: 80px; }
  .contact-strip { flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (min-width: 769px) {
  .mobile-nav { display: none !important; }
}
