:root {
  --bg: #0a0a0b;
  --surface: #131315;
  --surface-2: #1b1b1e;
  --line: #26262a;
  --text: #f2f2f3;
  --muted: #9a9aa2;
  --accent: #c8ff4d;
  --radius: 18px;
  --max: 1080px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

img {
  max-width: 100%;
  display: block
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px
}

section {
  padding: 64px 0
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line)
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2
}

.brand b {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em
}

.brand span {
  font-size: 12px;
  color: var(--muted)
}

.links {
  display: flex;
  align-items: center;
  gap: 26px
}

.links a {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  transition: color .2s
}

.links a:hover,
.links a.active {
  color: var(--accent)
}

.socials {
  display: flex;
  gap: 14px;
  align-items: center
}

.socials a {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s
}

.socials a:hover {
  color: var(--text)
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  border-radius: 2px
}

/* HERO */
.hero {
  padding: 96px 0 72px
}

.hero h1 {
  font-size: clamp(34px, 6.2vw, 64px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.08
}

.hero h1+h1 {
  color: var(--muted)
}

.loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 18px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px
}

.loc i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block
}

.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  transition: .2s
}

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

.btn-p {
  background: var(--accent);
  color: #0a0a0b;
  border-color: var(--accent)
}

.btn-s {
  background: var(--surface);
  color: var(--text)
}

/* HEADINGS */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap
}

h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em
}

.page-title {
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 600;
  letter-spacing: -.03em
}

.sub {
  color: var(--muted);
  margin-top: 10px;
  max-width: 560px
}

/* PROJECT CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s
}

.card:hover {
  transform: translateY(-4px);
  border-color: #3a3a40
}

.thumb {
  aspect-ratio: 16/11;
  background: linear-gradient(135deg, #1f2024, #2a2b31);
  display: flex;
  align-items: center;
  justify-content: center
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.card-b {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  align-items: center
}

.card-b h3 {
  font-size: 16px;
  font-weight: 500
}

.card-b span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap
}

/* EXPERIENCE / EDUCATION */
.row {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line)
}

.row img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-2);
  flex: none
}

.row h3 {
  font-size: 17px;
  font-weight: 600
}

.row .org {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2px
}

.row .date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px
}

.row p {
  color: var(--muted);
  font-size: 15px
}

/* SKILLS + TOOLS */
.skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 16px
}

.skill em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px
}

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

.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--muted)
}

/* ABOUT PORTRAIT */
.portrait {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 36px;
  border: 1px solid var(--line)
}

/* CONTACT */
.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(28px, 5vw, 52px)
}

.contact p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 460px
}

.cinfo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px
}

.cinfo div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px
}

.cinfo label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 6px
}

.cinfo a {
  font-size: 15px;
  word-break: break-word
}

.cinfo a:hover {
  color: var(--accent)
}

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted)
}

.foot .socials a:hover {
  color: var(--accent)
}

@media(max-width:860px) {

  .links,
  .nav .socials {
    display: none
  }

  .burger {
    display: block
  }

  .nav-in.open .links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px
  }

  .nav-in.open .links a {
    padding: 12px 0;
    width: 100%
  }

  .nav-in.open .socials {
    display: flex;
    position: absolute;
    top: 262px;
    left: 20px;
    gap: 18px
  }

  section {
    padding: 48px 0
  }

  .hero {
    padding: 64px 0 48px
  }

  .grid,
  .cinfo {
    grid-template-columns: 1fr
  }

  .row {
    flex-direction: column;
    gap: 12px
  }
}