:root {
  --bg: #0a0b0c;
  --bg-soft: #0f1013;
  --panel: #121417;
  --panel-strong: #15181c;
  --border: #23262d;
  --text: #f5f6f8;
  --muted: #a9adb6;
  --accent: #4ade80;
  --accent-soft: rgba(74, 222, 128, 0.2);
  --chip: #1a1d22;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "EB Garamond", serif;
  color: var(--text);
  background-color: var(--bg);
  font-size: 17px;
  min-height: 100vh;
  line-height: 1.6;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 20% 15%, rgba(74, 222, 128, 0.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.95), rgba(8, 9, 10, 0.55));
  background-size: 18px 18px, auto, auto, auto;
  background-position: 0 0, center, center, center;
  pointer-events: none;
  z-index: -1;
}

.glow {
  position: fixed;
  inset: -30% 0 auto 0;
  height: 50vh;
  background: radial-gradient(circle at 30% 40%, rgba(74, 222, 128, 0.2), transparent 55%);
  filter: blur(60px);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(10, 11, 12, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

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

.section {
  padding: 90px 0;
  position: relative;
}

.hero {
  padding-top: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-copy {
  grid-column: span 7;
}

.hero-copy h1 {
  font-family: "EB Garamond", serif;
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 1.05;
  margin: 18px 0 16px;
}

.wave {
  display: inline-block;
  animation: wave 2.2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(12deg);
  }
  40% {
    transform: rotate(-6deg);
  }
  60% {
    transform: rotate(10deg);
  }
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #0a0b0c;
  box-shadow: 0 12px 30px rgba(74, 222, 128, 0.35);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}

.info-row {
  display: grid;
  gap: 10px;
}

.info-pill {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(18, 20, 23, 0.8);
  border: 1px solid var(--border);
  color: var(--muted);
}

.hero-card {
  grid-column: span 5;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.hero-card h2,
.hero-card h3 {
  font-family: "EB Garamond", serif;
  margin-bottom: 8px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 55%),
    #0f1215;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.divider {
  height: 1px;
  background: var(--border);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-family: "EB Garamond", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.section-head p {
  color: var(--muted);
  max-width: 440px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.list {
  display: grid;
  gap: 18px;
}

.list-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: start;
}

.list-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0f1114;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.list-body h3 {
  font-family: "EB Garamond", serif;
  margin-bottom: 4px;
}

.list-body p {
  color: var(--muted);
  margin-bottom: 12px;
}

.list-body ul {
  display: grid;
  gap: 8px;
  color: var(--muted);
  padding-left: 18px;
  list-style: disc;
}

.list-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: grid;
  grid-template-rows: 140px 1fr;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.35);
}

.project-thumb {
  display: grid;
  place-items: center;
  font-family: "EB Garamond", serif;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(59, 130, 246, 0.2));
  color: var(--text);
}

.project-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.project-body h3 {
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
}

.project-body p {
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.achievement {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 8px;
}

.badge {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact {
  text-align: center;
}

.contact p {
  color: var(--muted);
  max-width: 620px;
  margin: 16px auto 24px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(12, 13, 15, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 20;
}

.dock-item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-strong);
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.dock-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.dock-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-card {
    grid-column: span 1;
  }

  .nav {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-card {
    grid-template-columns: auto 1fr;
  }

  .list-date {
    grid-column: span 2;
  }
}

@media (max-width: 780px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dock {
    width: calc(100% - 32px);
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
