:root {
  --navy: #0a1628;
  --navy-deep: #060f1e;
  --electric: #1d4ed8;
  --gold: #f59e0b;
  --white: #ffffff;
  --off-white: #f8fafc;
  --success: #10b981;
  --text: #1e293b;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: 0 22px 60px rgba(6, 15, 30, 0.18);
  --radius: 24px;
  --radius-sm: 16px;
  --transition: 240ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.06), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--off-white) 100%);
  overflow-x: hidden;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-light {
  background: var(--off-white);
}

.section-dark {
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.16), transparent 25%),
    linear-gradient(180deg, var(--navy) 0%, #091222 100%);
  color: var(--white);
}

.section-dark-deep {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 22%),
    linear-gradient(180deg, var(--navy-deep) 0%, #081321 100%);
  color: var(--white);
}

.section-gold {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(255, 223, 147, 0.96));
  color: var(--navy);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.content-panel h2,
.hero-copy h1 {
  font-family: "Playfair Display", serif;
  line-height: 1.04;
  margin: 0;
}

.section-heading h2,
.content-panel h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin-bottom: 1rem;
}

.section-heading p,
.content-panel p,
.hero-copy p,
.project-card p,
.commercial-card p,
.repo-card p,
.contact-section p {
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.eyebrow-gold {
  color: #ffd27a;
}

.eyebrow-electric {
  color: #83a8ff;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(6, 15, 30, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(6, 15, 30, 0.28);
}

.nav {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--white);
  min-width: 0;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: var(--gold);
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: rgba(255, 255, 255, 0.86);
}

.nav-links a:hover,
.text-link:hover,
.contact-inline a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  font-weight: 700;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  padding: 0.8rem 1.15rem;
  font-size: 0.92rem;
}

.button-gold {
  background: var(--gold);
  color: var(--navy);
}

.button-electric {
  background: var(--electric);
  color: var(--white);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-network {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

#particle-network {
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: #7ea4ff;
  margin: 0 0 1.5rem;
}

.badge-row,
.tech-badges,
.project-meta,
.repo-meta,
.contact-inline,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.badge,
.tech-badges span,
.tag,
.repo-meta span {
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.badge {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.hero-mission {
  color: rgba(255, 255, 255, 0.85);
  max-width: 48rem;
  margin: 1.6rem 0 2rem;
  font-size: 1.04rem;
}

.cta-row,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 1.35rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.stat-card-gold {
  border-color: rgba(245, 158, 11, 0.44);
}

.stat-card-electric {
  border-color: rgba(29, 78, 216, 0.44);
}

.stat-card-success {
  border-color: rgba(16, 185, 129, 0.44);
}

.stat-card-slate {
  border-color: rgba(255, 255, 255, 0.14);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  display: block;
  font-weight: 800;
}

.stat-text {
  font-family: "Playfair Display", serif;
}

.stat-label {
  display: block;
  color: var(--white);
  font-weight: 700;
  margin-top: 0.4rem;
}

.stat-card small {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  margin-top: 0.4rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.content-panel,
.project-card,
.commercial-card,
.repo-card,
.profile-panel,
.pipeline-shell {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.content-panel {
  background: var(--white);
  padding: 2rem;
}

.content-panel-accent {
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 30%),
    #fdfefe;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.impact-stats div {
  padding: 1.15rem;
  border-radius: 18px;
  background: #fff8e8;
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.impact-stats strong {
  display: block;
  font-size: 1.75rem;
  color: #b45309;
  margin-bottom: 0.35rem;
}

.source-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.source-note a {
  color: var(--electric);
}

.source-note-wide {
  color: rgba(255, 255, 255, 0.76);
}

.source-note-wide a {
  color: #a9c4ff;
}

.project-grid,
.commercial-grid,
.evidence-grid,
.repo-grid,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.project-grid,
.repo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.commercial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 0 1.35rem 1.35rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 30px 70px rgba(245, 158, 11, 0.12);
}

.project-card-top {
  height: 4px;
  border-radius: 0 0 999px 999px;
  margin: 0 -1.35rem 1.25rem;
}

.border-electric {
  background: linear-gradient(90deg, #1d4ed8, #8bb0ff);
}

.border-success {
  background: linear-gradient(90deg, #10b981, #97f0cc);
}

.border-gold {
  background: linear-gradient(90deg, #f59e0b, #ffd27a);
}

.project-card h3,
.commercial-card h3,
.repo-card h3,
.pipeline-columns h3 {
  margin: 0 0 0.8rem;
}

.project-card h3 {
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
}

.project-alias,
.repo-alias {
  margin: 0 0 0.75rem;
  font: 600 0.8rem/1.4 "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  color: rgba(169, 196, 255, 0.82);
}

.project-card p,
.commercial-card p,
.repo-card p {
  color: rgba(255, 255, 255, 0.78);
}

.tech-badges span,
.tag {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.tag-gold {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.34);
}

.tag-success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.34);
}

.tag-electric {
  background: rgba(29, 78, 216, 0.14);
  border-color: rgba(29, 78, 216, 0.34);
}

.tag-outline-gold {
  border-color: rgba(245, 158, 11, 0.38);
  color: #ffd27a;
}

.project-diagram {
  background: rgba(6, 15, 30, 0.68);
  border-radius: 18px;
  padding: 0.7rem;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.project-diagram svg {
  width: 100%;
  height: auto;
}

.project-diagram text {
  font: 600 10px/1.2 "JetBrains Mono", monospace;
  fill: rgba(255, 255, 255, 0.86);
}

.project-diagram .diagram-title {
  font: 700 12px/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  fill: #ffd27a;
}

.project-diagram .diagram-label {
  font: 600 9px/1.2 "JetBrains Mono", monospace;
  fill: rgba(169, 196, 255, 0.9);
}

.diagram-caption {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

.diagram-node,
.diagram-layer {
  fill: rgba(29, 78, 216, 0.12);
  stroke: rgba(125, 164, 255, 0.82);
  stroke-width: 1.4;
}

.diagram-node-gold {
  fill: rgba(245, 158, 11, 0.1);
  stroke: rgba(245, 158, 11, 0.86);
}

.diagram-node-success,
.diagram-layer {
  fill: rgba(16, 185, 129, 0.08);
  stroke: rgba(16, 185, 129, 0.8);
}

.diagram-arrow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.74);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.diagram-arrow.dashed {
  stroke-dasharray: 5 4;
}

.aws-boundary,
.zone,
.tier,
.service-box,
.service-node,
.gateway,
.mini-stage {
  fill: rgba(29, 78, 216, 0.12);
  stroke: rgba(125, 164, 255, 0.9);
  stroke-width: 1.6;
}

.public-tier,
.gold-stage,
.gateway,
.security-icon path:first-child {
  fill: rgba(245, 158, 11, 0.1);
  stroke: rgba(245, 158, 11, 0.88);
}

.private-tier,
.electric-stage,
.module-box,
.control-plane,
.pipeline-box {
  fill: rgba(29, 78, 216, 0.12);
}

.data-tier,
.state-box,
.monitor-box,
.region-box,
.success-stage {
  fill: rgba(16, 185, 129, 0.08);
  stroke: rgba(16, 185, 129, 0.85);
}

.org-box,
.policy-box,
.client-box {
  fill: rgba(245, 158, 11, 0.08);
}

.arrow-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.arrow-line.dashed {
  stroke-dasharray: 5 4;
}

.security-icon path {
  fill: none;
  stroke: rgba(245, 158, 11, 0.88);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.project-diagram .flow-step {
  transition: transform var(--transition), filter var(--transition), opacity var(--transition);
  transform-origin: center;
}

.project-card:hover .project-diagram .flow-step {
  animation: pulse-step 2.4s linear infinite;
}

.project-card:hover .project-diagram .flow-step:nth-child(2n) {
  animation-delay: 0.18s;
}

.project-card:hover .project-diagram .flow-step:nth-child(3n) {
  animation-delay: 0.36s;
}

@keyframes pulse-step {
  0%,
  100% {
    opacity: 0.85;
    filter: drop-shadow(0 0 0 rgba(245, 158, 11, 0));
    transform: scale(1);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.24));
    transform: scale(1.03);
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  color: #a9c4ff;
  font-weight: 700;
}

.text-link::after {
  content: "->";
}

.pipeline-shell {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
}

.pipeline-track {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: center;
}

.pipeline-stage {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 1rem 0.8rem;
  min-height: 124px;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.pipeline-stage.active {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
}

.pipeline-stage.stage-electric.active {
  border-color: rgba(29, 78, 216, 0.5);
  background: rgba(29, 78, 216, 0.12);
}

.pipeline-stage.stage-success.active {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.12);
}

.pipeline-stage strong,
.pipeline-stage small {
  color: var(--white);
}

.pipeline-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-family: "JetBrains Mono", monospace;
}

.pipeline-connector {
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
}

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

.pipeline-columns div {
  padding: 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.pipeline-columns ul,
.evidence-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.cert-list,
.skill-group {
  display: grid;
  gap: 1rem;
}

.cert-card {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
}

.cert-gold {
  border-color: rgba(245, 158, 11, 0.36);
}

.cert-electric {
  border-color: rgba(29, 78, 216, 0.34);
}

.cert-card strong,
.education-box strong {
  display: block;
  margin-bottom: 0.4rem;
}

.cert-card span,
.cert-card small,
.education-box span,
.education-box small {
  display: block;
  color: var(--muted);
}

.skill-group h3 {
  margin: 0;
}

.skill-bar {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 54px;
  align-items: center;
  gap: 0.85rem;
}

.skill-bar span {
  font-size: 0.95rem;
  font-weight: 600;
}

.skill-bar div {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
}

.skill-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--electric), var(--gold));
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.education-box {
  margin-top: 1.5rem;
  padding: 1.35rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(29, 78, 216, 0.16);
}

.commercial-card,
.repo-card,
.profile-panel {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
}

.impact-banner {
  margin-top: 1.5rem;
  padding: 1.3rem 1.4rem;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffd27a, #ffe8b2);
  color: var(--navy);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.evidence-card {
  padding: 1.45rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.evidence-icon {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--gold);
  background: rgba(245, 158, 11, 0.12);
}

.repo-card {
  background: #ffffff;
  color: var(--text);
}

.repo-card p {
  color: var(--muted);
}

.repo-card .repo-alias {
  color: var(--electric);
}

.repo-meta span {
  background: rgba(29, 78, 216, 0.08);
  color: var(--text);
  border-color: rgba(29, 78, 216, 0.1);
}

.open-source-note {
  margin-top: 1.6rem;
  color: var(--muted);
}

.about-grid {
  align-items: center;
}

.profile-panel {
  color: var(--white);
  text-align: center;
}

.profile-placeholder {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.18), transparent 30%),
    linear-gradient(180deg, #0f2748, #081321);
  border: 2px solid rgba(245, 158, 11, 0.6);
  font: 700 4rem/1 "Playfair Display", serif;
  color: #ffd27a;
}

.contact-inline a {
  color: #a9c4ff;
  font-weight: 700;
}

.contact-section {
  text-align: center;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.contact-card {
  background: rgba(10, 22, 40, 0.08);
  border: 1px solid rgba(10, 22, 40, 0.12);
  border-radius: 22px;
  padding: 1.35rem;
  display: grid;
  gap: 0.4rem;
  transition: transform var(--transition), background var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(10, 22, 40, 0.12);
}

.site-footer {
  padding: 2.5rem 0;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.84);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  text-align: center;
  margin-bottom: 1rem;
}

.footer-brand p,
.footer-note {
  margin: 0.2rem 0 0;
}

.footer-links {
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .two-column,
  .project-grid,
  .commercial-grid,
  .evidence-grid,
  .repo-grid,
  .contact-grid,
  .pipeline-columns {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .impact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-track {
    grid-template-columns: 1fr;
  }

  .pipeline-connector {
    padding: 0.25rem 0;
  }
}

@media (max-width: 820px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    min-width: 0;
    overflow: hidden;
  }

  .nav-links,
  .nav .button-small {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    gap: 0.28rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    padding: 0;
    margin-left: auto;
  }

  .menu-toggle span {
    width: 1.55rem;
    height: 2px;
    background: var(--white);
    border-radius: 999px;
  }

  .mobile-menu {
    position: fixed;
    inset: 86px 1rem auto;
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(6, 15, 30, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    color: var(--white);
    font-weight: 600;
  }

  .hero-stats,
  .impact-stats {
    grid-template-columns: 1fr;
  }

  .skill-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    width: calc(100% - 1.25rem);
  }

  .container {
    width: calc(100% - 2.5rem);
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding-top: 6rem;
  }

  .content-panel,
  .project-card,
  .commercial-card,
  .repo-card,
  .pipeline-shell,
  .profile-panel {
    padding: 1.25rem;
  }

  .project-card {
    padding-top: 0;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 13vw, 3.8rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.3;
  }

  .hero-mission {
    font-size: 0.96rem;
  }

  .hero-copy h1,
  .hero-subtitle,
  .hero-mission,
  .eyebrow {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    max-width: 19.5rem;
  }

  .eyebrow {
    letter-spacing: 0.12em;
  }

  .badge-row {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.76rem;
  }

  .project-diagram text {
    font-size: 9px;
  }

  .project-diagram .diagram-title {
    font-size: 11px;
  }
}

/* Evidence Portfolio Grid */
.evidence-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.evidence-portfolio-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.evidence-portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
}

.evidence-portfolio-card h3 {
  margin: 0 0 0.75rem;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
}

.evidence-portfolio-card p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

/* Professional Development Grid */
.prof-dev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.prof-dev-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.prof-dev-card h3 {
  margin: 0.5rem 0 0.4rem;
  color: var(--white);
  font-size: 1.1rem;
}

.prof-dev-card small {
  color: rgba(255, 255, 255, 0.68);
}

.prof-dev-type {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* Scope and Compliance Notes */
.scope-note {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.75;
}

.compliance-note {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Footer Disclaimer */
.footer-disclaimer {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .evidence-portfolio-grid,
  .prof-dev-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Blog System ========== */

.nav-active {
  color: var(--gold) !important;
}

/* Blog Hero */
.blog-hero {
  padding: 10rem 0 4rem;
}

.blog-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  color: var(--white);
  margin: 0 0 1.2rem;
  max-width: 720px;
}

.blog-hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 680px;
  margin: 0;
}

/* Category Chips */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.category-chip:hover {
  transform: translateY(-2px);
}

.chip-gold {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #ffd27a;
}

.chip-electric {
  background: rgba(29, 78, 216, 0.1);
  border-color: rgba(29, 78, 216, 0.35);
  color: #a9c4ff;
}

.chip-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.chip-small {
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
}

/* Featured Article Card */
.featured-article-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.featured-article-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.featured-article-card h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white);
  margin: 0.8rem 0;
  line-height: 1.15;
}

.featured-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.article-date,
.article-read-time {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: "JetBrains Mono", monospace;
}

.featured-article-subtitle {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 1.5rem;
}

/* Writing Focus Grid */
.writing-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.writing-focus-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.writing-focus-card h3 {
  color: var(--white);
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.writing-focus-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin: 0;
}

/* Reading Path Grid */
.reading-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.reading-path-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.reading-path-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.reading-path-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin: 0 0 0.8rem;
}

/* Related Work Grid */
.related-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.related-work-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  display: grid;
  gap: 0.35rem;
  transition: transform var(--transition), border-color var(--transition);
}

.related-work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.35);
}

.related-work-card strong {
  color: var(--white);
  font-size: 0.95rem;
}

.related-work-card span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Article Page */
.article-page {
  min-height: 100vh;
}

.article-header {
  padding: 10rem 0 3rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.article-back::before {
  content: "<-";
  font-family: "JetBrains Mono", monospace;
}

.article-back:hover {
  color: var(--gold);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 1rem;
  max-width: 800px;
}

.article-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 700px;
  margin: 0 0 1.5rem;
}

.article-author-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Article Body */
.article-body-wrapper {
  padding: 3rem 0 4rem;
}

.article-container {
  max-width: 760px;
}

.article-body h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  color: var(--white);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  margin: 0 0 1.2rem;
  font-size: 1.02rem;
}

.article-body blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(245, 158, 11, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.7;
}

.article-body ul,
.article-body ol {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body .foundation-list {
  list-style: none;
  padding-left: 0;
}

.article-body .foundation-list li {
  padding: 0.45rem 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* Article Takeaways */
.article-takeaways {
  margin-top: 3rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.article-takeaways h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: #ffd27a;
  margin: 0 0 1rem;
}

.article-takeaways ul {
  margin: 0;
  padding-left: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.article-takeaways li {
  margin-bottom: 0.5rem;
}

/* Article Related */
.article-related {
  margin-top: 3rem;
}

.article-related h2,
.article-reading-path h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 0 1.2rem;
}

.article-reading-path {
  margin-top: 2.5rem;
}

/* Author Box */
.author-box {
  margin-top: 3rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.author-box-inner {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.author-box strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.author-box p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
}

.author-links {
  display: flex;
  gap: 1rem;
}

.author-links a {
  color: #a9c4ff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.author-links a:hover {
  color: var(--gold);
}

.article-back-bottom {
  margin-top: 2.5rem;
  text-align: center;
}

/* Categories Page */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.category-detail-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color var(--transition);
}

.category-detail-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.category-detail-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: var(--white);
  margin: 0.6rem 0 0.8rem;
  line-height: 1.2;
}

.category-detail-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin: 0;
}

.category-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.category-topics span {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

.category-articles {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.category-articles h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.5rem;
}

.category-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.categories-note {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

.categories-note p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin: 0 0 0.8rem;
}

/* Blog responsive */
@media (max-width: 1080px) {
  .writing-focus-grid,
  .reading-path-grid,
  .related-work-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .author-box-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 7rem 0 3rem;
  }

  .article-header {
    padding: 7rem 0 2rem;
  }

  .featured-article-card,
  .category-detail-card {
    padding: 1.25rem;
  }
}

/* ========== End Blog System ========== */

@media print {
  :root {
    --shadow: none;
  }

  body {
    background: #ffffff;
    color: #111827;
  }

  .site-header,
  .menu-toggle,
  .hero-network,
  .button,
  .mobile-menu {
    display: none !important;
  }

  .section,
  .hero {
    padding: 1.2rem 0;
    min-height: auto;
    background: #ffffff !important;
    color: #111827 !important;
  }

  .hero-copy h1,
  .section-heading h2,
  .content-panel h2,
  .project-card h3 {
    color: #111827 !important;
  }

  .content-panel,
  .project-card,
  .commercial-card,
  .repo-card,
  .profile-panel,
  .pipeline-shell,
  .evidence-card,
  .contact-card {
    box-shadow: none;
    border: 1px solid #cbd5e1;
    background: #ffffff !important;
    color: #111827 !important;
    break-inside: avoid;
  }

  .project-card p,
  .commercial-card p,
  .repo-card p,
  .footer-note {
    color: #334155 !important;
  }

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