/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f5f8f7;
  --bg-alt:    #eaf0ee;
  --text:      #181e1d;
  --text-muted:#526360;
  --accent:    #1c6e78;
  --accent-hover: #145862;
  --border:    #cdd6d4;
  --radius:    6px;
  --max-w:     760px;
  --font:      system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Nav ── */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0.75rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.hero-text { flex: 1; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.role {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.role a { color: var(--text-muted); font-weight: 500; }
.role a:hover { color: var(--accent); }

.tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.supporting {
  font-size: 1rem;
  max-width: 56ch;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── Link buttons ── */
.link-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff !important;
}

/* ── Sections ── */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.about-text {
  font-size: 1.05rem;
  max-width: 58ch;
  line-height: 1.7;
}

/* ── Focus grid ── */
.focus-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
}

.focus-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.focus-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Professional values ── */
.values-text {
  font-size: 1.05rem;
  max-width: 58ch;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.values-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.values-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── ECG ── */
.ecg-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ecg-controls {
  margin-bottom: 0.75rem;
}

.ecg-reset-btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-family: var(--font);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}
.ecg-reset-btn:hover { border-color: var(--accent); color: var(--accent); }

#ecg-canvas {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: crosshair;
  touch-action: none;
}

/* ── Footer ── */
.site-footer {
  padding: 1.75rem 0;
  text-align: center;
}
.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .profile-photo { width: 120px; height: 120px; }
  .nav-links { gap: 1rem; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
}
