
@import url('https://fonts.googleapis.com/css2?family=Averia+Sans+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Medium.woff') format('woff');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Semibold.woff') format('woff');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --page: #fafafa;
  --bg-surface: #ffffff;
  --bg-icon: #f9f9f9;
  --bg-icon-hover: #efefef;
  --text: #27272a;
  --text-strong: #0e0e0e;
  --text-muted: #9f9fa9;
  --border-soft: #e4e4e4;
  --border-faint: #f5f5f5;
  --border-divider: rgba(0, 0, 0, 0.05);
  --accent: #111111;
  --font-sf: 'SF Pro Rounded', ui-rounded, "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Averia Sans Libre', cursive, sans-serif;
  --selection-bg: rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] {
  --page: #0e0e0e;
  --bg-surface: #111111;
  --bg-icon: #171717;
  --bg-icon-hover: #1f1f1f;
  --text: #b0b0b0;
  --text-strong: #f0f0f0;
  --text-muted: #6e6e6e;
  --border-soft: #1c1c1c;
  --border-faint: #141414;
  --border-divider: rgba(255, 255, 255, 0.05);
  --accent: #fafafa;
  --selection-bg: rgba(255, 255, 255, 0.1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}
html,
body {
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sf);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-y: scroll;
}
::selection {
  background: #FF5722;
  color: #FFFFFF;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-main {
  padding-top: 100px;
  padding-bottom: 48px;
}
@media (max-width: 720px) {
  .site-main {
    padding-top: 80px;
  }
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.divider {
  width: 100%;
  height: 0;
  background: transparent;
  margin: 80px 0;
  border: none;
}
.fade-up {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
  will-change: opacity, transform, filter;
}
body.wireframe-mode * {
  outline: 1px dashed var(--border-soft) !important;
  background: transparent !important;
}
body.wireframe-mode .mini-bento-card,
body.wireframe-mode .connect-dock {
  box-shadow: none !important;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 200;
  background: transparent;
  transition: background-color 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-faint);
}
[data-theme="dark"] .nav.scrolled {
  background: rgba(14, 14, 14, 0.9);
}
.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-sf);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text-strong);
}
.nav-cmd-btn {
  background: var(--bg-icon);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.nav-cmd-btn:hover {
  background: var(--bg-icon-hover);
  color: var(--text-strong);
}
@media (max-width: 720px) {
  .nav-right {
    gap: 16px;
  }
}
.site-footer {
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 600px) {
  .site-footer .container {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
}
.section-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mini-bento-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.mini-bento-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.mini-bento-card:hover {
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-eyebrow {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}
.card-desc {
  font-size: 13px;
  color: var(--text);
  margin-top: 4px;
  max-width: 400px;
}
.card-arrow {
  color: var(--text-muted);
  font-size: 18px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.mini-bento-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--text-strong);
}
@media (max-width: 600px) {
  .mini-bento-card {
    padding: 16px;
    align-items: flex-start;
  }
  .card-arrow {
    margin-top: 4px;
  }
}
.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.connect-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-strong);
  position: relative;
  display: inline-block;
}
.connect-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-strong);
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.connect-link:hover::after {
  transform: scaleX(1);
}
#cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
#cmd-palette-backdrop.cmd-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#cmd-palette {
  background: var(--bg-surface);
  width: 100%;
  max-width: 560px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cmd-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}
#cmd-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sf);
  font-size: 16px;
  color: var(--text-strong);
  outline: none;
}
#cmd-input::placeholder {
  color: var(--text-muted);
}
.cmd-esc {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-icon);
  padding: 4px 6px;
  border-radius: 4px;
}
.cmd-results {
  max-height: 340px;
  overflow-y: auto;
  padding: 12px 0;
}
.cmd-group-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 20px;
}
.cmd-list {
  list-style: none;
  margin-bottom: 8px;
}
.cmd-link {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.2s, color 0.2s, padding-left 0.2s, border-left 0.2s;
  border-left: 0px solid transparent;
}
.cmd-link:hover {
  background: var(--bg-icon);
  color: var(--text-strong);
  padding-left: 24px;
  border-left: 4px solid #3B82F6; 
}
.avatar-wrap {
  display: flex;
  margin-bottom: 16px;
}
.hero-avatar-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
  transform: scale(1.35);
}
.fixed-social-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: var(--text-strong); 
  color: var(--page);
  border-radius: 999px;
  padding: 12px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
@supports (backdrop-filter: blur(8px)) {
  .fixed-social-dock {
    background: rgba(14, 14, 14, 0.85); 
    backdrop-filter: blur(12px);
  }
  [data-theme="dark"] .fixed-social-dock {
    background: rgba(240, 240, 240, 0.85);
  }
}
.fixed-social-dock .connect-link {
  color: var(--page);
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}
.fixed-social-dock .connect-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.fixed-social-dock .connect-link::after {
  display: none;
}
@media (max-width: 600px) {
  .fixed-social-dock {
    padding: 10px 24px;
    gap: 16px;
    bottom: 16px;
  }
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg-icon);
  color: var(--text-strong);
  cursor: pointer;
  transition: all 0.2s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-left: 8px;
}
.theme-toggle:hover {
  background: var(--bg-icon-hover);
}
.theme-toggle:active {
  transform: rotate(45deg) scale(0.9);
}
.stats-ledger {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
}
.stat-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.stat-year {
  font-family: monospace;
  color: var(--text-muted);
  font-size: 13px;
  padding-top: 2px;
}
.stat-text {
  font-size: 15px;
  color: var(--text);
  max-width: 500px;
}
.gh-graph-wrapper {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 16px;
  background: var(--bg-surface);
}
.gh-graph-img {
  width: 100%;
  display: block;
}
.arch-dropdown {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg-surface);
  overflow: hidden;
}
.arch-dropdown summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-strong);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.arch-dropdown summary::-webkit-details-marker {
  display: none;
}
.arch-dropdown summary::after {
  content: "+";
  color: var(--text-muted);
  font-family: monospace;
}
.arch-dropdown[open] summary::after {
  content: "-";
}
.arch-content {
  padding: 0 20px 20px;
  border-top: 1px dashed var(--border-soft);
  margin-top: 8px;
  padding-top: 16px;
}
.arch-content pre {
  font-family: monospace;
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.5;
}
.hover-reveal-trigger {
  position: relative;
  cursor: crosshair;
  display: inline-block;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  transition: opacity 0.2s;
}
.hover-reveal-trigger:hover {
  opacity: 0.8;
}
.hover-reveal-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 320px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-soft);
  transform: scale(0.8) translate(-50%, -50%);
  transform-origin: center;
}
.hover-reveal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.intro-section {
  text-align: center;
}
.hero-headline {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero-wave {
  display: inline-block;
  vertical-align: middle;
  color: var(--text-muted);
  margin-left: 4px;
  animation: wave-float 3s ease-in-out infinite;
}
@keyframes wave-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(6deg);
  }
  75% {
    transform: translateY(2px) rotate(-4deg);
  }
}
.hero-subtext {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}
.hero-cta-btn {
  display: inline-block;
  background: var(--text-strong);
  color: var(--page);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.01em;
}
.hero-cta-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.hero-cta-btn:active {
  transform: scale(0.96) translateY(0);
}
.cta-color-pop {
  animation: rainbow-pop 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes rainbow-pop {
  0% {
    background: var(--text-strong);
    color: var(--page);
    transform: scale(0.96);
  }
  25% {
    background: #3B82F6; 
    color: #fff;
    transform: scale(1.02);
  }
  50% {
    background: #F97316; 
    color: #fff;
  }
  75% {
    background: #10B981; 
    color: #fff;
  }
  100% {
    background: var(--text-strong);
    color: var(--page);
    transform: scale(1);
  }
}
.learning-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.learning-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}
.learning-item:hover {
  border-color: var(--text-muted);
}
.learning-arrow {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}
.connect-label {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
}
@media (max-width: 720px) {
  .hero-headline {
    font-size: 28px;
  }
  .hero-wave {
    width: 28px;
    height: 28px;
  }
}
.case-study-hero {
  padding-bottom: 80px;
}
.case-study-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.case-study-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.case-study-description {
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 32px;
}
.case-study-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.case-study-link:hover {
  color: var(--text);
}
.content-section {
  margin-bottom: 48px;
}
.content-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 12px;
}
.content-section p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 16px;
}
.work-main {
  padding-top: 100px;
  padding-bottom: 48px;
}
.project-showcase {
  display: flex;
  flex-direction: column;
}
.project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 64px 8%;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 10;
}
.project-row:hover {
  background-color: var(--bg-icon);
}
.project-info {
  max-width: 600px;
}
.project-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}
.project-row:hover .project-title {
  transform: translateX(8px);
}
.project-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  color: var(--text);
}
.project-arrow {
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}
.project-row:hover .project-arrow {
  color: var(--text-strong);
  transform: translateX(8px);
}
.cursor-img-reveal {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 240px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 50;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.cursor-img-reveal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 768px) {
  .project-row {
    padding: 40px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .project-title {
    font-size: 32px;
  }
  .project-arrow {
    align-self: flex-end;
  }
  .cursor-img-reveal {
    display: none !important;
  }
}
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981; 
  position: relative;
  margin-right: 4px;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: dot-pulse 2s infinite ease-in-out;
}
@keyframes dot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}
.timeline-container {
  max-width: 600px;
  margin: 0 auto;
  padding-top: 40px;
  position: relative;
}
.timeline-container::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-soft);
}
.timeline-entry {
  position: relative;
  padding-left: 36px;
  margin-bottom: 48px;
}
.timeline-entry::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--page);
  border: 1px solid var(--text-strong);
  box-shadow: 0 0 0 4px var(--page);
}
.timeline-entry.entry-active::before {
  background: var(--text-strong);
  animation: active-entry-pulse 2s infinite ease-in-out;
}
@keyframes active-entry-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--page), 0 0 0 1px var(--text-strong);
  }
  50% {
    box-shadow: 0 0 0 4px var(--page), 0 0 0 5px var(--border-soft);
  }
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.timeline-date {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.timeline-tag {
  font-size: 11px;
  font-weight: 500;
  font-family: monospace;
  color: var(--text-strong);
  background: var(--bg-icon);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}
.timeline-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.timeline-content {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.timeline-content p {
  margin-bottom: 12px;
}
.timeline-content p:last-child {
  margin-bottom: 0;
}
.timeline-content ul,
.timeline-content ol {
  margin-left: 20px;
  margin-bottom: 12px;
}
.timeline-content li {
  margin-bottom: 4px;
}
.timeline-content pre {
  font-family: monospace;
  font-size: 13px;
  background: var(--bg-icon);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  margin: 16px 0;
  color: var(--text-strong);
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--text-strong);
  z-index: 300;
  transition: width 0.1s linear;
  opacity: 0.6;
}
.devlog-hero-desc {
  margin-bottom: 24px;
}
.devlog-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.devlog-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.devlog-stat-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.devlog-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.devlog-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-soft);
}
@media (max-width: 480px) {
  .devlog-stats {
    gap: 16px;
  }
  .devlog-stat-value {
    font-size: 18px;
  }
}
.ep-callout {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--text-strong);
  background: var(--bg-icon);
  border-radius: 0 8px 8px 0;
}
.ep-callout .ep-label {
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.act-break {
  text-align: center;
  margin: 16px 0 32px;
  padding: 0;
}
.act-break-rule {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-soft) 20%,
    var(--border-soft) 80%,
    transparent
  );
}
.act-break-content {
  padding: 28px 0;
}
.act-break-status {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.act-break-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.act-break-desc {
  font-size: 14px;
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}
.timeline-reading-time {
  font-size: 11px;
  font-family: monospace;
  color: var(--text-muted);
  margin-left: auto;
}
.entry-collapsible .timeline-content {
  position: relative;
  max-height: 220px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.entry-collapsible.entry-collapsed .timeline-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--page));
  pointer-events: none;
}
.entry-collapsible:not(.entry-collapsed) .timeline-content {
  max-height: 2000px;
}
.entry-expand-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-sf);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.entry-expand-btn:hover {
  opacity: 0.7;
}
.devlog-closing {
  padding: 64px 0 40px;
  text-align: center;
}
.devlog-closing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.devlog-closing-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.devlog-closing-subtext {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.devlog-closing-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.devlog-closing-divider {
  color: var(--text-muted);
}
.explore-page {
  position: relative;
}
.explore-page::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
.studio-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 20;
}
.studio-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  border: 2px solid var(--text-strong);
  margin-top: 120px;
  margin-bottom: 32px;
  min-height: 200px;
  background: var(--bg-surface);
}
.studio-header-left {
  border-right: 2px solid var(--text-strong);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 0;
  color: var(--text-strong);
}
.studio-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.studio-title-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}
.studio-headline {
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: -0.02em;
}
.studio-doodle {
  color: var(--text-strong);
}
@media (max-width: 768px) {
  .studio-header {
    grid-template-columns: 1fr;
  }
  .studio-header-left {
    border-right: none;
    border-bottom: 2px solid var(--text-strong);
    justify-content: flex-start;
    padding: 16px 24px;
  }
  .studio-headline {
    font-size: 48px;
  }
}
.studio-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 16px;
  margin-bottom: 40px;
}
.studio-filters {
  display: flex;
  gap: 32px;
}
.studio-filter-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.studio-filter-btn:hover {
  color: var(--text-strong);
}
.studio-filter-btn.active {
  color: var(--text-strong);
}
.studio-filter-btn.active::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -4px;
  width: calc(100% + 4px);
  height: 2px;
  background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,5 Q50,0 100,5' stroke='%23FF5722' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.studio-search {
  color: var(--text-strong);
  cursor: pointer;
}
.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .studio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .studio-filters {
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}
.masonry-item {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  background: var(--bg-surface);
  border: 2px solid var(--text-strong);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.card-squiggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.masonry-content {
  position: relative;
  z-index: 1;
}
.masonry-eyebrow {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.masonry-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.masonry-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.masonry-item.thoughts {
  padding: 40px 32px;
}
.status-dashboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-icon);
  border: 1px solid var(--border-soft);
  font-family: 'Courier New', monospace;
}
.status-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.status-value {
  color: var(--text-strong);
  font-weight: 600;
}
.masonry-item.filtering-out {
  pointer-events: none;
}
@import url('https://fonts.googleapis.com/css2?family=Averia+Sans+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
  @font-face {
    font-family: 'SF Pro Rounded';
    src: url('assets/fonts/SF-Pro-Rounded-Medium.woff') format('woff');
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'SF Pro Rounded';
    src: url('assets/fonts/SF-Pro-Rounded-Semibold.woff') format('woff');
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-2: #f9f9f9;
    --border: #e4e4e4;
    --border-strong: #d0d0d0;
    --text: #0e0e0e;
    --muted: #27272a;
    --muted-2: #9f9fa9;
    --accent: #111111;
    --accent-bg: #f9f9f9;
    --font-display: 'Averia Sans Libre', cursive, sans-serif;
    --font-body: 'SF Pro Rounded', ui-rounded, "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: var(--font-body);
    --col: 640px;
  }
  html[data-theme="dark"] {
    --bg: #0e0e0e;
    --surface: #111111;
    --surface-2: #171717;
    --border: #1c1c1c;
    --border-strong: #2a2a2a;
    --text: #f0f0f0;
    --muted: #b0b0b0;
    --muted-2: #6e6e6e;
    --accent: #fafafa;
    --accent-bg: #171717;
  }
  html[data-wireframe="true"] body { background: #fff !important; color: #000 !important; }
  html[data-wireframe="true"] * {
    background: transparent !important;
    color: #000 !important;
    border-color: #000 !important;
    box-shadow: none !important;
    font-family: var(--font-mono) !important;
    letter-spacing: 0 !important;
  }
  html[data-wireframe="true"] .obs,
  html[data-wireframe="true"] .decision,
  html[data-wireframe="true"] .ba-col,
  html[data-wireframe="true"] .metric,
  html[data-wireframe="true"] .constraint-body,
  html[data-wireframe="true"] .tradeoff,
  html[data-wireframe="true"] .honest-box,
  html[data-wireframe="true"] .meta-item {
    border: 1px dashed #000 !important;
  }
  html[data-wireframe="true"] .mockup-frame { outline: 1px dashed #000; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    transition: background 0.2s, color 0.2s;
  }
  .site-nav {
    position: sticky; top: 0; z-index: 100;
    padding: 18px 40px;
    display: flex; align-items: center; justify-content: flex-end;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .nav-right { display: flex; align-items: center; gap: 20px; }
  .nav-link { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
  .nav-link:hover { color: var(--text); }
  .cmdk-hint { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); border: 1px solid var(--border-strong); border-radius: 4px; padding: 3px 7px; cursor: pointer; background: var(--surface); }
  .theme-toggle, .wireframe-toggle { font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: none; border: 1px solid var(--border-strong); border-radius: 4px; padding: 4px 8px; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
  .theme-toggle:hover, .wireframe-toggle:hover { color: var(--text); border-color: var(--text); }
  .cs-page { display: grid; grid-template-columns: 200px 1fr; max-width: 1180px; margin: 0 auto; }
  .cs-sidebar { position: sticky; top: 68px; height: fit-content; padding: 88px 0 40px 40px; }
  .cs-sidebar-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px; }
  .cs-sidebar-nav { display: flex; flex-direction: column; gap: 1px; }
  .cs-sidebar-link { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); text-decoration: none; padding: 6px 0 6px 14px; border-left: 1px solid var(--border); transition: color 0.15s, border-color 0.15s; }
  .cs-sidebar-link:hover { color: var(--muted); }
  .cs-sidebar-link.active { color: var(--accent); border-color: var(--accent); }
  .cs-main { padding: 0 64px 120px 64px; max-width: 780px; }
  .cs-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--border); margin-bottom: 64px; }
  .role-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 22px; }
  .role-eyebrow span { color: var(--accent); }
  .cs-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em; color: var(--text); margin-bottom: 18px; }
  .cs-title em { font-style: italic; font-weight: 400; color: var(--muted); }
  .cs-dek { font-size: 17px; color: var(--muted); line-height: 1.7; max-width: 520px; margin-bottom: 36px; }
  .meta-row { display: grid; grid-template-columns: repeat(4, auto); width: fit-content; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
  .meta-item { padding: 11px 18px; border-right: 1px solid var(--border); background: var(--surface); }
  .meta-item:last-child { border-right: none; }
  .meta-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
  .meta-value { font-size: 12.5px; font-weight: 500; color: var(--text); }
  .cs-section { margin-bottom: 64px; scroll-margin-top: 90px; }
  .section-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
  .section-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.01em; color: var(--text); margin-bottom: 20px; line-height: 1.25; }
  .p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; max-width: var(--col); }
  .p:last-child { margin-bottom: 0; }
  .p strong { color: var(--text); font-weight: 500; }
  .p em { font-family: var(--font-display); font-style: italic; color: var(--text); }
  .obs-list { display: flex; flex-direction: column; gap: 10px; max-width: var(--col); margin: 22px 0; }
  .obs { background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 0 6px 6px 0; padding: 16px 20px; }
  .obs-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
  .obs-text { font-size: 14px; color: var(--muted); line-height: 1.7; }
  .obs-text strong { color: var(--text); font-weight: 500; }
  .constraint-list { max-width: var(--col); margin: 22px 0; display: flex; flex-direction: column; gap: 8px; }
  .constraint { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
  .constraint-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); padding-top: 14px; }
  .constraint-body { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 13px 18px; font-size: 14px; color: var(--muted); line-height: 1.7; }
  .constraint-body strong { color: var(--text); font-weight: 500; }
  .decision-list { max-width: var(--col); margin: 22px 0; display: flex; flex-direction: column; gap: 8px; }
  .decision { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 16px 20px; }
  .decision-title { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--text); margin-bottom: 6px; }
  .decision-body { font-size: 13.5px; color: var(--muted); line-height: 1.72; }
  .mockup-frame { width: 100%; max-width: var(--col); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 22px 0 18px; background: var(--surface-2); }
  .mockup-split { display: flex; }
  .mockup-half { flex: 1; padding: 16px; }
  .mockup-half + .mockup-half { border-left: 1px solid var(--border); }
  .mockup-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
  .mockup-bars { display: flex; flex-direction: column; gap: 6px; }
  .mockup-bar { height: 8px; background: var(--border-strong); border-radius: 2px; }
  .mockup-note { text-align: center; padding: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); border-top: 1px solid var(--border); }
  .ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: var(--col); margin-bottom: 8px; }
  .ba-col { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 18px 20px; }
  .ba-col-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
  .ba-col.after .ba-col-label { color: var(--accent); }
  .ba-item { font-size: 13px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
  .ba-item:last-child { border-bottom: none; padding-bottom: 0; }
  .ba-item strong { color: var(--text); font-weight: 500; }
  .metrics-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; max-width: var(--col); }
  .metric { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 22px; text-align: center; }
  .metric-num { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--text); line-height: 1; margin-bottom: 6px; }
  .metric-num span { color: var(--accent); }
  .metric-label { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
  .tradeoff-list { max-width: var(--col); margin: 22px 0; display: flex; flex-direction: column; gap: 8px; }
  .tradeoff { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 18px 20px; }
  .tradeoff-title { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--text); margin-bottom: 7px; }
  .tradeoff-body { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
  .tradeoff-body em { font-family: var(--font-display); font-style: italic; color: var(--text); }
  .honest-box { max-width: var(--col); background: var(--accent-bg); border: 1px solid var(--accent); border-radius: 6px; padding: 20px 24px; margin-top: 14px; }
  .honest-box p { font-size: 14px; color: var(--muted); line-height: 1.78; }
  .honest-box p strong { color: var(--text); font-weight: 500; }
  .sec-divider { height: 1px; background: var(--border); max-width: var(--col); margin-bottom: 64px; }
  .cs-footer { margin-top: 90px; padding-top: 36px; border-top: 1px solid var(--border); max-width: var(--col); }
  .footer-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 28px; transition: color 0.15s; }
  .footer-back:hover { color: var(--text); }
  .footer-sig { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
  .footer-sig p { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
  .cs-fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .cs-fade-up.visible { opacity: 1; transform: translateY(0); }
  @media (max-width: 880px) {
    .cs-page { grid-template-columns: 1fr; }
    .cs-sidebar { display: none; }
    .cs-main { padding: 0 24px 100px; }
    .site-nav { padding: 16px 20px; }
    .cs-hero { padding-top: 56px; }
    .ba-grid { grid-template-columns: 1fr; }
    .metrics-row { grid-template-columns: repeat(3, 1fr); }
    .meta-row { grid-template-columns: 1fr 1fr; width: auto; }
  }
  @media (max-width: 480px) { .metrics-row { grid-template-columns: 1fr; } }
