:root {
  --bg: #081018;
  --bg-2: #0d1621;
  --surface: #101a26;
  --text: #f4f7fb;
  --muted: #9ba8b8;
  --muted-2: #6f7d8e;
  --blue: #4c8dff;
  --border: rgba(255, 255, 255, .08);
  --container: 1240px;
  --font: 'Inter', sans-serif;
  --display: 'Manrope', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 10%, rgba(76, 141, 255, .08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .015), transparent 25%);
  z-index: -1;
}

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

button {
  font: inherit
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}

.site-header.scrolled {
  background: rgba(8, 16, 24, .82);
  backdrop-filter: blur(18px);
  border-color: var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: .72rem;
  color: #fff;
}

.brand-name {
  font-size: .88rem;
  font-weight: 600
}

.nav-links {
  display: flex;
  gap: 28px
}

.nav-links a {
  color: var(--muted);
  font-size: .78rem;
  transition: .2s;
}

.nav-links a:hover {
  color: #fff
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px
}

.nav-github {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
}

.menu-button span {
  width: 16px;
  height: 1px;
  background: #fff;
  display: block;
  margin: 4px auto;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: rgba(8, 16, 24, .97);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
}

.mobile-menu.open {
  display: grid
}

.mobile-menu a {
  padding: 12px 4px;
  color: var(--muted)
}

.hero {
  padding: 170px 0 70px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 110px;
  align-items: end;
}

.eyebrow,
.section-number,
.panel-label {
  font-family: var(--mono);
  color: var(--blue);
  font-size: .67rem;
  letter-spacing: .12em;
}

.hero h1 {
  max-width: 840px;
  margin: 24px 0 0;
  font-family: var(--display);
  font-size: clamp(3.7rem, 7vw, 7.1rem);
  line-height: .97;
  letter-spacing: -.055em;
  font-weight: 600;
}

.hero h1 span {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.hero-text {
  max-width: 690px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
}

.primary {
  padding: 14px 18px;
  background: #fff;
  color: #081018;
  border-radius: 9px;
  font-weight: 600;
}

.text-button {
  color: var(--muted)
}

.text-button:hover {
  color: #fff
}

.hero-meta {
  display: flex;
  gap: 52px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-meta div {
  display: grid;
  gap: 6px
}

.hero-meta span {
  color: var(--muted-2);
  font-size: .65rem
}

.hero-meta strong {
  font-size: .76rem;
  font-weight: 500
}

.hero-panel {
  border-left: 1px solid var(--border);
  padding-left: 34px;
}

.hero-panel-list {
  margin-top: 24px
}

.hero-panel-list>div {
  display: grid;
  grid-template-columns: 34px 1fr;
  padding: 19px 0;
  border-bottom: 1px solid var(--border);
}

.hero-panel-list>div>span {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--muted-2);
}

.hero-panel-list p {
  margin: 0;
  font-size: .95rem;
  font-weight: 500;
}

.hero-panel-list small {
  grid-column: 2;
  margin-top: 5px;
  color: var(--muted);
  font-size: .68rem;
}

.stack-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 90px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stack-strip span {
  padding: 14px 26px 14px 0;
  margin-right: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .62rem;
}

.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.about-layout,
.skills-layout,
.automation-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 120px;
}

.section-intro h2,
.section-heading h2,
.contact-layout h2 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -.04em;
  font-weight: 600;
}

.about-copy>p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.85;
}

.about-copy strong {
  color: #fff;
  font-weight: 500
}

.about-points {
  margin-top: 42px;
  border-top: 1px solid var(--border);
}

.about-points div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.about-points span {
  color: var(--muted-2);
  font-size: .68rem
}

.about-points strong {
  font-size: .78rem;
  font-weight: 500
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 54px;
}

.subtle-link {
  color: var(--muted);
  font-size: .72rem;
}

.subtle-link:hover {
  color: #fff
}

.project-list {
  border-top: 1px solid var(--border)
}

.project-row {
  display: grid;
  grid-template-columns: 54px 1.3fr .8fr 56px;
  gap: 30px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  transition: .2s ease;
}

.project-row:hover {
  background: rgba(255, 255, 255, .01)
}

.project-index {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--muted-2);
}

.project-type {
  font-family: var(--mono);
  font-size: .58rem;
  color: var(--blue);
  letter-spacing: .08em;
}

.project-main h3 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
}

.project-main>p {
  max-width: 630px;
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: .78rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.project-stack span {
  color: var(--muted-2);
  font-size: .62rem;
}

.project-visual {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.mini-arch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: .55rem;
  color: var(--muted);
}

.mini-arch span {
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.mini-arch i {
  font-style: normal;
  color: var(--muted-2)
}

.mini-code {
  display: grid;
  gap: 8px;
  width: 100%;
}

.mini-code code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .58rem;
}

.project-action {
  display: flex;
  justify-content: flex-end;
}

.project-action a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: .2s;
}

.project-action a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  transform: translateX(3px);
}

.skills-columns {
  border-top: 1px solid var(--border)
}

.skills-columns div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.skills-columns span {
  color: #fff;
  font-size: .76rem;
  font-weight: 500;
}

.skills-columns p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}

.automation-content {
  max-width: 760px
}

.automation-lead {
  margin: 0 0 34px;
  color: var(--muted);
  line-height: 1.8;
}

.automation-list {
  border-top: 1px solid var(--border)
}

.automation-list div {
  display: grid;
  grid-template-columns: 42px 150px 1fr;
  gap: 20px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.automation-list span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: .58rem;
}

.automation-list strong {
  font-size: .76rem;
  font-weight: 500
}

.automation-list p {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}

.privacy-note {
  margin-top: 24px;
  color: var(--muted-2);
  font-size: .66rem;
}

.privacy-note i {
  margin-right: 8px;
  color: var(--blue)
}

.contact-section {
  padding-bottom: 140px
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 120px;
}

.contact-right>p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: .9rem;
}

.contact-links {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--border);
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: .76rem;
}

.contact-links a i {
  color: var(--muted)
}

.footer {
  border-top: 1px solid var(--border)
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: .66rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}

.js-reveal .reveal.visible {
  opacity: 1;
  transform: none;
}

@media(max-width:980px) {
  .nav-links {
    display: none
  }

  .menu-button {
    display: block
  }

  .nav-github {
    display: none
  }

  .hero-grid,
  .about-layout,
  .skills-layout,
  .automation-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 30px 0 0
  }

  .project-row {
    grid-template-columns: 42px 1fr 50px;
  }

  .project-visual {
    display: none
  }
}

@media(max-width:640px) {
  .container {
    width: min(calc(100% - 30px), var(--container))
  }

  .hero {
    padding-top: 130px
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.8rem)
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column
  }

  .hero-meta {
    flex-direction: column;
    gap: 18px
  }

  .stack-strip {
    margin-top: 60px
  }

  .section {
    padding: 90px 0
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px
  }

  .project-row {
    grid-template-columns: 30px 1fr 42px;
    gap: 14px;
    padding: 28px 0;
  }

  .project-main h3 {
    font-size: 1.35rem
  }

  .project-stack {
    gap: 8px
  }

  .skills-columns div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .automation-list div {
    grid-template-columns: 30px 1fr;
  }

  .automation-list p {
    grid-column: 2;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 20px 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important
  }
}