/**
 * Main Stylesheet: Abishek Subedi Portfolio
 * High-density, restrained editorial layout for senior engineer & founder.
 */
@import url("./tokens.css");

/* -------------------------------------------------------------
   1. Reset & Global Base
------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea {
  font: inherit;
}

ul, ol {
  list-style: none;
}

/* -------------------------------------------------------------
   2. Layout & Typography Utilities
------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

.section-header {
  margin-bottom: var(--space-10);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: var(--leading-relaxed);
}

/* -------------------------------------------------------------
   3. Accessible Skip Link & Sticky Navigation
------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--text-primary);
  color: var(--surface);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-4);
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  font-size: var(--text-base);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand-link:hover {
  color: var(--accent);
}

.brand-title-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  margin-left: var(--space-2);
  display: none;
}

@media (min-width: 640px) {
  .brand-title-badge {
    display: inline-block;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-item {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-item:hover, .nav-item:focus-visible {
  color: var(--text-primary);
}

.nav-divider {
  width: 1px;
  height: 16px;
  background-color: var(--border);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-social-link {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-social-link:hover {
  color: var(--text-primary);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }
  
  .mobile-nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-6) var(--space-5);
    gap: var(--space-4);
    box-shadow: var(--shadow-card);
  }
  
  .mobile-nav-open .nav-divider {
    width: 100%;
    height: 1px;
  }
  
  .mobile-nav-open .nav-social {
    width: 100%;
    padding-top: var(--space-2);
    justify-content: flex-start;
    gap: var(--space-5);
  }
}

/* -------------------------------------------------------------
   4. Hero Section
------------------------------------------------------------- */
.hero-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr 280px;
    gap: var(--space-12);
  }
}

.hero-content {
  max-width: 720px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.hero-text {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 550;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--surface);
  border: 1px solid var(--text-primary);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-subtle);
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  filter: grayscale(12%);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 920px) {
  .hero-photo {
    width: 260px;
    height: 260px;
  }
}

/* Credibility Strip */
.credibility-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-8);
}

@media (min-width: 680px) {
  .credibility-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.credibility-item {
  background-color: var(--surface);
  padding: var(--space-4) var(--space-4);
  text-align: left;
}

.credibility-value {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.credibility-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-tight);
}

/* -------------------------------------------------------------
   5. Selected Work (Case Studies)
------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

.project-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.project-card:hover {
  border-color: var(--border-focus);
}

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.project-title {
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.project-role-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.project-org {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.project-responsibility {
  font-size: var(--text-xs);
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.project-responsibility strong {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: var(--accent);
}

.project-impact {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background-color: var(--bg);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* -------------------------------------------------------------
   6. Founder & Ventures
------------------------------------------------------------- */
.ventures-primary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .ventures-primary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.studio-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.studio-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.studio-logo-wrap {
  width: 72px;
  height: 48px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.studio-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.studio-meta h3 {
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--text-primary);
  line-height: 1.2;
}

.studio-meta .studio-role {
  font-size: var(--text-xs);
  font-weight: 550;
  color: var(--accent);
}

.studio-meta .studio-type {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.studio-summary {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.studio-highlights {
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
}

.studio-highlights li {
  list-style-type: disc;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
}

.studio-footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.studio-metrics {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.studio-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.studio-link:hover {
  color: var(--accent);
}

/* Other Ventures (Subdued) */
.other-ventures-heading {
  font-size: var(--text-sm);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.other-ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.venture-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: border-color var(--transition-fast);
}

.venture-item:hover {
  border-color: var(--border-focus);
}

.venture-logo-wrap {
  width: 36px;
  height: 36px;
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.venture-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.venture-info {
  flex-grow: 1;
}

.venture-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
}

.venture-cat {
  font-size: 11px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   7. Engineering Experience (Vertical Timeline)
------------------------------------------------------------- */
.timeline {
  position: relative;
  border-left: 1px solid var(--border);
  margin-left: var(--space-2);
  padding-left: var(--space-6);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-6) - 5px);
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 2px solid var(--text-primary);
}

.timeline-item:first-child .timeline-marker {
  background-color: var(--text-primary);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.timeline-role-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.timeline-role {
  font-size: var(--text-md);
  font-weight: 650;
  color: var(--text-primary);
}

.timeline-company {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.timeline-summary {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-2);
}

.timeline-details {
  padding-left: var(--space-4);
  margin-top: var(--space-2);
}

.timeline-details li {
  list-style-type: disc;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 4px;
}

/* -------------------------------------------------------------
   8. Capabilities (Clean Typographic Matrix)
------------------------------------------------------------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.capability-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.capability-cat-title {
  font-size: var(--text-base);
  font-weight: 650;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.capability-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
  min-height: 32px;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.capability-item {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.capability-item::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.7;
}

/* -------------------------------------------------------------
   9. Business & Growth Advisory
------------------------------------------------------------- */
.advisory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .advisory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.advisory-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.advisory-client {
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--text-primary);
}

.advisory-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-top: 2px;
}

.advisory-loc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.advisory-summary {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.advisory-items {
  padding-left: var(--space-4);
}

.advisory-items li {
  list-style-type: disc;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
}

/* -------------------------------------------------------------
   10. Publications & Research
------------------------------------------------------------- */
.curriculum-wrap {
  margin-bottom: var(--space-8);
}

.curriculum-meta-bar {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.curriculum-title {
  font-size: var(--text-base);
  font-weight: 650;
  color: var(--text-primary);
}

.curriculum-pub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.volumes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .volumes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.volume-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.volume-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.volume-name {
  font-size: var(--text-md);
  font-weight: 650;
  color: var(--text-primary);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
}

.volume-focus {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
}

.volume-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-2);
}

/* Research & Creative Subdued List */
.research-block {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.research-title {
  font-size: var(--text-sm);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.research-item {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.research-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.research-item-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: 4px;
}

.research-item-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.research-item-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.research-item-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* -------------------------------------------------------------
   11. About & Education
------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 840px) {
  .about-grid {
    grid-template-columns: 1fr 340px;
    gap: var(--space-10);
  }
}

.about-text-col p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.education-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.education-heading {
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.degree-title {
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.degree-school {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.degree-years {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   12. Contact Section
------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.channel-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.channel-link:hover {
  border-color: var(--border-focus);
}

.channel-label {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 70px;
}

.channel-value {
  font-size: var(--text-sm);
  font-weight: 550;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 550;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  padding: 10px 12px;
  font-size: var(--text-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: var(--surface);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-status {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  background-color: #e6f4ea;
  color: #137333;
}

.form-status.error {
  background-color: #fce8e6;
  color: #c5221f;
}

/* -------------------------------------------------------------
   13. Footer
------------------------------------------------------------- */
.site-footer {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-back-to-top:hover {
  color: var(--text-primary);
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}
