:root {
  --terminal-green: #ffd34d;
  --terminal-green-bright: #ffd34d;
  --terminal-green-dim: #ffd34d;
  --signal-blue: #fff;
  --signal-aqua: #fff;
  --signal-cyan: #fff;
  --ink: #fff;
  --ink-2: #cfd3d6;
  --bg: #000;
  --nav-h: 56px;
  --frame-radius: 0px;
  --pill-radius: 999px;
  --container-wide: min(1100px, 96vw);
  --cta-bg: var(--terminal-green);
  --cta-bg-hover: #46d0e4;
  --cta-text: #000;
  --cta-font-size: 16px;
  --cta-weight: 800;
  --cta-letter: .06em;
  --cta-padding-y: 10px;
  --cta-padding-x: 18px;
  --cta-radius: 0;
  --text-sm: .95rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 142%;
  overflow-y: scroll;
  scroll-padding-top: var(--nav-h);
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Handjet', serif;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  min-height: 100%;
  position: relative;
}

#page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000;
  min-height: 100vh;
  height: 100%;
  will-change: transform;
}

#page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .9));
  z-index: 1;
  pointer-events: none;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #000;
  min-height: var(--nav-h);
  font-size: 16px;
}

.brand {
  display: flex;
  gap: .5rem;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .04em;
  font-weight: 800;
}

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

.brand img {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border: 1px solid #ffd34d;
  border-radius: var(--frame-radius);
  padding: .3rem .55rem;
  font-size: 1rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-start;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  height: auto;
}

nav .nav-links a:not(.hire):hover {
  color: var(--terminal-green);
}

nav a.active {
  color: var(--terminal-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

nav .hire { margin-left: auto; }

.muted {
  opacity: .85;
  font-size: .85rem;
}

ul,
ol {
  list-style: square;
  margin: .35rem 0 .85rem;
  padding-left: 1.35rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  text-align: left;
  list-style-position: outside;
}

li + li { margin-top: .35rem; }
.li,
li {
  list-style: square;
  margin-left: 0;
  padding-left: 0;
  display: list-item;
}
li::marker { color: var(--terminal-green); }

.list-reset {
  list-style: square;
  padding-left: 1.5rem;
  margin: .35rem 0 .85rem;
}
.list-reset li {
  list-style: square;
  margin: 0;
  padding: 0;
  display: list-item;
}

.bio-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100vw;
  margin: calc(2rem + var(--nav-h)) auto 4vh;
  padding: 1rem .8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
}

.hero-landscape {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
  justify-items: start;
  align-content: start;
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  width: 100%;
}
.hero-landscape > * {
  place-self: start;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.bio-photo,
.hero-bio-section,
.hero-stack-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
  place-self: start;
}

.hero-stack-section h3,
.bio-role {
  margin-top: 0;
}

.bio-photo {
  width: 200px;
  height: 200px;
  margin: 0;
  align-self: start;
  border-radius: 0;
  border: none;
  background: url('pic1.png') center/cover no-repeat;
  box-shadow: none;
  flex-shrink: 0;
}

.hero-bio-section {
  text-align: left;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 0;
}

.hero-bio-section p {
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0 0 .5rem 0;
  text-align: left;
}

.hero-bio-section p.muted {
  font-size: var(--text-sm);
}

.hero-bio-section .muted a {
  color: var(--terminal-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-bio-section .muted a:hover {
  color: var(--cta-bg-hover);
  text-decoration-color: var(--cta-bg-hover);
}

.hero-stack-section {
  text-align: left;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 0;
}

.hero-stack-section h3 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--terminal-green);
  margin: 0 0 .5rem 0;
  text-align: left;
}

.hero-stack-section .pills {
  justify-content: flex-start;
}

.hero-stack-section .pills-core {
  justify-content: flex-start;
  margin-bottom: .8rem;
}

.bio-role {
  font-size: 1.35rem;
  color: var(--terminal-green);
  margin: 0 0 .8em 0;
  line-height: 1.35;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: 0;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: .4rem auto .7rem;
  width: 100%;
}

.btn,
.btn-cta,
nav .hire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--cta-padding-y) var(--cta-padding-x);
  border-radius: var(--cta-radius);
  border: 2px solid transparent;
  color: var(--cta-text);
  background: var(--cta-bg);
  text-decoration: none;
  font-weight: var(--cta-weight);
  letter-spacing: var(--cta-letter);
  line-height: 1;
  font-size: var(--cta-font-size);
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover,
.btn-cta:hover,
nav .hire:hover {
  background: var(--cta-bg-hover);
  color: var(--cta-text);
  border-color: var(--cta-bg-hover);
}

/* Nav CTA hover: black text on accent background */
nav .hire:hover {
  background: var(--cta-bg-hover);
  border-color: var(--cta-bg-hover);
  color: #000;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--cta-padding-y) var(--cta-padding-x);
  border-radius: var(--cta-radius);
  line-height: 1;
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  font-size: var(--cta-font-size);
  font-weight: var(--cta-weight);
  letter-spacing: var(--cta-letter);
  text-transform: uppercase;
}

.btn-ghost:hover {
  background: var(--cta-bg-hover);
  color: #000;
  border-color: var(--cta-bg-hover);
}

.btn-sm {
  padding: var(--cta-padding-y) var(--cta-padding-x);
  border-radius: var(--cta-radius);
  font-size: var(--cta-font-size);
  letter-spacing: var(--cta-letter);
  font-weight: var(--cta-weight);
}

.divider {
  border: none;
  border-top: 1px solid #46d0e4;
  margin: 1.6rem 0;
  width: 100%;
}

.bio-intro {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.2rem;
}

.bio-intro p {
  margin: .35rem 0;
  color: var(--ink-2);
  font-size: 1.35rem;
  line-height: 1.6;
}

.bio-intro .muted a {
  color: var(--terminal-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.container-wide {
  width: var(--container-wide);
  margin: .9rem auto 0;
  padding: 0 1.2rem;
  max-width: 100vw;
  overflow-x: hidden;
}

.services-section {
  margin-top: .8rem;
}

.pill-title {
  margin: 1rem 0 .35rem;
  font-size: .95rem;
  font-size: 1.95rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #ffff;
  color: var(--terminal-green);
  text-align: center;
  text-shadow: 0 0 3px rgba(255, 211, 77, .5);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid var(--cta-bg-hover);
  background: #070b0c;
  color: var(--ink);
  border-radius: 0;
  padding: .3em .65em;
  line-height: 1.15;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .12s, border-color .12s, box-shadow .12s, background .12s;
  max-width: 100%;
  cursor: pointer;
  overflow: visible;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: var(--cta-bg-hover);
  box-shadow: 0 4px 16px rgba(70, 208, 228, .35);
  background: var(--cta-bg-hover);
  color: #000;
}

.pill-break {
  flex-basis: 100%;
  height: 0;
  padding: 0;
  margin: 0;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: .9rem;
}

.spec {
  background: #070b0c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 1rem;
  transition: transform .12s, border-color .12s, box-shadow .12s;
  text-align: center;
}

.spec:hover {
  border-color: var(--cta-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 137, 147, .25);
}

.spec h3 {
  margin: .1rem 0 .55rem;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  text-align: center;
}

.spec ul {
  margin: .35rem 0 .85rem;
  padding-left: 1.5rem;
  list-style: square;
  text-align: left;
}

.spec li {
  color: var(--ink-2);
  line-height: 1.6;
  margin: .35rem 0;
}

.bio-section-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--terminal);
  letter-spacing: .15em;
  text-align: center;
  margin: 1.2rem 0 .4rem;
}

 .services {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr;
   gap: 18px;
   align-items: stretch;
  width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.2rem;
  max-width: 100vw;
  overflow-x: hidden;
  overflow: visible;
  justify-content: center;
}

.service {
  background: #070b0c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 1rem;
  padding: 1.2rem 1.4rem;
  transition: transform .12s, border-color .12s, box-shadow .12s, background .12s;
  max-width: 100%;
  overflow: visible;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .45rem;
  height: 100%;
}

.service:hover {
  border-color: var(--cta-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 137, 147, .25);
  background: #0a0f10;
}

.service h3 {
  margin: 0;
  font-size: .95rem;
  color: var(--terminal-green);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-align: left;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
}

.service ul {
  margin: .35rem 0 .85rem;
  padding-left: 1.5rem;
  list-style: square;
  font-size: var(--text-sm);
  line-height: 1.6;
  text-align: left;
}

.service ul > li::marker {
  color: var(--terminal-green);
}

.signal-footer {
  text-align: center;
  padding: 16px;
  background: #000;
  border-top: 1px solid transparent;
  margin-top: 20px;
  color: var(--ink-2);
  position: relative;
  z-index: 2;
}

.signal-footer p {
  font-size: 21px;
  color: var(--ink-2);
  margin: 0 auto;
  line-height: 1.4;
  max-width: 800px;
}

.signal-footer .footer-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}

.footer-social {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  color: var(--terminal-green);
  text-decoration: none;
  transition: color .12s ease, transform .12s ease;
  border: none;
  border-radius: 0;
}

.footer-social .social-link:hover,
.footer-social .social-link:focus-visible {
  color: var(--cta-bg-hover);
  transform: translateY(-2px);
}

.footer-social .social-link svg {
  width: 40px;
  height: 40px;
  display: block;
}
.footer-social .social-link[aria-label="LinkedIn"] svg,
.footer-social .social-link[aria-label="GitHub"] svg {
  width: 28px;
  height: 28px;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
  background: transparent;
  color: var(--terminal-green);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  border: none;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  z-index: 3000;
  transition: opacity .18s ease, transform .18s ease, color .12s ease;
  font-size: 1.2rem;
}

.to-top:hover {
  color: var(--cta-bg-hover);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:focus-visible {
  outline: 2px solid var(--terminal-green);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
  
  .specs {
    grid-template-columns: 1fr;
  }
  
  .hero-landscape {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .bio-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  
  .hero-bio-section {
    text-align: center;
  }
  
  .hero-bio-section p {
    text-align: center;
  }
  
  .hero-stack-section {
    text-align: center;
  }
  
  .hero-stack-section h3 {
    text-align: center;
  }
  
  .hero-stack-section .pills {
    justify-content: center;
  }
  
  .bio-role {
    text-align: center;
  }
}

@media (max-width: 650px) {
  html,
  body {
    overflow-x: hidden !important;
  }
  
  .bio-panel {
    max-width: 100vw;
    padding-left: .6rem;
    padding-right: .6rem;
    overflow-x: hidden;
  }
  
  .hero-landscape {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  .bio-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  
  .hero-bio-section {
    text-align: center;
  }
  
  .hero-bio-section p {
    text-align: center;
    font-size: 1rem;
  }
  
  .hero-stack-section {
    text-align: center;
  }
  
  .hero-stack-section h3 {
    text-align: center;
  }
  
  .hero-stack-section .pills {
    justify-content: center;
  }
  
  .bio-role {
    text-align: center;
    font-size: 1.1rem;
  }
  
  .pills {
    justify-content: center;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .pill {
    font-size: .9rem;
    padding: .32em .7em;
    max-width: calc(100vw - 2rem);
  }
  
  .services {
    grid-template-columns: 1fr;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .service {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .spec h3 {
    text-align: center;
  }
  
  .container-wide {
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0 .8rem;
  }
  
  .to-top {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }

  .signal-footer p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta,
  .btn-ghost,
  .service,
  .spec,
  .pill {
    transition: none;
  }
}
