
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {

  --bg-primary: #0A0A0C;        
  --bg-secondary: #111115;     
  --bg-card: #15151A;            
  --bg-card-hover: #1A1A22;      
  --text-primary: #F4F4F6;        
  --text-secondary: #8E8E9F;    
  --highlight: #3A70FF;          
  --highlight-soft: #608CFF;
  --border-color: #1F1F27;      
  --shadow-color: transparent;   
  --sidebar-bg: #0A0A0C;
  --sidebar-width: 264px;


  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a { color: inherit; }

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--highlight);
  width: 0%;
  z-index: 1200;
  transition: width 0.1s;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.8rem;
  z-index: 1000;
  transition: transform 0.35s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-orbit {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.brand-planet {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--highlight);
}

.brand-ring, .brand-dot {
  display: none; 
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.sidebar-nav {
  margin-top: 4rem;
  flex: 1;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.sidebar-nav a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--text-secondary);
  opacity: 0.3;
  flex-shrink: 0;
  transition: all 0.2s;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.sidebar-nav a.active {
  color: var(--highlight);
  background: transparent;
  font-weight: 600;
}

.sidebar-nav a.active::before {
  background: var(--highlight);
  opacity: 1;
  transform: scale(1.5);
}

.sidebar-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.sidebar-quote {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1300;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--sidebar-bg);
  border: 1px solid var(--border-color);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.25s;
}

.sidebar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.active span:nth-child(2) { opacity: 0; }
.sidebar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-scrim.visible {
  opacity: 1;
  pointer-events: auto;
}


.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.page-section {
  padding: 6rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-section:nth-child(even) {
  background: var(--bg-secondary);
}

.container {
  max-width: 840px;
  margin: 0 auto;
  width: 100%;
}


.section-divider {
  width: 40px;
  height: 1px;
  margin-bottom: 2rem;
  background: var(--highlight);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0.8rem 0 2.5rem;
  max-width: 600px;
}


.hero {
  text-align: left;
  background: transparent; /* Removed generic radial mesh blur gradients */
  position: relative;
  min-height: 100vh;
}

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

.hero .kicker {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.hero .subtitle {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero .bio {
  background: transparent;
  padding: 1.5rem 0;
  border-radius: 0;
  border-left: none;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: 2rem;
}

.hero .bio p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.hero .cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}


.thought-card, .cred-card, .project-card, .quote-card {
  background: transparent;
  padding: 1.8rem 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.2s;
  margin-bottom: 0;
  box-shadow: none;
}

.thought-card:hover, .cred-card:hover, .project-card:hover, .quote-card:hover {
  transform: none;
  background: transparent;
  border-bottom-color: var(--text-primary);
  box-shadow: none;
}

.thought-card h3, .cred-card-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.project-card:hover .cred-card-title,
.thought-card:hover h3 {
  color: var(--highlight);
}

.thought-card p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.75;
}

.thought-card .card-quote {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-left: 2px solid var(--highlight);
  margin: 1rem 0;
  background: var(--bg-secondary);
  border-radius: 2px;
}

.attribution {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  opacity: 0.6;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--highlight);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
  box-shadow: none;
}

.btn:hover {
  transform: none;
  background: var(--highlight-soft);
  box-shadow: none;
}

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* --- Quote Teaser --- */
.quote-teaser {
  text-align: left;
  padding: 2.5rem 0;
  background: transparent;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.quote-teaser p:first-child {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
}

.cred-block {
  margin-bottom: 3.5rem;
}

.cred-block:last-child { margin-bottom: 0; }

.cred-block h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.cred-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.cred-card-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  white-space: nowrap;
}

.cred-card-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

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

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: #1F1F27;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.pill.pill-accent {
  border-color: var(--highlight);
  color: var(--text-primary);
}


.projects-grid, .quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem; /* Clean grid separation with white space instead of gray border blocks */
}


.projects-grid .project-card,
.quotes-grid .quote-card {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
}

.quote-card blockquote {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.quote-card .attribution { margin-top: 0; }

.quote-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

footer {
  background: var(--bg-primary);
  padding: 4rem 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-content { max-width: 840px; margin: 0 auto; }

.footer-quote {
  font-family: var(--font-body);
  font-style: normal;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--text-primary); }

.signature {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: 1rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover { 
  background: var(--highlight); 
  border-color: var(--highlight);
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 1px solid var(--highlight);
  outline-offset: 3px;
}


@media (max-width: 980px) {
  .cred-grid,
  .quotes-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .sidebar-scrim { display: block; }
  .main-content { margin-left: 0; }
  .page-section { padding: 5rem 2rem 3.5rem; }

  .hero h1 { font-size: 2.6rem; }
  .hero .subtitle { font-size: 1.1rem; }
  h2 { font-size: 1.8rem; }
  .cred-card-top { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  .page-section { padding: 4rem 1.2rem 3rem; }
  footer { padding: 3rem 1.2rem; }
}
