:root {
  --bg-1: #f7f5ef;
  --bg-2: #f2e7ce;
  --ink: #171413;
  --muted: #4c433f;
  --panel: rgba(255, 250, 240, 0.66);
  --line: rgba(23, 20, 19, 0.16);
  --accent: #da3a2d;
  --accent-2: #1f6c5c;
  --max-width: 1080px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 16px 40px rgba(23, 20, 19, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #fdf8ed 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(rgba(23, 20, 19, 0.08) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  z-index: -2;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.3;
  animation: drift 14s infinite ease-in-out alternate;
}

.blob-1 {
  width: 380px;
  height: 380px;
  background: #f39b7f;
  top: -120px;
  left: -80px;
}

.blob-2 {
  width: 460px;
  height: 460px;
  background: #86c9a8;
  right: -180px;
  top: 120px;
  animation-delay: 1s;
}

.blob-3 {
  width: 320px;
  height: 320px;
  background: #f0ce74;
  bottom: -90px;
  left: 25%;
  animation-delay: 2s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  background: rgba(255, 248, 235, 0.86);
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--accent);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

main {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding: 0 18px 72px;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px 32px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.74), rgba(255, 244, 223, 0.82));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 8vw, 6rem);
  margin: 8px 0 4px;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 70ch;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(218, 58, 45, 0.32);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
}

.panel {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-kicker {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

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

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.skill-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.6);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  border-radius: 999px;
  background: rgba(31, 108, 92, 0.14);
  color: var(--accent-2);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.project-link {
  margin-top: auto;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.contact-copy {
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
}

.site-footer {
  text-align: center;
  padding: 12px 18px 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 700ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 150ms;
}

.reveal:nth-child(4) {
  animation-delay: 220ms;
}

.reveal:nth-child(5) {
  animation-delay: 280ms;
}

@media (max-width: 760px) {
  .site-header {
    margin: 14px 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 248, 235, 0.96);
    flex-direction: column;
    align-items: stretch;
    min-width: 180px;
    padding: 8px;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  main {
    margin-top: 20px;
    padding: 0 12px 56px;
  }

  .hero,
  .panel {
    padding: 20px;
  }
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(24px, -16px) scale(1.08);
  }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
