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

:root {
  --c-blue:        #2563eb;
  --c-blue-light:  #3b82f6;
  --c-blue-pale:   #eff6ff;
  --c-navy:        #0f172a;
  --c-navy-mid:    #1e293b;
  --c-navy-soft:   #334155;
  --c-gray-dark:   #475569;
  --c-gray:        #64748b;
  --c-gray-light:  #94a3b8;
  --c-gray-pale:   #f1f5f9;
  --c-border:      #e2e8f0;
  --c-white:       #ffffff;
  --c-success:     #16a34a;

  --ff-sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --ff-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.1);

  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  color: var(--c-navy);
  background: var(--c-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  border-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--ff-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: -0.02em;
}
.logo-bracket { color: var(--c-blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--c-gray-dark);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--c-blue); background: var(--c-blue-pale); }
.nav-link--cta {
  margin-left: 8px;
  padding: 7px 16px;
  background: var(--c-blue);
  color: var(--c-white);
  border-radius: var(--radius-sm);
}
.nav-link--cta:hover { background: var(--c-blue-light); color: var(--c-white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Section Base
   ============================================================ */
.section { padding: 96px 0; }
.section--gray { background: var(--c-gray-pale); }

.section-header {
  margin-bottom: 56px;
  text-align: center;
}
.section-label {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--c-blue);
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--c-navy);
}
.section-sub {
  margin-top: 16px;
  color: var(--c-gray);
  font-size: .95rem;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  letter-spacing: .01em;
}
.btn:active { transform: scale(.98); }
.btn--primary {
  background: var(--c-blue);
  color: var(--c-white);
  border: 2px solid var(--c-blue);
}
.btn--primary:hover { background: var(--c-blue-light); border-color: var(--c-blue-light); }
.btn--outline {
  background: transparent;
  color: var(--c-blue);
  border: 2px solid var(--c-blue);
}
.btn--outline:hover { background: var(--c-blue-pale); }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .35;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

/* Terminal */
.hero-terminal {
  border-radius: var(--radius-lg);
  background: var(--c-navy);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-family: var(--ff-mono);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--c-navy-mid);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .04em;
}
.terminal-body {
  padding: 20px 20px 24px;
  min-height: 160px;
}
.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #e2e8f0;
  font-size: .875rem;
  line-height: 1.6;
}
.terminal-prompt { color: #28c840; }
.terminal-cmd { color: #93c5fd; }
.terminal-cursor {
  color: var(--c-blue-light);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 50% { opacity: 0; } }
.terminal-output {
  margin-top: 10px;
  font-size: .82rem;
  color: #94a3b8;
  line-height: 1.9;
  white-space: pre-line;
  min-height: 80px;
}

/* Hero text */
.hero-label {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--c-blue);
  letter-spacing: .1em;
  background: var(--c-blue-pale);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #bfdbfe;
  margin-bottom: 16px;
}
.hero-name {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--c-navy-soft);
  margin-bottom: 16px;
  line-height: 1.6;
}
.hero-desc {
  color: var(--c-gray);
  margin-bottom: 32px;
  font-size: .95rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--c-gray-light);
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--c-gray-light), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(1) translateY(8px); }
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.about-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.about-avatar {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--c-blue-pale);
  border: 3px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-placeholder svg { width: 80px; height: 80px; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.badge--available {
  background: #dcfce7;
  color: var(--c-success);
  border: 1px solid #bbf7d0;
}

.about-intro {
  font-size: 1rem;
  color: var(--c-gray-dark);
  margin-bottom: 24px;
  line-height: 1.9;
}
.about-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.about-list li {
  display: flex;
  gap: 16px;
  font-size: .9rem;
  color: var(--c-gray-dark);
}
.about-list-label {
  flex-shrink: 0;
  width: 80px;
  font-weight: 600;
  color: var(--c-navy-soft);
  font-size: .85rem;
}
.about-links {
  display: flex;
  gap: 12px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-blue);
  padding: 8px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
}
.about-link:hover { background: var(--c-blue-pale); border-color: #bfdbfe; }

/* ============================================================
   Skills
   ============================================================ */
.skills-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 40px;
  background: var(--c-border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.skill-tab {
  padding: 8px 20px;
  border-radius: calc(var(--radius) - 2px);
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-gray);
  transition: background var(--transition), color var(--transition);
}
.skill-tab.active {
  background: var(--c-white);
  color: var(--c-navy);
  box-shadow: var(--shadow-sm);
}
.skill-tab:hover:not(.active) { color: var(--c-navy); }

.skills-panel { display: none; }
.skills-panel.active { display: block; }

.skill-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.skill-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.skill-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: .7rem;
  font-weight: 700;
  color: var(--c-white);
}
.skill-icon--react    { background: #0ea5e9; }
.skill-icon--ts       { background: #3178c6; }
.skill-icon--next     { background: var(--c-navy); }
.skill-icon--css      { background: #8b5cf6; }
.skill-icon--test     { background: #f59e0b; }
.skill-icon--perf     { background: var(--c-success); }
.skill-icon--react::after    { content: 'Re'; }
.skill-icon--ts::after       { content: 'TS'; }
.skill-icon--next::after     { content: 'Nx'; }
.skill-icon--css::after      { content: 'CS'; }
.skill-icon--test::after     { content: 'Vt'; }
.skill-icon--perf::after     { content: 'Pf'; }

.skill-name { font-size: .9rem; font-weight: 700; flex: 1; }

.skill-level {
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--ff-mono);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: .04em;
}
.skill-level--expert   { background: #dbeafe; color: var(--c-blue); }
.skill-level--advanced { background: #f0fdf4; color: var(--c-success); }

.skill-bar-wrap {
  height: 4px;
  background: var(--c-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.skill-bar {
  height: 100%;
  width: 0;
  background: var(--c-blue);
  border-radius: 2px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

.skill-desc { font-size: .82rem; color: var(--c-gray); line-height: 1.7; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-navy-soft);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tool-item:hover { border-color: var(--c-blue-light); box-shadow: var(--shadow-sm); }
.tool-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-blue);
  flex-shrink: 0;
}

.soft-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.soft-item {
  display: flex;
  gap: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.soft-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--c-blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue);
}
.soft-title { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.soft-desc { font-size: .82rem; color: var(--c-gray); line-height: 1.7; }

/* ============================================================
   Works
   ============================================================ */
.works-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 20px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-gray);
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.work-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.work-card.hidden { display: none; }

.work-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.work-thumb--1 { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.work-thumb--2 { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.work-thumb--3 { background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%); }
.work-thumb--4 { background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%); }
.work-thumb--5 { background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 100%); }
.work-thumb--6 { background: linear-gradient(135deg, #fafafa 0%, #e2e8f0 100%); }

.work-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: transform var(--transition);
}
.work-card:hover .work-thumb-inner { transform: scale(1.03); }

/* Browser mockup */
.mock-browser {
  width: 100%;
  max-width: 220px;
  background: var(--c-white);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 7px 10px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--c-border);
}
.mock-bar span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-border);
}
.mock-bar span:nth-child(1) { background: #fca5a5; }
.mock-bar span:nth-child(2) { background: #fde68a; }
.mock-bar span:nth-child(3) { background: #86efac; }

.mock-content { height: 80px; padding: 8px; }
.mock-content--app1 {
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 10px,
    #e2e8f0 10px, #e2e8f0 11px
  );
}
.mock-content--dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mock-content--dashboard::before,
.mock-content--dashboard::after {
  content: '';
  border-radius: 3px;
  background: #bfdbfe;
}
.mock-content--dashboard::before { height: 100%; }
.mock-content--dashboard::after  { height: 60%; align-self: end; background: #93c5fd; }
.mock-content--site {
  background: linear-gradient(to right, #3b82f6 40%, transparent 40%);
  background-size: 100% 10px;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.mock-content--app2 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: start;
}
.mock-content--app2::before,
.mock-content--app2::after {
  content: '';
  width: calc(50% - 2px);
  height: 28px;
  border-radius: 3px;
  background: var(--c-border);
}
.mock-content--app3 {
  background: repeating-linear-gradient(
    0deg,
    #f8fafc 0px, #f8fafc 12px,
    var(--c-border) 12px, var(--c-border) 13px
  );
}
.mock-content--site2 {
  background: radial-gradient(circle at 50% 80%, #bfdbfe 0%, transparent 60%);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay-btn {
  padding: 8px 22px;
  background: var(--c-white);
  color: var(--c-navy);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background var(--transition);
}
.work-overlay-btn:hover { background: var(--c-blue-pale); }

.work-body { padding: 20px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.work-tag {
  font-size: .72rem;
  font-family: var(--ff-mono);
  font-weight: 600;
  padding: 3px 8px;
  background: var(--c-blue-pale);
  color: var(--c-blue);
  border-radius: var(--radius-sm);
  border: 1px solid #bfdbfe;
}
.work-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.work-desc { font-size: .82rem; color: var(--c-gray); line-height: 1.7; margin-bottom: 12px; }
.work-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--c-gray-pale);
}
.metric {
  font-size: .75rem;
  color: var(--c-gray);
  font-family: var(--ff-mono);
}
.metric strong { color: var(--c-navy-soft); }

/* ============================================================
   Tech Stack
   ============================================================ */
.stack-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stack-group-title {
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--c-gray);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.stack-items { display: flex; flex-direction: column; gap: 10px; }
.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-navy-soft);
}
.stack-badge {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: .65rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.stack-badge.ts       { background: #3178c6; }
.stack-badge.js       { background: #f0db4f; color: #333; }
.stack-badge.html     { background: #e34f26; }
.stack-badge.css      { background: #264de4; }
.stack-badge.react    { background: #0ea5e9; }
.stack-badge.next     { background: var(--c-navy); }
.stack-badge.node     { background: #339933; }
.stack-badge.express  { background: #404040; }
.stack-badge.vitest   { background: #6e9f18; }
.stack-badge.playwright { background: #2ead33; }
.stack-badge.storybook { background: #ff4785; }
.stack-badge.eslint   { background: #4b32c3; }
.stack-badge.vercel   { background: var(--c-navy); }
.stack-badge.docker   { background: #2496ed; }
.stack-badge.gha      { background: #2088ff; }
.stack-badge.aws      { background: #ff9900; }

/* ============================================================
   Career / Timeline
   ============================================================ */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--c-border);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-blue);
  border: 3px solid var(--c-white);
  box-shadow: 0 0 0 2px var(--c-blue);
}
.timeline-content {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.timeline-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.timeline-period {
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--c-gray);
}
.timeline-type {
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  background: var(--c-blue-pale);
  color: var(--c-blue);
}
.timeline-role {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-company {
  font-size: .85rem;
  color: var(--c-gray);
  margin-bottom: 14px;
}
.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-points li {
  font-size: .875rem;
  color: var(--c-gray-dark);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.timeline-points li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-blue);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ============================================================
   Activity
   ============================================================ */
.activity-wrap { display: flex; flex-direction: column; gap: 48px; }

.activity-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.activity-stat {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: box-shadow var(--transition);
}
.activity-stat:hover { box-shadow: var(--shadow); }
.activity-stat-num {
  display: block;
  font-family: var(--ff-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1;
  margin-bottom: 6px;
}
.activity-stat-label {
  font-size: .8rem;
  color: var(--c-gray);
  letter-spacing: .04em;
}

.activity-graph-wrap {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-x: auto;
}
.activity-months {
  display: flex;
  gap: 0;
  margin-bottom: 6px;
  padding-left: 0;
  font-size: .72rem;
  font-family: var(--ff-mono);
  color: var(--c-gray);
  min-width: 660px;
}
.activity-graph {
  display: flex;
  gap: 3px;
  min-width: 660px;
}
.activity-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.activity-cell {
  width: 12px; height: 12px;
  border-radius: 2px;
  background: #ebedf0;
  transition: opacity .15s;
}
.activity-cell[data-level="1"] { background: #bfdbfe; }
.activity-cell[data-level="2"] { background: #93c5fd; }
.activity-cell[data-level="3"] { background: #3b82f6; }
.activity-cell[data-level="4"] { background: #1d4ed8; }
.activity-cell:hover { opacity: .75; cursor: default; }

.activity-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  justify-content: flex-end;
  font-size: .72rem;
  color: var(--c-gray);
}
.legend-cells { display: flex; gap: 3px; }
.legend-cell {
  width: 12px; height: 12px;
  border-radius: 2px;
  background: #ebedf0;
}
.legend-cell[data-level="1"] { background: #bfdbfe; }
.legend-cell[data-level="2"] { background: #93c5fd; }
.legend-cell[data-level="3"] { background: #3b82f6; }
.legend-cell[data-level="4"] { background: #1d4ed8; }

.recent-repos-title {
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--c-navy);
}
.repo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.repo-card {
  display: block;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--c-white);
}
.repo-card:hover { border-color: var(--c-blue-light); box-shadow: var(--shadow-sm); }
.repo-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.repo-icon { width: 16px; height: 16px; color: var(--c-gray); flex-shrink: 0; }
.repo-name { font-family: var(--ff-mono); font-size: .82rem; font-weight: 700; color: var(--c-blue); flex: 1; }
.repo-visibility {
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  border: 1px solid var(--c-border);
  color: var(--c-gray);
}
.repo-desc { font-size: .8rem; color: var(--c-gray); margin-bottom: 12px; line-height: 1.5; }
.repo-meta { display: flex; align-items: center; gap: 12px; }
.repo-lang { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--c-gray); }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; }
.lang-ts { background: #3178c6; }
.lang-js { background: #f0db4f; }
.repo-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--c-gray);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--c-blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue);
  flex-shrink: 0;
}
.contact-info-label { font-size: .78rem; color: var(--c-gray); margin-bottom: 2px; }
.contact-info-value { font-size: .9rem; font-weight: 600; color: var(--c-navy-soft); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--c-navy-soft); }
.form-required { color: #ef4444; font-size: .8rem; }
.form-input {
  padding: 11px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: var(--ff-sans);
  color: var(--c-navy);
  background: var(--c-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-input.error { border-color: #ef4444; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { cursor: pointer; }
.form-error {
  font-size: .78rem;
  color: #ef4444;
  min-height: 18px;
}

.btn-icon { flex-shrink: 0; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  color: var(--c-success);
  font-size: .9rem;
  font-weight: 600;
}
.form-success.visible { display: flex; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,.6);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--ff-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
}
.footer-copy { font-size: .8rem; }
.footer-links { display: flex; gap: 16px; }
.footer-link {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--c-white); }

/* ============================================================
   Scroll-reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 96px; align-items: flex-start; }
  .hero-terminal { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-avatar-wrap { flex-direction: row; justify-content: flex-start; }
  .skill-cards { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-groups { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .activity-stats { grid-template-columns: repeat(2, 1fr); }
  .repo-list { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .soft-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive — Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--c-white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    gap: 2px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav-link--cta { margin-top: 8px; text-align: center; }

  /* Hero */
  .hero { padding-bottom: 64px; min-height: auto; }
  .hero-content { gap: 28px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1; justify-content: center; }

  /* About */
  .about-avatar-wrap { flex-direction: column; align-items: center; }
  .about-links { flex-wrap: wrap; }

  /* Skills */
  .skills-tabs { flex-wrap: wrap; width: 100%; }
  .skill-tab { flex: 1; min-width: 0; text-align: center; }
  .skill-cards { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .soft-list { grid-template-columns: 1fr; }

  /* Works */
  .works-grid { grid-template-columns: 1fr; gap: 20px; }
  .works-filter { gap: 6px; }
  .filter-btn { font-size: .8rem; padding: 6px 14px; }

  /* Stack */
  .stack-groups { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Timeline */
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -20px; }

  /* Activity */
  .activity-stats { grid-template-columns: repeat(2, 1fr); }
  .repo-list { grid-template-columns: 1fr; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
}
