:root {
  --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei",
    "Source Han Sans CN", sans-serif;

  /* Proofokei Design System - CSS Variables */
  /* Primary sticky note colors - 70/12/12/6 distribution */
  --yellow-note: #FFFBCC;  /* 70% usage - primary background */
  --blue-note:   #CDEBFF;  /* 12% usage - secondary actions */
  --pink-note:   #FFD9F7;  /* 12% usage - accent actions */
  --orange-note: #FFB56B;  /* 6% usage - highlights/sliders */

  /* Extended color tokens */
  --yellow-note-dark: #F5F1A8;
  --blue-note-hover: #B8E0FF;
  --blue-note-focus: #9DCFFF;
  --pink-note-hover: #FFE5F9;
  --pink-note-focus: #FFCCF3;
  --orange-note-hover: #FFC285;
  --orange-note-focus: #FFA852;

  /* Neutral colors */
  --black: #000000;
  --white: #FFFFFF;

  /* Dynamic Island z-index */
  --z-index-dynamic-island: 9999;

  /* Cursor and UI variables */
  --cursor-magnifier: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><text x='16' y='24' text-anchor='middle' style='font-size:20px;'>🔍</text></svg>") 16 16, pointer;

  /* Height variables to avoid duplication */
  --folder-height-mobile: calc(100vh - 150px);
  --folder-height-mobile-dvh: calc(100dvh - 150px);
  --folder-content-height-mobile: calc(100vh - 200px);
  --folder-content-height-mobile-dvh: calc(100dvh - 200px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  background: #f3f4f6;
  overflow-x: hidden;
}



/* Apply magnifier cursor as default for the entire site */
body {
  cursor: var(--cursor-magnifier);
}

/* Only preserve text cursor for text inputs and text areas */
input, textarea, [contenteditable] {
  cursor: text !important;
}

/* Preserve resize cursor for resizable elements */
.resizable, textarea {
  cursor: auto !important;
}

.main-container {
  position: relative;
  width: 100%;
  max-width: 1425px;
  margin: 0 auto;
  background: #f3f4f6;
  min-height: 100vh;
  /* Add top padding to create space below the notch */
  padding-top: 65px; /* Notch height (~38px) + spacing (27px) */
}

/* Dynamic Island Header (Notch Header) - Following Proofokei Design System */
.dynamic-island-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  user-select: none;
  /* Only transition opacity and transform, not position - prevents initial slide-in */
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.island-content {
  position: relative;
  background: var(--yellow-note, #FFFBCC);
  border: 1px solid #000;
  border-radius: 9999px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: 120px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.island-collapsed {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.island-expanded {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  opacity: 0;
  position: absolute;
  left: 16px;
  right: 16px;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.island-logo {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-07-04/sRTjtqv9A0.png) no-repeat center;
  background-size: contain;
  border-radius: 2px; /* Add slight rounding to match design system */
}

.island-text, .island-title {
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #000;
  transition: opacity 0.15s ease;
}

.island-title {
  font-size: 15px;
  font-weight: 600;
}

.island-links {
  display: flex;
  align-items: center;
  gap: 0px; /* No gap for tightest grouping */
  margin-left: auto;
  padding-right: 2px; /* Less right padding for tighter fit */
  height: 100%;
  justify-content: center;
}

.island-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 2px;
  color: #000;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 44px;
  min-height: 44px;
  margin: 0 2px;
  box-sizing: border-box;
}

/* Enhanced hover state - effects applied to icon only */
.island-link:hover {
  transform: translateY(-1px);
}

/* Focus state for keyboard navigation - consolidated design system approach */
.island-link:focus-visible {
  outline: 2px solid #000000; /* Black outline for accessibility */
  outline-offset: 2px;
  background: rgba(255, 251, 204, 0.8); /* Subtle yellow background */
  box-shadow: 0 0 0 4px rgba(255, 251, 204, 0.5); /* Yellow glow for visibility */
  transform: translateY(-1px);
}

/* Active state with subtle feedback */
.island-link:active {
  transform: translateY(0);
}

/* Clicking state for enhanced feedback */
.island-link.clicking {
  pointer-events: none; /* Prevent rapid clicks */
}

.link-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced icon animation on hover */
.island-link:hover .link-icon {
  stroke-width: 2.5;
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Icon animation on focus */
.island-link:focus-visible .link-icon {
  stroke-width: 2.5;
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Icon animation on active/click */
.island-link:active .link-icon {
  transform: scale(0.85) rotate(-3deg);
  stroke-width: 3;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Enhanced clicking animation */
.island-link.clicking .link-icon {
  animation: iconPulse 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconPulse {
  0% {
    transform: scale(1) rotate(0deg);
    stroke-width: 2;
  }
  25% {
    transform: scale(0.85) rotate(-3deg);
    stroke-width: 3;
  }
  50% {
    transform: scale(1.15) rotate(2deg);
    stroke-width: 2.5;
  }
  75% {
    transform: scale(1.05) rotate(-1deg);
    stroke-width: 2.2;
  }
  100% {
    transform: scale(1) rotate(0deg);
    stroke-width: 2;
  }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .island-link {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .island-link:hover,
  .island-link:focus-visible {
    transform: none;
  }

  .island-link:active {
    transform: none;
  }

  .island-link::before {
    transition: none;
  }

  .link-icon {
    transition: none;
  }

  .island-link:hover .link-icon,
  .island-link:focus-visible .link-icon,
  .island-link:active .link-icon {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .island-link {
    border-width: 2px;
  }

  .island-link:focus-visible {
    box-shadow: 0 0 0 4px rgba(255, 251, 204, 0.6); /* Stronger glow on mobile */
  }
}

/* Hover and Expansion States */
/* Hover and keyboard focus states for accessibility */
.dynamic-island-header:hover .island-content,
.dynamic-island-header:focus-visible .island-content,
.dynamic-island-header:focus-within .island-content {
  min-width: 320px;
  padding: 0 20px; /* Increased padding following 4px grid system */
}

.dynamic-island-header:hover .island-collapsed,
.dynamic-island-header:focus-visible .island-collapsed,
.dynamic-island-header:focus-within .island-collapsed {
  opacity: 0;
  pointer-events: none;
}

.dynamic-island-header:hover .island-expanded,
.dynamic-island-header:focus-visible .island-expanded,
.dynamic-island-header:focus-within .island-expanded {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile tap support and keyboard accessibility */
.dynamic-island-header.expanded .island-content,
.dynamic-island-header:focus .island-content {
  min-width: 320px;
  padding: 0 20px; /* Increased padding following 4px grid system */
}

.dynamic-island-header.expanded .island-collapsed,
.dynamic-island-header:focus .island-collapsed {
  opacity: 0;
  pointer-events: none;
}

.dynamic-island-header.expanded .island-expanded,
.dynamic-island-header:focus .island-expanded {
  opacity: 1;
  pointer-events: auto;
}

/* Removed pulse animation - no longer needed */

/* Old .mikeyokei styles removed - now using Dynamic Island Header */

.flex-row {
  position: relative;
  width: 100%;
  max-width: 1345px;
  margin: 31px auto 0;
  padding: 0 20px;
  z-index: 46;
  display: grid;
  grid-template-columns: minmax(160px, 435px) 1fr; /* Allow left column to shrink when tabs collapse */
  gap: 20px;
  transition: all 0.3s ease; /* Smooth transition when layout changes */
}

/* Responsive grid adjustments based on collapsed state */
.flex-row:has(.left-column.both-tabs-collapsed) {
  grid-template-columns: minmax(160px, 200px) 1fr; /* More aggressive shrinking when both collapsed */
  gap: 15px;
}

.flex-row:has(.left-column.one-tab-collapsed) {
  grid-template-columns: minmax(160px, 300px) 1fr; /* Moderate shrinking when one collapsed */
  gap: 18px;
}

/* New responsive grid adjustments for three-box system */
.flex-row:has(.left-column.all-tabs-collapsed) {
  grid-template-columns: minmax(120px, 150px) 1fr; /* Maximum shrinking when all three collapsed */
  gap: 12px;
}

.flex-row:has(.left-column.two-tabs-collapsed) {
  grid-template-columns: minmax(140px, 180px) 1fr; /* Aggressive shrinking when two collapsed */
  gap: 14px;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease; /* Smooth transitions */
}

/* JavaScript-controlled responsive classes for better browser support */
.left-column.both-tabs-collapsed {
  gap: 8px; /* Reduce gap between collapsed tabs */
  max-width: 160px; /* Further limit width when both collapsed */
  flex-shrink: 2; /* Allow more aggressive shrinking */
}

.left-column.one-tab-collapsed {
  gap: 12px; /* Slightly reduce gap */
  max-width: 250px; /* Moderate width reduction */
  flex-shrink: 1.5; /* Allow moderate shrinking */
}

/* New responsive classes for three-box system */
.left-column.all-tabs-collapsed {
  gap: 6px; /* Minimal gap when all collapsed */
  max-width: 120px; /* Maximum width reduction */
  flex-shrink: 3; /* Maximum shrinking */
}

.left-column.two-tabs-collapsed {
  gap: 8px; /* Small gap when two collapsed */
  max-width: 140px; /* Significant width reduction */
  flex-shrink: 2.5; /* Aggressive shrinking */
}

/* Fallback for browsers that support :has() */
.left-column:has(.div-note.collapsed):has(.div-note-2e.collapsed) {
  gap: 10px;
  max-width: 200px;
}

.left-column:has(.div-note.collapsed),
.left-column:has(.div-note-2e.collapsed),
.left-column:has(.div-note-3f.collapsed) {
  gap: 15px;
  max-width: 300px;
}

/* New fallback :has() selectors for three-box system */
.left-column:has(.div-note.collapsed):has(.div-note-2e.collapsed):has(.div-note-3f.collapsed) {
  gap: 6px;
  max-width: 120px;
}

.left-column:has(.div-note.collapsed):has(.div-note-2e.collapsed),
.left-column:has(.div-note.collapsed):has(.div-note-3f.collapsed),
.left-column:has(.div-note-2e.collapsed):has(.div-note-3f.collapsed) {
  gap: 8px;
  max-width: 140px;
}

.right-column {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px; /* Added bottom padding so folder tabs don't touch the bottom edge */
}

.div-note {
  position: relative;
  width: 100%;
  max-width: 435px;
  background: var(--yellow-note);
  border: 1px solid #000000;
  z-index: 28;
  overflow: hidden; /* Keep hidden for general content */
  border-radius: 2px;
  padding: 16px;
  height: fit-content;
}

/* Special handling for biography text to prevent blur clipping */
.div-note .tab-content-wrapper {
  overflow: visible; /* Allow blur to extend beyond wrapper */
}

.div-note .tab-content-wrapper .text {
  /* Create a larger blur-safe area */
  position: relative;
  z-index: 1;
}

.button-text-xs {
  position: relative;
  width: 79px;
  height: 26px;
  margin-bottom: 25px;
  background: var(--blue-note);
  border: 1px solid #000000;
  z-index: 51;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Override for standardized button classes */
.div-note .btn-base,
.div-note-2e .btn-base {
  position: relative;
  margin-bottom: 25px;
  z-index: 51;
  width: auto;
  min-width: 79px;
}

.about-me {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 12.6px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
  z-index: 52;
}

.mikey {
  display: block;
  position: relative;
  height: auto; /* Allow natural height based on font size */
  margin-bottom: 9px;
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1; /* Proportional line-height to prevent clipping */
  text-align: left;
  white-space: nowrap;
  z-index: 45;
}

.line {
  position: relative;
  width: 100%;
  height: 1px;
  margin-bottom: 15px;
  background: #000000;
  z-index: 29;
}

/* Container for blur effect to prevent clipping */
.text-blur-container {
  position: relative;
  overflow: visible;
  padding: 12px;
  margin: -12px;
  z-index: 50;
}

.text {
  display: block;
  position: relative;
  width: 100%;
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  text-align: left;
  z-index: 51;
  /* Biography blur effect - TEMPORARILY DISABLED */
  /* filter: blur(8px); */
  transition: filter 0.5s ease-in-out;
  cursor: text;
  user-select: text;
}

/* Remove blur when clicked 3 times */
.text.unblurred {
  filter: blur(0px);
  user-select: text;
  cursor: text;
}

/* Hide decorative lines on mobile */
.line-1, .line-2, .line-3, .line-4, .line-5, .line-6, .line-7, .line-8, .line-9, .line-a, .line-b, .line-c, .line-d, .line-e, .line-f {
  display: none;
}

/* Perfect Folder Interface */
.folder-navigation {
  position: relative;
  width: 889px;
  height: 50px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 100;
}

.folder-nav-button {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--yellow-note);
  border: 1px solid #000000;
  border-radius: 50%;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  z-index: 101;
}

.folder-nav-button:hover {
  background: var(--blue-note);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.folder-nav-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Desktop folder labels for navigation buttons - REMOVED */
/* Labels removed per user request */

/* Active state styling is now handled by Framer Motion and specific color rules below */

/* Different colors for different folder buttons */
.folder-nav-button[data-folder="work"] {
  background: var(--yellow-note); /* Yellow for Work */
}

.folder-nav-button[data-folder="type-vault"] {
  background: var(--pink-note); /* Pink for Type Vault */
}

.folder-nav-button[data-folder="tools"] {
  background: var(--blue-note); /* Blue for Tools */
}

/* Hover states maintain color identity */
.folder-nav-button[data-folder="work"]:hover {
  background: #F5F1A8; /* Darker yellow on hover */
}

.folder-nav-button[data-folder="type-vault"]:hover {
  background: #FFE5F9; /* Darker pink on hover */
}

.folder-nav-button[data-folder="tools"]:hover {
  background: #B8E0FF; /* Darker blue on hover */
}

/* Active state uses darker shade of button color instead of orange */
.folder-nav-button[data-folder="work"].active {
  background: #E6E085; /* Darker yellow when active */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.folder-nav-button[data-folder="type-vault"].active {
  background: #FFCCF2; /* Darker pink when active */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.folder-nav-button[data-folder="tools"].active {
  background: #A3D5FF; /* Darker blue when active */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Remove outline only for mouse focus, keep for keyboard navigation */
.folder-nav-button:focus:not(:focus-visible) {
  outline: none;
}

.folder-nav-button[data-folder="work"]:focus {
  background: #E6E085; /* Same as active state */
  box-shadow: 0 0 0 3px rgba(230, 224, 133, 0.5);
}

.folder-nav-button[data-folder="type-vault"]:focus {
  background: #FFCCF2; /* Same as active state - corrected pink */
  box-shadow: 0 0 0 3px rgba(255, 204, 242, 0.5);
}

.folder-nav-button[data-folder="tools"]:focus {
  background: #A3D5FF; /* Same as active state - corrected blue */
  box-shadow: 0 0 0 3px rgba(163, 213, 255, 0.5);
}

/* Optimized vanilla motion animations */
/* Smooth transitions for all folder navigation buttons */
.folder-nav-button {
  transition: all 0.2s ease;
}

.folder-nav-button:hover {
  will-change: transform, background-color, box-shadow;
  transform: translateY(-1px);
}

.folder-nav-button:active {
  will-change: transform;
  transform: translateY(0);
}

.folder-nav-button.active {
  will-change: transform, box-shadow;
  transform: scale(1.1);
  animation: subtle-pulse 2s ease-in-out infinite;
}

/* Clickable Tab Labels Overlay - Desktop Only */
.tab-labels-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* Full width of folders-stack */
  height: 100%; /* Full height of folders-stack */
  z-index: 200; /* Higher than folder containers */
  pointer-events: none; /* Allow clicks to pass through container */
}

.clickable-tab-label {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0; /* Remove padding to match exact folder label positioning */
  min-width: 44px; /* Minimum touch target size */
  min-height: 32px; /* Minimum touch target size */
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-weight: 500;
  font-size: 19px;
  line-height: 28px; /* Match folder label line-height */
  color: #000000;
  cursor: pointer;
  user-select: none;
  pointer-events: auto; /* Enable clicks on individual buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
  z-index: 201;
}

/* Position clickable labels at their corresponding tab positions */
.clickable-tab-label[data-folder="type-vault"] {
  top: 6.65px;
  left: 0px;
  width: 164.5px;
  height: 28px;
}

.clickable-tab-label[data-folder="tools"] {
  top: 6.65px;
  left: 130px;
  width: 164.5px;
  height: 28px;
}

/* All tab labels are visible and clickable */
.clickable-tab-label {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Animation states for teleport transitions - all tabs remain visible */
.clickable-tab-label.teleporting-out {
  opacity: 0;
  transform: translateY(-3px) scale(0.95);
  pointer-events: none; /* Prevent interaction during teleport */
}

.clickable-tab-label.teleporting-in {
  opacity: 0;
  transform: translateY(3px) scale(1.05);
  pointer-events: none; /* Prevent interaction during teleport */
}

.clickable-tab-label.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto; /* Allow interaction when visible */
}

/* All tab labels are visible by default - no hiding */
.clickable-tab-label {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Tab name positioning - static positions, no movement animation */

/* Active tab label styling - removed bold effect */
.clickable-tab-label.active {
  color: #000000;
}

/* Hover effects for clickable tab labels */
.clickable-tab-label:hover {
  color: #333;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1); /* Subtle background on hover */
  border-radius: 4px;
}

.clickable-tab-label:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.2); /* Slightly more visible on click */
}

/* Active state for clickable tab labels - removed duplicate bold */
.clickable-tab-label.active {
  color: #000;
}

/* Focus states for accessibility */
.clickable-tab-label:focus-visible {
  outline: 2px solid #0066CC;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hide round navigation buttons on desktop when clickable labels are available */
@media (min-width: 769px) {
  .folder-navigation {
    display: none;
  }
}

/* Hide clickable tab labels on mobile */
@media (max-width: 768px) {
  .tab-labels-overlay {
    display: none;
  }

  .folder-navigation {
    display: flex; /* Show round buttons on mobile */
  }
}

@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
}

/* Optimized content transitions with vanilla motion */
.folder-content {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* Optimized folder transition animations - GPU accelerated */
.folder-container {
  will-change: auto;
  transition: left 0.2s ease;
}

.folder-container.transitioning {
  /* Use will-change only during transition for better performance */
  will-change: opacity, transform;
  /* Faster, smoother cubic-bezier for snappier feel */
  transition: opacity 120ms cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 120ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.folder-content.transitioning {
  will-change: opacity, transform;
  transition: opacity 100ms cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 100ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.folder-container.entering {
  opacity: 0;
  /* Use translate3d for GPU acceleration */
  transform: translate3d(0, -10px, 0);
}

.folder-container.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.folder-container.exiting {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

/* Ensure smooth transitions for inactive folders */
.folder-container:not(.active):not(.transitioning) {
  pointer-events: none;
}

.folders-stack {
  position: relative;
  width: 889px;
  height: 1290.74px;
}

.folder-container {
  position: absolute;
  width: 889px;
  height: 1290.74px;
}

/* Folder with fill */
.folder {
  position: relative;
  width: 889px;
  height: 1290.74px;
  background: var(--yellow-note);
  border-radius: 2px; /* Reduced to 2px for subtle rounded corners */
  clip-path: polygon(
    0 3.2%,
    0 0,
    15.55% 0,
    18.5% 3.2%,
    100% 3.2%,
    100% 100%,
    0 100%
  );
  z-index: 1;
}

/* SVG outline for perfect edge rendering */
.folder-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 889px;
  height: 1290.74px;
  z-index: 3;
  pointer-events: none;
  border-radius: 2px; /* Match folder radius */
}

/* Make SVG outline joins rounded to match new radius */
.folder-svg path {
  stroke-linejoin: round;
}

/* Clip SVG borders for inactive folders to show tab and full-height extended body */
.folder-container:not(.active) .folder-svg {
  clip-path: polygon(
    0 0,
    25% 0,
    25% 15%,
    18.5% 15%,
    18.5% 3.2%,
    0 3.2%
  );
}

/* Folder label */
.folder-label {
  position: absolute;
  top: 6.65px;
  left: 0;
  width: 164.5px; /* Width of the tab area (up to the angled cut) */
  height: 28px;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-style: normal;
  font-weight: 500;
  font-size: 19px;
  line-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center; /* Center the text horizontally */
  color: #000000;
  z-index: 10;
  pointer-events: none;
}

/* Folder content area */
.folder-content {
  position: absolute;
  top: 61px;
  left: 20px;
  right: 20px;
  bottom: 59px;
  overflow-y: auto;
  z-index: 25;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: translateY(10px);
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

/* Inactive folder content is hidden */
.folder-container:not(.active) .folder-content {
  display: none;
}

/* Active folder content is visible */
.folder-container.active .folder-content {
  display: block;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Folder stacking - Work folder on top */
.folder-container[data-tab="work"] {
  z-index: 30;
  left: 0px;
}

/* Type Vault folder behind and offset */
.folder-container[data-tab="type-vault"] {
  z-index: 20;
  left: 130px;
}

/* Tools folder behind and offset — same single-step offset as Type Vault */
.folder-container[data-tab="tools"] {
  z-index: 10;
  left: 130px;
}

/* Pseudo Work tab - sits behind everything for seamless transitions */
.folder-container[data-tab="pseudo-work"] {
  z-index: 5; /* Lower than all other tabs but above background */
  left: 0px; /* Same position as Work tab */
  pointer-events: none; /* Non-interactive */
  opacity: 0; /* Hidden by default */
  position: absolute; /* Ensure proper positioning */
  top: 0; /* Align with other folders */
  transition: none; /* Disable all transitions by default */
}

/* When pseudo tab is visible at Work position to fill gap */
.folder-container[data-tab="pseudo-work"].show-at-work {
  left: 0px !important; /* Work position */
  opacity: 1 !important; /* Make visible */
  z-index: 25 !important; /* Higher than all inactive tabs but lower than active */
  transition: none !important; /* No transitions when filling gap */
}



/* Active folder styling */
.folder-container.active {
  z-index: 50 !important; /* Higher z-index to ensure it's always on top */
  left: 0px !important; /* Align with navigation buttons */
}

/* Inactive folders maintain their offset positions */
.folder-container:not(.active)[data-tab="work"] {
  left: 0px; /* Work stays at left when inactive */
}

.folder-container:not(.active)[data-tab="type-vault"] {
  left: 130px; /* Type Vault in middle when inactive */
}

.folder-container:not(.active)[data-tab="tools"] {
  left: 130px; /* Tools at one-tab offset when inactive */
}

/* Pseudo Work tab positioning states */
.folder-container[data-tab="pseudo-work"].show-at-type-vault {
  left: 130px !important; /* Move to Type Vault position */
  opacity: 1 !important; /* Make visible */
  transition: left 0.1s ease-out, opacity 0.1s ease-out !important; /* Fast transition for smooth positioning */
}

.folder-container[data-tab="pseudo-work"].show-at-tools {
  left: 260px !important; /* Move to Tools position */
  opacity: 1 !important; /* Make visible */
  transition: left 0.1s ease-out, opacity 0.1s ease-out !important; /* Fast transition for smooth positioning */
}

/* Ensure pseudo tab has same visual styling as Work tab */
.folder-container[data-tab="pseudo-work"] .folder {
  background: var(--yellow-note); /* Same yellow background as Work */
  clip-path: polygon(
    0 3.2%,
    0 0,
    15.55% 0,
    18.5% 3.2%,
    25% 3.2%,
    25% 15%,
    18.5% 15%,
    18.5% 3.2%,
    0 3.2%
  ); /* Same inactive tab shape as other folders */
}

/* Pseudo tab label styling */
.folder-container[data-tab="pseudo-work"] .folder-label {
  color: #000000; /* Same text color as Work tab */
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-weight: 500;
  font-size: 19px;
}

/* Pseudo tab SVG styling */
.folder-container[data-tab="pseudo-work"] .folder-svg {
  clip-path: polygon(
    0 0,
    25% 0,
    25% 15%,
    18.5% 15%,
    18.5% 3.2%,
    0 3.2%
  ); /* Same clipping as inactive tabs */
}

/* Z-index management during transitions */
.folder-container[data-tab="pseudo-work"].show-at-type-vault,
.folder-container[data-tab="pseudo-work"].show-at-tools {
  z-index: 15; /* Higher than inactive tabs but lower than active */
}

/* Ensure active folder always stays on top during transitions */
.folder-container.active {
  z-index: 50 !important; /* Highest priority */
}

/* Transitioning folders get intermediate z-index */
.folder-container.transitioning {
  z-index: 40; /* Higher than normal but lower than active */
}

/* Different colors for inactive tabs */
.folder-container[data-tab="type-vault"]:not(.active) .folder {
  background: var(--pink-note); /* Pink for Type Vault when inactive */
}

.folder-container[data-tab="tools"]:not(.active) .folder {
  background: var(--blue-note); /* Blue for Tools when inactive */
}

.folder-container[data-tab="tools"].active .folder {
  background: var(--blue-note); /* Keep Tools folder blue when active */
}

.folder-container[data-tab="type-vault"].active .folder {
  background: var(--pink-note); /* Keep Type Vault folder pink when active */
}

/* Non-active folders show tabs and full-height extended body for easier clicking */
.folder-container:not(.active) .folder {
  clip-path: polygon(
    0 3.2%,
    0 0,
    15.55% 0,
    18.5% 3.2%,
    25% 3.2%,
    25% 15%,
    18.5% 15%,
    18.5% 3.2%,
    0 3.2%
  );
}

/* Folder content visibility is now handled by JavaScript for smooth animations */

/* Ensure inactive folders extend beyond container for easier clicking */
.folder-container:not(.active) {
  overflow: visible;
}

/* Hover lift for inactive folders */

.folder-container:not(.active):hover {
  transform: translateY(-2px);
}

.folder-container[data-tab="work"]:not(.active):hover .folder {
  background: #F5F1A8; /* Darker yellow for work folder hover */
  transition: background-color 0.2s ease;
}

.folder-container[data-tab="type-vault"]:not(.active):hover .folder {
  background: #FFE5F9; /* Darker pink for type vault hover */
  transition: background-color 0.2s ease;
}

.folder-container[data-tab="tools"]:not(.active):hover .folder {
  background: #B8E0FF; /* Darker blue for tools hover */
  transition: background-color 0.2s ease;
}

.folder-container:not(.active):hover .folder-label {
  color: #333; /* Darker text on hover */
  transition: color 0.2s ease;
}

/* Removed redundant active state transitions to prevent conflicts with Framer Motion */

/* Tab area specific interactions */
.folder-label {
  transition: all 0.2s ease;
  user-select: none;
}

/* Enhanced focus states for accessibility - use design system approach */
.folder-container:focus {
  box-shadow: 0 0 0 3px rgba(205, 235, 255, 0.6); /* Blue glow for folder focus */
}

.folder-container:focus:not(.active) {
  transform: translateY(-1px);
}

/* Subtle shadow on hover for inactive tabs */
.folder-container:not(.active):hover::before {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

/* Active folder gets a subtle glow */
.folder-container.active::before {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Prevent text selection on folder interactions */
.folders-stack {
  user-select: none;
}

/* Simplified folder transitions - only background color changes */
.folder-container .folder {
  transition: background-color 0.2s ease;
}

/* Enhanced click feedback */
.folder-container:not(.active):active {
  transform: translateY(0);
}

/* Improve tab label readability */
.folder-label {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Content styling */
.type-vault-grid,
.tools-grid {
  padding: 20px 0;
}

.type-vault-grid h3,
.tools-grid h3 {
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 24px;
  font-weight: 600;
  color: black;
  margin-bottom: 16px;
}

.type-vault-grid p,
.tools-grid p {
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 16px;
  color: black;
  line-height: 1.5;
}

/* Portfolio grid */
.frame {
  position: relative;
  width: 100%;
  z-index: 19;
  overflow: visible; /* Changed from hidden to visible to prevent content clipping */
  padding: 0;
  margin-bottom: -20px; /* Negative margin to push content closer to bottom border */
  min-height: 100%; /* Ensure frame takes full height */
}

.flex-row-20, .flex-row-24, .flex-row-a, .flex-row-d, .flex-row-e, .flex-row-f {
  position: relative;
  width: 100%;
  height: 275px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  z-index: 75;
}

/* Tools intro section */
.tools-intro {
  margin-bottom: 24px;
  padding: 0 16px;
}

.tools-description {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* Portfolio thumbnails */
.exlbit-thumbnail, .dcf, .nghen-thumbnail, .bong-hoa-nho-thumbnail,
.cason-thumbnail, .otique-thumbnail, .cheltender-thumbnail, .sooper-thumbnail,
.koke-kaffe-thumbnail, .gia-thumbnail, .mikey-sleek-thumbnail, .nuff-juice-thumbnail,
.proofokei-thumbnail, .type-toolkit-thumbnail, .kernokei-thumbnail, .letter-templates-thumbnail,
.dooing-generator-thumbnail, .relationship-construction-thumbnail {
  position: relative;
  width: 100%;
  height: 275px;
  border: 1px solid #000000;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Apply blue monotone filter only to background images, not buttons */
.exlbit-thumbnail::before, .dcf::before, .nghen-thumbnail::before, .bong-hoa-nho-thumbnail::before,
.cason-thumbnail::before, .otique-thumbnail::before, .cheltender-thumbnail::before, .sooper-thumbnail::before,
.koke-kaffe-thumbnail::before, .gia-thumbnail::before, .mikey-sleek-thumbnail::before, .nuff-juice-thumbnail::before,
.proofokei-thumbnail::before, .type-toolkit-thumbnail::before, .kernokei-thumbnail::before, .letter-templates-thumbnail::before,
.dooing-generator-thumbnail::before, .relationship-construction-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  filter: grayscale(100%) sepia(100%) hue-rotate(200deg) saturate(50%) brightness(0.9);
  transition: filter 0.3s ease;
  z-index: 1;
}

/* Remove filter on hover to show original colors */
.exlbit-thumbnail:hover::before, .dcf:hover::before, .nghen-thumbnail:hover::before, .bong-hoa-nho-thumbnail:hover::before,
.cason-thumbnail:hover::before, .otique-thumbnail:hover::before, .cheltender-thumbnail:hover::before, .sooper-thumbnail:hover::before,
.koke-kaffe-thumbnail:hover::before, .gia-thumbnail:hover::before, .mikey-sleek-thumbnail:hover::before, .nuff-juice-thumbnail:hover::before,
.proofokei-thumbnail:hover::before, .type-toolkit-thumbnail:hover::before, .kernokei-thumbnail:hover::before, .letter-templates-thumbnail:hover::before,
.dooing-generator-thumbnail:hover::before, .relationship-construction-thumbnail:hover::before {
  filter: none;
}

/* Ensure buttons and labels stay above the filtered background */
.exlbit-thumbnail > *, .dcf > *, .nghen-thumbnail > *, .bong-hoa-nho-thumbnail > *,
.cason-thumbnail > *, .otique-thumbnail > *, .cheltender-thumbnail > *, .sooper-thumbnail > *,
.koke-kaffe-thumbnail > *, .gia-thumbnail > *, .mikey-sleek-thumbnail > *, .nuff-juice-thumbnail > *,
.proofokei-thumbnail > *, .type-toolkit-thumbnail > *, .kernokei-thumbnail > *, .letter-templates-thumbnail > *,
.dooing-generator-thumbnail > *, .relationship-construction-thumbnail > * {
  position: relative;
  z-index: 2;
}

/* Video thumbnails */
.thumbnail-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 2px;
  /* Apply blue monotone filter to videos */
  filter: grayscale(100%) sepia(100%) hue-rotate(200deg) saturate(50%) brightness(0.9);
  transition: filter 0.3s ease;
}

/* Image thumbnails */
.thumbnail-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 2px;
  /* Apply blue monotone filter to images */
  filter: grayscale(100%) sepia(100%) hue-rotate(200deg) saturate(50%) brightness(0.9);
  transition: filter 0.3s ease;
}

/* Remove filter on hover for images */
/* No image thumbnails currently - all tools now use videos */

/* Remove filter on hover for videos */
.cheltender-thumbnail:hover .thumbnail-video,
.proofokei-thumbnail:hover .thumbnail-video,
.type-toolkit-thumbnail:hover .thumbnail-video,
.kernokei-thumbnail:hover .thumbnail-video,
.letter-templates-thumbnail:hover .thumbnail-video,
.dooing-generator-thumbnail:hover .thumbnail-video,
.relationship-construction-thumbnail:hover .thumbnail-video {
  filter: none;
}

/* Cheltender video - fill frame and crop browser bar */
.cheltender-thumbnail .thumbnail-video {
  width: 120%;
  height: 120%;
  top: -15%;
  left: -10%;
  object-fit: cover;
}

/* Year tabs */
.year-tab {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 26px;
  background: #E8E8E8;
  border: 1px solid #000000;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  z-index: 15;
  min-width: 44px;
}

.year-text {
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 12.6px;
  font-weight: 500;
  color: #000000;
  line-height: 1;
}

/* Filter functionality */
.filter-btn {
  transition: all 0.3s ease;
  user-select: none;
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background: #000000 !important;
  color: var(--yellow-note) !important;
}

.filter-btn.active span {
  color: var(--yellow-note) !important;
}

/* Portfolio item visibility */
.portfolio-item {
  transition: all 0.4s ease;
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  visibility: hidden; /* Prevent keyboard focus */
}

/* Smooth grid transitions */
.frame {
  transition: all 0.4s ease;
}

/* Thumbnail links */
.thumbnail-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.thumbnail-link:hover {
  transform: translateY(-2px);
}

.thumbnail-link:active {
  transform: translateY(0);
}

/* Coming soon overlay */
.coming-soon {
  position: relative;
  /* Coming soon thumbnails inherit the same blue monotone filter from parent thumbnail class */
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  /* Hide overlay by default */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Show overlay on hover */
.coming-soon:hover .coming-soon-overlay {
  opacity: 1;
  visibility: visible;
}

/* Show overlay on click/active state */
.coming-soon:active .coming-soon-overlay,
.coming-soon.clicked .coming-soon-overlay {
  opacity: 1;
  visibility: visible;
}

.coming-soon-text {
  color: var(--yellow-note);
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* Animate text on show */
.coming-soon:hover .coming-soon-text,
.coming-soon:active .coming-soon-text,
.coming-soon.clicked .coming-soon-text {
  transform: scale(1);
}

/* Typeface project thumbnail backgrounds */
.cason-thumbnail {
  background-image: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-07-04/mPdSNnSh2L.png);
}

.otique-thumbnail {
  background-image: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-07-04/0mJahRpbEq.png);
}

.sooper-thumbnail {
  background-image: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-07-04/cwvSuCSiWQ.png);
}

/* Project labels */
.button-xs, .button-xs-18, .button-xs-19, .button-xs-1a, .button-xs-1c, .button-xs-1d, .button-xs-1e, .button-xs-1f,
.button-xs-21, .button-xs-22, .button-text-xs-25, .button-text-xs-26, .button-text-xs-27, .button-text-xs-28,
.button-text-xs-2a, .button-text-xs-2c, .button-text-xs-dcf, .button-text-xs-dcf-cat, .button-text-xs-bong,
.button-text-xs-bong-cat, .button-text-xs-otique, .button-text-xs-otique-cat, .button-text-xs-sooper,
.button-text-xs-sooper-cat, .button-text-xs-koke, .button-text-xs-koke-cat, .button-text-xs-gia,
.button-text-xs-gia-cat, .button-text-xs-mikey-sleek, .button-text-xs-mikey-sleek-cat, .button-text-xs-nuff,
.button-text-xs-nuff-cat, .tool-category {
  position: absolute;
  height: 26px;
  border: 1px solid #000000;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  z-index: 60;
}

/* Blue labels */
.button-xs, .button-xs-19, .button-xs-1c, .button-xs-1e, .button-xs-21, .button-text-xs-25, .button-text-xs-27, .button-text-xs-2a {
  background: var(--blue-note);
  top: 16px;
  left: 16px;
}

/* Blue labels for new project names */
.button-text-xs-dcf, .button-text-xs-bong, .button-text-xs-otique, .button-text-xs-sooper,
.button-text-xs-koke, .button-text-xs-gia, .button-text-xs-mikey-sleek, .button-text-xs-nuff {
  background: var(--blue-note);
  top: 16px;
  left: 16px;
}

/* Yellow labels */
.button-xs-18, .button-xs-1a, .button-xs-1d, .button-xs-1f, .button-xs-22, .button-text-xs-26, .button-text-xs-28, .button-text-xs-2c {
  background: var(--yellow-note);
  top: 46px;
  left: 16px;
}

/* Yellow labels for new project categories */
.button-text-xs-dcf-cat, .button-text-xs-bong-cat, .button-text-xs-otique-cat, .button-text-xs-sooper-cat,
.button-text-xs-koke-cat, .button-text-xs-gia-cat, .button-text-xs-mikey-sleek-cat, .button-text-xs-nuff-cat, .tool-category {
  background: var(--yellow-note);
  top: 46px;
  left: 16px;
}

/* Label text */
.sooper, .otique, .bong-hoa-nho, .the-metamorphosis, .exlbit, .nghen, .cheltender, .cheltender-2b,
.typeface-design, .typeface-design-1b, .branding-design, .branding-design-23, .book-design, .product-design, .typeface-design-29, .typeface-design-2d,
.dcf-name, .dcf-category, .bong-name, .bong-category, .otique-name, .otique-category, .sooper-name, .sooper-category,
.koke-name, .koke-category, .gia-name, .gia-category, .mikey-sleek-name, .mikey-sleek-category, .nuff-name, .nuff-category, .tool-name, .category-text {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 12.6px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
}

/* Ensure proper positioning for all thumbnails */
.exlbit-thumbnail, .dcf, .nghen-thumbnail, .bong-hoa-nho-thumbnail, 
.cason-thumbnail, .otique-thumbnail, .cheltender-thumbnail, .sooper-thumbnail, .nuff-juice-thumbnail {
  position: relative;
}

/* Make sure labels are positioned relative to their thumbnails */
.flex-row-20 .button-xs-21, .flex-row-20 .button-xs-22 {
  position: absolute;
  z-index: 60;
}

.flex-row-20 .button-text-xs-dcf, .flex-row-20 .button-text-xs-dcf-cat {
  position: absolute;
  z-index: 60;
}

.flex-row-24 .button-text-xs-25, .flex-row-24 .button-text-xs-26 {
  position: absolute;
  z-index: 60;
}

.flex-row-24 .button-text-xs-bong, .flex-row-24 .button-text-xs-bong-cat {
  position: absolute;
  z-index: 60;
}

.flex-row-a .button-text-xs-27, .flex-row-a .button-text-xs-28 {
  position: absolute;
  z-index: 60;
}

.flex-row-a .button-text-xs-otique, .flex-row-a .button-text-xs-otique-cat {
  position: absolute;
  z-index: 60;
}

.flex-row-d .button-text-xs-2a, .flex-row-d .button-text-xs-2c {
  position: absolute;
  z-index: 60;
}

.flex-row-d .button-text-xs-sooper, .flex-row-d .button-text-xs-sooper-cat {
  position: absolute;
  z-index: 60;
}

/* Position labels for typeface project thumbnails */

.otique-thumbnail .button-text-xs-otique {
  top: 16px;
  left: 16px;
}

.otique-thumbnail .button-text-xs-otique-cat {
  top: 46px;
  left: 16px;
}

.sooper-thumbnail .button-text-xs-sooper {
  top: 16px;
  left: 16px;
}

.sooper-thumbnail .button-text-xs-sooper-cat {
  top: 46px;
  left: 16px;
}

.mikey-sleek-thumbnail .button-text-xs-mikey-sleek {
  top: 16px;
  left: 16px;
}

.mikey-sleek-thumbnail .button-text-xs-mikey-sleek-cat {
  top: 46px;
  left: 16px;
}

/* Education section */
.div-note-2e {
  position: relative;
  width: 100%;
  background: var(--yellow-note);
  border: 1px solid #000000;
  z-index: 46;
  overflow: hidden;
  border-radius: 2px;
  padding: 18px 17px;
  height: fit-content;
}

.button-text-xs-2f {
  position: relative;
  width: 79px;
  height: 26px;
  margin-bottom: 23px;
  background: var(--blue-note);
  border: 1px solid #000000;
  z-index: 47;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Override for education section standardized button */
.div-note-2e .btn-base {
  margin-bottom: 23px;
  z-index: 47;
}

/* Career section */
.div-note-3f {
  position: relative;
  width: 100%;
  background: var(--yellow-note);
  border: 1px solid #000000;
  z-index: 46;
  overflow: hidden;
  border-radius: 2px;
  padding: 18px 17px;
  height: fit-content;
}

/* Override for career section standardized button */
.div-note-3f .btn-base {
  margin-bottom: 23px;
  z-index: 47;
}

/* Collapsible Tab Styles */
.div-note, .div-note-2e, .div-note-3f {
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden; /* Ensure smooth collapse */
}

/* Default expanded state */
.div-note.expanded, .div-note-2e.expanded, .div-note-3f.expanded {
  height: auto;
  padding: 16px; /* div-note default */
}

.div-note-2e.expanded {
  padding: 18px 17px; /* div-note-2e specific padding */
}

.div-note-3f.expanded {
  padding: 18px 17px; /* div-note-3f specific padding */
}

/* Collapsed state - desktop behavior (shrink width) */
.div-note.collapsed, .div-note-2e.collapsed, .div-note-3f.collapsed {
  height: auto;
  min-height: 50px; /* Ensure button is visible */
  padding: 6px 12px; /* More compact padding for collapsed state */
  width: fit-content; /* Shrink to content size on desktop */
  max-width: 100px; /* Tighter limit when collapsed on desktop */
  flex-shrink: 1; /* Allow shrinking in flex layouts */
  border-radius: 4px; /* Slightly more rounded when collapsed for visual distinction */
}

/* Collapsed state button styling - compact, minimal design */
.div-note.collapsed .btn-base, .div-note-2e.collapsed .btn-base, .div-note-3f.collapsed .btn-base {
  margin-bottom: 0; /* Remove bottom margin when collapsed */
  position: relative;
  z-index: 60; /* Higher z-index to ensure clickability */
  border: none !important; /* Remove border when collapsed to avoid nested box appearance */
  background: transparent; /* Remove blue background when collapsed */

  /* Compact sizing - minimal padding around text */
  padding: 8px 12px !important; /* Reduced padding for compact appearance */
  width: auto !important; /* Auto width to wrap text content */
  min-width: auto !important; /* Remove fixed min-width */

  /* Text positioning - more left-aligned for visual balance */
  display: flex !important;
  align-items: center !important; /* Perfect vertical centering */
  justify-content: flex-start !important; /* Align text to the left side */
  text-align: left !important; /* Left-align text within button */
  align-content: center !important; /* Additional centering for multi-line content */
  padding-left: 32px !important; /* Further increased left padding to move text more to the left */

  /* Typography for compact appearance */
  font-size: 12.6px; /* Maintain design system font size */
  line-height: 1.2; /* Tighter line height for compactness */
  white-space: nowrap; /* Prevent text wrapping */
}

/* Ensure button elements don't have default button styling conflicts */
.div-note .btn-base[role="button"], .div-note-2e .btn-base[role="button"] {
  border: 1px solid #000;
  background: var(--blue-note);
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 12.6px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
}

/* Override blue background and border for collapsed state - compact styling */
.div-note.collapsed .btn-base[role="button"], .div-note-2e.collapsed .btn-base[role="button"], .div-note-3f.collapsed .btn-base[role="button"] {
  background: transparent !important; /* Use !important to override the general rule */
  border: none !important; /* Remove inner border when collapsed to avoid nested box appearance */

  /* Ensure compact styling for role="button" elements */
  padding: 8px 12px !important; /* Compact padding */
  width: auto !important; /* Auto width to fit content */
  min-width: auto !important; /* Remove fixed width constraints */
}

/* WCAG 2.2 Accessible Focus Indicators - Use :focus-visible for keyboard navigation only */

/* Remove default outline only when custom focus styles are applied */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

/* Accessible focus indicators for keyboard navigation with 3:1 contrast ratio */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
a:focus-visible {
  outline: 2px solid #0066CC; /* High contrast blue outline */
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.3); /* Additional glow for visibility */
}



.folder-nav-button:focus-visible {
  outline: none; /* Remove outline per user preference */
  /* Focus indication handled by background color change and box-shadow */
}

.btn-base:focus-visible {
  outline: 2px solid #000000; /* Black outline for buttons */
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(205, 235, 255, 0.6); /* Blue glow for buttons */
}

.thumbnail-link:focus-visible,
.portfolio-item:focus-visible {
  outline: 2px solid #0066CC; /* High contrast blue for portfolio items */
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.3);
}

.filter-btn:focus-visible {
  outline: 2px solid #000000; /* Black outline for filter buttons */
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Content wrapper for smooth animations */
.tab-content-wrapper {
  transition: all 0.3s ease-in-out;
  overflow: hidden; /* Keep hidden for general animations */
}

/* Collapsed content wrapper */
.div-note.collapsed .tab-content-wrapper,
.div-note-2e.collapsed .tab-content-wrapper,
.div-note-3f.collapsed .tab-content-wrapper {
  opacity: 0;
  height: 0;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* Expanded content wrapper */
.div-note.expanded .tab-content-wrapper,
.div-note-2e.expanded .tab-content-wrapper,
.div-note-3f.expanded .tab-content-wrapper {
  opacity: 1;
  height: auto;
  visibility: visible;
}

/* Hover effects for collapsed tabs */
.div-note.collapsed:hover, .div-note-2e.collapsed:hover, .div-note-3f.collapsed:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Focus states for accessibility - use darker shade instead of outline for mouse focus only */
.div-note.collapsed:focus-within:not(:focus-visible), .div-note-2e.collapsed:focus-within:not(:focus-visible), .div-note-3f.collapsed:focus-within:not(:focus-visible) {
  outline: none; /* Remove outline for mouse focus only */
}

.div-note.collapsed:focus-within .btn-base, .div-note-2e.collapsed:focus-within .btn-base, .div-note-3f.collapsed:focus-within .btn-base {
  /* No visual feedback for focus when collapsed - maintain clean appearance */
  background: transparent;
  box-shadow: none; /* Remove any glow/outline effects */
}

/* Button hover effects when collapsed - minimal feedback */
.div-note.collapsed .btn-base:hover, .div-note-2e.collapsed .btn-base:hover, .div-note-3f.collapsed .btn-base:hover {
  background: transparent; /* Keep transparent background */
  transform: translateY(-1px); /* Subtle movement feedback only */
  box-shadow: none; /* No glow effects */
}

/* Active/pressed state for buttons - minimal feedback */
.div-note.collapsed .btn-base:active, .div-note-2e.collapsed .btn-base:active, .div-note-3f.collapsed .btn-base:active {
  background: transparent; /* Keep transparent background */
  transform: translateY(0); /* Reset position when pressed */
  box-shadow: none; /* Remove any shadow effects */
}

/* Override general btn-base focus rule for collapsed buttons - higher specificity */
.div-note.collapsed .btn-base:focus:not(:focus-visible), .div-note-2e.collapsed .btn-base:focus:not(:focus-visible), .div-note-3f.collapsed .btn-base:focus:not(:focus-visible) {
  background: transparent !important; /* Override general focus background */
  box-shadow: none !important; /* Remove any focus glow/outline */
  outline: none !important; /* Remove outline for mouse focus only */
}

/* Expanded state button styling */
.div-note.expanded .btn-base:hover, .div-note-2e.expanded .btn-base:hover, .div-note-3f.expanded .btn-base:hover {
  background: var(--blue-note-hover);
  transform: translateY(-1px);
}

.div-note.expanded .btn-base:active, .div-note-2e.expanded .btn-base:active, .div-note-3f.expanded .btn-base:active {
  background: #A3D5FF;
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive layout adjustments when tabs are collapsed - extend folder width */
.div-note.collapsed ~ .div-folder-container .div-folder,
.div-note-2e.collapsed ~ .div-folder-container .div-folder {
  width: calc(100% + 120px); /* Extend folder beyond normal width when tabs are collapsed */
  max-width: none; /* Remove max-width constraint */
  margin-right: -120px; /* Negative margin to allow extension beyond container */
}

.div-note.expanded .btn-base:focus:not(:focus-visible), .div-note-2e.expanded .btn-base:focus:not(:focus-visible), .div-note-3f.expanded .btn-base:focus:not(:focus-visible) {
  background: #A3D5FF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(163, 213, 255, 0.5);
}

/* Expanded state button styling */
.div-note.expanded .btn-base:hover, .div-note-2e.expanded .btn-base:hover, .div-note-3f.expanded .btn-base:hover {
  background: var(--blue-note-hover);
  transform: translateY(-1px);
}

.div-note.expanded .btn-base:active, .div-note-2e.expanded .btn-base:active, .div-note-3f.expanded .btn-base:active {
  background: #A3D5FF;
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.div-note.expanded .btn-base:focus, .div-note-2e.expanded .btn-base:focus, .div-note-3f.expanded .btn-base:focus {
  background: #A3D5FF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(163, 213, 255, 0.5);
}

/* Ensure proper stacking when collapsed */
.div-note.collapsed, .div-note-2e.collapsed, .div-note-3f.collapsed {
  z-index: 55; /* Higher than normal but lower than active elements */
}

/* Smooth transitions for all interactive elements */
.div-note .btn-base, .div-note-2e .btn-base, .div-note-3f .btn-base {
  transition: all 0.2s ease-in-out;
}

/* Maintain minimum touch target size for mobile while keeping compact design */
.div-note.collapsed .btn-base, .div-note-2e.collapsed .btn-base, .div-note-3f.collapsed .btn-base {
  min-height: 44px; /* iOS minimum touch target for accessibility */
  /* Remove min-width constraint to allow compact horizontal sizing */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSS-only animation fallbacks */
@media (prefers-reduced-motion: no-preference) {
  .tab-content-wrapper {
    transition: opacity 0.3s ease-in-out,
                height 0.3s ease-in-out,
                transform 0.3s ease-in-out;
  }

  .div-note.collapsed .tab-content-wrapper,
  .div-note-2e.collapsed .tab-content-wrapper,
  .div-note-3f.collapsed .tab-content-wrapper {
    transform: translateY(-10px);
  }

  .div-note.expanded .tab-content-wrapper,
  .div-note-2e.expanded .tab-content-wrapper,
  .div-note-3f.expanded .tab-content-wrapper {
    transform: translateY(0);
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .div-note, .div-note-2e, .div-note-3f, .tab-content-wrapper,
  .div-note .btn-base, .div-note-2e .btn-base, .div-note-3f .btn-base {
    transition: none;
  }
}

.education {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 12.6px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
  z-index: 48;
}

.career {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 12.6px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
  z-index: 48;
}

.career-company {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 18.68px;
  font-weight: 500;
  line-height: 25.24px;
  letter-spacing: -0.44px;
}

.career-duration {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 18.68px;
  font-weight: 500;
  line-height: 25.24px;
  letter-spacing: -0.44px;
}

.career-title {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 16.41px;
  font-weight: 300;
  line-height: 25.24px;
  letter-spacing: -0.44px;
}

.type-west {
  position: relative;
  width: 100%;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 18.68px;
  font-weight: 500;
  line-height: 25.24px;
  text-align: left;
  letter-spacing: -0.44px;
  z-index: 49;
  font-variation-settings: 'wdth' 95; /* Make all education text slightly narrower */
}

.type-west-30, .type-west-31, .type-west-32, .type-west-34, .type-west-36, .type-west-39 {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 18.68px;
  font-weight: 500;
  line-height: 25.24px;
  letter-spacing: -0.44px;
}

/* Education links styling */
.education-link {
  color: #000000;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 2px;
  padding: 1px 2px;
  display: inline;
}

.education-link:hover {
  background-color: var(--blue-note);
  text-decoration: none;
  transform: translateY(-1px);
}

.education-link:focus {
  outline: 2px solid var(--blue-note);
  outline-offset: 2px;
}

.education-link:active {
  transform: translateY(0);
  background-color: var(--blue-note-hover);
}

/* Allow natural text wrapping for education entries to prevent cutoff */
.education-entry-nowrap {
  white-space: normal;
  display: inline;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.online-cohort, .rmit-university, .rmit-university-33, .rmit-university-35, .rmit-university-37, .rmit-university-3a {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 18.68px;
  font-weight: 500;
  line-height: 25.24px;
  letter-spacing: -0.44px;
}

.type-design-asia, .design-foundation, .design-foundation-38, .design-foundation-3b {
  color: #000000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-size: 16.41px;
  font-weight: 300;
  line-height: 25.24px;
  letter-spacing: -0.44px;
}

/* Responsive design */
@media (max-width: 1200px) {
  .main-container {
    max-width: 100%;
    padding: 65px 20px 0 20px; /* Maintain top spacing, add horizontal padding */
  }

  .flex-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .left-column {
    order: 1;
  }

  .right-column {
    order: 2;
  }

  .div-note, .div-note-2e {
    width: 100% !important; /* Maintain consistent full width */
    max-width: 435px !important; /* Keep original max-width constraint */
  }

  /* Ensure expanded state also maintains full width */
  .div-note.expanded, .div-note-2e.expanded {
    width: 100% !important; /* Full width when expanded */
    max-width: 435px !important; /* Keep original max-width constraint */
  }

  /* Mobile-specific layout changes for collapsed tabs */
  .flex-row {
    grid-template-columns: 1fr !important; /* Force single column layout on mobile */
    gap: 15px;
  }

  /* Override desktop grid adjustments based on collapsed state */
  .flex-row:has(.left-column.both-tabs-collapsed),
  .flex-row:has(.left-column.one-tab-collapsed),
  .flex-row:has(.left-column.all-tabs-collapsed),
  .flex-row:has(.left-column.two-tabs-collapsed) {
    grid-template-columns: 1fr !important; /* Maintain single column on mobile */
    gap: 15px !important;
  }

  .left-column {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 435px !important; /* Maintain consistent max-width */
    flex-shrink: 0 !important; /* Prevent shrinking that causes layout shifts */
  }

  /* Override desktop collapsed state width restrictions on mobile */
  .left-column.both-tabs-collapsed,
  .left-column.one-tab-collapsed,
  .left-column.all-tabs-collapsed,
  .left-column.two-tabs-collapsed {
    max-width: 435px !important; /* Override desktop width restrictions */
    width: 100% !important; /* Maintain full width */
    flex-shrink: 0 !important; /* Prevent shrinking */
  }

  /* Override :has() selector width restrictions on mobile */
  .left-column:has(.div-note.collapsed):has(.div-note-2e.collapsed):has(.div-note-3f.collapsed),
  .left-column:has(.div-note.collapsed):has(.div-note-2e.collapsed),
  .left-column:has(.div-note.collapsed):has(.div-note-3f.collapsed),
  .left-column:has(.div-note-2e.collapsed):has(.div-note-3f.collapsed),
  .left-column:has(.div-note.collapsed),
  .left-column:has(.div-note-2e.collapsed),
  .left-column:has(.div-note-3f.collapsed) {
    max-width: 435px !important; /* Override desktop width restrictions */
    width: 100% !important; /* Maintain full width */
  }

  .right-column {
    order: 2;
    width: 100%;
  }

  /* Mobile collapsed tabs - maintain full width, reduce height only */
  .div-note.collapsed, .div-note-2e.collapsed, .div-note-3f.collapsed {
    width: 100% !important; /* Override desktop fit-content - maintain full width */
    max-width: 435px !important; /* Keep original max-width, override desktop 100px limit */
    height: 60px !important; /* Fixed reduced height */
    min-height: 60px !important; /* Ensure consistent height */
    max-height: 60px !important; /* Prevent height expansion */
    padding: 0 !important; /* Remove padding to allow full-width button */
    margin-bottom: 15px !important; /* Maintain spacing between tabs */
    border-radius: 8px !important; /* Rounded corners for modern look */
    background: var(--yellow-note) !important; /* Yellow background for visibility */
    border: 1px solid #000 !important; /* Standard border thickness */
    position: relative;
    overflow: hidden;
    flex-shrink: 0 !important; /* Prevent shrinking that causes layout shifts */
    pointer-events: auto !important; /* Ensure container is clickable */
  }

  /* Full-width button styling for collapsed tabs on mobile */
  .div-note.collapsed .btn-base, .div-note-2e.collapsed .btn-base, .div-note-3f.collapsed .btn-base {
    width: 100% !important; /* Full width button */
    height: 60px !important; /* Fixed height matching container */
    min-height: 60px !important; /* Match container height */
    max-height: 60px !important; /* Prevent height expansion */
    padding: 0 20px !important; /* Horizontal padding only */
    margin: 0 !important; /* Remove all margins */
    background: transparent !important; /* Transparent to show container background */
    border: none !important; /* Remove button border */
    border-radius: 8px; /* Match container border radius */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Left-align text */
    font-size: 16px !important; /* Larger text for mobile */
    font-weight: 600 !important; /* Bold text for visibility */
    color: #000 !important; /* Black text */
    text-align: left !important;
    position: relative !important; /* Use relative positioning to maintain click functionality */
    top: 0;
    left: 0;
    z-index: 60;
    box-sizing: border-box; /* Include padding in height calculation */
    pointer-events: auto !important; /* Ensure click events work */
  }

  /* Hover effects for mobile collapsed tabs */
  .div-note.collapsed:hover, .div-note-2e.collapsed:hover, .div-note-3f.collapsed:hover {
    background: #F5F1A8 !important; /* Darker yellow on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* Active/pressed state for mobile collapsed tabs */
  .div-note.collapsed:active, .div-note-2e.collapsed:active, .div-note-3f.collapsed:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  /* Focus states for accessibility on mobile */
  .div-note.collapsed:focus-within, .div-note-2e.collapsed:focus-within, .div-note-3f.collapsed:focus-within {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 241, 168, 0.6); /* Yellow focus ring */
  }

  /* Remove desktop-specific collapsed styling on mobile */
  .div-note.collapsed .btn-base:hover, .div-note-2e.collapsed .btn-base:hover, .div-note-3f.collapsed .btn-base:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .div-note.collapsed .btn-base:active, .div-note-2e.collapsed .btn-base:active, .div-note-3f.collapsed .btn-base:active {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .div-note.collapsed .btn-base:focus, .div-note-2e.collapsed .btn-base:focus, .div-note-3f.collapsed .btn-base:focus {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }
}

@media (max-width: 768px), (orientation: portrait) and (max-width: 1024px) {
  /* Ensure mobile viewport uses full height */
  html, body {
    height: auto; /* Allow natural height */
    min-height: 100%; /* Ensure minimum full height */
    overflow-x: hidden;
    overflow-y: auto; /* Allow vertical scrolling */
  }

  .main-container {
    height: auto; /* Allow natural height */
    min-height: 100vh; /* Ensure minimum viewport height */
    overflow: visible; /* Allow scrolling */
    padding-top: 58px; /* Slightly reduced spacing for tablets */
  }

  /* Hide bio, education, career sections by default on mobile */
  .left-column {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Show sections when toggled via dynamic island */
  .left-column.mobile-show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .mikey {
    font-size: 48px;
  }

  .text {
    font-size: 16px;
    line-height: 22px;
    /* Maintain blur effect on tablets - TEMPORARILY DISABLED */
    /* filter: blur(6px); */
  }

  .text.unblurred {
    filter: blur(0px);
  }

  .text-blur-container {
    padding: 8px;
    margin: -8px;
  }

  .flex-row-20, .flex-row-24, .flex-row-a, .flex-row-d, .flex-row-e, .flex-row-f {
    grid-template-columns: 1fr;
    height: auto;
  }

  /* Tools intro mobile adjustments */
  .tools-intro {
    margin-bottom: 20px;
    padding: 0 12px;
  }

  .tools-description {
    font-size: 13px;
    line-height: 1.3;
  }

  .exlbit-thumbnail, .dcf, .nghen-thumbnail, .bong-hoa-nho-thumbnail,
  .cason-thumbnail, .otique-thumbnail, .cheltender-thumbnail, .sooper-thumbnail,
  .koke-kaffe-thumbnail, .gia-thumbnail, .mikey-sleek-thumbnail, .nuff-juice-thumbnail,
  .proofokei-thumbnail, .type-toolkit-thumbnail, .kernokei-thumbnail, .letter-templates-thumbnail,
  .dooing-generator-thumbnail, .relationship-construction-thumbnail {
    height: 200px;
  }

  /* Mobile folder navigation improvements */
  .folder-navigation {
    width: 100%;
    max-width: 100%;
    height: 60px;
    padding: 0 10px;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
  }

  .folder-nav-button {
    width: 44px; /* Larger touch target */
    height: 44px;
    font-size: 12px;
    position: relative;
  }



  .folders-stack {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 600px;
    position: relative;
    overflow: hidden; /* Prevent folders from stacking vertically */
  }

  /* Fallback for browsers without dvh support - mobile folder container */
  @supports not (height: 100dvh) {
    .folder-container {
      height: var(--folder-height-mobile);
      max-height: var(--folder-height-mobile);
    }
  }

  .folder-container {
    width: 100%;
    max-width: 100%;
    height: var(--folder-height-mobile-dvh); /* Use CSS variable with dvh fallback */
    min-height: 600px;
    max-height: var(--folder-height-mobile-dvh); /* Consolidated using CSS variable */
    position: relative;
    left: 0 !important; /* Override desktop positioning */
    overflow: visible; /* Allow inner scroll momentum */
  }

  .folder-container::before {
    width: 100%;
    height: 100%;
    clip-path: none; /* Remove complex clipping on mobile */
    border-radius: 8px;
  }

  .folder {
    width: 100%;
    height: 100%; /* Take full height of container */
    min-height: 600px;
    clip-path: none; /* Simplified mobile layout */
    border-radius: 8px;
    background: var(--yellow-note) !important; /* Ensure yellow background on mobile */
    border: 1px solid #000; /* Clean border */
    overflow: hidden; /* Contain scrollable content */
    position: relative; /* Ensure proper positioning */
    display: flex;
    flex-direction: column;
  }

  /* Mobile folder colors for different tabs */
  .folder-container[data-tab="work"] .folder {
    background: var(--yellow-note) !important; /* Yellow for work */
  }

  .folder-container[data-tab="type-vault"]:not(.active) .folder {
    background: var(--pink-note) !important; /* Pink for inactive type vault */
  }

  .folder-container[data-tab="type-vault"].active .folder {
    background: var(--pink-note) !important; /* Pink for active type vault */
  }

  .folder-container[data-tab="tools"] .folder {
    background: var(--blue-note) !important; /* Blue for tools */
  }

  .folder-svg {
    display: none; /* Hide complex SVG on mobile */
  }

  .folder-label {
    top: 20px; /* Increased top margin */
    left: 20px;
    width: auto;
    font-size: 18px;
    font-weight: 600; /* Make header more prominent */
    justify-content: flex-start;
    z-index: 20; /* Ensure it stays above content */
    background: rgba(255, 251, 204, 0.9); /* Semi-transparent background */
    padding: 5px 10px; /* Add padding around text */
    border-radius: 4px; /* Rounded corners */
  }

  .folder-content {
    top: 80px; /* Increased to account for 60px navigation height + 15px margin + 5px buffer */
    left: 15px;
    right: 15px;
    bottom: 15px;
  }

  /* Ensure active folder content is visible on mobile */
  .folder-container.active .folder-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
    z-index: 10 !important;
  }

  /* Fallback for browsers without dvh support - mobile folder content */
  @supports not (height: 100dvh) {
    .folder-content {
      height: var(--folder-content-height-mobile) !important;
      max-height: var(--folder-content-height-mobile) !important;
    }
  }

  /* Mobile folder content positioning */
  .folder-content {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
    overflow-y: auto !important; /* Enable vertical scrolling */
    overflow-x: hidden !important;
    min-height: 400px !important;
    height: var(--folder-content-height-mobile-dvh) !important; /* Use CSS variable with dvh */
    max-height: var(--folder-content-height-mobile-dvh) !important; /* Consolidated using CSS variable */
    padding: 60px 20px 20px 20px !important; /* Add top padding for "Work" header */
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    /* Remove desktop scroll borders on mobile */
    border-top: none !important;
    border-bottom: none !important;
  }

  /* Mobile frame styling - frame is visible and contains portfolio content */



  /* Ensure portfolio items are visible on mobile */
  .portfolio-item {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Ensure frame and flex-row containers are visible */
  .frame {
    display: block !important;
    opacity: 1 !important;
    overflow: visible !important; /* Ensure no clipping on mobile */
    min-height: auto !important;
    height: auto !important;
  }

  .flex-row-20, .flex-row-24, .flex-row-a, .flex-row-d, .flex-row-e, .flex-row-f {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Hide inactive folders on mobile while preserving accessibility and animations */
  .folder-container:not(.active) {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
  }

  .folder-container.active {
    visibility: visible;
    pointer-events: auto;
  }

  /* Active folder is visible */
  .folder-container.active {
    display: block !important;
    position: absolute;
    width: 100%;
    height: auto;
    overflow: visible;
    top: 0 !important;
    left: 0 !important;
    z-index: 10;
  }

  /* Ensure work folder is always visible on mobile */
  .folder-container[data-tab="work"] {
    display: block !important;
  }

  .folder-container[data-tab="work"].active {
    display: block !important;
    opacity: 1 !important;
  }

  /* Ensure touch targets meet accessibility guidelines */
  .button-xs, .button-xs-18, .button-xs-19, .button-xs-1a, .button-xs-1c, .button-xs-1d, .button-xs-1e, .button-xs-1f,
  .button-xs-21, .button-xs-22, .button-text-xs-25, .button-text-xs-26, .button-text-xs-27, .button-text-xs-28,
  .button-text-xs-2a, .button-text-xs-2c, .button-text-xs-dcf, .button-text-xs-dcf-cat, .button-text-xs-bong,
  .button-text-xs-bong-cat, .button-text-xs-otique, .button-text-xs-otique-cat, .button-text-xs-sooper,
  .button-text-xs-sooper-cat, .button-text-xs-koke, .button-text-xs-koke-cat, .button-text-xs-gia,
  .button-text-xs-gia-cat, .button-text-xs-nuff, .button-text-xs-nuff-cat, .tool-category {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 50px 10px 0 10px; /* Reduced top spacing for mobile, maintain horizontal padding */
  }

  .mikey {
    font-size: 36px;
  }

  .text {
    font-size: 14px;
    line-height: 20px;
    /* Slightly reduced blur for mobile readability - TEMPORARILY DISABLED */
    /* filter: blur(4px); */
  }

  .text.unblurred {
    filter: blur(0px);
  }

  .text-blur-container {
    padding: 6px;
    margin: -6px;
  }

  .dynamic-island-header .island-content {
    min-width: 100px;
    height: 32px;
    padding: 0 10px;
  }

  .dynamic-island-header:hover .island-content,
  .dynamic-island-header.expanded .island-content {
    min-width: 280px;
    padding: 0 12px;
  }

  .island-text, .island-title {
    font-size: 12px;
  }

  .island-links {
    gap: 6px;
  }

  .island-link {
    width: 48px; /* Match folder nav button touch target size */
    height: 48px;
    /* Enhanced mobile touch feedback */
    -webkit-tap-highlight-color: transparent;
  }

  /* Mobile-specific touch states */
  .island-link:active {
    background: #9DCFFF;
    transform: scale(0.95);
    transition: all 0.1s ease;
  }

  /* Ensure proper touch target spacing on mobile */
  .island-link + .island-link {
    margin-left: 2px;
  }

  .link-icon {
    width: 20px;
    height: 20px;
  }

  /* Mobile folder navigation refinements */
  .folder-navigation {
    gap: 20px;
    padding: 0 5px;
  }

  .folder-nav-button {
    width: 48px; /* Even larger for small screens */
    height: 48px;
  }



  /* Ensure all interactive elements meet touch guidelines */
  .btn-base {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px;
  }

  /* Adjust folder content positioning for larger navigation buttons */
  .folder-content {
    top: 90px; /* Increased for larger 48px buttons + margin + buffer */
  }

  /* Ensure active folder content is visible on smaller mobile screens */
  .folder-container.active .folder-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
    z-index: 10 !important;
  }

  /* Smaller mobile folder content positioning */
  .folder-content {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  /* Enhanced mobile collapsed tabs for smaller screens */
  .div-note.collapsed, .div-note-2e.collapsed, .div-note-3f.collapsed {
    width: 100% !important; /* Override desktop fit-content - maintain full width */
    max-width: 100% !important; /* Full width on small screens, override desktop 100px limit */
    height: 56px !important; /* Fixed reduced height for smaller screens */
    min-height: 56px !important; /* Consistent height */
    max-height: 56px !important; /* Prevent height expansion */
    margin-bottom: 12px !important; /* More space between tabs */
    border-radius: 10px !important; /* More rounded for modern mobile look */
    flex-shrink: 0 !important; /* Prevent shrinking that causes layout shifts */
    pointer-events: auto !important; /* Ensure container click events work */
  }

  .div-note.collapsed .btn-base, .div-note-2e.collapsed .btn-base, .div-note-3f.collapsed .btn-base {
    height: 56px !important; /* Fixed height matching container */
    min-height: 56px !important; /* Match container height */
    max-height: 56px !important; /* Prevent height expansion */
    padding: 0 24px !important; /* More horizontal padding for smaller screens */
    font-size: 18px !important; /* Larger text for better readability */
    font-weight: 700 !important; /* Bolder text */
    position: relative !important; /* Maintain click functionality */
    pointer-events: auto !important; /* Ensure click events work */
  }

  /* Enhanced hover effects for smaller mobile screens */
  .div-note.collapsed:hover, .div-note-2e.collapsed:hover, .div-note-3f.collapsed:hover {
    transform: translateY(-3px) !important; /* More pronounced hover effect */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
  }

  /* Override desktop layout restrictions for smaller mobile screens */
  .left-column.both-tabs-collapsed,
  .left-column.one-tab-collapsed,
  .left-column.all-tabs-collapsed,
  .left-column.two-tabs-collapsed {
    max-width: 100% !important; /* Full width on small screens */
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  .left-column:has(.div-note.collapsed):has(.div-note-2e.collapsed):has(.div-note-3f.collapsed),
  .left-column:has(.div-note.collapsed):has(.div-note-2e.collapsed),
  .left-column:has(.div-note.collapsed):has(.div-note-3f.collapsed),
  .left-column:has(.div-note-2e.collapsed):has(.div-note-3f.collapsed),
  .left-column:has(.div-note.collapsed),
  .left-column:has(.div-note-2e.collapsed),
  .left-column:has(.div-note-3f.collapsed) {
    max-width: 100% !important; /* Full width on small screens */
    width: 100% !important;
  }

  .flex-row:has(.left-column.both-tabs-collapsed),
  .flex-row:has(.left-column.one-tab-collapsed),
  .flex-row:has(.left-column.all-tabs-collapsed),
  .flex-row:has(.left-column.two-tabs-collapsed) {
    grid-template-columns: 1fr !important; /* Maintain single column */
    gap: 15px !important;
  }

  /* Ensure portfolio items are visible on smaller mobile screens */
  .portfolio-item {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Ensure frame and flex-row containers are visible */
  .frame {
    display: block !important;
    opacity: 1 !important;
    overflow: visible !important; /* Ensure no clipping on mobile */
    min-height: auto !important;
    height: auto !important;
  }

  .flex-row-20, .flex-row-24, .flex-row-a, .flex-row-d, .flex-row-e, .flex-row-f {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .btn-sm {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 12px;
  }

  /* Prevent iOS zoom on input focus */
  input[type="text"], input[type="email"], input[type="search"],
  input[type="tel"], input[type="url"], input[type="password"],
  textarea, select {
    font-size: 16px;
  }

  /* Improve tap targets for portfolio items */
  .exlbit-thumbnail, .dcf, .nghen-thumbnail, .bong-hoa-nho-thumbnail,
  .cason-thumbnail, .otique-thumbnail, .cheltender-thumbnail, .sooper-thumbnail,
  .koke-kaffe-thumbnail, .gia-thumbnail, .mikey-sleek-thumbnail, .nuff-juice-thumbnail,
  .proofokei-thumbnail, .type-toolkit-thumbnail, .kernokei-thumbnail, .letter-templates-thumbnail,
  .dooing-generator-thumbnail, .relationship-construction-thumbnail {
    min-height: 180px;
  }

  /* Add subtle touch feedback */
  .exlbit-thumbnail:active, .dcf:active, .nghen-thumbnail:active, .bong-hoa-nho-thumbnail:active,
  .cason-thumbnail:active, .otique-thumbnail:active, .cheltender-thumbnail:active, .sooper-thumbnail:active,
  .koke-kaffe-thumbnail:active, .gia-thumbnail:active, .mikey-sleek-thumbnail:active, .nuff-juice-thumbnail:active,
  .proofokei-thumbnail:active, .type-toolkit-thumbnail:active, .kernokei-thumbnail:active, .letter-templates-thumbnail:active,
  .dooing-generator-thumbnail:active, .relationship-construction-thumbnail:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

/* Navigation tabs layout */
.nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Hidden elements for complex layout */
.rectangle-13, .line-14, .rectangle-15, .flex-row-ad, .line-16, .line-17 {
  display: none;
}

/* Simplified layout for better responsiveness */
.rectangle-12 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Remove old tab navigation styles - now using folder shape */

/* Portfolio grid improvements */
.portfolio-section {
  width: 100%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.portfolio-item:hover {
  transform: translateY(-2px);
}

/* Proofokei Design System - Standardized Button Classes */
.btn-base {
  border: 1px solid #000;
  font-family: 'NaN Rage Soft VF', var(--default-font-family);
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  user-select: none;
}

/* Button variants */
.btn-blue {
  background: var(--blue-note);
  color: #000;
}

.btn-blue:hover {
  background: var(--blue-note-hover);
  transform: translateY(-1px);
}

.btn-pink {
  background: var(--pink-note);
  color: #000;
}

.btn-pink:hover {
  background: var(--pink-note-hover);
  transform: translateY(-1px);
}

.btn-yellow {
  background: var(--yellow-note);
  color: #000;
}

.btn-yellow:hover {
  background: var(--yellow-note-dark);
  transform: translateY(-1px);
}

.btn-orange {
  background: var(--orange-note);
  color: #000;
}

.btn-orange:hover {
  background: var(--orange-note-hover);
  transform: translateY(-1px);
}

/* Button sizes */
.btn-sm {
  height: 32px;
  padding: 6px 12px;
  font-size: 0.875rem;
  min-width: 44px; /* Mobile touch target */
}

.btn-md {
  height: 40px;
  padding: 8px 16px;
  font-size: 1rem;
  min-width: 44px; /* Mobile touch target */
}

.btn-lg {
  height: 48px;
  padding: 12px 24px;
  font-size: 1.125rem;
  min-width: 44px; /* Mobile touch target */
}

/* Button active states */
.btn-base:active {
  transform: translateY(0);
}

.btn-base:focus {
  background: rgba(205, 235, 255, 0.8); /* Blue tint for focus */
  box-shadow: 0 0 0 3px rgba(205, 235, 255, 0.5); /* Subtle glow instead of outline */
}

/* Accessibility improvements */
.button-xs, .button-xs-18, .button-xs-19, .button-xs-1a, .button-xs-1c, .button-xs-1d, .button-xs-1e, .button-xs-1f,
.button-xs-21, .button-xs-22, .button-text-xs-25, .button-text-xs-26, .button-text-xs-27, .button-text-xs-28,
.button-text-xs-2a, .button-text-xs-2c, .button-text-xs-dcf, .button-text-xs-dcf-cat, .button-text-xs-bong,
.button-text-xs-bong-cat, .button-text-xs-otique, .button-text-xs-otique-cat, .button-text-xs-sooper,
.button-text-xs-sooper-cat, .button-text-xs-koke, .button-text-xs-koke-cat, .button-text-xs-gia,
.button-text-xs-gia-cat, .button-text-xs-mikey-sleek, .button-text-xs-mikey-sleek-cat, .button-text-xs-nuff,
.button-text-xs-nuff-cat, .tool-category {
  transition: all 0.2s ease;
  min-height: 26px;
  min-width: 44px; /* Mobile touch target */
}

.button-xs:hover, .button-xs-19:hover, .button-xs-1c:hover, .button-xs-1e:hover, .button-xs-21:hover,
.button-text-xs-25:hover, .button-text-xs-27:hover, .button-text-xs-2a:hover, .button-text-xs-dcf:hover,
.button-text-xs-bong:hover, .button-text-xs-otique:hover, .button-text-xs-sooper:hover,
.button-text-xs-koke:hover, .button-text-xs-gia:hover, .button-text-xs-mikey-sleek:hover, .button-text-xs-nuff:hover {
  background: var(--blue-note-hover);
  transform: translateY(-1px);
}

.button-xs-18:hover, .button-xs-1a:hover, .button-xs-1d:hover, .button-xs-1f:hover, .button-xs-22:hover,
.button-text-xs-26:hover, .button-text-xs-28:hover, .button-text-xs-2c:hover, .button-text-xs-dcf-cat:hover,
.button-text-xs-bong-cat:hover, .button-text-xs-otique-cat:hover, .button-text-xs-sooper-cat:hover,
.button-text-xs-koke-cat:hover, .button-text-xs-gia-cat:hover, .button-text-xs-mikey-sleek-cat:hover, .button-text-xs-nuff-cat:hover, .tool-category:hover {
  background: var(--yellow-note-dark);
  transform: translateY(-1px);
}

  /* Focus states for accessibility - use design system color-based approach */
  .rectangle:focus, .type-vault:focus, .rectangle-10:focus,
  .button-xs:focus, .button-xs-18:focus, .button-xs-19:focus, .button-xs-1a:focus, .button-xs-1c:focus, .button-xs-1d:focus, .button-xs-1e:focus, .button-xs-1f:focus,
  .button-xs-21:focus, .button-xs-22:focus, .button-text-xs-25:focus, .button-text-xs-26:focus, .button-text-xs-27:focus, .button-text-xs-28:focus,
  .button-text-xs-2a:focus, .button-text-xs-2c:focus {
    box-shadow: 0 0 0 3px rgba(205, 235, 255, 0.5); /* Subtle blue glow instead of outline */
    filter: brightness(1.1); /* Slightly brighten the element on focus */
  }
}

/* Print styles */
@media print {
  .main-container {
    background: white;
  }

  .dynamic-island-header {
    display: none;
  }

  .rectangle, .type-vault, .rectangle-10 {
    display: none;
  }
}

/* Hidden elements for complex layout */
.rectangle-13, .line-14, .rectangle-15, .flex-row-ad, .line-16, .line-17 {
  display: none;
}
/* ===========================================
   SLIDESHOW STYLES - Mikey Sleek Project
   =========================================== */

/* Grid layout is already defined above - no changes needed */

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  z-index: 1;
}

.slideshow-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  transition: none; /* Remove transition for video-like behavior */
}

/* Hide navigation arrows - video-like behavior */
.slideshow-nav {
  display: none;
}

/* Hide dots indicator - video-like behavior */
.slideshow-dots {
  display: none;
}

/* Mikey Sleek specific styles */
.mikey-sleek-thumbnail {
  background: var(--yellow-note);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mikey-sleek-thumbnail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mikey-sleek-thumbnail:active {
  transform: translateY(0);
}

/* Ensure slideshow fills entire frame */
#mikey-sleek-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Ensure labels appear above slideshow */
.mikey-sleek-thumbnail .button-text-xs-mikey-sleek,
.mikey-sleek-thumbnail .button-text-xs-mikey-sleek-cat,
.mikey-sleek-thumbnail .year-tab {
  position: absolute;
  z-index: 15;
}

/* Specific positioning for Mikey Sleek year tab */
.mikey-sleek-thumbnail .year-tab {
  top: 16px;
  right: 16px;
  background: #E8E8E8 !important;
  border: 1px solid #000000 !important;
}

/* Apply grayscale filter to Mikey Sleek slideshow images */
#mikey-sleek-slideshow img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

/* Remove grayscale on hover to show original colors */
.mikey-sleek-thumbnail:hover #mikey-sleek-slideshow img {
  filter: none;
}

/* ===========================================
   FOUNDRY LAYOUT - Type-focused site layout
   =========================================== */

/* Hide the left column (bio/education/career) */
.left-column {
  display: none !important;
}

/* Make right column full width */
.flex-row {
  grid-template-columns: 1fr !important;
  max-width: 1100px;
}

/* Override all left-column responsive adjustments */
.flex-row:has(.left-column.both-tabs-collapsed),
.flex-row:has(.left-column.one-tab-collapsed),
.flex-row:has(.left-column.all-tabs-collapsed),
.flex-row:has(.left-column.two-tabs-collapsed) {
  grid-template-columns: 1fr !important;
}

/* Center the folder navigation */
.folder-navigation {
  justify-content: center;
}

/* Adjust folder container for full-width layout */
.folders-stack {
  max-width: 100%;
}

.folder-container {
  max-width: 100%;
}

.folder {
  max-width: 100%;
}

/* Remove old portfolio thumbnail borders inside Type Vault font rows */
.font-row .font-thumbnail.cheltender-thumbnail,
.font-row .font-thumbnail.sooper-thumbnail,
.font-row .font-thumbnail.otique-thumbnail,
.font-row .font-thumbnail.cason-thumbnail,
.font-row .font-thumbnail.sleek-thumbnail {
  border: none !important;
  border-radius: 0 !important;
  height: 100% !important;
}

.font-row .font-thumbnail.cheltender-thumbnail::before,
.font-row .font-thumbnail.sooper-thumbnail::before,
.font-row .font-thumbnail.otique-thumbnail::before,
.font-row .font-thumbnail.cason-thumbnail::before,
.font-row .font-thumbnail.sleek-thumbnail::before {
  display: none !important;
}

/* Tools folder is always at 130px when inactive — handled by rules above */
