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

:root {
  --bg: #000000;
  --bg2: #0a0a0a;
  --bg3: #111111;
  --surface: rgba(255,255,255,0.04);
  --surface-strong: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.15);
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --accent: #2997ff;
  --accent2: #5e5ce6;
  --accent3: #30d158;
  --accent-warm: #ff9f0a;
  --glow: rgba(41, 151, 255, 0.15);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  animation: fadePage 0.5s ease;
}

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

/* Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(41,151,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.12s ease, width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-ring.expand {
  width: 56px;
  height: 56px;
  border-color: rgba(41,151,255,0.8);
}

/* Navigation */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(18, 22, 30, 0.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 5px 6px;
  gap: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  white-space: nowrap;
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  padding: 7px 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  margin-right: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  display: block;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 999px;
  text-decoration: none;
  margin-left: 4px;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: #55b3ff;
  transform: scale(1.04);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(41,151,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(94,92,230,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(48,209,88,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(41,151,255,0.1);
  border: 1px solid rgba(41,151,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-name {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-name strong {
  font-weight: 500;
}

.hero-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 200;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-title .highlight {
  color: var(--text);
  font-weight: 400;
}

.hero-desc {
  max-width: 560px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.4s ease both;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 980px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #55b3ff;
  transform: scale(1.03);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 32px;
  border-radius: 980px;
  text-decoration: none;
  border: 1px solid var(--border-bright);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}

.hero-stats {
  display: flex;
  gap: 64px;
  margin-top: 80px;
  animation: fadeUp 0.8s 0.5s ease both;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-num span {
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

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

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.8s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-tertiary), transparent);
  animation: scrollAnim 2s ease infinite;
}

@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Sections */
.page-hero {
  padding: 180px 48px 80px;
  background: var(--bg);
}

section {
  padding: 120px 48px;
}

.page-section {
  background: var(--bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 400;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.section-title strong {
  font-weight: 500;
}

.section-sub {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 72px;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* About */
.about {
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  transition: border-color 0.2s, background 0.2s;
}

.value-card:hover {
  border-color: var(--border-bright);
  background: rgba(255,255,255,0.06);
}

.value-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.value-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.value-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Skills */
.skills-section {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.skill-block {
  background: var(--bg3);
  padding: 36px 32px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.skill-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-bright), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-block:hover {
  background: rgba(255,255,255,0.03);
}

.skill-block:hover::before {
  opacity: 1;
}

.skill-category {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 400;
}

.skill-name {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
}

/* Projects */
.projects-section {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.project-card {
  background: var(--bg3);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
  border-radius: 0;
  border: 1px solid transparent;
  min-height: 100%;
}

.project-card:first-child,
.project-card.project-card-flagship {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(41,151,255,0.08), transparent 35%),
    linear-gradient(135deg, #0a0f1e, #0d0d0d 60%, #101010);
  border: 1px solid rgba(41,151,255,0.15);
}

.project-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.project-card:first-child:hover,
.project-card.project-card-flagship:hover {
  background:
    radial-gradient(circle at top right, rgba(41,151,255,0.11), transparent 36%),
    linear-gradient(135deg, #0c1120, #101010 60%, #121212);
  border-color: rgba(41,151,255,0.22);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-bright), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.project-card:hover::before {
  opacity: 1;
}

.project-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  font-family: 'DM Mono', monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--text-tertiary);
  flex-shrink: 0;
}

.project-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
  max-width: 82%;
}

.project-card:first-child .project-title,
.project-card.project-card-flagship .project-title {
  font-size: 36px;
  max-width: 76%;
}

.project-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 24px;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.project-detail-block {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 680px;
}

.project-card:first-child .project-detail-block,
.project-card.project-card-flagship .project-detail-block {
  border-top-color: rgba(255,255,255,0.1);
}

.project-detail-block h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.56);
  font-family: 'DM Mono', monospace;
  font-weight: 400;
}

.project-detail-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.82;
  color: rgba(255,255,255,0.8);
  max-width: 100%;
}

.architecture-flow {
  font-family: 'DM Mono', monospace;
  font-size: 12px !important;
  line-height: 1.9 !important;
  color: rgba(255,255,255,0.74) !important;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.project-tag {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s, opacity 0.2s;
  position: relative;
  z-index: 1;
}

.project-link:hover {
  gap: 12px;
  opacity: 1;
}

.project-link::after {
  content: '→';
}

.project-visual {
  position: absolute;
  right: 34px;
  top: 42px;
  transform: none;
  opacity: 0.07;
  font-size: 92px;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.project-card:first-child .project-visual,
.project-card.project-card-flagship .project-visual {
  font-size: 120px;
  top: 36px;
  right: 36px;
  opacity: 0.08;
}

.flagship-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.meta-item {
  min-width: 0;
}

.meta-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  font-family: 'DM Mono', monospace;
}

.meta-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.45;
}

/* Pipeline */
.pipeline-section {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.pipeline-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(41,151,255,0.06), transparent 70%);
  pointer-events: none;
}

.pipeline-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pipeline-diagram {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.pipeline-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 24px;
  flex: 1;
  transition: border-color 0.25s, background 0.25s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.pipeline-node::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41,151,255,0.06), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.pipeline-node:hover {
  border-color: rgba(41,151,255,0.4);
  background: rgba(41,151,255,0.05);
}

.pipeline-node:hover::after {
  opacity: 1;
}

.pipeline-node-label {
  color: var(--text-secondary);
  margin-bottom: 2px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pipeline-node-title {
  font-size: 15px;
  font-weight: 500;
}

.pipeline-node-badge {
  display: inline-block;
  font-size: 10px;
  color: var(--accent);
  background: rgba(41,151,255,0.1);
  border: 1px solid rgba(41,151,255,0.2);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
  font-family: 'DM Mono', monospace;
}

.pipeline-arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 44px;
}

.p-arrow-line {
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(41,151,255,0.6), rgba(41,151,255,0.1));
  margin-left: 12px;
}

.p-arrow-head {
  width: 6px;
  height: 6px;
  border-right: 1px solid rgba(41,151,255,0.6);
  border-bottom: 1px solid rgba(41,151,255,0.6);
  transform: rotate(45deg);
  margin-left: 9px;
  margin-top: -2px;
}

.pipeline-text p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.pipeline-text p strong {
  color: var(--text);
  font-weight: 500;
}

.code-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  margin-top: 32px;
}

.code-line {
  display: block;
}

.c-keyword { color: #ff7b72; }
.c-string { color: #a5d6ff; }
.c-comment { color: #8b949e; }
.c-func { color: #d2a8ff; }
.c-num { color: #79c0ff; }
.c-var { color: #ffa657; }

/* Experience */
.experience-section {
  background: var(--bg2);
}

.exp-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
  transition: border-color 0.25s;
}

.exp-card:hover {
  border-color: var(--border-bright);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.exp-title {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.exp-company {
  font-size: 16px;
  color: var(--accent);
  margin-top: 6px;
}

.exp-meta {
  text-align: right;
}

.exp-duration {
  display: inline-block;
  font-size: 12px;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: 'DM Mono', monospace;
}

.exp-location {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

.exp-achievements {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.achievement {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ach-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(41,151,255,0.1);
  border: 1px solid rgba(41,151,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 9px;
  color: var(--accent);
}

.ach-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ach-text strong {
  color: var(--text);
  font-weight: 500;
}

/* Stack */
.stack-section {
  background: var(--bg);
}

.stack-orbit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.stack-item {
  background: var(--bg3);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background 0.2s;
}

.stack-item:hover {
  background: rgba(255,255,255,0.04);
}

.stack-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
  background: var(--surface);
}

.stack-item-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.stack-item-type {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: 'DM Mono', monospace;
}

/* Contact */
.contact-section {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(41,151,255,0.07), transparent 70%);
  pointer-events: none;
}

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 28px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(41,151,255,0.5), transparent);
}

.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent3);
  background: rgba(48,209,88,0.1);
  border: 1px solid rgba(48,209,88,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.avail-dot {
  width: 6px;
  height: 6px;
  background: var(--accent3);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.contact-headline {
  font-size: 40px;
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact-headline strong {
  font-weight: 500;
}

.contact-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.contact-link:hover {
  border-color: var(--border-bright);
  background: rgba(255,255,255,0.06);
}

.contact-link-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-link-icon {
  font-size: 18px;
}

.contact-link-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg2);
}

.ticker-inner {
  display: flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
  width: max-content;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-item::before {
  content: '◆';
  font-size: 8px;
  color: var(--accent);
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 16px;
}

/* Footer */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-left strong {
  color: var(--text-secondary);
  font-weight: 400;
}

.footer-right {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: 'DM Mono', monospace;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Text wrapping safety */
.contact-link,
.contact-link-label,
.project-desc,
.ach-text,
.value-desc,
.section-sub,
.hero-desc,
.project-detail-block p,
.meta-value,
.project-title {
  overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 1024px) {
  nav {
    top: 14px;
    max-width: calc(100vw - 24px);
    width: max-content;
  }

  section,
  .page-hero {
    padding: 96px 28px 72px;
  }

  .about-grid,
  .pipeline-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .project-card:first-child,
  .project-card.project-card-flagship {
    grid-column: span 1;
  }

  .project-card {
    border-radius: 22px;
    padding: 38px 32px;
  }

  .project-card:first-child .project-title,
  .project-card.project-card-flagship .project-title {
    font-size: 30px;
    max-width: 84%;
  }

  .project-title {
    max-width: 82%;
  }

  .flagship-meta {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stack-orbit {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    gap: 28px;
  }

  .project-visual {
    font-size: 72px;
    right: 28px;
    top: 28px;
  }

  .project-card:first-child .project-visual,
  .project-card.project-card-flagship .project-visual {
    font-size: 88px;
    right: 28px;
    top: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-ring {
    display: none;
  }

  nav {
    top: 10px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 18px;
    gap: 8px;
  }

  .nav-logo {
    padding: 9px 14px;
    margin-right: 0;
    font-size: 13px;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: 9px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .hero {
    min-height: 100svh;
    padding: 120px 20px 72px;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    margin-bottom: 22px;
  }

  .hero-name {
    font-size: clamp(42px, 14vw, 64px);
    line-height: 0.95;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 18px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.65;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  .location-badge {
    margin-top: 18px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    margin-top: 42px;
    gap: 16px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 14px 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
  }

  .stat-num {
    font-size: 28px;
  }

  .stat-label {
    font-size: 11px;
  }

  .scroll-hint {
    bottom: 18px;
    font-size: 10px;
  }

  .scroll-line {
    height: 26px;
  }

  .ticker {
    padding: 14px 0;
  }

  .ticker-inner {
    gap: 28px;
    animation-duration: 22s;
  }

  .ticker-item {
    font-size: 11px;
    gap: 8px;
  }

  section,
  .page-hero {
    padding: 72px 20px 56px;
  }

  .section-title {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.05;
    margin-bottom: 16px;
  }

  .section-sub {
    font-size: 16px;
    margin-bottom: 42px;
    max-width: 100%;
  }

  .about-grid {
    gap: 32px;
  }

  .about-text p {
    font-size: 16px;
    line-height: 1.75;
  }

  .value-card {
    padding: 20px;
    border-radius: 14px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .skill-block {
    padding: 24px 20px;
  }

  .skill-name {
    font-size: 20px;
  }

  .pipeline-node {
    padding: 14px 16px;
  }

  .pipeline-node-title {
    font-size: 14px;
  }

  .code-block {
    padding: 18px;
    font-size: 11px;
    line-height: 1.7;
    border-radius: 12px;
  }

  .projects-grid {
    gap: 12px;
  }

  .project-card {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .project-title,
  .project-card:first-child .project-title,
  .project-card.project-card-flagship .project-title {
    font-size: 24px;
    max-width: 100%;
    padding-right: 56px;
  }

  .project-desc {
    font-size: 14px;
    margin-bottom: 18px;
    max-width: 100%;
    line-height: 1.72;
  }

  .project-detail-block {
    margin-top: 14px;
    padding-top: 12px;
  }

  .project-detail-block h4 {
    font-size: 10px;
    margin-bottom: 7px;
  }

  .project-detail-block p {
    font-size: 13px;
    line-height: 1.72;
  }

  .architecture-flow {
    font-size: 11px !important;
    line-height: 1.75 !important;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .project-tags {
    gap: 6px;
    margin-bottom: 20px;
    margin-top: 18px;
  }

  .project-tag {
    font-size: 10px;
    padding: 5px 10px;
  }

  .project-visual {
    position: absolute;
    top: 22px;
    right: 18px;
    margin-top: 0;
    font-size: 38px !important;
    opacity: 0.09;
  }

  .flagship-meta {
    padding: 18px 0;
    margin-bottom: 20px;
    gap: 16px;
  }

  .meta-value {
    font-size: 14px;
  }

  .exp-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .exp-meta {
    text-align: left;
  }

  .exp-title {
    font-size: 22px;
  }

  .ach-text {
    font-size: 14px;
  }

  .stack-orbit {
    grid-template-columns: 1fr 1fr;
    border-radius: 18px;
  }

  .stack-item {
    padding: 20px 16px;
  }

  .stack-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .stack-item-name {
    font-size: 13px;
  }

  .stack-item-type {
    font-size: 11px;
    word-break: break-word;
  }

  .contact-card {
    padding: 32px 20px;
    border-radius: 22px;
  }

  .contact-headline {
    font-size: 30px;
  }

  .contact-sub {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .contact-links {
    gap: 10px;
  }

  .contact-link {
    padding: 14px 14px;
    font-size: 14px;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-link-label {
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }

  .contact-link-label span:last-child,
  .contact-link-label,
  .contact-link {
    word-break: break-word;
  }

  footer {
    padding: 24px 20px 32px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-left,
  .footer-right {
    font-size: 12px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero {
    padding: 112px 16px 60px;
  }

  section,
  .page-hero {
    padding: 64px 16px 48px;
  }

  .hero-name {
    font-size: clamp(38px, 13vw, 54px);
  }

  .section-title {
    font-size: clamp(28px, 10vw, 36px);
  }

  .project-title,
  .project-card:first-child .project-title,
  .project-card.project-card-flagship .project-title {
    font-size: 22px;
    padding-right: 44px;
  }

  .contact-headline {
    font-size: 26px;
  }

  .stack-orbit {
    grid-template-columns: 1fr;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 11px;
  }

  .nav-logo {
    font-size: 12px;
    padding: 8px 12px;
  }

  .project-card {
    padding: 24px 18px;
  }

  .project-visual {
    right: 14px;
    top: 18px;
    font-size: 32px !important;
  }

  .project-desc,
  .project-detail-block p {
    font-size: 13px;
  }

  .architecture-flow {
    font-size: 10.5px !important;
  }
}