:root {
  --bg: #f5f5f5;
  --shadowed-bg: #e0e0e0;
  --surface: #ffffff;
  --text: #161616;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --dark: #1e1e1e;
  --dark-soft: #2b2b2b;
  --green: #008d3853;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.brand {
  font-weight: 700;
}

.brand span {
  color: var(--green);
}

.nav {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding: 0.2rem 0;
}

.nav-link + .nav-link {
  padding-left: 1rem;
}

.nav-link + .nav-link::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 50%;
  width: 1px;
  height: 0.9rem;
  background: var(--line);
  transform: translateY(-50%);
}

.nav-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

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

.panel {
  position: relative;
  width: 100%;
}

#home,
#about,
#projects,
#contact {
  scroll-margin-top: 84px;
}

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

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 8rem 0 4rem;
  color: #fff;
}

.parallax {
  background-image: var(--bg-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 50%;
}

.hero::before,
.break::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

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

h1 {
  font-size: clamp(2rem, 7vw, 4.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 62ch;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.92);
}

.btn {
  display: inline-block;
  background: var(--bg);
  color: var(--text);
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  font-weight: 600;
  border-radius: 0.75rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.btn:hover {
  background: var(--shadowed-bg);
}

.section {
  padding: 5rem 0;
}

.light {
  background: var(--surface);
}

.dark {
  background: var(--dark);
  color: #fff;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.text {
  color: var(--muted);
  max-width: 65ch;
}

.dark .kicker {
  color: #d0d0d0;
}

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

.card {
  border: 1px solid #3a3a3a;
  padding: 1.25rem;
  background: var(--dark-soft);
}

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

.card p {
  color: #c7c7c7;
}

.card-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #c7c7c7;
  text-underline-offset: 2px;
  font-weight: 500;
}

.card-link:hover {
  color: #dcdcdc;
}

.break {
  height: 42svh;
}

.contact-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.contact .btn {
  background: var(--shadowed-bg);
  color: var(--text);
  border-color: var(--shadowed-bg);
  border-radius: 1rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.site-footer {
  background: var(--dark);
  color: #d4d4d4;
  border-top: 1px solid #343434;
  padding: 1.25rem 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-sep {
  margin: 0 0.45rem;
  color: #8a8a8a;
}

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

  .grid-two {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .topbar {
    padding: 0.85rem 1rem;
  }

  .nav {
    gap: 0.45rem;
    font-size: 0.83rem;
  }

  .nav-link + .nav-link {
    padding-left: 0.75rem;
  }

  .section {
    padding: 4rem 0;
  }

  .break {
    height: 34svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
