:root {
  --bg: #f5f3ee;
  --surface: rgba(254, 252, 248, 0.84);
  --ink: #1a1b1f;
  --muted: #4f535e;
  --accent: #0d5f5b;
  --accent-strong: #0a4542;
  --line: rgba(25, 28, 32, 0.12);
  --shadow: 0 18px 48px rgba(21, 24, 28, 0.12);
  --header-offset: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, rgba(13, 95, 91, 0.16), transparent 30%),
    radial-gradient(circle at 80% 8%, rgba(220, 148, 101, 0.16), transparent 28%),
    linear-gradient(160deg, #f9f7f2 0%, #ece8df 58%, #e8e2d7 100%);
  min-height: 100vh;
}

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

.background-shape {
  position: fixed;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.7;
  border-radius: 999px;
}

.shape-one {
  width: 350px;
  height: 350px;
  background: rgba(26, 132, 125, 0.3);
  top: -80px;
  right: -80px;
}

.shape-two {
  width: 280px;
  height: 280px;
  background: rgba(208, 115, 61, 0.28);
  bottom: -80px;
  left: -60px;
}

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

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.96rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--accent);
  left: 0;
  bottom: -5px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

.section {
  padding: 3.5rem 0;
}

section[id] {
  scroll-margin-top: var(--header-offset);
}

.hero {
  padding-top: 5.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(13, 95, 91, 0.24);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 0.7rem;
}

p,
li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-text {
  max-width: 58ch;
  margin-bottom: 1.6rem;
}

.name-note {
  margin-top: -0.2rem;
  margin-bottom: 1.2rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: #2d4f63;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  text-decoration: none;
  padding: 0.72rem 1.1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #0d5f5b, #137a75);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 95, 91, 0.28);
}

.button-ghost {
  border: 1px solid rgba(13, 95, 91, 0.34);
  color: var(--accent-strong);
  background: rgba(252, 249, 244, 0.72);
}

.section-heading p {
  margin-top: 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: #2e6e6a;
}

ul {
  margin-bottom: 0.2rem;
  padding-left: 1.15rem;
}

.projects-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.95rem;
}

.project-card {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card h3 {
  margin-bottom: 0.6rem;
}

.stack {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: #2d4f63;
}

.skill-group {
  grid-column: span 6;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
}

.contact-note {
  margin: 0.35rem 0 0.1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
}

.contact-links a {
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 500;
  border-bottom: 1px solid rgba(13, 95, 91, 0.36);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  background: rgba(249, 247, 242, 0.75);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

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

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

@media (max-width: 900px) {
  .project-card {
    grid-column: span 6;
  }

  .site-nav {
    position: absolute;
    right: 4vw;
    top: 72px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem;
    border-radius: 0.75rem;
    background: rgba(251, 248, 243, 0.95);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 2.6rem 0;
  }

  .hero {
    padding-top: 4.2rem;
  }

  .project-card,
  .skill-group {
    grid-column: span 12;
  }

  h1 {
    max-width: 100%;
  }
}
