/* Font Face Declarations */
@font-face {
  font-family: 'Satoshi-Variable';
  src: url('/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

/* ========================================
   CSS Variables
   ======================================== */
:root {
  /* Colors - Off-white neutral with orange accent */
  --bg: #F2F1EE;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #1a1a1a;
  --border-light: rgba(0, 0, 0, 0.1);
  --accent: #F15B04;
  --accent-hover: #D94E00;
  --white: #FFFFFF;

  /* Typography - ALL Satoshi */
  --font-sans: 'Satoshi-Variable', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;

  /* Layout - Increased for better breathing room */
  --sidebar-width: 300px;
  --content-max-width: 800px;
  --margin-width: 32px;

  /* Spacing - Old school HTML button style */
  --radius: 2px;
}

/* ========================================
   Reset & Base - Matching hrcohen simple approach
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Grid background on html */
html {
  height: 100%;
  background-color: var(--bg);
  background-image: none;
  background-position: 0 var(--grid-offset, 0px);
  background-attachment: scroll;
}

/* Fade overlay for safe area - instant disappear on scroll */
html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 50%, transparent 100%);
  z-index: 9999;
  pointer-events: none;
  opacity: var(--fade-opacity, 1);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  margin: 0;
  line-height: 1.7;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ASCII Background Canvas
   ======================================== */
.ascii-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}


/* ========================================
   Layout
   ======================================== */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding: 0;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
}

/* No sidebar layout - centered content */
.layout.no-sidebar {
  justify-content: center;
  padding: 60px 40px;
}

.layout.no-sidebar .main-content {
  margin-left: 0;
  max-width: 800px;
  width: 100%;
  padding: 0;
}

/* ========================================
   Left Margin Dots
   ======================================== */
.margin-dots {
  display: none;
}

.margin-dots::before {
  content: '';
  width: 3px;
  height: 100%;
  background-image: radial-gradient(circle, var(--text) 1.5px, transparent 1.5px);
  background-size: 3px 20px;
  background-position: center 0;
  opacity: 0.2;
}

/* ========================================
   Left Sidebar
   ======================================== */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  position: fixed;
  top: 80px;
  left: calc((100vw - 1400px) / 2 - 60px);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

/* Profile */
.profile {
  margin-bottom: 32px;
}

.avatar {
  width: 100px;
  height: 100px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-placeholder {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.2;
}

.profile-name {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.profile-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.profile-bio {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.02);
}

.social-icon:hover {
  color: var(--accent);
  background: rgba(241, 91, 4, 0.08);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

/* Page Navigation - File Tree Style */
.page-nav {
  flex: 1;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.nav-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-arrow {
  font-size: 10px;
  color: var(--text-secondary);
}

.nav-list {
  list-style: none;
}

/* Main nav items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1.4;
}

.nav-item:hover {
  color: var(--text);
}

.nav-item.active {
  color: var(--text);
  font-weight: 600;
}

/* Circle indicators */
.nav-dot {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active .nav-dot {
  background-color: currentColor;
}

/* Sub-navigation items with tree lines */
.nav-item.sub {
  padding-left: 22px;
  font-size: 14px;
  font-style: italic;
  position: relative;
}

.nav-item.sub .nav-dot {
  display: none;
}

.nav-item.sub::before {
  content: '└';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-style: normal;
  font-size: 11px;
}

/* Scroll Progress */
.scroll-progress {
  margin-top: auto;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-block;
  align-self: flex-start;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.sidebar-footer p {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   Main Content Area
   ======================================== */
.main-content {
  flex: 1;
  margin-left: calc(var(--sidebar-width) + 48px);
  padding: 80px 0;
  background: transparent;
}

.main-content::-webkit-scrollbar {
  width: 6px;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
  background-color: var(--border-light);
  border-radius: 3px;
}

.content-wrapper {
  max-width: 100%;
}

/* ========================================
   Section Headers
   ======================================== */
section {
  margin-bottom: 96px;
}

section:first-of-type {
  margin-top: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.section-icon {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-num,
.section-badge {
  display: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

p {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 18px;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

/* ========================================
   Dividers (Removed - Using Section Headers Instead)
   ======================================== */

/* ========================================
   Thread-Based Layout (Projects & Skills)
   ======================================== */
.thread-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: 22px;
  margin-top: 12px;
  position: relative;
}

/* No container connector needed - first item's line connects to badge */
.thread-container::before {
  display: none;
}

.thread-item {
  position: relative;
  padding: 12px 0 12px 20px;
}

/* Vertical line connecting items (except last) */
.thread-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -1px; /* Extend 1px past to ensure connection */
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Horizontal branch for each item */
.thread-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 28px; /* Vertically centered with badge (12px padding + ~16px half badge height) */
  width: 20px; /* Connect to bordered title box */
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Last item - vertical line only to branch point */
.thread-item:last-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 29px; /* Match branch position (28px) + 1px for clean join */
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}


/* Hide the separate thread-line element */
.thread-line {
  display: none;
}

.thread-content {
  position: relative;
}

/* Thread header - subtle badge style with blur bg */
.thread-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thread-header:hover,
.thread-item:hover .thread-header {
  background: rgba(241, 91, 4, 0.05);
  border-color: rgba(241, 91, 4, 0.25);
  box-shadow: 0 0 6px rgba(241, 91, 4, 0.08), 0 0 12px rgba(241, 91, 4, 0.04);
}

.thread-header:hover .thread-title,
.thread-item:hover .thread-header .thread-title {
  color: rgba(241, 91, 4, 0.8);
  text-shadow: 0 0 4px rgba(241, 91, 4, 0.15), 0 0 8px rgba(241, 91, 4, 0.08);
}

/* Connector from header down to thread-body trunk - balanced with horizontal branch */
.thread-header::after {
  content: '';
  position: absolute;
  left: 19px; /* Align with thread-body margin-left (20px) - 1px */
  bottom: -11px; /* Extend past margin-bottom: 10px + 1px */
  width: 1px;
  height: 11px;
  background: rgba(0, 0, 0, 0.08);
}

.thread-type {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0;
  opacity: 0.7;
}

.thread-type::after {
  content: '│';
  margin-left: 8px;
  opacity: 0.3;
}

.thread-header:not(:has(.thread-title)) .thread-type::after {
  display: none;
}

.thread-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 450;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtitle styled like expandable items */
.thread-subtitle {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.75;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  transition: all 0.3s ease;
}

.thread-subtitle:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(241, 91, 4, 0.4), 0 0 16px rgba(241, 91, 4, 0.2);
  text-decoration-style: solid;
}

/* Reduce gap after subtitle */
.thread-block:has(.thread-subtitle) {
  margin-bottom: -4px;
}

/* Metrics badges - styled like thread-tags */
.thread-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.metric-badge {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-badge:hover {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.04);
}


/* Thread body with nested content */
.thread-body {
  position: relative;
  margin-left: 20px; /* Align trunk with header connector */
  padding-left: 24px; /* Space between vertical line and content */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Vertical line removed from body - now on individual children for proper termination */
.thread-body::before {
  display: none;
}

/* Content block with subtle connector */
.thread-block {
  position: relative;
}

/* Horizontal branch - leaves small gap before content */
.thread-block::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 12px; /* Center with first line of text */
  width: 20px; /* Leave 4px gap before content */
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* Vertical line - extends past when not last child (bridge 8px gap + 2px overlap) */
.thread-block:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -24px;
  top: 0;
  bottom: -10px;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* Vertical line - terminates at branch when last child */
.thread-block:last-child::after {
  content: '';
  position: absolute;
  left: -24px;
  top: 0;
  height: 13px; /* Match branch position (12px) + 1px */
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.thread-description {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Thread media (image/video) */
.thread-media-block {
  margin: 4px 0;
}

.thread-image,
.thread-video {
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0.95;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thread-image:hover,
.thread-video:hover {
  opacity: 1;
}

.thread-media-block {
  position: relative;
  width: 100%;
}

/* Slideshow - modern Ken Burns style with smooth crossfade */
.thread-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(1);
  filter: blur(0px);
  animation: slideshow-modern 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: opacity, transform, filter;
}

.thread-slideshow:first-child {
  position: relative;
}

.thread-slideshow:nth-child(1) {
  animation-delay: 0s;
  transform-origin: center center;
}

.thread-slideshow:nth-child(2) {
  animation-delay: 4s;
  transform-origin: center center;
}

.thread-slideshow:nth-child(3) {
  animation-delay: 8s;
  transform-origin: center center;
}

@keyframes slideshow-modern {
  0% {
    opacity: 0;
    transform: scale(1.02);
    filter: blur(4px);
  }
  5% {
    opacity: 1;
    transform: scale(1.02);
    filter: blur(0px);
  }
  28% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
  33.33% {
    opacity: 0;
    transform: scale(0.98);
    filter: blur(2px);
  }
  91.67% {
    opacity: 0;
    transform: scale(1.02);
    filter: blur(4px);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
    filter: blur(4px);
  }
}

.thread-slideshow-image {
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Thread tags with connectors */
.thread-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}

/* Horizontal branch - leaves small gap before tags */
.thread-tags::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 11px; /* Center with tag height */
  width: 20px; /* Leave 4px gap before content */
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* Vertical line - extends past when not last child */
.thread-tags:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -24px;
  top: 0;
  bottom: -10px; /* Bridge to next element */
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* Vertical line - terminates at branch when last child */
.thread-tags:last-child::after {
  content: '';
  position: absolute;
  left: -24px;
  top: 0;
  height: 12px; /* Match branch position (11px) + 1px */
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.thread-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thread-tag:hover {
  border-color: rgba(0, 0, 0, 0.25);
  color: var(--text-secondary);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.06), 0 0 12px rgba(0, 0, 0, 0.03);
}

/* Thread link with connector */
.thread-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin-top: 8px;
  cursor: default;
  align-self: flex-start; /* Prevent stretching in flex container */
}

/* Horizontal branch - leaves small gap before badge */
.thread-link::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 14px; /* Center with link text */
  width: 12px; /* Leave 4px gap before badge */
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* Vertical line - thread-link is always last, so terminate at branch */
.thread-link::after {
  content: '';
  position: absolute;
  left: -16px;
  top: 0;
  height: 15px; /* Match branch position (14px) + 1px */
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* Hover removed from thread-link */

.thread-link:hover {
  background: rgba(241, 91, 4, 0.08);
  border-color: rgba(241, 91, 4, 0.3);
  color: rgba(241, 91, 4, 0.85);
  box-shadow: 0 0 8px rgba(241, 91, 4, 0.15), 0 0 16px rgba(241, 91, 4, 0.08);
  text-shadow: 0 0 6px rgba(241, 91, 4, 0.25), 0 0 12px rgba(241, 91, 4, 0.12);
}

.thread-link svg {
  display: none;
}

/* Thread link wrapper - line enters from top, button below (like experience-view-all) */
.thread-link-wrapper {
  position: relative;
  padding-top: 8px;
  padding-left: 0;
}

/* Vertical line - from tree trunk down to button top */
.thread-link-wrapper::before {
  content: '';
  position: absolute;
  left: -24px;
  top: -2px; /* Overlap with line from above */
  height: 10px;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* No second connector needed */
.thread-link-wrapper::after {
  display: none;
}

.thread-link-wrapper .thread-link {
  margin-top: 0;
  margin-left: -38px; /* Center button under the vertical line */
}

.thread-link-wrapper .thread-link::before,
.thread-link-wrapper .thread-link::after {
  display: none;
}

/* ========================================
   Legacy Project Cards (keeping for reference)
   ======================================== */
.project-card {
  padding: 32px 0;
  background: rgba(247, 246, 243, 0.40);
  border-bottom: 1px solid var(--border-light);
}

.project-card:first-of-type {
  padding-top: 0;
}

.project-card:last-of-type {
  border-bottom: none;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.project-title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 16px;
}

.project-description {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.project-link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========================================
   Experience Items - Collapsible Style
   ======================================== */

/* Hero Header - Name as root, Title as subtitle, threaded links */
.hero-header {
  position: relative;
  margin-top: 240px;
  margin-bottom: 64px;
}

.hero-name {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 8px 0;
}

.hero-tree {
  position: relative;
  margin-left: 22px;
  margin-top: 8px;
}

.hero-item {
  position: relative;
  padding: 6px 0 6px 20px;
}

/* Vertical line connecting hero items (except last) */
.hero-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -1px;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Horizontal branch line for hero items */
.hero-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px; /* Leave 4px gap before content */
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateY(-50%) translateZ(0);
}

/* Last item only shows the branch down to its level */
.hero-item:last-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 50%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: -0.01em;
}

.hero-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tree Section - No divider line */
.tree-section {
  margin-bottom: 64px;
}

#contact {
  margin-bottom: 240px;
}

.tree-section .section-header {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Section Badge Header */
.section-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
}

/* Section Badge - border with blur bg */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  position: relative;
}

.section-badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-badge:hover,
.tree-section:hover .section-badge {
  background: rgba(241, 91, 4, 0.05);
  border-color: rgba(241, 91, 4, 0.25);
  box-shadow: 0 0 6px rgba(241, 91, 4, 0.08), 0 0 12px rgba(241, 91, 4, 0.04);
}

.section-badge:hover .section-badge-text,
.tree-section:hover .section-badge .section-badge-text {
  color: rgba(241, 91, 4, 0.8);
  border-left-color: rgba(241, 91, 4, 0.25);
  text-shadow: 0 0 4px rgba(241, 91, 4, 0.15), 0 0 8px rgba(241, 91, 4, 0.08);
}

.section-badge:hover .section-badge-icon,
.tree-section:hover .section-badge .section-badge-icon {
  color: rgba(241, 91, 4, 0.85);
  opacity: 1;
}

.section-badge::after {
  content: '';
  position: absolute;
  left: 21px; /* Account for 1px border - aligns with container margin-left: 22px */
  bottom: -12px;
  width: 1px;
  height: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.section-badge-icon {
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-badge-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
  padding-left: 8px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Title badge row */
/* Social/link badges - minimal pill style */
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-badges,
.hero-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-email-btn,
.hero-book-btn {
  padding: 12px 20px;
  font-size: 15px;
}

.hero-email-btn svg,
.hero-book-btn svg {
  width: 18px;
  height: 18px;
}

.social-badge.hero-email-btn {
  background: rgba(241, 91, 4, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.social-badge.hero-email-btn svg {
  stroke: var(--accent);
  opacity: 1;
}

.social-badge.hero-email-btn:hover {
  background: rgba(241, 91, 4, 0.18);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 6px rgba(241, 91, 4, 0.08), 0 0 12px rgba(241, 91, 4, 0.04);
}

.social-badge.hero-email-btn:hover svg {
  stroke: var(--accent);
}

.social-badge.hero-book-btn {
  border-color: rgba(241, 91, 4, 0.6);
  color: var(--accent);
}

.social-badge.hero-book-btn svg {
  opacity: 1;
}

.social-badge.hero-book-btn:hover {
  background: rgba(241, 91, 4, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 6px rgba(241, 91, 4, 0.08), 0 0 12px rgba(241, 91, 4, 0.04);
}

.social-badge.hero-book-btn:hover svg {
  stroke: var(--accent);
  opacity: 1;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-badge:hover {
  background: rgba(241, 91, 4, 0.06);
  border-color: var(--accent);
  color: var(--accent);
}

.social-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.social-badge:hover svg {
  opacity: 1;
}


/* Expand/Collapse All Button */
.expand-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-all-btn:hover {
  color: var(--accent);
  background: rgba(241, 91, 4, 0.05);
}

.expand-all-btn .chevron-icon {
  transition: transform 0.3s ease;
}

.expand-all-btn.expanded .chevron-icon {
  transform: rotate(90deg);
}

/* Experience Tree Container */
.experience-tree {
  position: relative;
  margin-top: 12px;
  margin-left: 22px;
  padding-top: 0;
}

/* No container connector needed - first item's line connects to badge */
.experience-tree::before {
  display: none;
}

/* Additional (non-featured) experience items - hidden by default */
.additional-experience {
  display: none;
}

/* Revealing animation for additional experiences */
.experience-item.revealing {
  display: block;
}

/* Last revealed item needs extending line to connect to View All button */
.experience-item.revealing:last-child::before {
  bottom: -1px;
  height: auto;
}

/* Experience View All button - line enters from top, button below */
.experience-view-all {
  position: relative;
  padding-top: 12px;
  padding-left: 0;
}

/* Vertical line - from tree trunk down to button top */
.experience-view-all::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 12px;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

/* Short connector from trunk to button */
.experience-view-all::after {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 1px;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
}

.experience-view-all .thread-link {
  margin-top: 0;
  margin-left: -14px; /* Center button under the vertical line */
  cursor: pointer;
}

/* Remove redundant pseudo-elements from thread-link inside experience-view-all */
.experience-view-all .thread-link::before,
.experience-view-all .thread-link::after {
  display: none;
}

.experience-view-all .thread-link:hover {
  background: rgba(241, 91, 4, 0.08);
  border-color: rgba(241, 91, 4, 0.3);
  color: rgba(241, 91, 4, 0.85);
  box-shadow: 0 0 8px rgba(241, 91, 4, 0.15), 0 0 16px rgba(241, 91, 4, 0.08);
  text-shadow: 0 0 6px rgba(241, 91, 4, 0.25), 0 0 12px rgba(241, 91, 4, 0.12);
}

/* Experience Item */
.experience-item {
  position: relative;
  padding: 12px 0 12px 20px;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-item:hover {
  background: transparent;
}

.experience-item.expanded {
  padding-bottom: 16px;
}

/* Vertical line connecting experience items (except last) */
.experience-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -1px; /* Extend 1px past to ensure connection */
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Horizontal branch line for experience items */
.experience-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 22px; /* Center with first line (12px padding + ~10px half line height) */
  width: 20px; /* Connect to content edge */
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Last item only shows the branch down to its level */
.experience-item:last-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 23px; /* Match branch position (22px) + 1px for clean join */
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Mobile header (hidden on desktop) */
.exp-mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.exp-year-mobile {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Desktop header */
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-header:hover {
  opacity: 0.8;
}

/* Tree branch characters hidden - using CSS lines now */
.tree-branch {
  display: none;
}

.exp-title-group {
  flex: 1;
}

.exp-role {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 450;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}

/* Animated dotted underline that expands from left */
.exp-role::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  border-bottom: 1px dotted var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.experience-item:hover .exp-role::after {
  transform: scaleX(1);
}

.exp-company {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  line-height: 1.4;
}

.experience-item:hover .exp-company {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(241, 91, 4, 0.4), 0 0 16px rgba(241, 91, 4, 0.2);
}

.exp-year-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.exp-year {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Chevron icon */
.exp-chevron {
  opacity: 0.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.experience-item:hover .exp-chevron {
  opacity: 1;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(241, 91, 4, 0.6)) drop-shadow(0 0 16px rgba(241, 91, 4, 0.4));
}

.experience-item.expanded .exp-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

/* Achievements section */
.exp-achievements {
  overflow: visible;
  position: relative;
  margin-left: 0;
}

.experience-item.expanded .exp-achievements {
  opacity: 1;
}

.achievements-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 16px; /* Match thread-body alignment */
  position: relative;
  padding-left: 16px;
}

/* Vertical line removed from list - now on individual items for proper termination */
.achievements-list::before {
  display: none;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  padding-left: 4px;
  border-radius: 2px;
  transition: background-color 0.3s ease, max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  position: relative;
}

.achievement-item.typing {
  max-height: 200px;
  padding: 6px 12px 6px 6px;
  margin-bottom: 2px;
  opacity: 1;
  overflow: visible;
}

/* Horizontal branch line for achievements */
.achievement-item::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 12px; /* Align with text baseline */
  width: 12px;
  height: 1px;
  background: var(--text-muted);
  opacity: 0;
  transition: opacity 0.1s ease;
  will-change: opacity;
  backface-visibility: hidden;
}

.achievement-item.typing::before {
  opacity: 0.2;
}

/* Vertical line connecting achievement items (except last) */
.achievement-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -16px;
  top: 0;
  bottom: -1px; /* Extend 1px past to ensure connection */
  width: 1px;
  background: var(--text-muted);
  opacity: 0;
  transition: opacity 0.1s ease;
  will-change: opacity;
  backface-visibility: hidden;
}

.achievement-item.typing:not(:last-child)::after {
  opacity: 0.2;
}

/* Last achievement item - vertical line only to branch point */
.achievement-item:last-child::after {
  content: '';
  position: absolute;
  left: -16px;
  top: 0;
  height: 13px; /* Match branch position (12px) + 1px for clean join */
  width: 1px;
  background: var(--text-muted);
  opacity: 0;
  transition: opacity 0.1s ease;
  will-change: opacity;
  backface-visibility: hidden;
}

.achievement-item.typing:last-child::after {
  opacity: 0.2;
}

.achievement-item:hover {
  background: rgba(0, 0, 0, 0.02);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.04), 0 0 12px rgba(0, 0, 0, 0.02);
}

/* Achievement branch characters hidden - using CSS lines */
.achievement-branch {
  display: none;
}

.achievement-item span:not(.achievement-branch) {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  transition: color 0.3s ease;
}

.achievement-item:hover span:not(.achievement-branch) {
  color: var(--text);
}

/* ========================================
   Skills Section
   ======================================== */
.skills-group {
  margin-bottom: 40px;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-badge {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.45);
}

/* ========================================
   About Section - Thread Based
   ======================================== */
/* Thread inline content styles */
.about-thread {
  margin-left: 22px;
  margin-top: 12px;
  position: relative;
}

/* No container connector needed - first item's line connects to badge */
.about-thread::before {
  display: none;
}

.about-thread-item {
  position: relative;
  padding: 8px 0 8px 20px;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.about-thread-item:hover {
  background: transparent;
}

/* Vertical line connecting items (except last) */
.about-thread-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -1px; /* Extend 1px past to ensure connection */
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Horizontal branch for each item - align with first line of text */
.about-thread-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 22px; /* Align with first line center (8px padding + ~14px half line-height) */
  width: 16px; /* Leave 4px gap before content */
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Last item - vertical line only to branch point */
.about-thread-item:last-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 23px; /* Match branch position + 1px for clean join */
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Keep original styling in thread, just reset margins */
.about-thread .impact-statement {
  margin: 0;
}

.about-thread .intro-text {
  margin: 0;
}

.about-thread .intro-text p {
  margin: 0;
}

/* Contact content styling */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-intro {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: opacity 0.15s ease;
}

.contact-email:hover {
  opacity: 0.8;
}

.contact-tree {
  position: relative;
  margin-top: 12px;
  margin-left: 22px;
}

.contact-item {
  position: relative;
  padding: 8px 0 8px 20px;
}

/* Vertical line connecting contact items (except last) */
.contact-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -1px;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Horizontal branch line for contact items */
.contact-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 22px; /* Center with first line (8px padding + ~14px half line height) */
  width: 16px; /* Leave 4px gap before content */
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Last item only shows the branch down to its level */
.contact-item:last-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 23px; /* Match branch position + 1px for clean join */
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.contact-intro {
  font-size: 17px;
  color: var(--text);
  margin: 0;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-email-btn,
.contact-book-btn {
  padding: 12px 20px;
  font-size: 15px;
}

.contact-email-btn svg,
.contact-book-btn svg {
  width: 18px;
  height: 18px;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-social-link:hover {
  background: rgba(241, 91, 4, 0.06);
  border-color: var(--accent);
  color: var(--accent);
}

.contact-social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.contact-social-link:hover svg {
  opacity: 1;
}


.contact-email-btn {
  background: rgba(241, 91, 4, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.contact-email-btn svg {
  opacity: 1;
  stroke: var(--accent);
}

.contact-email-btn:hover {
  background: rgba(241, 91, 4, 0.18);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 6px rgba(241, 91, 4, 0.08), 0 0 12px rgba(241, 91, 4, 0.04);
}

.contact-book-btn {
  border-color: rgba(241, 91, 4, 0.6);
  color: var(--accent);
}

.contact-book-btn svg {
  opacity: 1;
}

.contact-book-btn:hover {
  background: rgba(241, 91, 4, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 6px rgba(241, 91, 4, 0.08), 0 0 12px rgba(241, 91, 4, 0.04);
}

.contact-book-btn:hover svg {
  stroke: var(--accent);
}

.contact-email:hover {
  color: var(--text);
}

/* ========================================
   About Section - Impact Statement & Expandable Inline
   ======================================== */
.impact-statement {
  margin-bottom: 56px;
}

.impact-statement p {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.intro-text {
  margin-top: 0;
}

.intro-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 28px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-text a,
.thread-description a {
  text-decoration-color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-text a:hover,
.thread-description a:hover {
  text-decoration-color: var(--accent);
}

/* Expandable Inline Elements */
.expandable {
  color: var(--accent);
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.3s ease;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  position: relative;
}

.expandable:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(241, 91, 4, 0.4), 0 0 16px rgba(241, 91, 4, 0.2);
  text-decoration-style: solid;
}

.expandable.active {
  opacity: 1;
}

.expanded-content {
  color: var(--text-secondary);
  font-size: 15px;
  font-style: italic;
}

.expanded-link {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.expanded-link:hover {
  opacity: 1;
}

.expanded-link svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-block {
  padding: 48px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-align: center;
  max-width: 520px;
}

.contact-block h3 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.contact-block p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.contact-email:hover {
  color: var(--text);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .layout.no-sidebar {
    padding: 40px 32px;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .layout.no-sidebar {
    padding: 32px 16px;
  }

  /* Hero spacing - enough to clear iOS safe area */
  .hero-header {
    margin-top: 120px;
    margin-bottom: 48px;
  }

  .hero-name {
    font-size: 28px;
  }

  .hero-title {
    font-size: 15px;
    margin-bottom: 16px;
  }

  /* Hero tree - tighter spacing */
  .hero-tree {
    margin-left: 0;
  }

  .hero-item {
    padding: 5px 0 5px 12px;
  }

  .hero-item::after {
    width: 8px;
  }

  .hero-links {
    gap: 6px;
  }

  .social-badge,
  .contact-social-link {
    padding: 5px 10px;
    font-size: 12px;
  }

  .social-badge svg,
  .contact-social-link svg {
    width: 12px;
    height: 12px;
  }

  .impact-statement p {
    font-size: 24px;
    line-height: 1.4;
  }

  .intro-text p {
    font-size: 16px;
  }

  .expanded-content {
    font-size: 14px;
  }

  /* Section headers on mobile */
  .section-header {
    margin-bottom: 32px;
    padding-bottom: 12px;
  }

  .section-title {
    font-size: 24px;
  }

  /* Sections on mobile */
  section {
    margin-bottom: 64px;
  }

  /* Section spacing - tighter */
  .tree-section {
    margin-bottom: 48px;
  }

  .impact-statement {
    margin-bottom: 32px;
  }

  .impact-statement p {
    font-size: 19px;
    line-height: 1.5;
  }

  .intro-text p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  /* Thread container - tighter horizontal spacing */
  .thread-container {
    margin-left: 0;
    margin-top: 8px;
  }

  .thread-item {
    padding: 10px 0 10px 12px;
  }

  .thread-item::after {
    width: 7px;
  }

  /* First thread item - extend line up to connect with section badge */
  .thread-item:first-child::before {
    top: -2px;
  }

  /* Thread body - tighter spacing */
  .thread-body {
    margin-left: 8px;
    padding-left: 12px;
    gap: 6px;
  }

  .thread-block::before {
    left: -12px;
    width: 8px;
  }

  .thread-block:not(:last-child)::after,
  .thread-block:last-child::after {
    left: -12px;
  }

  .thread-block:first-child::after {
    top: -3px;
  }

  /* Thread tags - tighter spacing */
  .thread-tags::before {
    left: -12px;
    width: 8px;
  }

  .thread-tags:not(:last-child)::after,
  .thread-tags:last-child::after {
    left: -12px;
  }

  /* Thread link - tighter spacing */
  .thread-link-wrapper::before {
    left: -12px;
  }

  .thread-link-wrapper .thread-link {
    margin-left: -20px;
  }

  /* About thread - tighter spacing */
  .about-thread {
    margin-left: 0;
  }

  .about-thread-item {
    padding: 8px 0 8px 12px;
  }

  .about-thread-item::after {
    width: 8px;
  }

  .about-thread-item:first-child::before {
    top: -2px;
  }

  /* Experience tree - tighter spacing */
  .experience-tree {
    margin-left: 0;
  }

  .experience-item {
    padding: 12px 0 12px 12px;
  }

  .experience-item::after {
    width: 8px;
  }

  .experience-item:first-child::before {
    top: -2px;
  }

  /* Contact tree - tighter spacing */
  .contact-tree {
    margin-left: 0;
  }

  .contact-item {
    padding: 8px 0 8px 12px;
  }

  .contact-item::after {
    width: 8px;
  }

  .contact-item:first-child::before {
    top: -2px;
  }

  /* Section badge - halfway between page edge and thread line */
  .section-badge {
    margin-left: -8px;
  }

  .section-badge::after {
    left: 7px;
    bottom: -10px;
    height: 10px;
  }

  /* Thread header - align connector with thread-body trunk */
  .thread-header {
    margin-left: -4px;
  }

  .thread-header::after {
    left: 11px; /* 7px + 4px to compensate for header shift */
    bottom: -11px;
    height: 11px;
  }

  /* Achievements list - tighter spacing */
  .achievements-list {
    margin-left: 8px;
    padding-left: 12px;
  }

  .achievement-item::before {
    left: -12px;
    width: 8px;
  }

  .achievement-item:not(:last-child)::after,
  .achievement-item:last-child::after {
    left: -12px;
  }

  /* Services section - mobile adjustments */
  #services .thread-item:first-child .thread-nested {
    margin-bottom: 1rem;
  }

  /* Nested thread items (Services) - tighter spacing */
  .thread-nested {
    margin-left: 0;
    padding-left: 12px;
  }

  .thread-item.nested::before,
  .thread-item.nested:last-child::before {
    left: -12px;
  }

  .thread-item.nested::after {
    left: -12px;
    width: 8px;
  }

  /* Experience view all button */
  .experience-view-all .thread-link {
    margin-left: -6px;
  }

  /* Experience Section - Mobile */
  .exp-mobile-header {
    display: flex;
  }

  .exp-year-group {
    display: none;
  }

  .exp-header {
    flex-direction: column;
    gap: 8px;
  }

  .exp-role {
    font-size: 17px;
  }

  .exp-company {
    font-size: 15px;
  }

  .achievement-item span:not(.achievement-branch) {
    font-size: 14px;
  }

  /* Contact section - reduced from 240px */
  #contact {
    margin-bottom: 120px;
  }

  /* Project cards on mobile */
  .project-card {
    padding: 24px 0;
  }

  /* ========================================
     Mobile: Touch-hover system (mirrors desktop hover)
     ======================================== */

  /* Thread header - touch hover effect */
  .thread-header.touch-hover,
  .thread-item.touch-hover .thread-header {
    background: rgba(241, 91, 4, 0.05);
    border-color: rgba(241, 91, 4, 0.25);
    box-shadow: 0 0 6px rgba(241, 91, 4, 0.08), 0 0 12px rgba(241, 91, 4, 0.04);
  }

  .thread-header.touch-hover .thread-title,
  .thread-item.touch-hover .thread-header .thread-title {
    color: rgba(241, 91, 4, 0.8);
    text-shadow: 0 0 4px rgba(241, 91, 4, 0.15), 0 0 8px rgba(241, 91, 4, 0.08);
  }

  /* Section badge - touch hover effect */
  .section-badge.touch-hover,
  .tree-section.touch-hover .section-badge {
    background: rgba(241, 91, 4, 0.05);
    border-color: rgba(241, 91, 4, 0.25);
    box-shadow: 0 0 6px rgba(241, 91, 4, 0.08), 0 0 12px rgba(241, 91, 4, 0.04);
  }

  .section-badge.touch-hover .section-badge-text,
  .tree-section.touch-hover .section-badge .section-badge-text {
    color: rgba(241, 91, 4, 0.8);
    text-shadow: 0 0 4px rgba(241, 91, 4, 0.15), 0 0 8px rgba(241, 91, 4, 0.08);
  }

  .section-badge.touch-hover .section-badge-icon,
  .tree-section.touch-hover .section-badge .section-badge-icon {
    color: rgba(241, 91, 4, 0.85);
    opacity: 1;
  }

  /* Experience item - touch hover effect */
  .experience-item.touch-hover .exp-company {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(241, 91, 4, 0.4), 0 0 16px rgba(241, 91, 4, 0.2);
  }

  .experience-item.touch-hover .exp-chevron {
    opacity: 1;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(241, 91, 4, 0.6)) drop-shadow(0 0 16px rgba(241, 91, 4, 0.4));
  }

  /* Social badges - touch hover effect */
  .social-badge.touch-hover,
  .contact-social-link.touch-hover {
    background: rgba(241, 91, 4, 0.06);
    border-color: var(--accent);
    color: var(--accent);
  }

  .social-badge.touch-hover svg,
  .contact-social-link.touch-hover svg {
    opacity: 1;
  }

  /* Thread link - touch hover effect */
  .thread-link.touch-hover {
    background: rgba(241, 91, 4, 0.08);
    border-color: rgba(241, 91, 4, 0.3);
    color: rgba(241, 91, 4, 0.85);
    box-shadow: 0 0 8px rgba(241, 91, 4, 0.15), 0 0 16px rgba(241, 91, 4, 0.08);
    text-shadow: 0 0 6px rgba(241, 91, 4, 0.25), 0 0 12px rgba(241, 91, 4, 0.12);
  }

  /* Expandable text - touch hover effect */
  .expandable.touch-hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(241, 91, 4, 0.4), 0 0 16px rgba(241, 91, 4, 0.2);
    text-decoration-style: solid;
  }

  /* Thread tags - touch hover effect */
  .thread-tag.touch-hover {
    border-color: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.06), 0 0 12px rgba(0, 0, 0, 0.03);
  }

  /* About thread item - touch hover effect */
  .about-thread-item.touch-hover {
    background: rgba(241, 91, 4, 0.02);
  }

  /* Contact item - touch hover effect */
  .contact-item.touch-hover {
    background: rgba(241, 91, 4, 0.02);
  }
}

/* ========================================
   Services Section - Minimal Styles
   ======================================== */


/* Remove all hover effects from Services section */
#services .thread-item {
  cursor: default;
}

#services .thread-header {
  cursor: default;
}

#services .thread-tag {
  cursor: default;
}

#services .services-intro-item {
  cursor: default;
}

#services .services-intro-item:hover {
  background: transparent;
}

#services .experience-item:hover {
  background: transparent;
}

#services .impact-statement {
  margin-bottom: -4px;
  font-weight: 500;
  margin-left: 8px;
}

@media (max-width: 768px) {
  #services .impact-statement {
    margin-left: 0;
  }
}

#services .thread-item:first-child {
  padding-top: 6px;
  padding-bottom: 4px;
}

#services .thread-item:first-child::after {
  top: 18px; /* Center with impact statement text */
}

#services .thread-nested {
  margin-top: 4px;
}

#services .thread-title {
  font-size: 15px;
  font-weight: 450;
}

#services .services-outro {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

/* Nested thread items */
.thread-nested {
  margin: 8px 0 0 16px;
  padding-left: 16px;
  position: relative;
}

.thread-item.nested {
  position: relative;
  padding: 6px 12px 6px 6px;
}

/* Vertical line connecting nested items */
.thread-item.nested:not(:last-child)::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 0;
  bottom: -1px;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

/* Horizontal branch for nested items */
.thread-item.nested::after {
  content: '';
  position: absolute;
  left: -16px;
  top: 18px;
  width: 12px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

/* Last nested item - vertical line only to branch point */
.thread-item.nested:last-child::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 0;
  height: 19px;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.thread-item.nested .thread-description {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

