:root {
  --bg: #f6f8fa;
  --panel: #ffffff;
  --panel-alt: #f3f4f6;
  --line: #d0d7de;
  --line-strong: #afb8c1;
  --text: #1f2328;
  --muted: #656d76;
  --soft: #4b5563;
  --accent: #7e3ace;
  --accent-hover: #6927b5;
  --accent-light: #7e3ace;
  --accent-bg: rgba(126, 58, 206, 0.08);
  --accent-border: rgba(126, 58, 206, 0.25);
  --accent-glow: rgba(126, 58, 206, 0.15);
  --green: #1a7f37;
  --green-bright: #1a7f37;
  --blue: #0969da;
  --button: #f6f8fa;
  --button-border: rgba(31, 35, 40, 0.15);
  --button-text: #24292f;
  --button-primary: #7e3ace;
  --button-primary-hover: #6927b5;
  --button-primary-text: #ffffff;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="light"] {
  --bg: #f6f8fa;
  --panel: #ffffff;
  --panel-alt: #f3f4f6;
  --line: #d0d7de;
  --line-strong: #afb8c1;
  --text: #1f2328;
  --muted: #656d76;
  --soft: #4b5563;
  --accent: #7e3ace;
  --accent-hover: #6927b5;
  --accent-light: #7e3ace;
  --accent-bg: rgba(126, 58, 206, 0.08);
  --accent-border: rgba(126, 58, 206, 0.25);
  --accent-glow: rgba(126, 58, 206, 0.15);
  --green: #1a7f37;
  --green-bright: #1a7f37;
  --blue: #0969da;
  --button: #f6f8fa;
  --button-border: rgba(31, 35, 40, 0.15);
  --button-text: #24292f;
  --button-primary: #7e3ace;
  --button-primary-hover: #6927b5;
  --button-primary-text: #ffffff;
}

body[data-theme="dark"] {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-alt: #21262d;
  --line: #30363d;
  --line-strong: #484f58;
  --text: #e6edf3;
  --muted: #8b949e;
  --soft: #c9d1d9;
  --accent: #7e3ace;
  --accent-hover: #9333ea;
  --accent-light: #c084fc;
  --accent-bg: rgba(126, 58, 206, 0.14);
  --accent-border: rgba(126, 58, 206, 0.35);
  --accent-glow: rgba(126, 58, 206, 0.25);
  --green: #238636;
  --green-bright: #3fb950;
  --blue: #58a6ff;
  --button: #21262d;
  --button-border: #30363d;
  --button-text: #e6edf3;
  --button-primary: #7e3ace;
  --button-primary-hover: #9333ea;
  --button-primary-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background-color var(--transition), color var(--transition);
}

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

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.panel,
.site-footer {
  background: var(--panel);
  border: 1px solid var(--line);
  transition: background-color var(--transition), border-color var(--transition);
}

.panel {
  padding: 24px;
  border-radius: 8px;
}

/* hero profile banner and avatar */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-bottom: 24px;
  border-radius: 12px;
}

.hero-banner-container {
  position: relative;
  width: 100%;
  height: 180px;
  background: #1e0d2d;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.75) 45%,
    rgba(255, 255, 255, 0.96) 80%,
    var(--panel) 100%
  );
}

body[data-theme="dark"] .hero-banner-overlay {
  background: linear-gradient(
    180deg,
    rgba(30, 13, 45, 0.25) 0%,
    rgba(22, 27, 34, 0.65) 55%,
    var(--panel) 100%
  );
}

body[data-theme="light"] .hero-banner-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.75) 45%,
    rgba(255, 255, 255, 0.96) 80%,
    var(--panel) 100%
  );
}

.hero-main {
  position: relative;
  z-index: 2;
  padding: 0 28px 28px;
  margin-top: -55px;
  display: grid;
  gap: 24px;
  align-items: start;
}

.hero-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 4px solid var(--panel);
  background: var(--panel-alt);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-avatar:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px var(--accent-glow), 0 0 0 3px var(--accent-light);
}

.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-bright);
  border: 3px solid var(--panel);
  box-shadow: 0 0 10px rgba(63, 185, 80, 0.7);
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero-headline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.hero-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-name,
.section-heading h2,
.footer-column h3,
.access-headline p,
.access-meta p,
.site-footer p {
  margin: 0;
}

.hero-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-handle {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: -0.01em;
}

.verified-badge {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7e3ace, #9333ea);
  color: #fff;
  font-size: 0.8rem;
  box-shadow: 0 0 8px var(--accent-glow);
}

.typing-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  color: var(--accent-light);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 5px 12px;
  border-radius: 6px;
  margin-top: 10px;
  width: fit-content;
}

.typing-prompt {
  color: var(--green-bright);
  font-weight: 700;
}

.typing-text {
  font-weight: 600;
  min-height: 1.3em;
}

.typing-cursor {
  animation: cursor-blink 1s step-start infinite;
  color: var(--accent-light);
  font-weight: 700;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.location,
.roles {
  margin: 10px 0 0;
}

.location {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.roles {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--soft);
  line-height: 1.45;
}

.theme-toggle {
  width: 44px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--panel-alt);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.theme-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle:focus-visible,
.button:focus-visible,
.section-link:focus-visible,
.footer-inline-link:focus-visible,
.link-list a:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-meta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pill-row,
.badge-row,
.hero-actions,
.tag-list {
  display: flex;
  flex-wrap: wrap;
}

.pill-row,
.badge-row {
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.8rem;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  font-family: "IBM Plex Mono", monospace;
}

.pill::before {
  content: "✦";
  font-size: 0.85rem;
}

.badge-pill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.badge-purple {
  background: rgba(126, 58, 206, 0.18);
  color: #c084fc;
  border-color: rgba(126, 58, 206, 0.4);
}

.badge-pink {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.4);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.4);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

body[data-theme="dark"] .badge-purple {
  background: rgba(147, 51, 234, 0.2);
  color: #c084fc;
  border-color: rgba(147, 51, 234, 0.4);
}

body[data-theme="dark"] .badge-pink {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.4);
}

body[data-theme="dark"] .badge-cyan {
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.4);
}

body[data-theme="dark"] .badge-blue {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

body[data-theme="light"] .badge-purple {
  background: rgba(126, 58, 206, 0.1);
  color: #7e3ace;
  border-color: rgba(126, 58, 206, 0.3);
}

body[data-theme="light"] .badge-pink {
  background: rgba(219, 39, 119, 0.1);
  color: #be185d;
  border-color: rgba(219, 39, 119, 0.3);
}

body[data-theme="light"] .badge-cyan {
  background: rgba(8, 145, 178, 0.1);
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.3);
}

body[data-theme="light"] .badge-blue {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.3);
}

.hero-actions {
  gap: 12px;
  margin-top: 4px;
}

.button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--button-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all var(--transition);
}

.octicon-icon {
  flex-shrink: 0;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-light);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.button-resume {
  background: linear-gradient(135deg, #7e3ace, #9333ea);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(126, 58, 206, 0.35);
  font-weight: 600;
}

.button-resume:hover {
  background: linear-gradient(135deg, #6927b5, #7e3ace);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126, 58, 206, 0.5);
  color: #ffffff;
}

.button-icon {
  flex-shrink: 0;
}

.button-ghost {
  background: var(--button);
  color: var(--button-text);
  border-color: var(--button-border);
}

.button-ghost:hover {
  border-color: var(--line-strong);
  background: var(--panel-alt);
}

.main-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.primary-column,
.sidebar-column,
.two-column {
  display: grid;
  gap: 24px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2,
.footer-column h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.section-heading-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.section-link,
.footer-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-light);
  white-space: nowrap;
}

.section-link:hover,
.footer-inline-link:hover {
  color: var(--text);
}

.copy-block {
  display: grid;
  gap: 16px;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.65;
}

.copy-block p {
  margin: 0;
}

/* tech stack categories */
.tech-stack-list {
  display: grid;
  gap: 16px;
}

.tech-group h3 {
  margin: 0 0 10px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
}

.tag-list {
  gap: 8px;
}

.tag {
  color: var(--accent-light);
  font-weight: 500;
  font-size: 0.85rem;
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--accent-border);
  font-family: "IBM Plex Mono", monospace;
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--accent-light);
  background: rgba(126, 58, 206, 0.25);
  color: #ffffff;
}

/* github style repository cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.repo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all var(--transition);
}

.repo-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.repo-title-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.98rem;
  font-family: "IBM Plex Mono", monospace;
  word-break: break-all;
}

.repo-title-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.repo-visibility-pill {
  border: 1px solid var(--line);
  border-radius: 2em;
  padding: 2px 8px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

.repo-description {
  margin: 0;
  line-height: 1.55;
  font-size: 0.88rem;
  color: var(--soft);
  flex-grow: 1;
}

.repo-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.repo-tech-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  color: var(--soft);
  letter-spacing: 0.01em;
}

body[data-theme="light"] .repo-tech-tag {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

body[data-theme="dark"] .repo-tech-tag {
  background: var(--panel-alt);
  border-color: var(--line);
  color: var(--soft);
}

.repo-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  margin-top: 4px;
}

.repo-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.repo-lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.repo-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* sidebar engineering access card */
.access-panel {
  padding: 12px;
}

.access-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(
      circle at top right,
      rgba(126, 58, 206, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, #181126, #0d1117);
  border: 1px solid rgba(126, 58, 206, 0.35);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.access-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.access-mark span:first-child {
  width: 18px;
  height: 18px;
  border-top: 4px solid var(--accent-light);
  border-right: 4px solid var(--accent-light);
  transform: rotate(45deg);
}

.access-mark span:last-child {
  width: 20px;
  height: 4px;
  background: var(--accent-light);
}

.access-headline p {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
}

.access-headline span,
.access-label,
.access-role,
.stack-year,
.gallery-caption {
  font-family: "IBM Plex Mono", monospace;
}

.access-headline span,
.access-label,
.access-role {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.access-avatar-frame {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.access-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-name {
  margin-top: 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.access-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.access-qr {
  width: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.access-qr span {
  aspect-ratio: 1 / 1;
  background: rgba(192, 132, 252, 0.75);
}

.membership-banner {
  margin-top: 8px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #5b21b6, #7e3ace 60%, #4c1d95);
  color: #fff;
  border-radius: 6px;
}

.membership-banner strong,
.membership-banner span {
  display: block;
}

.membership-banner strong {
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.membership-banner span {
  margin-top: 6px;
  font-size: 0.72rem;
  opacity: 0.9;
}

/* timeline and history */
.stack-list {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: -18px;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--panel);
  margin-top: 4px;
}

.timeline-item:first-child .timeline-marker {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-glow);
}

.stack-title,
.certification-item strong,
.recommendation-author {
  margin: 0;
  font-weight: 700;
}

.stack-title {
  font-size: 0.95rem;
}

.stack-meta,
.recommendation-role,
.footer-copy,
.contact-link small,
.link-list a small,
.certification-item span {
  color: var(--soft);
}

.stack-meta {
  margin: 4px 0 0;
  line-height: 1.45;
  font-size: 0.86rem;
}

.stack-details {
  margin: 8px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stack-detail-item {
  color: var(--soft);
  font-size: 0.81rem;
  line-height: 1.45;
}

.stack-year {
  color: var(--accent-light);
  font-size: 0.8rem;
  white-space: nowrap;
  padding-top: 2px;
}

.tech-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

/* certifications */
.certification-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.certification-item {
  padding: 14px 16px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.certification-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cert-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.cert-category-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-bg);
  color: var(--accent-light);
  border: 1px solid var(--accent-border);
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.cert-issuer {
  color: var(--soft);
  font-weight: 500;
}

.cert-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--accent-light);
  font-weight: 600;
}

/* recommendations carousel */
.recommendation-carousel {
  display: grid;
  gap: 16px;
}

.recommendation-cards {
  min-height: 150px;
}

.recommendation-card {
  display: none;
  gap: 14px;
}

.recommendation-card.is-active {
  display: grid;
}

.recommendation-card blockquote {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.55;
  font-style: italic;
}

.recommendation-meta {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.recommendation-author {
  font-size: 0.92rem;
}

.recommendation-role {
  margin: 3px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.recommendation-dots {
  display: flex;
  gap: 8px;
}

.recommendation-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line-strong);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.recommendation-dot.is-active {
  background: var(--accent-light);
  transform: scale(1.25);
}

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 23, 0.78);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* footer and links */
/* connect & affiliations panel */
.connect-panel,
.footer-panel {
  padding: 24px;
}

.heading-with-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.35);
  color: var(--green-bright);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-indicator-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* spotlight hero card */
.spotlight-card {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(126, 58, 206, 0.14) 0%,
    rgba(22, 27, 34, 0.7) 100%
  );
  border: 1px solid var(--accent-border);
  box-shadow: 0 4px 20px var(--accent-glow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body[data-theme="light"] .spotlight-card {
  background: linear-gradient(
    135deg,
    rgba(126, 58, 206, 0.08) 0%,
    rgba(246, 248, 250, 0.9) 100%
  );
}

body[data-theme="dark"] .spotlight-card {
  background: linear-gradient(
    135deg,
    rgba(126, 58, 206, 0.14) 0%,
    rgba(22, 27, 34, 0.85) 100%
  );
}

.spotlight-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spotlight-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  text-transform: uppercase;
}

.spotlight-headline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spotlight-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--soft);
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.copy-cta-btn.is-copied {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

/* dual bento grid */
.connect-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.bento-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
}

.column-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.column-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--panel-alt);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* channel cards */
.channel-card-list,
.affiliation-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  transition: transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: 0 4px 14px var(--accent-glow);
  background: var(--panel-alt);
}

.channel-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  color: var(--accent-light);
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
}

.channel-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-decoration: none;
}

.channel-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.channel-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--muted);
  border: 1px solid var(--line);
}

.channel-value {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.channel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-copy-btn,
.channel-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-alt);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.channel-copy-btn:hover,
.channel-arrow-btn:hover {
  color: var(--text);
  border-color: var(--accent-light);
  background: var(--accent-bg);
}

.channel-copy-btn.is-copied {
  color: var(--green-bright);
  border-color: var(--green-bright);
  background: rgba(63, 185, 80, 0.12);
}

/* affiliation cards */
.affiliation-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  transition: transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.affiliation-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: 0 4px 14px var(--accent-glow);
  background: var(--panel-alt);
}

.affiliation-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(88, 166, 255, 0.12);
  color: var(--blue);
  border: 1px solid rgba(88, 166, 255, 0.25);
  flex-shrink: 0;
}

.affiliation-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.affiliation-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.affiliation-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.affiliation-role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.affiliation-role-badge.badge-accent {
  background: var(--accent-bg);
  color: var(--accent-light);
  border: 1px solid var(--accent-border);
}

.affiliation-role-badge.badge-blue {
  background: rgba(88, 166, 255, 0.12);
  color: var(--blue);
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.affiliation-role-badge.badge-green {
  background: rgba(63, 185, 80, 0.12);
  color: var(--green-bright);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.affiliation-role-badge.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.affiliation-category {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

.affiliation-arrow {
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: transform var(--transition), color var(--transition);
}

.affiliation-card:hover .affiliation-arrow {
  color: var(--accent-light);
  transform: translate(2px, -2px);
}

/* copy toast */
.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--accent-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hidden-compat {
  display: none !important;
}

/* backwards-compat link list styles */
.link-list,
.contact-link-list {
  display: grid;
  gap: 10px;
}

.link-list a,
.contact-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  color: var(--soft);
  padding: 6px 8px;
  border-radius: 4px;
  transition: background-color var(--transition);
}

.link-list a:hover,
.contact-link:hover {
  background: var(--panel-alt);
}

.link-list a span,
.contact-link div {
  display: grid;
  gap: 2px;
}

.link-list a strong,
.contact-link strong {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.3;
}

.link-list a small,
.contact-link small {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 16px;
  padding: 24px 0 0;
  border-width: 1px 0 0;
  background: transparent;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 600ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 60ms;
}

.reveal:nth-child(3) {
  animation-delay: 110ms;
}

.reveal:nth-child(4) {
  animation-delay: 160ms;
}

.reveal:nth-child(5) {
  animation-delay: 210ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* responsive media queries */
@media (min-width: 860px) {
  .hero-main {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .main-grid {
    grid-template-columns: minmax(0, 2fr) minmax(290px, 0.95fr);
  }

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

  .two-column {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 859px) {
  .hero-main {
    margin-top: -45px;
    padding: 0 16px 20px;
  }

  .hero-headline {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }

  .theme-toggle {
    align-self: flex-end;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .stack-year {
    grid-column: 2;
    padding-top: 0;
  }

  .connect-bento-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .spotlight-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .spotlight-actions .button,
  .spotlight-actions button {
    width: 100%;
    justify-content: center;
  }
}
