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

:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f4f4f5;
  --fg: #09090b;
  --fg-2: #52525b;
  --fg-3: #a1a1aa;
  --fg-4: #d4d4d8;
  --border: #e4e4e7;
  --border-2: #d4d4d8;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "Geist Mono", monospace;
  --max-w: 860px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
::selection {
  background: var(--fg);
  color: #fff;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--border-2);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 80% at 30% 55%, #c7ebd8 0%, transparent 65%),
    radial-gradient(ellipse 60% 70% at 85% 40%, #fef3c7 0%, transparent 60%), #ffffff;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.8rem, 11vw, 8.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 2.5rem;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.65s var(--ease) forwards;
}

.hero-line:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-line:nth-child(2) {
  animation-delay: 0.16s;
}

.hero-dot {
  color: #22c55e;
  font-weight: 900;
}

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

.hero-bio {
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.65s var(--ease) 0.28s forwards;
}

.hero-bio p {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hero-bio p:last-of-type {
  margin-bottom: 1.75rem;
}

.hero-bio strong {
  color: var(--fg);
  font-weight: 600;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1.25rem;
  background: var(--fg);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.btn-primary:hover {
  opacity: 0.75;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1.25rem;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-2);
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.6);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.wrap--center {
  text-align: center;
}

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

.section-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg);
  text-transform: uppercase;
}

.projects-list {
  border: 1px solid var(--border);
}

.project {
  display: grid;
  grid-template-columns: 64px 1fr;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.12s;
  cursor: pointer;
}

.project:last-child {
  border-bottom: none;
}
.project:hover {
  background: var(--bg-2);
}

.project--featured {
  background: var(--fg);
}
.project--featured:hover {
  background: #1a1a1f;
}

.project-left {
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.75rem 0 0;
}

.project--featured .project-left {
  border-right-color: rgba(255, 255, 255, 0.1);
}

.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}

.project--featured .project-num {
  color: rgba(255, 255, 255, 0.3);
}

.project-body {
  padding: 1.75rem 2rem;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.project-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project--featured .project-badge {
  color: rgba(255, 255, 255, 0.35);
}

.project-arrow {
  font-size: 16px;
  color: var(--fg-4);
  transition: transform 0.2s var(--ease);
}

.project--featured .project-arrow {
  color: rgba(255, 255, 255, 0.4);
}
.project:hover .project-arrow {
  transform: translate(3px, -3px);
}

.project-name {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.project--featured .project-name {
  color: #fff;
}

.project-desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  max-width: 580px;
}

.project--featured .project-desc {
  color: rgba(255, 255, 255, 0.55);
}

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

.project-tags span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  border: 1px solid var(--border);
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

.project--featured .project-tags span {
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--skills {
  background: radial-gradient(ellipse 80% 60% at 90% 110%, #d4f0e0 0%, transparent 55%), #ffffff;
}

.skills-flow {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skill-group-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.9rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.skill-pills li {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  background: var(--bg);
  border: 1px solid var(--border-2);
  padding: 6px 14px;
  letter-spacing: 0.01em;
  transition:
    color 0.12s,
    border-color 0.12s,
    background 0.12s;
  cursor: default;
}

.skill-pills li:hover {
  color: var(--fg);
  border-color: var(--fg);
  background: var(--bg-2);
}

.section--contact {
  background:
    radial-gradient(ellipse 70% 80% at 15% 110%, #c7ebd8 0%, transparent 55%),
    radial-gradient(ellipse 55% 60% at 90% -10%, #fef3c7 0%, transparent 50%), #ffffff;
}

.section--contact .section-eyebrow {
  display: block;
  margin-bottom: 1rem;
}

.contact-heading {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.contact-sub {
  font-size: 15px;
  color: var(--fg-2);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
  max-width: 420px;
  margin: 0 auto;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: var(--fg-2);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  transition:
    background 0.12s,
    color 0.12s;
}

.contact-link:last-child {
  border-bottom: none;
}
.contact-link:hover {
  background: var(--bg-2);
  color: var(--fg);
}

.contact-link svg {
  flex-shrink: 0;
  color: var(--fg-4);
  transition: color 0.12s;
}

.contact-link:hover svg {
  color: var(--fg-2);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1rem clamp(1.5rem, 6vw, 5rem);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
}

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

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

@media (max-width: 640px) {
  .hero-heading {
    letter-spacing: -0.03em;
  }

  .project {
    grid-template-columns: 40px 1fr;
  }
  .project-body {
    padding: 1.25rem 1rem;
  }

  .skills-flow {
    gap: 2rem;
  }
}
