
[data-theme="dark"] {
  --bg: #0f0e0d;
  --bg-card: #171614;
  --bg-hover: #1e1c1a;
  --line: rgba(255, 255, 255, 0.07);
  --accent: #d4a853;
  --accent2: #7c9e87;
  --text: #e8e4de;
  --muted: #7a756e;
  --faint: #2e2b28;
  --nav-bg: rgba(15, 14, 13, 0.92);
  --tag-bg: rgba(212, 168, 83, 0.1);
  --tag-bd: rgba(212, 168, 83, 0.2);
}

[data-theme="light"] {
  --bg: #faf8f4;
  --bg-card: #ffffff;
  --bg-hover: #f3f0ea;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #9b6f1e;
  --accent2: #4a7a5c;
  --text: #1a1714;
  --muted: #7a736a;
  --faint: #e8e3da;
  --nav-bg: rgba(250, 248, 244, 0.92);
  --tag-bg: rgba(155, 111, 30, 0.08);
  --tag-bd: rgba(155, 111, 30, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: "Instrument Serif", serif;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-logo em {
  color: var(--accent);
  font-style: italic;
}

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

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

.nav-links a {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.theme-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
  color: var(--text);
}

.theme-btn:hover {
  background: var(--faint);
  border-color: var(--accent);
}

.nav-cta {
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--accent);
  padding: 7px 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.85;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 40px 60px;
  gap: 60px;
  border-bottom: 1px solid var(--line);
}

.intro-line {
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.intro-line::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}

.hero h1 span {
  display: block;
  font-style: italic;
  color: var(--accent);
}

.hero-role {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  margin-top: 4px;
}

.hero-bio {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.8;
  margin-bottom: 36px;
  font-weight: 300;
}

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

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-main,
.btn-ghost {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  padding: 10px 22px;
  text-decoration: none;
  border-radius: 4px;
}

.btn-main {
  background: var(--accent);
  color: var(--bg);
  padding: 11px 22px;
  transition: opacity 0.2s;
}

.btn-main:hover {
  opacity: 0.85;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  font-family: "Geist Mono", monospace;
}

.photo-slot {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 168, 83, 0.18), rgba(124, 158, 135, 0.18)),
    var(--faint);
}

.photo-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-slot img[src="your-photo.jpg"] {
  opacity: 0;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--bg);
  flex-shrink: 0;
}

.card-name {
  font-size: 0.78rem;
  color: var(--text);
}

.card-handle {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 1px;
}

.card-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  color: var(--accent2);
  letter-spacing: 0.06em;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse 2.4s ease infinite;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
}

.card-row:last-child {
  border-bottom: none;
}

.card-label {
  color: var(--muted);
}

.card-val {
  color: var(--text);
  text-align: right;
}

.card-val.green {
  color: var(--accent2);
}

.card-val.gold {
  color: var(--accent);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-top {
  margin-bottom: 48px;
}

.s-eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

.s-heading {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}

.s-heading em {
  font-style: italic;
  color: var(--accent);
}

.s-sub {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 500px;
  font-weight: 300;
  line-height: 1.75;
}

.about-wrap,
.proj-wrap,
.edu-wrap,
.contact-wrap {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.about-body p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 300;
}

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

.about-body p em {
  color: var(--accent);
  font-style: normal;
}

.stats-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-box,
.edu-c,
.pj,
.c-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.stat-box {
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.2s;
}

.stat-box:hover {
  border-color: var(--accent);
}

.stat-num {
  font-family: "Instrument Serif", serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-desc {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.skills-wrap,
.exp-wrap,
.certs-wrap {
  border-top: 1px solid var(--line);
  background: var(--bg-card);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.sk {
  background: var(--bg-card);
  padding: 24px 22px;
  transition: background 0.2s;
}

.sk:hover {
  background: var(--bg-hover);
}

.sk-ico {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.sk-name {
  font-family: "Instrument Serif", serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.sk-tags,
.pj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.t {
  font-family: "Geist Mono", monospace;
  font-size: 0.6rem;
  color: var(--accent);
  background: var(--tag-bg);
  border: 1px solid var(--tag-bd);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.proj-grid,
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pj {
  border-radius: 10px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.pj:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pj-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pj-num {
  font-family: "Geist Mono", monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.pj-type {
  font-family: "Geist Mono", monospace;
  font-size: 0.6rem;
  color: var(--accent2);
  background: rgba(124, 158, 135, 0.1);
  border: 1px solid rgba(124, 158, 135, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.pj-t {
  font-family: "Instrument Serif", serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pj-d {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  flex-grow: 1;
  font-weight: 300;
}

.pj-stack {
  margin-bottom: 20px;
}

.stag {
  font-family: "Geist Mono", monospace;
  font-size: 0.58rem;
  color: var(--muted);
  background: var(--faint);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.pj-link,
.pj-note {
  font-family: "Geist Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
}

.pj-link {
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.pj-link:hover {
  gap: 10px;
}

.pj-link::after {
  content: "↗";
}

.pj-note {
  color: var(--muted);
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.exp-row:last-child {
  border-bottom: none;
}

.exp-when {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding-top: 3px;
}

.exp-role {
  font-family: "Instrument Serif", serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 3px;
}

.exp-org {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.04em;
}

.exp-pts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.exp-pts li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
  font-weight: 300;
}

.exp-pts li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--faint);
  font-size: 0.75rem;
}

.edu-c {
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.2s;
}

.edu-c:hover {
  border-color: var(--accent2);
}

.edu-yr {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  color: var(--accent2);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.edu-deg {
  font-family: "Instrument Serif", serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 4px;
}

.edu-sch {
  font-size: 0.78rem;
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.edu-detail {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cert-row:last-child {
  border-bottom: none;
}

.cert-name {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 400;
}

.cert-issuer {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.cert-yr {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-left .big {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}

.contact-left .big em {
  font-style: italic;
  color: var(--accent);
}

.contact-left p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  max-width: 380px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.c-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 14px 18px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}

.c-item:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}

.c-label {
  font-family: "Geist Mono", monospace;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.c-val {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 400;
}

.c-arrow {
  font-size: 0.75rem;
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--line);
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ft {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

.hero-text > * {
  opacity: 0;
  animation: fadeup 0.5s ease forwards;
}

.intro-line { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero-role { animation-delay: 0.3s; }
.hero-bio { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.5s; }

.hero-card {
  opacity: 0;
  animation: fadeup 0.6s ease 0.5s forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 860px) {
  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 90px 20px 50px;
  }

  .hero-card {
    display: block;
  }

  .wrap {
    padding: 60px 20px;
  }

  .about-grid,
  .contact-inner,
  .edu-grid,
  .proj-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .exp-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cert-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

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


