:root {
  --bg: #f8f7f6;
  --surface: #ffffff;
  --surface-soft: #f2eee9;
  --text: #2c2c34;
  --muted: #67636f;
  --line: rgba(74, 31, 43, 0.16);
  --brand: #4a1f2b;
  --brand-dark: #341621;
  --accent: #8c7a5b;
  --radius: 16px;
  --shadow: 0 16px 38px rgba(44, 44, 52, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, rgba(74, 31, 43, 0.12), transparent 42%),
    radial-gradient(circle at 85% 4%, rgba(140, 122, 91, 0.16), transparent 40%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(248, 247, 246, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.35rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--muted);
  transition: color 180ms ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text);
  display: block;
}

.hero {
  padding: clamp(4.2rem, 8vw, 7.4rem) 0 clamp(2.4rem, 5vw, 4.2rem);
}

.page-hero {
  padding: clamp(4rem, 8vw, 6.8rem) 0 clamp(2.2rem, 4vw, 3.4rem);
}

.eyebrow {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.76rem;
  color: var(--brand-dark);
  margin: 0 0 0.75rem;
}

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

h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.hero-copy {
  max-width: 62ch;
  margin: 1.2rem 0 0;
  color: var(--muted);
}

.page-copy {
  max-width: 66ch;
  margin: 1rem 0 0;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fffaf6;
  box-shadow: 0 10px 24px rgba(74, 31, 43, 0.24);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.hero-metrics {
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-metrics li {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.metric {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

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

.section {
  padding: clamp(2.8rem, 5vw, 5rem) 0;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(74, 31, 43, 0.08), rgba(74, 31, 43, 0)),
    var(--surface-soft);
  border-block: 1px solid var(--line);
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 210ms ease, box-shadow 210ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(44, 44, 52, 0.16);
}

.project-card h3 {
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 1.24rem;
}

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

.project-points {
  margin: 0.75rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.project-points li {
  margin: 0.22rem 0;
}

.project-card .tag {
  display: inline-flex;
  margin-bottom: 0.2rem;
  border-radius: 999px;
  padding: 0.13rem 0.58rem;
  background: rgba(140, 122, 91, 0.18);
  color: #6a5b44;
  font-size: 0.74rem;
  font-weight: 700;
}

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

.project-links a {
  color: var(--brand);
  font-weight: 700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

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

.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

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

.about-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

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

.about-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

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

.experience-card h3 {
  margin-bottom: 0.75rem;
}

.experience-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.experience-card li {
  padding: 0.7rem 0;
  border-top: 1px dashed var(--line);
}

.experience-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.experience-card span {
  font-size: 0.82rem;
  color: var(--brand-dark);
  font-weight: 700;
}

.experience-card p {
  margin: 0.15rem 0 0;
}

.experience-card .role {
  color: var(--text);
  font-weight: 700;
}

.experience-card .desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.detail-card h3,
.post-card h3 {
  font-size: 1.24rem;
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
}

.detail-card p,
.post-card p {
  margin: 0;
  color: var(--muted);
}

.detail-meta {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem !important;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-dark) !important;
}

.cta-section {
  padding-bottom: clamp(3.4rem, 5vw, 5.2rem);
}

.cta-box {
  background:
    linear-gradient(130deg, rgba(74, 31, 43, 0.94), rgba(108, 63, 74, 0.92)),
    #341621;
  color: #fffaf6;
  border-radius: 24px;
  padding: clamp(1.35rem, 3vw, 2.4rem);
}

.cta-box .eyebrow {
  color: #d8c9b2;
}

.cta-box p {
  color: #efe8de;
  max-width: 58ch;
}

.cta-links {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.link-pill {
  border: 1px solid rgba(239, 232, 222, 0.45);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-weight: 600;
  color: #fff4e6;
}

.link-pill:hover {
  background: rgba(239, 232, 222, 0.14);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2.1rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

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

.bg-glow-1 {
  width: 260px;
  height: 260px;
  top: -40px;
  left: -30px;
  background: #7b3b4b;
}

.bg-glow-2 {
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: 8%;
  background: #b49b74;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 440ms ease, transform 440ms ease;
}

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

@media (max-width: 980px) {
  .projects-grid,
  .skills-grid,
  .detail-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .nav-links {
    gap: 0.9rem;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(248, 247, 246, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.4rem;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .nav-links.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-metrics,
  .projects-grid,
  .skills-grid,
  .detail-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }
}
