:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --muted-surface: #f7f7f7;
  --text: #0f0f0f;
  --muted: #3e3e3e;
  --line: #e8e8e8;
  --accent: #0f0f0f;
  --button-text: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.94);
  --max-width: 1080px;
  --space: 22px;
}

body[data-theme="dark"] {
  --bg: #0b0b0b;
  --surface: #0f0f0f;
  --muted-surface: #121212;
  --text: #f5f5f5;
  --muted: #c7c7c7;
  --line: #1f1f1f;
  --accent: #f5f5f5;
  --button-text: #0b0b0b;
  --header-bg: rgba(11, 11, 11, 0.92);
}

*,
*::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;
  font-size: 16px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 calc(var(--space) / 2);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 3vw + 1.4rem, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.4rem, 2vw + 1rem, 2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space);
  color: var(--muted);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 880px;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 30px;
  width: auto;
  display: block;
}

body[data-theme="dark"] .logo {
  filter: invert(1) brightness(1.1);
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--text);
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.toggle:hover,
.toggle:focus-visible {
  border-color: var(--text);
  transform: translateY(-1px);
}

.hero {
  padding: 120px 0 80px;
}

.hero-content h2 {
  color: var(--muted);
  font-weight: 600;
}

.lede {
  font-size: 1.05rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-text);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.section-header {
  margin-bottom: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.body {
  font-size: 1.05rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  background: var(--muted-surface);
}

.muted {
  background: var(--muted-surface);
}

.grid {
  display: grid;
  gap: 14px;
}

.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  font-weight: 600;
  background: var(--surface);
  min-height: 80px;
  display: flex;
  align-items: center;
}

.faq {
  background: var(--bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.faq-item {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding: 8px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.contact-list li {
  margin-bottom: 10px;
  font-weight: 500;
}

.contact-form form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--text);
  border-color: var(--text);
}

.contact-form button {
  width: fit-content;
  margin-top: 10px;
}

.form-status {
  min-height: 20px;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 6px 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 32px;
  align-items: start;
}

.about-media {
  width: 100%;
  align-self: flex-start;
}

.profile-photo {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.timeline-item {
  position: relative;
  padding-left: 10px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
}

.timeline-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.timeline-title {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 1rem;
}

.timeline-body {
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline-toggle {
  align-self: flex-start;
  margin-left: -16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-toggle::after {
  content: '▼';
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.timeline-toggle.active::after {
  transform: rotate(180deg);
}

.timeline-toggle:hover,
.timeline-toggle:focus-visible {
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.timeline-item.more {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
}

.timeline.expanded .timeline-item.more {
  opacity: 1;
  max-height: 180px;
  transform: translateY(0);
  pointer-events: auto;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 0.95rem;
  background: var(--bg);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.visible {
  animation: fadeInUp 0.6s ease forwards;
}

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

@media (max-width: 720px) {
  .site-header .container {
    padding: 14px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 90px;
  }

  .faq-grid {
    gap: 18px;
  }

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