/* ============================================================
   Portfolio site — Claude-aesthetic, cinematic scroll storyboard
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root,
.theme-light {
  --bg-primary:     #F7F4F0;
  --bg-secondary:   #EFE9E1;
  --bg-elevated:    #FFFFFF;
  --text-primary:   #1A1714;
  --text-secondary: #6B6560;
  --text-tertiary:  #A09890;
  --accent:         #CC785C;
  --accent-hover:   #B8603F;
  --accent-subtle:  #F2E0D6;
  --border:         #DDD6CE;
  --border-strong:  #C4BAB0;
  --code-bg:        #EDEBE7;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 6px 20px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 18px 40px rgba(28, 25, 23, 0.10);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease-claude: cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-dark {
  --bg-primary:     #1C1917;
  --bg-secondary:   #242220;
  --bg-elevated:    #2E2B28;
  --text-primary:   #F0EBE3;
  --text-secondary: #9E9791;
  --text-tertiary:  #6B6560;
  --accent:         #CC785C;
  --accent-hover:   #D98B6E;
  --accent-subtle:  #3A2820;
  --border:         #38342F;
  --border-strong:  #4A4540;
  --code-bg:        #252220;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.50);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  transition: background 320ms var(--ease-claude), color 320ms var(--ease-claude);
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 1px 1px,
      color-mix(in srgb, var(--text-primary) 14%, transparent) 1px,
      transparent 0);
  background-size: 24px 24px;
  background-attachment: fixed;
}
.theme-dark body,
body.theme-dark {
  background-image:
    radial-gradient(circle at 1px 1px,
      color-mix(in srgb, var(--text-primary) 10%, transparent) 1px,
      transparent 0);
}

/* Subtle vignette so dots feel atmospheric, not grid-paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% 0%,
      transparent 0%,
      var(--bg-primary) 70%),
    radial-gradient(120% 80% at 50% 100%,
      transparent 0%,
      var(--bg-primary) 70%);
  opacity: 0.55;
}

::selection { background: var(--accent-subtle); color: var(--text-primary); }

button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.display {
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; }
.h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; color: var(--text-primary); text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-secondary); }
.dim { color: var(--text-tertiary); }

/* ---------- Layout ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; padding: 120px 0; }
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .wrap, .wrap-narrow { padding: 0 20px; }
}

/* ---------- Navigation ---------- */
main, footer { position: relative; z-index: 1; }
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-claude), background 240ms var(--ease-claude);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.logo .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; position: relative; }
.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 200ms var(--ease-claude);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-underline {
  position: absolute;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  bottom: 4px;
  transition: left 380ms var(--ease-claude), width 380ms var(--ease-claude), opacity 200ms;
}

.nav-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 200ms var(--ease-claude),
              border-color 200ms var(--ease-claude),
              background 200ms var(--ease-claude),
              transform 160ms var(--ease-claude);
  position: relative;
  overflow: hidden;
}
.icon-btn:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-elevated); transform: scale(1.06); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .ico-stack { position: relative; width: 18px; height: 18px; }
.icon-btn .ico-stack > * {
  position: absolute; inset: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity 240ms var(--ease-claude), transform 320ms var(--ease-claude);
}
.icon-btn .ico-stack .sun { opacity: 1; }
.icon-btn .ico-stack .moon { opacity: 0; transform: rotate(-30deg); }
.theme-dark .icon-btn .ico-stack .sun { opacity: 0; transform: rotate(30deg); }
.theme-dark .icon-btn .ico-stack .moon { opacity: 1; transform: rotate(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 200ms var(--ease-claude),
              color 200ms var(--ease-claude),
              border-color 200ms var(--ease-claude),
              transform 200ms var(--ease-claude),
              box-shadow 220ms var(--ease-claude);
  white-space: nowrap;
  user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-pill { border-radius: 999px; }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: scale(1.04);
  box-shadow: 0 8px 24px -8px rgba(204, 120, 92, 0.5);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--text-secondary); transform: scale(1.02); }

/* ---------- HERO with parallax ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero-blob {
  position: absolute;
  top: -120px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}
.theme-dark .hero-blob { opacity: 0.14; }
.hero-blob-2 {
  position: absolute;
  bottom: -260px;
  left: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.05;
  filter: blur(140px);
  pointer-events: none;
  will-change: transform;
}
.theme-dark .hero-blob-2 { opacity: 0.09; }

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}
.hero h1 .accent-line { color: var(--accent); display: block; }
.hero-sub {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 32px auto 0;
}
.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
  margin: 76px auto 0;
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 280px; }
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  will-change: transform;
  position: relative;
}
.stat-card .num {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-card .lbl {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--text-tertiary);
  z-index: 2;
}
.scroll-cue .arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--text-tertiary));
  position: relative;
}
.scroll-cue .arrow::after {
  content: "";
  position: absolute;
  bottom: 0; left: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--text-tertiary);
  border-bottom: 1px solid var(--text-tertiary);
  transform: rotate(45deg);
}

/* ---------- Section header ---------- */
.section-head { margin-bottom: 64px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head .h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; max-width: 580px; }

/* ---------- ABOUT — horizontal pinned scroll ---------- */
.about-pin {
  height: 320vh;        /* total scroll length feeding the horizontal track */
  position: relative;
  padding: 0;
}
.about-pin .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.about-track {
  display: flex;
  gap: 64px;
  padding: 0 8vw;
  height: 72vh;
  align-items: stretch;
  will-change: transform;
}
.about-panel {
  flex: 0 0 auto;
  width: min(720px, 80vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.about-panel.intro {
  width: min(560px, 80vw);
}
.about-panel.intro .h1 { margin: 18px 0 24px; }
.about-panel.intro p { color: var(--text-secondary); font-size: 1.06rem; line-height: 1.8; }
.about-panel .panel-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.about-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.about-card.philosophy { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.about-card.philosophy .panel-num { color: rgba(255,255,255,0.7); }
.about-card.philosophy h2 { color: #FFFFFF; }
.about-card.philosophy p { color: rgba(255,255,255,0.86); }
.about-card.philosophy .quote-mark {
  position: absolute;
  top: 20px; right: 36px;
  font-size: 140px;
  font-family: 'Inter', serif;
  line-height: 1;
  color: rgba(255,255,255,0.15);
  font-weight: 700;
}

.about-card.life .h2 { margin-bottom: 18px; }
.about-card.life p { color: var(--text-secondary); line-height: 1.8; }
.life-list {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.life-list li {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.life-list li::before {
  content: "—";
  color: var(--accent);
  flex: 0 0 14px;
}
ul.life-list { padding: 0; margin-top: 20px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.about-progress {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.about-progress .seg {
  width: 36px; height: 3px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.about-progress .seg .fill {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
}

/* ---------- ID card (kept inside horizontal track) ---------- */
.id-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.id-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
}
.id-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.id-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.id-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); margin-top: 4px; letter-spacing: 0.04em; }
.id-quote {
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--border);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.96rem; line-height: 1.7;
}
.id-meta {
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--border);
  display: grid; gap: 12px;
}
.id-meta-row {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary);
}
.id-meta-row .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.id-meta-row .v { color: var(--text-primary); }
.dot-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #4ADE80;
  margin-left: 6px;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2.2s var(--ease-claude) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- SKILLS — scroll-driven 3D fan ---------- */
.skills-stage {
  position: relative;
  min-height: 100vh;
  padding: 80px 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1400px;
}
@media (max-width: 900px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 200ms var(--ease-claude),
              box-shadow 280ms var(--ease-claude),
              transform 240ms var(--ease-claude);
  will-change: transform, opacity;
  transform-style: preserve-3d;
}
.skill-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: scale(1.03) translateZ(0);
}
.skill-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-subtle);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.skill-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; color: var(--text-primary); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.code-tag {
  display: inline-flex; align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: color 180ms, border-color 180ms;
}
.skill-card:hover .code-tag { border-color: var(--border); color: var(--text-primary); }

/* ---------- PROJECTS — horizontal timeline rail ---------- */
.projects-pin {
  height: 420vh;
  position: relative;
  padding: 0;
}
.projects-pin .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.projects-header {
  padding: 56px 8vw 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.projects-header .h2 { margin: 0; }
.projects-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}
.projects-counter .live {
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
}

.projects-track-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}
.projects-track {
  display: flex;
  gap: 40px;
  padding: 0 8vw;
  align-items: center;
  will-change: transform;
}
.timeline-rail {
  position: absolute;
  bottom: 56px;
  left: 8vw;
  right: 8vw;
  height: 2px;
  background: var(--border);
  border-radius: 999px;
}
.timeline-rail .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: 999px;
  width: 0%;
  transition: width 80ms linear;
}
.timeline-ticks {
  position: absolute;
  bottom: 36px;
  left: 8vw;
  right: 8vw;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  pointer-events: none;
}
.timeline-tick { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: color 200ms; }
.timeline-tick.active { color: var(--accent); }
.timeline-tick .dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-strong);
  transition: background 220ms var(--ease-claude), border-color 220ms var(--ease-claude), transform 220ms var(--ease-claude);
}
.timeline-tick.active .dot { background: var(--accent); border-color: var(--accent); transform: scale(1.4); }

.project-slide {
  flex: 0 0 auto;
  width: min(900px, 78vw);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 80px;
}
@media (max-width: 900px) {
  .project-slide { grid-template-columns: 1fr; gap: 24px; width: min(540px, 82vw); padding-bottom: 90px; }
}

.project-mock {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 320ms var(--ease-claude), transform 320ms var(--ease-claude);
}
.project-slide.focus .project-mock { box-shadow: var(--shadow-lg); transform: scale(1.015); }

.project-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-subtle);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.theme-dark .project-num { color: color-mix(in srgb, var(--accent) 35%, transparent); }
.project-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.project-desc { color: var(--text-secondary); font-size: 1rem; margin-top: 14px; line-height: 1.7; max-width: 460px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.project-links { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  text-decoration: none; cursor: pointer;
  transition: background 200ms var(--ease-claude),
              border-color 200ms var(--ease-claude),
              color 200ms var(--ease-claude),
              transform 160ms var(--ease-claude);
}
.link-btn:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.04); }

.project-badge {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border: 1px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  z-index: 3;
}
.project-badge .live-dot { width: 6px; height: 6px; border-radius: 999px; background: #4ADE80; }

.mock-canvas { position: absolute; inset: 0; display: flex; flex-direction: column; }
.mock-bar {
  height: 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
}
.mock-bar .d { width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong); }
.mock-body { flex: 1; padding: 28px 32px; display: grid; gap: 16px; }
.mock-line { height: 10px; border-radius: 999px; background: var(--bg-secondary); }
.mock-line.short { width: 36%; }
.mock-line.med { width: 62%; }
.mock-line.long { width: 86%; }
.mock-line.accent { background: var(--accent-subtle); }

.mock-A .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px;
}
.mock-A .tile {
  height: 70px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-primary);
  padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary);
}
.mock-A .tile .n { color: var(--text-primary); font-size: 18px; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.01em; }
.mock-A .chart {
  margin-top: 4px; height: 64px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  padding: 10px 12px;
  display: flex; align-items: flex-end; gap: 4px;
}
.mock-A .chart .bar { flex: 1; background: var(--accent-subtle); border-radius: 3px; }
.mock-A .chart .bar:nth-child(odd) { background: var(--accent); opacity: 0.65; }

.mock-B { background: var(--code-bg); }
.mock-B .mock-bar { background: color-mix(in srgb, var(--code-bg) 80%, var(--text-primary) 4%); border-bottom-color: var(--border); }
.mock-B .code {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  color: var(--text-secondary);
  padding: 24px 28px; flex: 1; overflow: hidden;
}
.mock-B .code .k { color: var(--accent); }
.mock-B .code .s { color: color-mix(in srgb, var(--text-primary) 75%, var(--accent) 25%); }
.mock-B .code .c { color: var(--text-tertiary); font-style: italic; }
.mock-B .code .indent { padding-left: 22px; }

.mock-C .conv { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.mock-C .msg {
  max-width: 78%; padding: 10px 14px; border-radius: 14px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.55;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
}
.mock-C .msg.me {
  align-self: flex-end;
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ---------- CONTACT ---------- */
.contact-form {
  margin-top: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 200ms var(--ease-claude),
              box-shadow 200ms var(--ease-claude),
              background 200ms var(--ease-claude);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.contact-form button {
  width: 100%;
  margin-top: 6px;
  height: 50px;
  font-size: 15px;
  font-weight: 500;
}
.contact-form .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }

.socials {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.social {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 200ms, border-color 200ms, transform 160ms;
}
.social:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.success-state { text-align: center; padding: 24px 12px 8px; }
.success-state .check {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.success-state h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.success-state p { color: var(--text-secondary); }

.spinner {
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.footer .sep { color: var(--accent); margin: 0 4px; }

/* ---------- Reveal helpers ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 600ms var(--ease-claude), transform 600ms var(--ease-claude); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-zoom { opacity: 0; transform: scale(0.92); transition: opacity 700ms var(--ease-claude), transform 700ms var(--ease-claude); will-change: opacity, transform; }
.reveal-zoom.in { opacity: 1; transform: scale(1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 600ms var(--ease-claude), transform 600ms var(--ease-claude); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 600ms var(--ease-claude), transform 600ms var(--ease-claude); }
.reveal-right.in { opacity: 1; transform: translateX(0); }

/* Mobile menu */
.menu-btn { display: none; }
@media (max-width: 760px) {
  .nav-links.desktop { display: none; }
  .menu-btn { display: inline-flex; }
}
.mobile-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg-primary);
  display: flex; flex-direction: column;
  padding: 80px 32px 40px; gap: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 280ms var(--ease-claude);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-overlay a {
  font-family: var(--font-mono); font-size: 22px; color: var(--text-primary);
  text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--border);
}

/* Section transitions: scale-in on enter */
.scene { will-change: transform, opacity; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
  .reveal, .reveal-zoom, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
}
