/* Plain-English site with a few engineering accents:
   monospace only for small labels, one code-styled profile card. */
:root {
  --bg: #0b0e14;
  --bg-2: #0f131c;
  --panel: #121722;
  --panel-2: #171d2b;
  --line: #1f2736;
  --line-2: #2c3547;

  --text: #e6ebf7;
  --muted: #97a1bb;
  --dim: #6b7690;

  --blue: #6c9bff;
  --blue-soft: #9dbaff;
  --green: #57cf9a;
  --amber: #e0af68;

  --radius: 12px;
  --maxw: 1060px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px circle at 12% -8%, rgba(108, 155, 255, .13), transparent 60%),
    radial-gradient(620px circle at 92% 4%, rgba(87, 207, 154, .07), transparent 60%);
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

/* ---------- HEADER ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 14, 20, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}

header.site.stuck {
  border-bottom-color: var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
}

.brand .logo {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
}

/* full lockup in the footer */
.foot-logo {
  display: block;
  width: 168px;
  height: auto;
  margin-bottom: 14px;
  opacity: .85;
  transition: opacity .2s;
}

.foot-logo:hover {
  opacity: 1;
}

.head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav.menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav.menu a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s, background .18s;
}

nav.menu a:hover {
  color: var(--text);
  background: var(--panel-2);
}

nav.menu a.active {
  color: var(--text);
}

nav.menu a.ghost {
  margin-left: 8px;
  border: 1px solid var(--line-2);
  color: var(--text);
}

nav.menu a.ghost:hover {
  border-color: var(--blue);
}

.menu-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- BUTTONS ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--line-2);
  background: var(--panel);
  transition: border-color .18s, background .18s, transform .18s;
}

.btn:hover {
  border-color: var(--blue);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #08101f;
}

.btn.primary:hover {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
}

.btn.coffee {
  border-color: rgba(224, 175, 104, .42);
  color: var(--amber);
  background: rgba(224, 175, 104, .08);
}

.btn.coffee:hover {
  border-color: var(--amber);
}

/* ---------- SECTIONS ---------- */
section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.sec-head {
  margin-bottom: 34px;
}

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 35px);
  font-weight: 700;
  letter-spacing: -.025em;
}

.sec-head p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 640px;
  font-size: 16px;
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 74px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 44px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
  display: block;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -.033em;
  font-weight: 800;
}

h1 .hl {
  color: var(--blue);
}

.lede {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 17px;
  max-width: 560px;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.typed {
  font-family: var(--mono);
  font-size: 13.4px;
  color: var(--dim);
  min-height: 22px;
  margin-bottom: 30px;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--blue);
  vertical-align: -2px;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* profile card — the one deliberately "code-ish" element */
.profile {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 22px 50px -32px #000;
}

.profile .bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.8px;
  color: var(--dim);
}

.profile .bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.profile .rows {
  padding: 8px 4px;
}

.prow {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 9px 16px;
  align-items: baseline;
}

.prow dt {
  font-family: var(--mono);
  font-size: 12.2px;
  color: var(--dim);
  margin: 0;
}

.prow dd {
  margin: 0;
  font-size: 14.6px;
  color: var(--text);
  font-weight: 500;
}

.prow dd .sub {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13.6px;
}

.prow dd em {
  font-style: normal;
  color: var(--green);
}

.profile .foot {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  background: var(--bg-2);
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}

/* Grid items default to min-width:auto, so a wide <pre> or table inside a
   column stretches that column past the container and scrolls the whole page
   sideways. Let the columns shrink and make the content scroll instead. */
.about-grid>*,
.hero>* {
  min-width: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
  transition: border-color .22s;
}

.panel:hover {
  border-color: var(--line-2);
}

.panel p {
  color: var(--muted);
  font-size: 15.6px;
}

.panel p:first-child {
  margin-top: 0;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel strong {
  color: var(--text);
  font-weight: 600;
}

.drives {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.drives li {
  display: flex;
  gap: 13px;
}

.drives .ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: rgba(108, 155, 255, .12);
  border: 1px solid rgba(108, 155, 255, .22);
}

.drives h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.drives p {
  margin: 0;
  font-size: 14px;
  color: var(--dim);
  line-height: 1.55;
}

/* ---------- SKILLS ---------- */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.sk {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
  transition: border-color .22s;
}

.sk:hover {
  border-color: var(--line-2);
}

.sk h3 {
  margin: 0 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sk h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}

.sk.ai h3::before {
  background: #b18cf0;
}

.sk.cloud h3::before {
  background: var(--green);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--muted);
  transition: color .18s, border-color .18s, transform .18s;
  cursor: default;
}

.chip:hover {
  color: var(--text);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* ---------- EXPERIENCE ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1.5px;
  background: linear-gradient(var(--blue), rgba(108, 155, 255, .25), transparent);
}

.job {
  position: relative;
  padding-bottom: 28px;
}

.job:last-child {
  padding-bottom: 0;
}

.job::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
}

.job.now::before {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(87, 207, 154, .13);
}

.j-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.job h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.job .when {
  font-family: var(--mono);
  font-size: 12.2px;
  color: var(--dim);
}

.job .tag {
  font-size: 11.4px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--green);
  border: 1px solid rgba(87, 207, 154, .35);
  background: rgba(87, 207, 154, .09);
}

.job p {
  margin: 0;
  color: var(--muted);
  font-size: 15.2px;
  max-width: 720px;
}

/* ---------- PROJECTS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 17px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}

.card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -28px #000;
}

.card.featured {
  border-color: rgba(108, 155, 255, .34);
  background: linear-gradient(160deg, rgba(108, 155, 255, .08), var(--panel) 58%);
}

.c-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.card h3 {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  word-break: break-word;
}

.card h3 svg {
  width: 13px;
  height: 13px;
  flex: none;
  opacity: .5;
  transition: opacity .2s, transform .2s;
}

.card:hover h3 svg {
  opacity: 1;
  transform: translate(2px, -2px);
}

.badge {
  font-size: 11.2px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--dim);
  white-space: nowrap;
}

.badge.live {
  border-color: rgba(87, 207, 154, .38);
  color: var(--green);
}

.card .desc {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 14px;
}

.card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--dim);
  font-size: 14.2px;
  display: grid;
  gap: 6px;
}

.card ul li::marker {
  color: var(--line-2);
}

.c-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.c-foot span {
  font-family: var(--mono);
  font-size: 11.4px;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
}

.sec-note {
  margin: 22px 0 0;
  font-size: 14.4px;
  color: var(--dim);
}

.sec-note a {
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color .18s;
}

.sec-note a:hover {
  border-bottom-color: var(--blue);
}

/* ---------- PACKAGE PAGES ---------- */
.pkg-hero {
  padding-top: 64px;
  padding-bottom: 46px;
}

.pkg-hero h1 {
  font-family: var(--mono);
  font-size: clamp(26px, 4.6vw, 40px);
  letter-spacing: -.02em;
  margin-bottom: 14px;
  word-break: break-word;
}

.pkg-hero h1 .scope {
  color: var(--dim);
}

.pkg-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 0 22px;
}

.pkg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.pkg-badges span {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--dim);
}

.pkg-badges span.ok {
  border-color: rgba(87, 207, 154, .38);
  color: var(--green);
}

/* code block */
.code-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}

.code-block .cb-bar {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.8px;
  color: var(--dim);
  background: var(--panel);
}

.code-block pre {
  margin: 0;
  padding: 15px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.9px;
  line-height: 1.7;
  color: var(--text);
}

.code-block .c {
  color: var(--dim);
}

.code-block .g {
  color: var(--green);
}

.code-block .b {
  color: var(--blue);
}

.code-block .y {
  color: var(--amber);
}

/* live demo frame */
.demo-wrap {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.8px;
  color: var(--dim);
}

.demo-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.demo-bar .spacer {
  flex: 1;
}

.demo-bar a {
  color: var(--blue);
}

.demo-bar a:hover {
  text-decoration: underline;
}

.demo-wrap iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: #fff;
}

.demo-note {
  margin: 14px 0 0;
  font-size: 13.8px;
  color: var(--dim);
}

/* API table */
.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.api-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.api-table th,
.api-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.api-table thead th {
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 12.6px;
  font-family: var(--mono);
  white-space: nowrap;
}

.api-table tbody tr:last-child td {
  border-bottom: none;
}

.api-table td:first-child {
  font-family: var(--mono);
  color: var(--blue);
  white-space: nowrap;
}

.api-table td:nth-child(2) {
  font-family: var(--mono);
  color: var(--green);
  font-size: 12.6px;
  white-space: nowrap;
}

.api-table td:nth-child(3) {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 12.6px;
  white-space: nowrap;
}

.api-table td:last-child {
  color: var(--muted);
  min-width: 240px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .18s;
}

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

@media (max-width: 700px) {
  .pkg-hero {
    padding-top: 44px;
    padding-bottom: 36px;
  }

  .demo-wrap iframe {
    height: 520px;
  }
}

/* ---------- CONTACT ---------- */
.contact {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 46px 32px;
  text-align: center;
  background:
    radial-gradient(640px circle at 50% -30%, rgba(108, 155, 255, .16), transparent 62%),
    var(--panel);
}

.contact h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 3.8vw, 33px);
  letter-spacing: -.025em;
}

.contact p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 16px;
}

.contact .btn-row {
  justify-content: center;
}

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

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--dim);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot-links a:hover {
  color: var(--text);
}

/* ---------- REVEAL ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

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

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  html {
    scroll-behavior: auto;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

@media (max-width: 700px) {
  .container {
    padding-left: 17px;
    padding-right: 17px;
  }

  .menu-toggle {
    display: block;
  }

  .brand {
    font-size: 15px;
  }

  nav.menu {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 17px 18px;
    background: rgba(13, 17, 26, .98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-2);
    display: none;
  }

  nav.menu.open {
    display: flex;
  }

  nav.menu a {
    padding: 11px 13px;
  }

  nav.menu a.ghost {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }

  section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 44px;
  }

  .panel {
    padding: 22px;
  }

  .contact {
    padding: 36px 20px;
  }

  .prow {
    grid-template-columns: 84px 1fr;
    gap: 10px;
  }
}
