:root {
  color-scheme: dark;
  --ink: #061415;
  --ink-2: #0d2021;
  --panel: #102829;
  --line: rgba(212, 239, 232, 0.18);
  --text: #eff8f4;
  --muted: #a9bab6;
  --teal: #33d6b3;
  --teal-soft: rgba(51, 214, 179, 0.16);
  --amber: #ffcc66;
  --blue: #7ab8ff;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(51, 214, 179, 0.11), transparent 34rem),
    linear-gradient(225deg, rgba(122, 184, 255, 0.1), transparent 28rem),
    var(--ink);
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--teal), var(--amber));
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 20, 21, 0.72);
}

.site-nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .nav-cta {
  color: var(--ink);
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  gap: 4rem;
  align-items: start;
  width: min(1280px, calc(100% - 32px));
  min-height: auto;
  margin: 0 auto;
  padding: 3.75rem 0 4.5rem;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: 5.25rem;
  line-height: 0.94;
}

.hero-text {
  max-width: 670px;
  color: #d5e4df;
  font-size: 1.24rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: var(--ink);
  background: var(--teal);
  border-color: transparent;
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.signal-panel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 62px),
    var(--ink-2);
  box-shadow: var(--shadow);
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(51, 214, 179, 0.15) 48%, transparent 58% 100%);
  animation: scan 5s linear infinite;
}

@keyframes scan {
  from { transform: translateX(-70%); }
  to { transform: translateX(70%); }
}

.panel-topline,
.panel-note,
.stack-grid {
  position: relative;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.panel-topline strong {
  color: var(--teal);
}

.panel-note {
  max-width: 28rem;
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.stack-node {
  min-height: 66px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.stack-node:nth-child(1),
.stack-node:nth-child(4),
.stack-node:nth-child(5) {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--amber));
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.trust-strip span {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  font-weight: 800;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.split-section h2,
.cta-band h2,
.links-hero h1 {
  font-size: 3.8rem;
  line-height: 0.95;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.engagement-grid article {
  min-height: 230px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
}

.engagement-grid h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1.05rem;
}

.engagement-grid p,
.section-heading p,
.cta-band p {
  color: var(--muted);
}

.service-card,
.link-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 48px),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.service-card::before,
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 0%, rgba(51, 214, 179, 0.18), transparent 34%),
    linear-gradient(115deg, transparent 0 42%, rgba(51, 214, 179, 0.13) 48%, transparent 56% 100%);
  opacity: 0;
  transform: translateX(-28%);
  transition: opacity 180ms ease, transform 420ms ease;
}

.service-card::after,
.link-card::after {
  content: "";
  position: absolute;
  inset: auto 1.1rem 1.1rem auto;
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  opacity: 0.55;
}

.service-card:hover,
.service-card:focus-within,
.link-card:hover,
.link-card:focus-within {
  border-color: rgba(51, 214, 179, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 48px),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2), 0 0 32px rgba(51, 214, 179, 0.08);
  transform: translateY(-4px);
}

.service-card:hover::before,
.service-card:focus-within::before,
.link-card:hover::before,
.link-card:focus-within::before {
  opacity: 1;
  transform: translateX(18%);
}

.service-card {
  min-height: 275px;
  padding: 1.35rem;
}

.service-card h3,
.link-card h3 {
  position: relative;
  margin-bottom: 0.65rem;
  font-size: 1.12rem;
}

.service-card p,
.split-section p,
.link-card p {
  position: relative;
  color: var(--muted);
  line-height: 1.65;
}

.icon-chip {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 32px;
  margin-bottom: 1.3rem;
  padding: 0 0.6rem;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--teal), var(--amber));
  box-shadow: 0 0 26px rgba(51, 214, 179, 0.16);
  font-size: 0.72rem;
  font-weight: 950;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
}

.approach-list {
  display: grid;
  gap: 1rem;
}

.approach-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.approach-list span {
  grid-row: span 2;
  color: var(--teal);
  font-weight: 950;
}

.approach-list strong {
  font-size: 1.2rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 4rem;
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(51, 214, 179, 0.18), rgba(122, 184, 255, 0.1));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--teal);
  font-weight: 800;
}

.links-hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4.5rem 0 2rem;
  text-align: left;
}

.github-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 4rem;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5.5rem 0 3rem;
}

.github-hero h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: 5rem;
  line-height: 0.96;
}

.github-panel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 62px),
    var(--ink-2);
  box-shadow: var(--shadow);
}

.github-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(51, 214, 179, 0.15) 48%, transparent 58% 100%);
  animation: scan 5s linear infinite;
}

.github-profile-embed {
  padding: 1.25rem;
  border: 1px solid rgba(51, 214, 179, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 62px),
    var(--ink-2);
  box-shadow: var(--shadow);
}

.github-embed-section {
  padding-top: 3.25rem;
}

.github-profile-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.55rem;
}

.github-profile-head img {
  width: 86px;
  height: 86px;
  border: 2px solid rgba(51, 214, 179, 0.72);
  border-radius: 999px;
  box-shadow: 0 0 34px rgba(51, 214, 179, 0.22);
}

.github-profile-head a {
  color: var(--teal);
  font-size: 1.85rem;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-color: rgba(248, 204, 102, 0.72);
  text-underline-offset: 0.12em;
}

.github-profile-head p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.github-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-weight: 850;
}

.github-profile-embed > h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.2rem;
}

.github-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.github-live-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(6, 20, 21, 0.74);
}

.github-live-card.is-featured {
  border-color: rgba(51, 214, 179, 0.86);
  box-shadow:
    0 0 0 2px rgba(51, 214, 179, 0.7),
    0 0 32px rgba(51, 214, 179, 0.18);
}

.github-live-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.github-live-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.github-live-card h3 a {
  color: var(--text);
}

.github-repo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.github-repo-meta span:first-child {
  color: var(--teal);
}

.repo-stat-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.repo-stat-grid span {
  min-height: 74px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 850;
}

.repo-stat-grid strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
}

.links-hero h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: 4.6rem;
  line-height: 0.96;
}

.links-hero .hero-text {
  max-width: 720px;
  margin-bottom: 1.6rem;
}

.search-wrap input {
  width: min(680px, 100%);
  min-height: 56px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 900px;
  margin-top: 1.2rem;
}

.category-filter button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f6fffb;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.category-filter button[aria-pressed="true"] {
  color: #041314;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  box-shadow: 0 12px 32px rgba(51, 214, 179, 0.18);
}

.category-filter small {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
}

.category-filter button[aria-pressed="true"] small {
  background: rgba(4, 19, 20, 0.16);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-sections {
  display: grid;
  gap: 3rem;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.link-category {
  display: grid;
  gap: 1rem;
}

.link-category > h2 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.link-category > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(51, 214, 179, 0.55), transparent);
}

.link-card {
  padding: 1.15rem;
}

.link-card div {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.link-card a,
.link-card button {
  min-height: 40px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.link-card a {
  color: var(--ink);
  background: var(--teal);
  border-color: transparent;
}

.text-link {
  position: relative;
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--teal);
  font-weight: 900;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(280px, calc(100vw - 32px));
    border-radius: 8px;
    padding: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .github-hero,
  .section-heading,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0 3.5rem;
  }

  h1 {
    font-size: 4.6rem;
  }

  .section-heading h2,
  .split-section h2,
  .cta-band h2,
  .links-hero h1,
  .github-hero h1 {
    font-size: 3rem;
  }

  .service-grid,
  .engagement-grid,
  .link-grid,
  .github-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .button,
  .link-card div {
    width: 100%;
  }

  .button,
  .link-card a,
  .link-card button {
    flex: 1;
  }

  .service-grid,
  .engagement-grid,
  .link-grid,
  .github-profile-grid {
    grid-template-columns: 1fr;
  }

  .github-profile-head {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    gap: 0.55rem;
  }

  .stack-node {
    min-height: 58px;
  }
}

@media (max-width: 370px) {
  h1 {
    font-size: 2.7rem;
  }
}

@media (min-width: 1250px) {
  h1 {
    font-size: 6.35rem;
  }
}
