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

:root {
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --subtle: #999;
  --border: #e3e1dc;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --dark: #161614;
  --dark-muted: #a8a49e;
  --dark-border: #2e2e2b;
  --max: 680px;
  --max-wide: 880px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 8px;
}

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.7;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

/* ── Header ── */

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-name {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.site-name a {
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
}

nav a {
  text-decoration: none;
  color: var(--subtle);
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

/* ── Hero ── */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 4.5rem;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--subtle);
  margin: 0 0 1.5rem;
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(1.65rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  max-width: 560px;
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

/* ── Stats ── */

.stats-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 2.75rem 0;
}

.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
}

.stat {
  flex: 1;
  padding-right: 2rem;
  border-right: 1px solid var(--border);
  margin-right: 2rem;
}

.stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.stat-value {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ── Generic section wrapper ── */

.section-white {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}

.section-tinted {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-inner-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--subtle);
  margin: 0 0 2rem;
}

/* ── Bio ── */

.bio p {
  margin: 0 0 1.1rem;
}

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

/* ── Expertise ── */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.expertise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.expertise-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-color: #d0cdc7;
}

.expertise-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.expertise-desc {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Experience ── */

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

.experience-item {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.experience-item:first-child {
  padding-top: 0;
}

.experience-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-company {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}

.exp-company a {
  text-decoration: none;
}

.exp-company a:hover {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.exp-role {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.exp-desc {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.exp-dates {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--subtle);
  white-space: nowrap;
  text-align: right;
  padding-top: 0.15rem;
}

/* ── Contact form ── */

.contact-intro {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 2.25rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-submit {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--surface);
  background: var(--dark);
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: opacity 0.15s;
  align-self: flex-start;
}

.form-submit:hover {
  opacity: 0.82;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-notice {
  font-family: var(--sans);
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.25rem;
}

.form-notice.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-notice.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Footer ── */

footer {
  background: var(--dark);
  color: var(--dark-muted);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--sans);
  font-size: 0.78rem;
  margin: 0;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.social-links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--dark-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.social-links a:hover {
  color: #f6f5f2;
}

/* ── Responsive ── */

@media (max-width: 560px) {
  html { font-size: 16px; }

  .header-inner { padding: 1rem 1.25rem; }

  .hero { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-inner { padding: 0 1.25rem; }

  .stats-inner { padding: 0 1.25rem; flex-wrap: wrap; gap: 1.5rem; }
  .stat { flex: none; width: calc(50% - 0.75rem); border-right: none; margin-right: 0; padding-right: 0; }

  .section-inner,
  .section-inner-wide { padding: 0 1.25rem; }

  .section-white,
  .section-tinted { padding: 2.5rem 0; }

  .expertise-grid { grid-template-columns: 1fr; }

  .experience-item { grid-template-columns: 1fr; }
  .exp-dates { text-align: left; padding-top: 0; margin-top: 0.35rem; order: -1; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
