:root {
  --surface-canvas: #F9F8F6;
  --surface-card: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-container-lowest: #FFFFFF;
  --surface-container-low: #F7F3EF;
  --surface-container: #F1EDE9;
  --surface-container-high: #EBE7E4;
  --surface-container-highest: #E6E2DE;

  --text-ink: #1C1C1C;
  --text-ink-rgb: 28, 28, 28;
  --text-muted: #7A7875;
  --text-subtle: #A3A09B;

  --accent-terracotta: #B8583E;
  --accent-terracotta-rgb: 184, 88, 62;
  --accent-terracotta-soft: #F4EBE8;
  --accent-secondary: #9C432B;

  --border-subtle: #E8E5DF;
  --border-muted: #DCD9D4;

  --font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 1px 3px rgba(28, 28, 28, 0.04), 0 1px 2px rgba(28, 28, 28, 0.02);
  --shadow-preview: 0 12px 32px -4px rgba(28, 28, 28, 0.12), 0 4px 12px -2px rgba(28, 28, 28, 0.06);
  --shadow-magnetic: 0 8px 24px -2px rgba(184, 88, 62, 0.15);

  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 240ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--surface-canvas);
  color: var(--text-ink);
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--surface-canvas);
  color: var(--text-ink);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  max-width: 100vw;
  overflow-x: hidden;
}

::selection {
  background-color: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

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

.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

@keyframes subtlePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.live-pulse {
  animation: subtlePulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

body.page-dashboard {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.site-header {
  width: 100%;
  padding: 2rem 3.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  user-select: none;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: padding var(--transition-normal);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.brand-name {
  font-weight: 500;
  color: var(--text-ink);
  letter-spacing: -0.01em;
}

.brand-sep {
  color: var(--border-muted);
}

.brand-role {
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
  text-underline-offset: 4px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-terracotta);
  text-decoration-color: var(--accent-terracotta);
}

.nav-link.active {
  color: var(--text-ink);
  font-weight: 500;
  text-decoration-color: var(--text-ink);
}

.dashboard-main {
  width: 100%;
  max-width: 68rem;
  padding: 1rem 3.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 58rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-ink);
  position: relative;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.hero-name-wrap {
  display: inline-flex;
  align-items: baseline;
  position: relative;
}

.target-letter-i {
  position: relative;
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.target-letter-i.target-highlight {
  color: var(--accent-terracotta);
  transform: scale(1.15);
}

.kinetic-presence-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-terracotta);
  margin-left: 0.35rem;
  align-self: baseline;
  position: relative;
  top: -0.15rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 rgba(var(--accent-terracotta-rgb), 0.4);
}

.kinetic-presence-dot:hover {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(var(--accent-terracotta-rgb), 0.15);
}

.kinetic-presence-dot.is-dragging {
  cursor: grabbing !important;
  transition: none !important;
  box-shadow: 0 4px 14px rgba(var(--accent-terracotta-rgb), 0.4), 0 0 0 6px rgba(var(--accent-terracotta-rgb), 0.2);
  z-index: 9999;
}

.kinetic-presence-dot.magnetic-pull {
  transform: scale(1.5);
  box-shadow: 0 0 0 8px rgba(var(--accent-terracotta-rgb), 0.3);
}

.hero-bio {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(var(--text-ink-rgb), 0.88);
  max-width: 46rem;
}

.hero-bio em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-ink);
}

.hero-links-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding-top: 0.75rem;
}

.quick-link {
  color: var(--text-ink);
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
  text-underline-offset: 4px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.quick-link:hover {
  color: var(--accent-terracotta);
  text-decoration-color: var(--accent-terracotta);
}

.link-divider {
  color: var(--border-subtle);
  user-select: none;
}

.curiosity-hook {
  display: inline-block;
  color: var(--accent-terracotta);
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-terracotta-rgb), 0.4);
  text-underline-offset: 4px;
  font-weight: 400;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  white-space: nowrap;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.curiosity-hook:hover {
  color: var(--text-ink);
  text-decoration-color: var(--accent-terracotta);
}

.curiosity-hook .hook-arrow {
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: inherit;
  transition: transform 0.2s ease;
}

.curiosity-hook:hover .hook-arrow {
  transform: translateX(3px);
}

.dashboard-footer {
  width: 100%;
  padding: 1rem 3.5rem 2.5rem;
  z-index: 10;
}

.footer-content-wrap {
  max-width: 68rem;
  margin: 0 auto;
  position: relative;
}

.selected-work-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
}

.project-tabular-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.project-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.project-item:hover,
.project-item.is-active {
  color: var(--text-ink);
  background-color: rgba(255, 255, 255, 0.65);
}

.project-num {
  color: var(--text-subtle);
  font-size: 0.75rem;
  flex-shrink: 0;
  width: 1.5rem;
}

.project-details {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-title {
  color: var(--text-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.project-item:hover .project-title {
  color: var(--accent-terracotta);
  text-decoration-color: rgba(var(--accent-terracotta-rgb), 0.4);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: color var(--transition-fast);
}

.project-item:hover .project-desc {
  color: var(--text-ink);
}

.hover-preview-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  box-shadow: var(--shadow-preview);
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.92);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hover-preview-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.preview-media-frame {
  width: 100%;
  height: 130px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background-color: var(--surface-container);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.preview-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.preview-info-body {
  padding: 0.35rem 0.25rem 0.5rem;
}

.preview-info-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-ink);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.preview-info-desc {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.preview-footer {
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.preview-specimen-id {
  color: var(--text-muted);
}

.preview-status-pill {
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  text-transform: lowercase;
}

.preview-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-terracotta);
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

.easter-egg-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--surface-card);
  color: var(--text-ink);
  border: 1px solid var(--accent-terracotta);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  box-shadow: var(--shadow-preview);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.easter-egg-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.page-stream {
  min-height: 100vh;
  background-color: var(--surface-canvas);
  color: var(--text-ink);
  overflow-x: hidden;
  overflow-y: auto;
}

.stream-sticky-header {
  position: sticky;
  top: 0;
  background-color: rgba(249, 248, 246, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: border-color var(--transition-fast);
}

.stream-header-inner {
  max-width: 650px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-ink);
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  margin-left: -0.6rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.back-link:hover {
  color: var(--accent-terracotta);
  background-color: var(--surface-container);
  transform: translateX(-2px);
}

.stream-header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-container {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

.stream-intro-shelf {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.stream-telemetry-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  user-select: none;
  margin-bottom: 0.75rem;
}

.telemetry-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-terracotta);
}

.stream-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-ink);
  margin-bottom: 0.75rem;
}

.stream-desc {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(var(--text-ink-rgb), 0.82);
}

.stream-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  user-select: none;
}

.filter-buttons-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.filter-btn {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  background-color: var(--surface-container);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--surface-container-highest);
  color: var(--text-ink);
}

.filter-btn.active {
  background-color: var(--text-ink);
  color: var(--surface-canvas);
  border-color: var(--text-ink);
  font-weight: 500;
}

.stream-search-wrap {
  width: 100%;
}

.stream-search-input {
  width: 100%;
  background-color: var(--surface-container);
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-ink);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.stream-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.stream-search-input:focus {
  outline: none;
  background-color: var(--surface-card);
  border-color: var(--accent-terracotta);
}

.stream-feed {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.stream-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.stream-item.is-hidden {
  display: none !important;
}

.stream-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.stream-timestamp {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.stream-category-tag {
  color: var(--accent-terracotta);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}

.stream-article-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-ink);
  letter-spacing: -0.01em;
}

.stream-prose {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(var(--text-ink-rgb), 0.9);
  font-weight: 300;
}

.stream-prose p {
  margin-bottom: 1rem;
}

.stream-prose p:last-child {
  margin-bottom: 0;
}

.stream-prose code,
.code-inline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-xs);
  background-color: var(--surface-container);
  color: var(--text-ink);
  border: 1px solid var(--border-subtle);
}

.stream-code-block {
  background-color: var(--surface-container-low);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  background-color: var(--surface-container);
  border-bottom: 1px solid var(--border-muted);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.code-block-filename {
  color: var(--text-ink);
  font-weight: 500;
}

.code-block-tag {
  color: var(--accent-terracotta);
}

.stream-code-block pre {
  padding: 0.85rem 1rem;
  overflow-x: auto;
  line-height: 1.55;
  color: var(--text-ink);
}

.stream-blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-ink);
  padding-left: 1.25rem;
  border-left: 2px solid rgba(var(--accent-terracotta-rgb), 0.5);
  margin: 1.25rem 0;
}

.blockquote-cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-style: normal;
  color: var(--text-muted);
  display: block;
  margin-top: 0.5rem;
}

.stream-photo-frame {
  margin: 1.25rem 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--border-muted);
  background-color: var(--surface-container);
}

.stream-photo-frame img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.stream-photo-caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-subtle);
  font-style: italic;
}

.stream-item-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.stream-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stream-tag-pill {
  font-size: 0.6875rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  background-color: var(--surface-container);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.stream-action-link {
  color: var(--accent-terracotta);
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-terracotta-rgb), 0.3);
  text-underline-offset: 4px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.stream-action-link:hover {
  color: var(--text-ink);
  text-decoration-color: var(--accent-terracotta);
}

.stream-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  user-select: none;
}

.pagination-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-xs);
  background-color: var(--surface-container);
  color: var(--text-ink);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--surface-container-highest);
  color: var(--accent-terracotta);
  border-color: var(--border-muted);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-status {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.stream-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footnote-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footnote-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footnote-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.footnote-links a:hover {
  color: var(--accent-terracotta);
}

.stream-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .site-header {
    padding: 1.5rem 2rem 0.75rem;
  }

  .dashboard-main {
    padding: 1rem 2rem;
  }

  .dashboard-footer {
    padding: 1rem 2rem 2rem;
  }
}

@media (max-width: 680px) {
  body.page-dashboard {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden !important;
    overscroll-behavior: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .site-header {
    width: 100%;
    max-width: 100vw;
    padding: 0.85rem 1.25rem 0.4rem;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-name {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-ink);
  }

  .brand-sep,
  .brand-role {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex-shrink: 0;
  }

  .dashboard-main {
    width: 100%;
    max-width: 100vw;
    padding: 0.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
  }

  .hero-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 100%;
  }

  .hero-headline {
    font-size: clamp(1.75rem, 6.8vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .kinetic-presence-dot {
    width: 8px;
    height: 8px;
    margin-left: 0.25rem;
  }

  .hero-bio {
    font-size: clamp(0.88rem, 3.2vw, 0.98rem);
    line-height: 1.45;
    max-width: 100%;
  }

  .hero-links-nav {
    font-size: 0.72rem;
    gap: 0.35rem 0.65rem;
    padding-top: 0.2rem;
  }

  .dashboard-footer {
    width: 100%;
    max-width: 100vw;
    padding: 0.5rem 1.25rem 0.85rem;
    flex-shrink: 0;
  }

  .selected-work-section {
    gap: 0.35rem;
    max-width: 100%;
  }

  .section-label {
    font-size: 0.625rem;
    margin-bottom: 0.15rem;
  }

  .project-tabular-list {
    gap: 0.35rem;
  }

  .project-item {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.15rem 0;
    margin: 0;
    background: transparent !important;
    width: 100%;
    min-width: 0;
  }

  .project-num {
    font-size: 0.6875rem;
    width: 1.2rem;
    flex-shrink: 0;
    color: var(--text-subtle);
  }

  .project-details {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .project-title {
    font-size: 0.75rem;
    color: var(--text-ink);
    flex-shrink: 0;
  }

  .project-desc {
    font-size: 0.6875rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }

  .hover-preview-card {
    display: none !important;
  }

  .stream-sticky-header .stream-header-inner {
    padding: 0.85rem 1.25rem;
  }

  .stream-header-brand .brand-sep,
  .stream-header-brand .brand-role {
    display: none;
  }

  .stream-container {
    padding: 1.75rem 1.25rem 4rem;
  }

  .stream-title {
    font-size: 2rem;
  }

  .stream-desc {
    font-size: 1rem;
  }

  .filter-buttons-group {
    gap: 0.35rem;
  }

  .filter-btn {
    font-size: 0.6875rem;
    padding: 0.3rem 0.5rem;
  }

  .stream-article-title {
    font-size: 1.3rem;
  }

  .stream-prose {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .hero-headline {
    font-size: 1.6rem;
  }

  .hero-bio {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .project-desc {
    display: none;
  }
}
