:root {
  --bg: #f6f5f2;
  --surface: #ffffffd9;
  --surface-strong: #ffffff;
  --text: #111111;
  --text-muted: #4d4d4d;
  --line: #1111111c;
  --brand: #0f766e;
  --brand-alt: #ca8a04;
  --shadow: 0 12px 45px #11111117;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  background: linear-gradient(180deg, #f8f8f4 0%, #f1eee8 100%);
  color: var(--text);
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.45;
  pointer-events: none;
}

.bg-shape-1 {
  top: -120px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: #f59e0b;
}

.bg-shape-2 {
  right: -120px;
  top: 240px;
  width: 320px;
  height: 320px;
  background: #14b8a6;
}

.site-header,
main,
footer {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
}

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

main {
  padding: 4.5rem 0 3rem;
}

section {
  margin-bottom: 4rem;
}

.hero {
  max-width: 860px;
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid #0f766e2e;
  background: #0f766e12;
  border-radius: 999px;
  color: #115e59;
  font-size: 0.8rem;
  font-family: "JetBrains Mono", monospace;
}

h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2rem, 5.8vw, 4.3rem);
  line-height: 1.03;
}

h1 span {
  color: #1f1f1f;
  display: block;
}

.hero-intro {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.65;
  max-width: 65ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px #11111117;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #115e59);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: #ffffffb5;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.about-grid article {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips li {
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  background: #f2f2f2;
  border: 1px solid #11111117;
  color: #232323;
  font-size: 0.8rem;
  font-family: "JetBrains Mono", monospace;
}

.section-head {
  margin-bottom: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.project-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffffeb;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card .project-type {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #115e59;
  font-family: "JetBrains Mono", monospace;
}

.project-card h3 {
  font-size: 1.18rem;
}

.project-card a {
  margin-top: auto;
  text-decoration: none;
  color: #115e59;
  font-weight: 700;
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.timeline article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  padding: 1rem;
}

.timeline-meta {
  margin: 0.35rem 0 0.35rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #444444;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

footer p {
  margin: 0;
  color: #333333;
  font-size: 0.9rem;
}

footer a {
  color: #333333;
  font-size: 0.9rem;
}

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

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

@media (max-width: 900px) {
  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    border-radius: 14px;
    top: 0.6rem;
  }

  nav {
    gap: 0.6rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  main {
    padding-top: 3rem;
  }

  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 1rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
