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

:root {
  --text: #e6e6e6;
  --text-secondary: #888;
  --text-dim: #555;
  --bg: #000;
  --border: #1c1c1c;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

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

::selection {
  background: #333;
  color: #fff;
}

/* ── Sidebar (desktop) ─────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 50;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 28px;
  width: 100%;
}

.sidebar-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.sidebar-link.active {
  color: var(--text);
  font-weight: 500;
}

/* ── Mobile Navigation ─────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  flex-shrink: 0;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.hamburger.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hamburger.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-menu-link {
  font-size: 18px;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--text);
}

/* ── Main Content ──────────────────────────────── */
.main {
  max-width: 1240px;
  margin-left: 200px;
  padding: 0 64px;
}

/* ── Sections ──────────────────────────────────── */
.section {
  padding: 100px 0 0;
}

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

/* ── Reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-from-down {
  transform: translateY(24px);
}

.reveal.reveal-from-up {
  transform: translateY(-24px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 80px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 600px;
  line-height: 1.6;
}

.hero-heading {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 680px;
}

/* ── Section Heading ───────────────────────────── */
.section-heading {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  max-width: 600px;
}

/* ── Body Text ─────────────────────────────────── */
.body-text {
  max-width: 600px;
}

.body-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

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

.goal-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.inline-link {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--text-dim);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
  cursor: pointer;
}

.inline-link:hover {
  text-decoration-color: var(--text);
}

/* ── Skills List ───────────────────────────────── */
.skills-list {
  list-style: none;
  max-width: 600px;
}

.skills-list li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.skills-list li:first-child {
  border-top: 1px solid var(--border);
}

/* ── Project Card ──────────────────────────────── */
.project-card {
  display: block;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  transition: opacity 0.2s ease;
  max-width: 600px;
}

.project-card:hover {
  opacity: 0.7;
}

.project-card-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-card-title .arrow {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-card:hover .arrow {
  transform: translate(2px, -2px);
  color: var(--text);
}

.project-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.projects-soon {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  max-width: 600px;
}

/* ── Footer ────────────────────────────────────── */
.footer {
  margin-top: 140px;
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
  max-width: 600px;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
  padding: 2px 0;
}

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

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1400px) {
  .sidebar {
    width: 170px;
  }

  .main {
    margin-left: 170px;
    padding: 0 48px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .main {
    margin-left: 0;
    padding: 0 20px;
  }

  .hero {
    min-height: calc(100vh - 52px);
    padding-top: 52px;
  }

  .section {
    padding: 72px 0 0;
  }

  .hero-heading {
    font-size: 26px;
  }

  .section-heading {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .footer {
    margin-top: 72px;
    gap: 48px;
  }
}
