/* --- Custom Fonts --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}

/* --- Clay Design Tokens --- */
:root {
  --canvas: #fffaf0; /* Warm Cream Canvas */
  --ink: #0a0a0a; /* Dark Navy/Black */
  --body: #3a3a3a; /* Charcoal Body Text */
  --muted: #6a6a6a; /* Muted Gray */
  --accent: #1a3a3a; /* Deep Teal-Green */
  --accent-hover: #e8b94a; /* Ochre Accent on Hover */
  --code-bg: #f5f0e0; /* Cream Card Surface */
  --border: #e5e5e5; /* Subtle Hairline Border */
  --card-bg: #f5f0e0;
  --card-hover-bg: #ebe6d6;
  --max-width: 720px;
  --line-length: 68ch;
  --shadow-color: rgba(10, 10, 10, 0.05);
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

/* --- Base Reset & Setup --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem 1.25rem;
}

/* --- Navigation --- */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.nav-logo a {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}
.nav-logo a:hover {
  color: var(--accent-hover);
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em; /* Plain Black rounded character feel */
}
h1 { font-size: 40px; font-weight: 600; margin-bottom: 1rem; }
h2 { font-size: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-top: 4.5rem; }
h3 { font-size: 18px; margin-top: 2rem; }

p, ul, ol {
  margin-bottom: 1.5rem;
  max-width: var(--line-length);
}
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* --- CSS Micro-Animations --- */
.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- UI / Badge --- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  background-color: var(--code-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 9999px; /* Pill-shaped badges */
  transition: all 0.2s ease;
}
.badge:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

/* --- Lists (Writing, Projects, Experience) --- */
.item-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}
.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  margin-bottom: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.item-row:hover {
  transform: translateY(-4px);
  background-color: var(--card-hover-bg);
  border-color: var(--ink);
  box-shadow: 0 12px 24px var(--shadow-color);
}
.item-row-left {
  flex-grow: 1;
  padding-right: 1.5rem;
}
.item-row-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: inline-block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.item-row-title:hover {
  text-decoration: none;
}
.item-row-desc {
  font-size: 14.5px;
  color: var(--body);
  margin-top: 0.35rem;
}
.item-row-right {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* --- Saturated Project-Specific Card Layouts (Clay Palette) --- */
.project-card {
  display: flex;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--border-radius-xl); /* 24px */
  padding: 2rem 2.25rem;
}
.project-card-content {
  flex: 1;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
}
.project-card-metric {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  border-left: 1px solid rgba(10, 10, 10, 0.1);
  padding-left: 2rem;
  min-width: 130px;
}
.card-teal .project-card-metric {
  border-left-color: rgba(255, 255, 255, 0.15);
}
.card-ochre .project-card-metric,
.card-lavender .project-card-metric,
.card-peach .project-card-metric {
  border-left-color: rgba(10, 10, 10, 0.12);
}
.metric-value {
  font-family: 'Inter', sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}
.metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}


.card-ochre {
  background-color: #e8b94a !important;
  color: #0a0a0a !important;
  border-color: #d1a337 !important;
}
.card-ochre h3, .card-ochre .item-row-title, .card-ochre a {
  color: #0a0a0a !important;
}
.card-ochre .item-row-desc {
  color: #3b2c08 !important;
}
.card-ochre .badge {
  background-color: rgba(10, 10, 10, 0.08) !important;
  color: #0a0a0a !important;
  border-color: rgba(10, 10, 10, 0.15) !important;
}
.card-ochre .badge:hover {
  background-color: #0a0a0a !important;
  color: #e8b94a !important;
  border-color: #0a0a0a !important;
}
.card-ochre:hover {
  border-color: #e8b94a !important;
  box-shadow: 0 12px 28px rgba(232, 185, 74, 0.25) !important;
}

.card-teal {
  background-color: #1a3a3a !important;
  color: #ffffff !important;
  border-color: #122828 !important;
}
.card-teal h3, .card-teal .item-row-title, .card-teal a {
  color: #ffffff !important;
}
.card-teal .item-row-desc {
  color: #a4d4c5 !important;
}
.card-teal .badge {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
.card-teal .badge:hover {
  background-color: #ffffff !important;
  color: #1a3a3a !important;
  border-color: #ffffff !important;
}
.card-teal:hover {
  border-color: #1a3a3a !important;
  box-shadow: 0 12px 28px rgba(26, 58, 58, 0.25) !important;
}

.card-lavender {
  background-color: #b8a4ed !important;
  color: #0a0a0a !important;
  border-color: #a38ee0 !important;
}
.card-lavender h3, .card-lavender .item-row-title, .card-lavender a {
  color: #0a0a0a !important;
}
.card-lavender .item-row-desc {
  color: #3b3061 !important;
}
.card-lavender .badge {
  background-color: rgba(10, 10, 10, 0.08) !important;
  color: #0a0a0a !important;
  border-color: rgba(10, 10, 10, 0.15) !important;
}
.card-lavender .badge:hover {
  background-color: #0a0a0a !important;
  color: #b8a4ed !important;
  border-color: #0a0a0a !important;
}
.card-lavender:hover {
  border-color: #b8a4ed !important;
  box-shadow: 0 12px 28px rgba(184, 164, 237, 0.25) !important;
}

.card-peach {
  background-color: #ffb084 !important;
  color: #0a0a0a !important;
  border-color: #e5996f !important;
}
.card-peach h3, .card-peach .item-row-title, .card-peach a {
  color: #0a0a0a !important;
}
.card-peach .item-row-desc {
  color: #4a2715 !important;
}
.card-peach .badge {
  background-color: rgba(10, 10, 10, 0.08) !important;
  color: #0a0a0a !important;
  border-color: rgba(10, 10, 10, 0.15) !important;
}
.card-peach .badge:hover {
  background-color: #0a0a0a !important;
  color: #ffb084 !important;
  border-color: #0a0a0a !important;
}
.card-peach:hover {
  border-color: #ffb084 !important;
  box-shadow: 0 12px 28px rgba(255, 176, 132, 0.25) !important;
}

/* --- Reels & Bite-Sized AI Theater Showcase (Clay Aesthetic) --- */
.reels-header-section {
  margin-bottom: 2rem;
}
.live-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.reels-theater-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  padding: 1.75rem 2rem 2rem 2rem;
  box-shadow: 0 16px 36px var(--shadow-color);
  margin-bottom: 2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.reels-theater-card:hover {
  border-color: rgba(10, 10, 10, 0.18);
  box-shadow: 0 20px 44px rgba(10, 10, 10, 0.08);
}

.reels-stage-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.25rem;
}

.reel-player-container {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reel-phone-frame {
  width: 240px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background-color: #0a0a0a;
  border: 4px solid #141414;
  box-shadow: 0 16px 36px rgba(10, 10, 10, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.reel-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #000000;
  outline: none;
}

.reel-meta-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 0.5rem 0;
}

.reel-current-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.5rem 0 0.5rem 0;
}

.reel-meta-date {
  font-size: 14px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.reel-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.reel-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.reel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background-color: var(--ink);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1;
}
.reel-btn:hover:not(:disabled) {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}
.reel-btn:disabled {
  cursor: not-allowed;
}

.reel-btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--body);
}
.reel-btn-outline:hover {
  background-color: var(--card-hover-bg);
  border-color: var(--ink);
  color: var(--ink);
}

.badge-accent {
  background-color: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
}

/* --- Episode List & Interactive Cards --- */
.reels-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.reel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.reel-card:hover {
  background-color: var(--card-hover-bg);
  border-color: var(--ink);
  transform: translateX(4px);
  box-shadow: 0 8px 20px var(--shadow-color);
}
.reel-card.active {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(26, 58, 58, 0.22);
  transform: translateX(6px);
}

.reel-card-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.reel-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(10, 10, 10, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.15rem;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ink);
  transition: all 0.2s ease;
}
.reel-card.active .reel-card-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.reel-play-icon {
  margin-left: 2px;
}

.reel-card-body {
  flex: 1;
  min-width: 0;
  padding-right: 1.25rem;
}

.reel-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.reel-card.active .reel-card-meta {
  color: rgba(255, 255, 255, 0.75);
}

.reel-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
}
.reel-card.active .reel-card-title {
  color: #ffffff;
}

.reel-card-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.reel-card-status {
  display: inline-flex;
  align-items: center;
}
.playing-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #22c55e;
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}
.watch-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease;
}
.reel-card:hover .watch-text {
  color: var(--accent-hover);
}

/* --- Blog Post Layout --- */
.post-header {
  margin-bottom: 2.5rem;
}
.post-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 0.5rem;
}
.post-content {
  font-size: 16.5px;
  line-height: 1.65;
}
.post-content p {
  margin-bottom: 1.5rem;
}
.back-link {
  display: inline-block;
  margin-top: 3.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

/* --- Code Block --- */
pre, code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px;
}
p code, li code {
  background-color: var(--code-bg);
  color: var(--ink);
  padding: 3px 6px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border);
}
pre {
  background-color: var(--code-bg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.55;
}

/* --- CV/Resume --- */
.cv-header {
  text-align: left;
  margin-bottom: 3.5rem;
}
.cv-contact {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 0.5rem;
}
.cv-contact span::after {
  content: " · ";
  color: var(--border);
}
.cv-contact span:last-child::after {
  content: "";
}
.cv-section {
  margin-bottom: 3rem;
}
.cv-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.25s ease;
}
.cv-item:hover {
  border-color: var(--ink);
  background-color: var(--card-hover-bg);
  box-shadow: 0 8px 24px var(--shadow-color);
}
.cv-item-title {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.cv-item-school {
  font-weight: 600;
  font-size: 18px;
}
.cv-item-subtitle {
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 1rem;
}
.cv-bullets {
  padding-left: 1.25rem;
  list-style-type: square;
  font-size: 14.5px;
  line-height: 1.6;
}
.cv-bullets li {
  margin-bottom: 0.4rem;
}

/* --- Custom CTA style button for Download PDF CV --- */
.print-btn a {
  background-color: var(--ink) !important;
  color: var(--canvas) !important;
  padding: 10px 20px !important;
  border-radius: var(--border-radius-md) !important;
  border: none !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.2s ease !important;
}
.print-btn a:hover {
  background-color: var(--accent-hover) !important;
  transform: scale(1.03);
  text-decoration: none !important;
}

/* --- Footer --- */
.footer {
  margin-top: 7rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer a:hover {
  color: var(--ink);
}

/* --- Interactive LLM Agent Trace Console --- */
.console-intro-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--body);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: var(--line-length);
}
.console-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 4px 20px var(--shadow-color);
}
.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}
.console-window-dots {
  display: flex;
  gap: 6px;
}
.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.red { background-color: #ff5f56; }
.window-dot.yellow { background-color: #ffbd2e; }
.window-dot.green { background-color: #27c93f; }

.console-title {
  color: var(--muted);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.console-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
  transition: all 0.3s ease;
}
.status-light.yellow {
  background-color: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: pulse-yellow 1.5s infinite;
}
.status-light.red {
  background-color: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}
@keyframes pulse-yellow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.console-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.control-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.console-select {
  background-color: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  color: var(--ink);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
}
.console-select:focus {
  outline: none;
  border-color: var(--accent);
}
.console-btn {
  background-color: var(--ink);
  color: var(--canvas);
  border: none;
  border-radius: var(--border-radius-md);
  padding: 11px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.console-btn:hover {
  background-color: var(--accent);
  transform: translateY(-1px);
}
.console-btn:active {
  transform: translateY(0);
}
.console-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.console-screen {
  background-color: #0c0e12;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  height: 280px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}
.console-screen::-webkit-scrollbar {
  width: 6px;
}
.console-screen::-webkit-scrollbar-track {
  background: transparent;
}
.console-screen::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.console-screen::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.console-logs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.log-line {
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-word;
}
.log-system { color: #8b949e; }
.log-info { color: #58a6ff; }
.log-success { color: #3fb950; }
.log-warn { color: #d29922; }
.log-error { color: #f85149; }
.log-response { color: #ffb084; font-weight: 500; }
.log-prompt { color: #7ee787; font-weight: 500; }
.log-user { color: #ffffff; }

.blink-cursor {
  font-weight: 700;
  color: #ffffff;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Article: Eyebrow label --- */
.article-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

/* --- Article: TL;DR summary card --- */
.article-tldr {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2.5rem;
}
.article-tldr p {
  font-size: 15.5px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: none;
}

/* --- Article: Stat strip --- */
.article-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 2rem 0;
}
.article-stat-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  padding: 1rem 1.1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.article-stat-box:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.article-stat-box .stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 5px;
}
.article-stat-box .stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.article-stat-box .stat-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* --- Article: Callout boxes --- */
.article-callout {
  border-left: 3px solid var(--accent);
  background: var(--card-bg);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin: 1.75rem 0;
}
.article-callout.warning {
  border-left-color: var(--accent-hover);
  background: #fdf7e8;
}
.article-callout.success {
  border-left-color: #2a6049;
  background: #f0f7f3;
}
.article-callout-head {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink);
  margin-bottom: 6px;
}
.article-callout p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 0;
  line-height: 1.65;
  max-width: none;
}

/* --- Article: Dark highlight section --- */
.article-dark-section {
  background: var(--accent);
  border-radius: var(--border-radius-lg);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
}
.article-dark-section h2 {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.15);
  margin-top: 0;
  font-size: 20px;
}
.article-dark-section p {
  color: rgba(255,255,255,0.72);
  max-width: none;
  margin-bottom: 1rem;
}
.article-dark-section ul {
  max-width: none;
  padding-left: 1.25rem;
  margin-bottom: 0;
}
.article-dark-section li {
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.75rem;
  font-size: 15px;
  line-height: 1.65;
}
.article-dark-section li strong {
  color: #ffffff;
}

/* --- Article: Tables --- */
.post-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
}
.post-content table thead th {
  background-color: var(--accent);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}
.post-content table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.post-content table tbody tr:last-child {
  border-bottom: none;
}
.post-content table tbody tr:hover {
  background-color: var(--card-hover-bg);
}
.post-content table tbody td {
  padding: 10px 14px;
  color: var(--body);
  vertical-align: top;
  line-height: 1.55;
}
.post-content table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* --- Article: Blockquotes (callouts / TL;DR) --- */
.post-content blockquote {
  border-left: 3px solid var(--accent);
  background-color: var(--card-bg);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin: 1.75rem 0;
}
.post-content blockquote p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 0;
  line-height: 1.65;
  max-width: none;
}
.post-content blockquote strong {
  color: var(--ink);
}

/* --- Article: Section dividers (---) --- */
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.75rem 0;
}

/* --- Mobile Responsive Queries --- */
@media (max-width: 768px) {
  .reels-stage-layout {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .reel-player-container {
    flex: none;
    width: 100%;
  }
  .reel-phone-frame {
    width: 100%;
    max-width: 260px;
  }
  .reel-meta-container {
    min-height: auto;
    width: 100%;
  }
  .reels-theater-card {
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
  }
  .reel-current-title {
    font-size: 20px;
  }
  .reel-card {
    padding: 1rem;
  }
  .reel-card-title {
    font-size: 15px;
  }
  .console-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .console-btn {
    width: 100%;
  }
  .project-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.75rem 1.5rem !important;
  }
  .project-card-content {
    padding-right: 0 !important;
    margin-bottom: 1.25rem;
  }
  .project-card-metric {
    border-left: none !important;
    border-top: 1px solid rgba(10, 10, 10, 0.1);
    padding-left: 0 !important;
    padding-top: 1rem;
    width: 100%;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .card-teal .project-card-metric {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
  }
  .card-ochre .project-card-metric,
  .card-lavender .project-card-metric,
  .card-peach .project-card-metric {
    border-top-color: rgba(10, 10, 10, 0.12) !important;
  }
}

/* --- Print Stylesheet --- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.35;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .cv-item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
  }
  .nav-header, .footer, .back-link, .print-btn {
    display: none !important;
  }
  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
  h2 {
    margin-top: 1.5rem !important;
    border-bottom: 1px solid #000000 !important;
    page-break-after: avoid;
  }
  .cv-item {
    page-break-inside: avoid;
  }
}

/* --- Newsletter Issue Layout --- */
.newsletter-kicker {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
  font-family: 'Inter', sans-serif;
}

.newsletter-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.newsletter-body {
  font-size: 16.5px;
  line-height: 1.65;
}

.newsletter-body p {
  margin-bottom: 1.5rem;
}

.newsletter-body h2 {
  margin-top: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.newsletter-body h3 {
  margin-bottom: 0.35rem;
}

p.source {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -0.6rem;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}

p.source a {
  color: inherit;
  text-decoration: underline;
}

.newsletter-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
}
