/* ==========================================================================
   Aahil Shaikh — Professional Engineering Portfolio
   Swiss-Minimalist Technical Micro-UI (Warm Archival Cream & Generative Pulses)
   ========================================================================== */

:root {
  color-scheme: light;
  --surface-control: rgba(255, 255, 255, 0.75);
  --on-accent: #ffffff;
  --on-primary: #ffffff;
  --bg-page: #faf8f3;
  --bg-card: rgba(255, 255, 255, 0.64);
  --bg-card-hover: rgba(255, 255, 255, 0.78);
  --bg-subtle: rgba(20, 24, 20, 0.025);
  
  --border-subtle: rgba(20, 24, 20, 0.07);
  --border-medium: rgba(20, 24, 20, 0.12);
  --border-focus: rgba(194, 75, 35, 0.35);

  --text-primary: #121512;
  --text-secondary: #3e443f;
  --text-muted: #606963;
  --text-faint: #747d76;

  --accent-rust: #c24b23;
  --accent-rust-hover: #a83b16;
  --accent-rust-soft: rgba(194, 75, 35, 0.08);
  --accent-rust-border: rgba(194, 75, 35, 0.22);
  --accent-green: #10b981;

  --line-bridge: rgba(20, 24, 20, 0.09);
  --line-bridge-hover: rgba(194, 75, 35, 0.42);

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-card: 20px;
  --radius-item: 10px;
  --radius-pill: 999px;
  --radius-tag: 5px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-subtle: 0 4px 20px -2px rgba(20, 24, 20, 0.025);
  --shadow-card: 0 10px 30px -4px rgba(20, 24, 20, 0.035), 0 1px 3px rgba(20, 24, 20, 0.02);
  --shadow-hover: 0 14px 36px -6px rgba(20, 24, 20, 0.06), 0 2px 6px rgba(20, 24, 20, 0.03);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--text-faint) transparent;
}

/* Custom Themed Scrollbar (Cream & Rust) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-page);
  background-clip: padding-box;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-rust);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
  selection-background-color: var(--accent-rust);
  selection-color: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  background: rgba(194, 75, 35, 0.18);
  color: var(--text-primary);
}

/* Tactile Archival Noise Grain Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: var(--noise-texture, none);
  background-repeat: repeat;
}

/* Page Shell */
.page-shell {
  position: relative;
  z-index: 2;
  max-width: 1260px;
  margin: 0 auto;
  padding: 36px 4vw 80px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 36px;
  opacity: 0; /* Animated by GSAP */
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-location {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
  border-radius: var(--radius-pill);
}

.status-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulseRadar 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseRadar {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.nav-divider {
  flex-grow: 1;
  height: 1px;
  background: var(--line-bridge);
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-control);
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s var(--ease-spring),
              background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease,
              box-shadow 0.25s var(--ease-spring);
}

.pill-arrow {
  transition: transform 0.25s var(--ease-spring);
}

.pill-btn:hover {
  background: var(--text-primary);
  color: var(--on-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.pill-btn:hover .pill-arrow {
  transform: translate(2px, -2px);
}

.pill-btn:active {
  transform: translateY(0) scale(0.96);
  transition-duration: 0.1s;
}

.pill-btn.accent {
  background: var(--accent-rust);
  color: var(--on-accent);
  border-color: var(--accent-rust);
}

.pill-btn.accent:hover {
  background: var(--accent-rust-hover);
  border-color: var(--accent-rust-hover);
  box-shadow: 0 6px 16px rgba(194, 75, 35, 0.28);
}

/* ==========================================================================
   Two-Column Grid Layout
   ========================================================================== */
.layout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.column-left {
  position: sticky;
  top: var(--sidebar-top, 24px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.column-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card-animate {
  opacity: 0; /* Animated by GSAP */
}

/* ==========================================================================
   Left Column: Profile, Education, Skills
   ========================================================================== */
.profile-block {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Tighten the 36px column gap to 16px below the rover. */
  margin-bottom: -20px;
}

/* A larger model beneath the profile subtitle. */
.rover-button {
  flex: none;
  align-self: center;
  width: min(220px, 100%);
  height: auto;
  aspect-ratio: 140 / 122;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-rust);
  touch-action: manipulation;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring);
}

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

.rover-button:active {
  transform: translateY(-1px) scale(0.99);
}

.rover-button:focus-visible {
  outline: 2px solid var(--accent-rust);
  outline-offset: 3px;
}

.rover {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rover-ground { opacity: 0.22; }

.rover-scan { opacity: 1; }

.rover-scan polyline {
  opacity: 0;
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
  transition: opacity 0.2s ease;
}

.rover-button.is-scanning .rover-scan polyline:nth-child(1) {
  animation: rover-pulse-1 1.6s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.rover-button.is-scanning .rover-scan polyline:nth-child(2) {
  animation: rover-pulse-2 1.6s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.rover-button.is-scanning .rover-scan polyline:nth-child(3) {
  animation: rover-pulse-3 1.6s cubic-bezier(0.2, 0.8, 0.4, 1);
}

@keyframes rover-pulse-1 {
  0% { opacity: 0; stroke-width: 0.8; }
  10%, 25% { opacity: 0.9; stroke-width: 1.15; }
  42% { opacity: 0.15; stroke-width: 0.9; }
  52%, 67% { opacity: 0.9; stroke-width: 1.15; }
  85%, 100% { opacity: 0; stroke-width: 0.8; }
}

@keyframes rover-pulse-2 {
  0%, 8% { opacity: 0; stroke-width: 0.8; }
  18%, 33% { opacity: 0.85; stroke-width: 1.15; }
  50% { opacity: 0.15; stroke-width: 0.9; }
  60%, 75% { opacity: 0.85; stroke-width: 1.15; }
  92%, 100% { opacity: 0; stroke-width: 0.8; }
}

@keyframes rover-pulse-3 {
  0%, 16% { opacity: 0; stroke-width: 0.8; }
  26%, 42% { opacity: 0.8; stroke-width: 1.15; }
  58% { opacity: 0.15; stroke-width: 0.9; }
  68%, 84% { opacity: 0.8; stroke-width: 1.15; }
  98%, 100% { opacity: 0; stroke-width: 0.8; }
}


.user-name {
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1.08;
}

.user-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-rust);
  font-weight: 500;
}

.user-statement {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 6px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-label::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Education Entries (Direct on page background, compact) */
.education-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edu-card {
  position: relative;
  padding: 0 0 0 20px;
  border: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.edu-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent-rust);
  border-radius: 50%;
  background: var(--bg-page);
  z-index: 1;
  pointer-events: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background-color 0.2s ease;
}

.edu-card:first-of-type::before {
  background: var(--accent-rust);
}

.edu-card:hover::before {
  transform: scale(1.35);
  box-shadow: 0 0 0 3px rgba(194, 75, 35, 0.2);
}

.edu-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 12px;
  width: 1px;
  height: calc(100% + 10px);
  background: var(--accent-rust-border);
  pointer-events: none;
}

.edu-card:hover {
  background: transparent;
  box-shadow: none;
}

.edu-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.edu-school {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.edu-degree {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 1px;
  line-height: 1.6;
}

.edu-gpa {
  color: var(--accent-rust);
  font-weight: 600;
}

.edu-courses, .edu-honors {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.55;
}

/* Technical Toolkit */
.toolkit-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toolkit-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toolkit-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toolkit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.toolkit-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: var(--radius-tag);
  background: var(--surface-control);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: transform 0.22s var(--ease-spring),
              background-color 0.18s ease,
              border-color 0.18s ease,
              color 0.18s ease,
              box-shadow 0.22s var(--ease-spring);
  cursor: default;
}

.toolkit-tag:hover {
  background: var(--accent-rust-soft);
  border-color: var(--accent-rust-border);
  color: var(--accent-rust);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 10px rgba(194, 75, 35, 0.12);
}

/* ==========================================================================
   Right Column: Content Panels & Accordions
   ========================================================================== */
.section-wrapper {
  display: flex;
  flex-direction: column;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-header-row .section-label {
  margin-bottom: 0;
  flex-grow: 1;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-rust-border);
  background: var(--accent-rust-soft);
  color: var(--accent-rust);
  flex-shrink: 0;
}

.content-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 12px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.content-panel:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-hover);
}

/* Accordion Item (No bottom underline or shadow) */
.accordion-item {
  border-bottom: none;
  border-radius: var(--radius-item);
  transition: background 0.2s var(--ease-spring);
  margin: 1px 0;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item:hover {
  background: var(--bg-subtle);
}

.accordion-item:hover .bridge-rule {
  background: var(--line-bridge-hover);
}

.accordion-item.is-open {
  background: transparent;
}

/* Accordion Header (Compact Vertical Padding) */
.accordion-header {
  width: 100%;
  padding: 8px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  user-select: none;
}

.timeline-bridge-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  width: 100%;
}

.entry-entity {
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  white-space: normal;
  flex-shrink: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s var(--ease-spring);
}

.accordion-item:hover .entry-entity {
  color: var(--accent-rust);
  transform: translateX(2px);
}

.accordion-item:hover .entry-date,
.accordion-item:hover .entry-location {
  color: var(--accent-rust);
}

.entry-date,
.entry-location {
  transition: color 0.2s ease;
}

.bridge-rule {
  flex-grow: 1;
  height: 1px;
  background: var(--line-bridge);
  margin: 0 4px;
  transition: background 0.25s ease;
}

.entry-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.entry-subline {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  text-align: left;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.6;
}

.subline-text {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Publication Badges */
.pub-badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent-rust-soft);
  color: var(--accent-rust);
  border: 1px solid var(--accent-rust-border);
  vertical-align: middle;
}

/* Accordion Smooth Height Animation (Grid 0fr -> 1fr) */
.accordion-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease-spring);
}

.accordion-item.is-open .accordion-collapse {
  grid-template-rows: 1fr;
}

.accordion-inner {
  min-height: 0;
  overflow: hidden;
  padding: 2px 8px 10px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.24s ease, transform 0.28s var(--ease-spring);
}

.accordion-item.is-open .accordion-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Detail Content Inner (Seamless background matching card) */
.detail-card {
  padding: 4px 0;
  background: transparent;
  border-left: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.citation-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--border-subtle);
}

.tech-summary,
.tech-stack {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.tech-summary { margin-top: 4px; }

.tech-stack {
  color: var(--text-secondary);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.accordion-item.is-open .bullet-list li {
  animation: bullet-reveal 0.35s var(--ease-spring) backwards;
}

.accordion-item.is-open .bullet-list li:nth-child(1) { animation-delay: 0.04s; }
.accordion-item.is-open .bullet-list li:nth-child(2) { animation-delay: 0.08s; }
.accordion-item.is-open .bullet-list li:nth-child(3) { animation-delay: 0.12s; }
.accordion-item.is-open .bullet-list li:nth-child(4) { animation-delay: 0.16s; }
.accordion-item.is-open .bullet-list li:nth-child(5) { animation-delay: 0.20s; }

@keyframes bullet-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--accent-rust);
}

.bullet-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   Patents & Publications Citation List
   ========================================================================== */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px 4px;
}

.pub-item {
  padding-bottom: 12px;
  transition: transform 0.25s var(--ease-spring), opacity 0.2s ease;
}

.pub-item:hover {
  transform: translateX(3px);
}

.pub-item:last-child {
  padding-bottom: 0;
}

.pub-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pub-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.pub-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-medium);
  text-underline-offset: 3px;
}

.pub-title a:hover {
  color: var(--accent-rust);
  text-decoration-color: currentColor;
}

.pub-title a:hover .pub-link-arrow {
  transform: translate(2px, -2px);
}

.pub-title a:focus-visible {
  outline: 2px solid var(--accent-rust);
  outline-offset: 3px;
  border-radius: 2px;
}

.pub-link-arrow {
  color: var(--accent-rust);
  white-space: nowrap;
  display: inline-block;
  transition: transform 0.25s var(--ease-spring);
}

.pub-type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-rust);
}

.pub-authors {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pub-authors strong {
  color: var(--accent-rust);
  font-weight: 600;
}

.pub-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pub-details {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.pub-venue {
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-muted);
}

.pub-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-rust);
  background: var(--accent-rust-soft);
  border: 1px solid var(--accent-rust-border);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ==========================================================================
   Footer Colophon
   ========================================================================== */
.site-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--accent-rust);
}

/* ==========================================================================
   Micro-Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--text-primary);
  color: var(--on-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.92);
  transition: opacity 0.28s ease, transform 0.35s var(--ease-bounce);
}

.toast-notification.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-rust);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 700;
  transition: transform 0.3s var(--ease-bounce);
}

.toast-notification.show .toast-icon {
  transform: scale(1.15) rotate(6deg);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 290px 1fr;
    gap: 36px;
  }
  .page-shell {
    padding: 24px 3vw 60px;
  }
}

@media (max-width: 860px) {
  .column-left { position: static; }
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }



  .top-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-divider {
    display: none;
  }

  .nav-pills {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .timeline-bridge-line {
    flex-wrap: wrap;
    gap: 6px;
  }

  .bridge-rule {
    display: none;
  }

  .entry-date {
    margin-left: auto;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Clear hierarchy and disclosure cues without button chrome. */
.edu-gpa { white-space: nowrap; }

.entry-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
}

.entry-location {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.entry-impact {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 4px;
  max-height: 48px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.3s var(--ease-spring), opacity 0.2s ease, transform 0.24s ease, margin 0.3s ease;
  overflow: hidden;
}

.tech-summary {
  transition: max-height 0.3s var(--ease-spring), opacity 0.2s ease, transform 0.24s ease, margin 0.3s ease;
  overflow: hidden;
  max-height: 40px;
  opacity: 1;
  transform: translateY(0);
}

.entry-chevron {
  flex: 0 0 14px;
  align-self: center;
  color: var(--text-muted);
  transition: transform 0.32s var(--ease-spring), color 0.2s ease;
}

.accordion-item.is-open .entry-chevron {
  transform: rotate(180deg);
  color: var(--accent-rust);
}

.accordion-header:hover .entry-chevron { color: var(--accent-rust); }
.accordion-header:focus-visible {
  outline: 2px solid var(--accent-rust);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .entry-chevron { transition: none; }
}

.edu-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.edu-card-top { align-items: stretch; }
.edu-heading .edu-school { min-width: 0; }
.edu-heading .edu-gpa {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

.accordion-item.is-open .entry-impact,
.accordion-item.is-open .tech-summary {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

/* Neutral charcoal keeps the orange accents distinct in dark mode. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #191919;
  --bg-card: #232323;
  --bg-card-hover: #2b2b2b;
  --bg-subtle: rgba(238, 237, 235, 0.035);
  --surface-control: #292929;
  --border-subtle: rgba(238, 237, 235, 0.11);
  --border-medium: rgba(238, 237, 235, 0.22);
  --border-focus: rgba(239, 151, 108, 0.55);
  --text-primary: #eeedeb;
  --text-secondary: #cdccca;
  --text-muted: #adaca9;
  --text-faint: #969592;
  --accent-rust: #ef976c;
  --accent-rust-hover: #ffb28c;
  --accent-rust-soft: rgba(239, 151, 108, 0.10);
  --accent-rust-border: rgba(239, 151, 108, 0.30);
  --line-bridge: rgba(238, 237, 235, 0.10);
  --line-bridge-hover: rgba(239, 151, 108, 0.45);
  --on-accent: #251a13;
  --on-primary: #191919;
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.14);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.20);
  --rover-fill-454a3e: #000000;
  --rover-stroke-84897a: #8a8a8a;
  --rover-stroke-e1ddcf: #aeaeae;
  --rover-stroke-868b7d: #8a8a8a;
  --rover-stroke-929386: #8a8a8a;
  --rover-fill-rgb687167: #292929;
  --rover-stroke-353c36: #646464;
  --rover-fill-rgb737672: #2e2e2e;
  --rover-fill-rgb778076: #323232;
  --rover-fill-rgb818480: #363636;
  --rover-stroke-f2eee2: #aeaeae;
  --rover-fill-rgb848783: #393939;
  --rover-fill-50564e: #2a2a2a;
  --rover-stroke-64695f: #8a8a8a;
  --rover-fill-d6d2c4: #959595;
  --rover-fill-9d9f92: #6f6f6f;
  --rover-fill-c24b23: #de6e49;
  --rover-fill-rgb858884: #3a3a3a;
  --rover-fill-rgb868985: #3b3b3b;
  --rover-fill-babdad: #848484;
  --rover-stroke-78786d: #8a8a8a;
  --rover-fill-b0b9a8: #616161;
  --rover-fill-f5f0e6: #737373;
  --rover-fill-919487: #676767;
  --rover-fill-7b8277: #595959;
  --rover-fill-697468: #4d4d4d;
  --rover-fill-7e8476: #5a5a5a;
  --rover-fill-ded7c9: #575757;
  --rover-fill-bb6745: #cc8e75;
  --rover-fill-d48a64: #dfaa8f;
  --rover-stroke-e5e6d7: #aeaeae;
  --rover-fill-c8c1b3: #454545;
  --rover-fill-a64b2b: #ce6844;
  --rover-fill-d9906c: #e1a98d;
  --rover-fill-a84c2d: #ce6a49;
  --rover-fill-b16749: #c68d75;
  --rover-stroke-969b8c: #8a8a8a;
  --rover-fill-8a8d7e: #616161;
  --rover-fill-b66b4c: #c9917b;
  --rover-fill-a85130: #cc704d;
  --rover-fill-ddaa85: #dfb18f;
  --rover-fill-aaa99a: #777777;
  --rover-fill-8e9485: #656565;
  --rover-fill-e3e0d1: #9f9f9f;
  --rover-fill-485a52: #183b36;
  --rover-stroke-a9aa9b: #8a8a8a;
  --rover-fill-b7c8b7: #bce1ce;
  --rover-stroke-c3cdbb: #aeaeae;
  --rover-stroke-777d6e: #8a8a8a;
  --rover-fill-b36a46: #c88f73;
  --rover-fill-ac5937: #ca7b5a;
  --rover-fill-d9a382: #ddae91;
}

.theme-selector {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  margin-inline: 6px;
  padding: 3px;
  border: 1px solid var(--border-medium);
  border-radius: 9px;
  background: var(--bg-subtle);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.theme-option {
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.theme-option:hover {
  color: var(--text-primary);
  transform: translateY(-0.5px);
}

.theme-option:active {
  transform: scale(0.96);
}

.theme-option[aria-pressed="true"] {
  color: var(--accent-rust);
  background: var(--accent-rust-soft);
  border-color: var(--accent-rust-border);
  font-weight: 500;
}

.theme-option:focus-visible {
  outline: 2px solid var(--accent-rust);
  outline-offset: 2px;
}

.pill-btn:focus-visible {
  outline: 2px solid var(--accent-rust);
  outline-offset: 3px;
}

.project-source {
  align-self: flex-start;
  font-size: 12px;
  color: var(--accent-rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-block: 4px;
}
.project-source:hover { color: var(--accent-rust-hover); }
.project-source:focus-visible {
  outline: 2px solid var(--accent-rust);
  outline-offset: 3px;
}

/* Compact filled marks provide company recognition without color clutter. */
.company-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-self: flex-start;
  margin-top: 1px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.accordion-item:hover .company-icon,
.accordion-header:focus-visible .company-icon {
  color: var(--accent-rust);
}

/* Reserve a separate icon column throughout each experience entry. */
.experience-item .accordion-header {
  position: relative;
  padding-left: 42px;
}

.experience-item .company-icon {
  position: absolute;
  left: 8px;
  top: 9px;
  margin: 0;
}

.experience-item .accordion-inner { padding-left: 42px; }
.experience-item .detail-card {
  padding-left: 0;
  border-left: 0;
}
.experience-item:hover .entry-entity { transform: none; }

/* ==========================================================================
   Accessibility: Strict Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card-animate,
  .top-nav {
    opacity: 1 !important;
    transform: none !important;
  }

  .rover-button:hover,
  .rover-button.is-scanning .rover-scan polyline,
  .accordion-item.is-open .bullet-list li,
  .toast-notification.show,
  .toast-notification.show .toast-icon {
    animation: none !important;
    transform: none !important;
  }

  .rover-scan polyline {
    opacity: 0.6 !important;
  }
}

/* Mobile: compact identity, then experience and projects, then supporting info. */
.column-left, .column-right, .section-wrapper { min-width: 0; }

@media (max-width: 860px) {
  .page-shell { padding: 20px 16px 40px; }
  .layout-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .column-right { order: 0; }
  .column-left { order: 1; }
  .layout-grid > .profile-block {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 0;
  }
  .layout-grid > .profile-block .user-name { font-size: 32px; }
  .layout-grid > .profile-block .user-subtitle {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .layout-grid > .profile-block .rover-button {
    width: min(220px, 100%);
    margin: 10px 0 0;
  }
  .top-nav { padding-bottom: 24px; }
  .nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    flex-shrink: 1;
  }
  .theme-selector { margin: 0; }
  .pill-btn { padding: 7px 10px; min-height: 40px; letter-spacing: 0.06em; }
  .theme-option { min-height: 32px; }
  .content-panel { padding: 10px 8px; }
  .accordion-header { position: relative; padding-right: 24px; }
  .timeline-bridge-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .entry-date { margin-left: 0; text-align: left; font-size: 11px; letter-spacing: 0.05em; }
  .entry-chevron { position: absolute; right: 6px; top: 13px; }
  .entry-heading { gap: 2px 8px; }
  .entry-entity { min-width: 0; overflow-wrap: anywhere; }
  .experience-item .accordion-header { padding-left: 36px; }
  .experience-item .accordion-inner { padding-left: 36px; }
  .experience-item .company-icon { left: 4px; }
  .section-header-row { gap: 8px; }
  .section-label { font-size: 11px; letter-spacing: 0.12em; }
  .pub-title { overflow-wrap: anywhere; }
  .edu-heading { gap: 8px; }
  .edu-heading .edu-school { font-size: 14px; }
  .footer-links { flex-wrap: wrap; gap: 10px 16px; }
  .toast-notification { left: 16px; right: 16px; bottom: 16px; width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; }
}

.mobile-menu-toggle { display: none; }
.menu-close-icon { display: none; }

@media (max-width: 860px) {
  .top-nav { justify-content: space-between; }
  .nav-left { min-width: 0; flex-shrink: 1; }
  .nav-location { font-size: 10px; letter-spacing: 0.1em; }
  .menu-ready .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-primary);
    background: var(--surface-control);
  }
  .mobile-menu-toggle:focus-visible { outline: 2px solid var(--accent-rust); outline-offset: 3px; }
  .menu-ready .nav-pills { display: none; }
  .menu-ready.menu-is-open .nav-pills,
  .menu-ready.menu-is-animating .nav-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex-basis: 100%;
    padding: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--bg-card);
  }
  .menu-is-open .menu-open-icon { display: none; }
  .menu-is-open .menu-close-icon { display: inline; }
  .menu-is-open .mobile-menu-toggle { color: var(--accent-rust); border-color: var(--accent-rust-border); }
  .nav-pills .theme-selector { grid-column: 1 / -1; justify-content: center; }
  .nav-pills .theme-option { flex: 1; min-height: 36px; }
  .nav-pills .pill-btn { justify-content: center; min-height: 44px; }
}

@media (max-width: 860px) {
  .menu-is-animating .nav-pills {
    overflow: hidden;
    min-height: 0;
  }
}
