/* ==========================================================
   DESIGN TOKENS
   ========================================================== */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #131316;
  --bg-elevated-2: #1a1a1e;
  --border: #26262b;
  --text: #e9e9ec;
  --text-muted: #9a9aa4;
  --text-faint: #6c6c76;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);

  --max-width: 1100px;
  --section-gap: 56px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.section {
  margin-top: var(--section-gap);
}

.section:first-child {
  margin-top: 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ==========================================================
   1. HEADER
   ========================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.header-name {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.header-title {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.header-tagline {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 4px;
  max-width: 46ch;
}

.header-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elevated);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.pill-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-photo {
  width: 230px;
  height: 230px;
  margin-right: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

/* ==========================================================
   2. ABOUT
   ========================================================== */
.about-text {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

/* ==========================================================
   3. PRODUCT THINKING (case study)
   ========================================================== */
.case-study {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 72ch;
}

.case-label {
  font-size: 13px;
  font-style: italic;
  color: var(--text-faint);
  margin: 0 0 16px;
  line-height: 1.5;
}

.case-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.case-context {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.case-section {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.case-section:first-of-type {
  padding-top: 0;
  border-top: none;
}

.case-section + .case-section {
  margin-top: 16px;
}

.case-heading {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.case-body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

/* ==========================================================
   4. WHY PRODUCT (competencies)
   ========================================================== */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.competency-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.competency-skill {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}

.competency-evidence {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================
   5. PROJECTS
   ========================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--accent);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-elevated-2);
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

.project-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.project-problem {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.project-impact {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0;
}

.impact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 6px;
}

.case-study-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}

.view-all-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.15s ease, opacity 0.15s ease;
}

.view-all-link:hover {
  gap: 10px;
  opacity: 0.85;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: gap 0.15s ease, color 0.15s ease;
}

.back-link:hover {
  gap: 10px;
  color: var(--accent);
}

/* ==========================================================
   6. WORK EXPERIENCE
   ========================================================== */
.company-group {
  position: relative;
  padding-left: 26px;
}

.company-group + .company-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.company-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
}

.role-row {
  position: relative;
  padding-left: 22px;
  padding-bottom: 18px;
}

.role-row:last-child {
  padding-bottom: 0;
}

/* timeline dot */
.role-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* timeline connector line, only between roles at the same company */
.role-row::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  bottom: -18px;
  width: 1px;
  background: var(--border);
}

.role-row:last-child::after {
  display: none;
}

.role-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.role-meta {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.role-meta .dot {
  margin: 0 6px;
  color: var(--text-faint);
}

/* ==========================================================
   7. EDUCATION
   ========================================================== */
.education-degree {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.education-institution {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.education-duration {
  font-size: 13.5px;
  color: var(--text-faint);
  margin: 0;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .page {
    padding: 32px 18px 40px;
  }

  :root {
    --section-gap: 44px;
  }

  .header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }

  .header-photo {
    align-self: flex-end;
  }

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