:root {
  --bg: oklch(0.16 0.012 240);
  --bg-2: oklch(0.20 0.014 240);
  --bg-3: oklch(0.24 0.014 240);
  --line: oklch(0.30 0.014 240);
  --line-2: oklch(0.36 0.014 240);
  --fg: oklch(0.96 0.005 240);
  --fg-2: oklch(0.78 0.008 240);
  --fg-3: oklch(0.58 0.010 240);
  --accent: oklch(0.82 0.16 155);
  --accent-dim: oklch(0.82 0.16 155 / 0.15);
  --warn: oklch(0.80 0.15 75);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, oklch(0.22 0.02 200 / 0.5), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
  min-height: 100vh;
}
::selection { background: var(--accent); color: var(--bg); }

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

#app { position: relative; z-index: 2; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.16 0.012 240 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  font-family: var(--mono);
  font-size: 13px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.nav-brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s ease-in-out infinite; }
.nav-brand-suffix { color: var(--fg-3); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--fg-3); text-decoration: none; transition: color 120ms; }
.nav-links a:hover { color: var(--fg); }
.nav-links a .num { color: var(--accent); margin-right: 6px; }
.nav-cta {
  color: var(--accent); text-decoration: none;
  border: 1px solid var(--accent);
  padding: 8px 14px; border-radius: 4px;
  transition: all 120ms;
}
.nav-cta:hover { background: var(--accent-dim); }

.container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 100px 0 60px;
  border-bottom: 1px dashed var(--line);
}
.section-label {
  font-family: var(--mono);
  color: var(--fg-3);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; display: block;
  width: 24px; height: 1px;
  background: var(--accent);
}
.section-label .accent { color: var(--accent); }
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
h2.section-title {
  font-size: 38px;
  margin-bottom: 40px;
  text-wrap: balance;
}
p { line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }

.mono { font-family: var(--mono); }
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--fg-2);
  background: var(--bg-2);
}
.chip.accent { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

/* terminal */
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal-bar .title { font-size: 11px; color: var(--fg-3); margin-left: 8px; }
.terminal-body { padding: 16px 18px; line-height: 1.7; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd { color: var(--fg); }
.terminal-body .out { color: var(--fg-2); }
.terminal-body .comment { color: var(--fg-3); }
.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 150ms;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg);
}
.btn:hover { border-color: var(--fg-3); }
.btn.primary {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn.primary:hover { background: var(--accent); color: var(--bg); }
.btn .arrow { transition: transform 150ms; }
.btn:hover .arrow { transform: translateX(3px); }

@media print {
  .nav, .tweaks-panel, .tweaks-toggle { display: none !important; }
}

/* hero */
.hero { padding: 80px 0; border-bottom: 1px dashed var(--line); position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero-left { min-width: 0; }
.hero-right { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-headline {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 24px 0 28px;
  text-wrap: balance;
}
.hero-headline .line-clip { overflow: hidden; }
.hero-headline .line {
  display: inline-block;
  animation: slideUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-headline .line.delay { animation-delay: 80ms; }
@keyframes slideUp { from { transform: translateY(105%); } to { transform: translateY(0); } }
.hero-sub { font-size: 17px; color: var(--fg-2); max-width: 520px; margin-bottom: 32px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hero-social {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-2);
  text-decoration: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 150ms;
}
.hero-social:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: var(--accent-dim);
}
.hero-social-key { color: var(--accent); }
.hero-social-sep { color: var(--fg-3); }
.hero-social-handle { color: var(--fg); }
.hero-social-arrow {
  color: var(--fg-3);
  transition: transform 150ms, color 150ms;
}
.hero-social:hover .hero-social-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.hero-meta-row { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; color: var(--fg-3); }
.hero-meta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); }
.hero-terminal { box-shadow: 0 24px 60px -20px oklch(0 0 0 / 0.5); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metric-card { padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; }
.metric-val { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.metric-label { font-family: var(--mono); font-size: 11px; color: var(--fg-3); margin-top: 4px; line-height: 1.4; }
.out-row { display: flex; gap: 12px; font-size: 13px; line-height: 1.7; }
.out-key { color: var(--accent); min-width: 64px; }
.out-sep { color: var(--fg-3); }
.out-val { color: var(--fg-2); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
.about-bio-col { min-width: 0; }
.bio-lead { font-size: 20px; line-height: 1.55; color: var(--fg); margin: 0; text-wrap: pretty; }
.bio-extra { margin-top: 18px; color: var(--fg-3); }
.fact-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.fact-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.fact-k { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.05em; }
.fact-v { font-size: 14px; color: var(--fg); }
.fact-v.mono { font-family: var(--mono); }
.about-edu-col { min-width: 0; }
.subhead { font-family: var(--mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0.05em; margin-bottom: 16px; }
.subhead .accent { color: var(--accent); }
.edu-list { display: flex; flex-direction: column; gap: 18px; }
.edu-row { padding-left: 16px; border-left: 2px solid var(--accent); }
.edu-degree { font-size: 14px; color: var(--fg); font-weight: 500; }
.edu-school { font-size: 13px; color: var(--fg-2); margin-top: 2px; }
.edu-period { font-family: var(--mono); font-size: 11px; color: var(--fg-3); margin-top: 4px; }
.lang-row { display: flex; align-items: baseline; font-family: var(--mono); font-size: 13px; overflow: hidden; }
.lang-name { color: var(--fg); }
.lang-dots { color: var(--line-2); flex: 1; padding: 0 6px; overflow: hidden; white-space: nowrap; }
.lang-level { color: var(--fg-2); }

/* work */
.job { margin-bottom: 48px; }
.job-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.job-role { font-size: 22px; font-weight: 600; color: var(--fg); letter-spacing: -0.02em; }
.job-company { font-size: 15px; color: var(--accent); font-family: var(--mono); margin-top: 4px; }
.job-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-family: var(--mono); }
.job-period { font-size: 12px; color: var(--fg-2); }
.job-location { font-size: 11px; color: var(--fg-3); }
.project-list { display: flex; flex-direction: column; gap: 12px; }
.project-block {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 150ms;
}
.project-head {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 20px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  color: var(--fg);
  text-align: left;
  font-family: inherit;
  flex-wrap: wrap;
}
.project-head-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.chevron {
  color: var(--accent); font-family: var(--mono); font-size: 14px;
  transition: transform 200ms;
  display: inline-block;
}
.project-block.open .chevron { transform: rotate(90deg); }
.project-name { font-size: 16px; font-weight: 500; }
.stack-inline { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.stack-inline .chip { font-size: 10px; padding: 3px 7px; }
@media (max-width: 540px) {
  .project-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stack-inline { justify-content: flex-start; }
}
.project-body {
  padding: 4px 20px 22px 44px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.project-body[hidden] { display: none; }
.work-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.work-bullet { font-size: 14px; line-height: 1.6; color: var(--fg-2); padding-top: 14px; }
.work-bullet-label {
  display: block;
  font-family: var(--mono); font-size: 12px;
  color: var(--accent); margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.work-bullet-text { display: block; }

/* projects */
.projects-grid {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.proj-card {
  background: var(--bg);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 36px;
  align-items: start;
}
.proj-card-main {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}
.proj-gallery-col { min-width: 0; display: flex; justify-content: center; }
.proj-head { min-width: 0; }
.proj-tag-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.proj-index { font-family: var(--mono); font-size: 11px; color: var(--accent); background: var(--accent-dim); padding: 3px 6px; border-radius: 3px; }
.proj-tag { font-family: var(--mono); font-size: 11px; color: var(--fg-2); }
.proj-period { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.proj-name { font-size: 26px; font-weight: 600; color: var(--fg); letter-spacing: -0.02em; line-height: 1.15; }
.proj-body { min-width: 0; }
.proj-summary { font-size: 15px; color: var(--fg); margin: 0 0 16px; line-height: 1.5; }
.proj-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.proj-bullet { display: flex; gap: 10px; font-size: 13px; color: var(--fg-2); line-height: 1.55; }
.proj-bullet-mark { color: var(--accent); font-family: var(--mono); flex-shrink: 0; }
.proj-foot { min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.proj-stack-row { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-metric { width: 100%; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; }
.proj-metric-val { font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.proj-metric-label { font-family: var(--mono); font-size: 11px; color: var(--fg-3); margin-top: 4px; line-height: 1.4; }

/* phone gallery */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.phone {
  width: 220px; aspect-ratio: 9 / 19.5;
  background: oklch(0.10 0.005 240);
  border-radius: 28px; padding: 8px;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -25px oklch(0 0 0 / 0.7), inset 0 0 0 1px oklch(0.30 0.014 240 / 0.6);
  position: relative;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 18px;
  border-radius: 12px;
  background: oklch(0.05 0 0);
  z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 22px; overflow: hidden;
  background: var(--bg-2); position: relative;
}
.phone-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: opacity 280ms ease;
  opacity: 0;
}
.phone-img.active { opacity: 1; z-index: 2; }
.phone-thumbs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 240px; }
.phone-thumb {
  width: 32px; height: 44px;
  border-radius: 5px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--bg-2);
  padding: 0; cursor: pointer;
  transition: border-color 150ms;
}
.phone-thumb.active { border-color: var(--accent); }
.phone-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.gallery-meta { font-family: var(--mono); font-size: 11px; color: var(--fg-2); display: flex; gap: 6px; }
.gallery-meta .sep { color: var(--fg-3); }
.gallery-meta .total { color: var(--fg-3); }

/* laptop frame */
.laptop-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.laptop { width: 100%; max-width: 360px; position: relative; filter: drop-shadow(0 30px 40px oklch(0 0 0 / 0.5)); }
.laptop-lid {
  background: linear-gradient(180deg, oklch(0.28 0.012 240), oklch(0.20 0.012 240));
  border-radius: 10px 10px 4px 4px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-bottom: none;
}
.laptop-bezel {
  background: #000;
  border-radius: 5px 5px 2px 2px;
  padding: 14px 8px 8px;
  aspect-ratio: 16 / 10;
  position: relative;
}
.laptop-cam {
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: oklch(0.30 0.014 240);
  box-shadow: inset 0 0 0 1px oklch(0.05 0 0);
}
.laptop-screen {
  width: 100%; height: 100%;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.laptop-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.laptop-base-shelf {
  height: 6px;
  background: linear-gradient(180deg, oklch(0.20 0.012 240), oklch(0.14 0.012 240));
  margin: 0 -8px;
  border-radius: 0 0 2px 2px;
  border: 1px solid var(--line-2);
  border-top: none;
}
.laptop-base {
  height: 4px;
  background: linear-gradient(180deg, oklch(0.16 0.012 240), oklch(0.10 0.012 240));
  margin: 0 -16px;
  border-radius: 0 0 14px 14px;
  position: relative;
  box-shadow: 0 4px 8px oklch(0 0 0 / 0.4);
}
.laptop-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 20%; height: 3px;
  background: oklch(0.08 0.012 240);
  border-radius: 0 0 4px 4px;
}
.laptop-caption { font-family: var(--mono); font-size: 11px; color: var(--fg-3); text-align: center; margin-top: 4px; }

/* scan placeholder */
.scan-wrap { width: 100%; height: 100%; background: #fafafa; color: #222; font-family: var(--sans); font-size: 9px; display: flex; flex-direction: column; }
.scan-tabs { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #e8e8e8; border-bottom: 1px solid #d0d0d0; }
.scan-dot { width: 6px; height: 6px; border-radius: 50%; background: #c0c0c0; }
.scan-url { background: #fff; flex: 1; padding: 2px 6px; border-radius: 3px; font-size: 8px; color: #666; margin-left: 6px; font-family: var(--mono); }
.scan-page { flex: 1; padding: 10px; position: relative; overflow: hidden; background: #fff; }
.scan-headline { width: 70%; height: 8px; background: #222; margin-bottom: 8px; border-radius: 1px; }
.scan-line { height: 4px; background: #ddd; margin-bottom: 5px; border-radius: 1px; }
.scan-flagged {
  height: 22px; background: oklch(0.95 0.04 155);
  border: 1px dashed oklch(0.55 0.16 155);
  margin: 6px 0;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.scan-flagged-tag { font-family: var(--mono); font-size: 7px; color: oklch(0.40 0.16 155); font-weight: 600; }
.scan-bar {
  position: absolute; left: 0; right: 0; height: 24px;
  background: linear-gradient(180deg, transparent, oklch(0.82 0.16 155 / 0.35), transparent);
  border-top: 1px solid oklch(0.55 0.16 155);
  border-bottom: 1px solid oklch(0.55 0.16 155);
  animation: scanLine 3s linear infinite;
}
@keyframes scanLine { 0% { top: -10%; } 100% { top: 110%; } }
.scan-label { font-family: var(--mono); font-size: 8px; color: #444; padding: 4px 10px; background: #f0f0f0; border-top: 1px solid #d0d0d0; }
.scan-label .accent { color: var(--accent); }

/* skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
}
.skills-group {
  background: var(--bg);
  padding: 22px 24px;
  min-height: 140px;
}
.skills-group-head {
  display: flex; gap: 14px; align-items: baseline;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-3); letter-spacing: 0.06em;
  margin-bottom: 14px; text-transform: uppercase;
}
.skills-group-head .num { color: var(--accent); }
.skills-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* contact */
.contact { padding: 100px 0 0; border-bottom: none; }
.contact-wrap { max-width: 820px; }
.contact-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 20px 0 24px;
  text-wrap: balance;
}
.contact-headline .accent { color: var(--accent); }
.contact-sub { font-size: 17px; color: var(--fg-2); margin: 0 0 36px; max-width: 540px; }
.contact-terminal { box-shadow: 0 24px 60px -20px oklch(0 0 0 / 0.5); }
.contact-fields { display: flex; flex-direction: column; gap: 10px; }
.contact-row { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.6; }
.contact-k { color: var(--accent); min-width: 80px; font-family: var(--mono); }
.contact-sep { color: var(--fg-3); font-family: var(--mono); }
.contact-v { color: var(--fg); font-family: var(--mono); }
.contact-v.status { color: var(--accent); }
.contact-link { color: var(--fg); text-decoration: none; border-bottom: 1px dashed var(--fg-3); font-family: var(--mono); }
.copy-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  border-radius: 3px;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  margin-left: 4px;
}
.contact-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.footer { margin-top: 100px; border-top: 1px solid var(--line); padding: 24px 0; }
.footer-inner {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--fg-3);
  flex-wrap: wrap; gap: 12px;
}

/* tweaks panel — toolbar */
.tweaks-toggle {
  position: fixed; right: 16px; bottom: 16px;
  z-index: 2147483645;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--fg-2);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.4);
  transition: all 150ms;
}
.tweaks-toggle:hover { border-color: var(--accent); color: var(--accent); }
.tweaks-panel {
  position: fixed; right: 16px; bottom: 64px;
  z-index: 2147483646;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.5);
  overflow: hidden;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg);
}
.tweaks-panel[hidden] { display: none; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
}
.tweaks-x {
  background: transparent; border: none; color: var(--fg-3);
  width: 22px; height: 22px; border-radius: 4px;
  cursor: pointer; font-size: 14px;
}
.tweaks-x:hover { background: var(--bg-3); color: var(--fg); }
.tweaks-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 14px; }
.tweaks-section { display: flex; flex-direction: column; gap: 8px; }
.tweaks-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.tweaks-seg {
  display: flex; gap: 4px;
  padding: 3px;
  background: var(--bg-3);
  border-radius: 6px;
}
.tweaks-seg button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 120ms;
}
.tweaks-seg button.active {
  background: var(--accent-dim);
  color: var(--accent);
}
.tweaks-seg button:hover:not(.active) { color: var(--fg); }
.tweaks-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--bg-3);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 120ms;
}
.tweaks-swatch:hover { transform: scale(1.1); }
.tweaks-swatch.active { border-color: var(--fg); }
.tweaks-swatch::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--swatch-color);
}

/* responsive */
@media (max-width: 1100px) {
  .proj-card { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .proj-card-main { grid-template-columns: 1fr !important; gap: 20px !important; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  .section { padding: 60px 0 40px; }
  h2.section-title { font-size: 28px; }
}
@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
}
