/* ====================================================
   Gwen Balajediong // Modern Systems Portfolio
   21st.dev + UI/UX Max Pro + Uncodixfy Design System
   ==================================================== */

:root {
  --bg: #090a0f;
  --bg-sidebar: #0e1219;
  --surface: #121824;
  --surface-hover: #172030;
  --surface-active: #1d273a;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-focus: #cff0ff;
  
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-blue: #cff0ff;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  --accent-red: #ef4444;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  
  --transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
}

/* Hide all scrollbar UI while preserving scrolling */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ====================================================
   Top Viewport Reading Progress Bar (Fixed 3px)
   ==================================================== */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(148, 163, 184, 0.2); /* very light gray-blue track */
  z-index: 1000;
  pointer-events: none;
}

.scroll-progress-fill {
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
  transition: transform 0.08s linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-fill {
    animation: none !important;
    transition: none !important;
  }
}


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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100% !important;
}

.text-center {
  text-align: center !important;
}

/* ====================================================
   Color Accents & Indicators
   ==================================================== */
.accent-green { color: var(--accent) !important; }
.accent-blue { color: var(--accent-blue) !important; }
.accent-amber { color: var(--accent-amber) !important; }
.accent-purple { color: var(--accent-purple) !important; }

.status-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-indicator-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ====================================================
   App Layout
   ==================================================== */
.bento-app {
  display: flex;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: clip;
}

/* ====================================================
   Mobile Top Header (Profile on Mobile Screens)
   ==================================================== */
.mobile-top-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(14, 18, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.mobile-profile-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-icon {
  flex-shrink: 0;
}

.bio-actions {
  margin-top: 0.25rem;
}

.contact-quick-copy {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-submit {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  justify-content: center;
}

/* Lucide Icon Sizing Helpers */
.w-3 { width: 12px !important; }
.h-3 { height: 12px !important; }
.w-3\.5 { width: 14px !important; }
.h-3\.5 { height: 14px !important; }
.w-4 { width: 16px !important; }
.h-4 { height: 16px !important; }
.w-5 { width: 20px !important; }
.h-5 { height: 20px !important; }
.w-10 { width: 40px !important; }
.h-10 { height: 40px !important; }


.mobile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  object-fit: cover;
  background: var(--surface);
}

.mobile-profile-meta {
  display: flex;
  flex-direction: column;
}

.mobile-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-name .verified-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-blue);
}

.mobile-status-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ====================================================
   Left Desktop Fixed Sidebar
   ==================================================== */
.bento-sidebar {
  width: 290px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 2rem 1.5rem 1.5rem;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.profile-block {
  text-align: center;
  margin-bottom: 2rem;
}

.avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-hover);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #151b27;
  display: block;
}

.status-indicator-badge {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-sidebar);
  border: 2px solid var(--bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  letter-spacing: -0.01em;
}

.verified-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.profile-handle {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.profile-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-top: 0.65rem;
}

/* Sidebar Social Round Buttons */
.sidebar-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-circle-btn i, .social-circle-btn svg {
  width: 16px;
  height: 16px;
}

.social-circle-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Sidebar Navigation (Motion Library: nav-scrollspy) */
.sidebar-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-marker {
  position: absolute;
  top: 0;
  width: 3.5px;
  height: 40px;
  border-radius: 2px;
  background: var(--accent-blue);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.75), 0 0 4px rgba(56, 189, 248, 0.9);
  pointer-events: none;
  transform: translateY(0);
  transition: transform 587ms cubic-bezier(0.22, 1, 0.36, 1), height 300ms ease, opacity 0.25s ease;
  will-change: transform;
  z-index: 2;
}

.nav-marker-left {
  left: 0;
}

.nav-marker-right {
  right: 0;
}

.nav-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.nav-item i, .nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: color var(--transition);
}

.nav-counter {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.nav-item:hover {
  color: #fff;
  background: var(--surface);
  border-color: var(--border-subtle);
}

.nav-item:hover i {
  color: #fff;
}

.nav-item.active {
  background: rgba(56, 189, 248, 0.06);
  color: #ffffff;
  font-weight: 700;
  border-color: transparent;
  box-shadow: none;
}

.nav-item.active i,
.nav-item.active svg {
  color: var(--accent-blue);
}

.nav-item.active .nav-counter {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Sidebar Footer */
.sidebar-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-time-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}

.time-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.time-val {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-top: 0.15rem;
}

.sidebar-copyright {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}

.sidebar-copyright #visit-count {
  color: var(--accent);
  font-weight: 700;
}

/* ====================================================
   Main Dashboard Area & Views
   ==================================================== */
.bento-main {
  flex: 1;
  padding: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  position: relative;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  .bento-main {
    overflow-x: hidden;
  }
}

.bento-main.is-transitioning {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden !important;
}

/* Full-viewport single screen bento layout on desktop without scroll */
@media (min-width: 861px) and (min-height: 700px) {
  /* Prevent vertical scrolling on desktop when viewing About or Contact */
  body:has(#view-about.active-view:not(.stack-push-old)),
  body:has(#view-contact.active-view:not(.stack-push-old)) {
    overflow-y: hidden;
    height: 100vh;
  }

  body:has(#view-about.active-view:not(.stack-push-old)) .bento-app,
  body:has(#view-contact.active-view:not(.stack-push-old)) .bento-app {
    height: 100vh;
  }

  body:has(#view-about.active-view:not(.stack-push-old)) .bento-main,
  body:has(#view-contact.active-view:not(.stack-push-old)) .bento-main {
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }

  #view-about.active-view,
  #view-contact.active-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100vh;
    padding: 2.25rem 3rem 2.25rem;
    overflow: hidden;
  }

  #view-about.active-view .bento-section-header,
  #view-contact.active-view .bento-section-header {
    margin-bottom: 1.25rem;
    flex-shrink: 0;
  }

  /* About View - Full height bento expansion */
  #view-about.active-view .bento-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    min-height: 0;
    margin-bottom: 0;
    align-items: stretch;
  }

  #view-about.active-view .bento-card {
    height: 100%;
    min-height: 0;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
  }

  #view-about.active-view .bento-card.col-8 {
    justify-content: space-between;
  }

  #view-about.active-view .about-paragraph {
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
  }

  #view-about.active-view .about-details-grid {
    padding: 1.15rem 1.25rem;
    margin: auto 0;
    gap: 0.85rem;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  #view-about.active-view .detail-val {
    font-size: 0.825rem;
  }

  #view-about.active-view .about-action-btns {
    margin-top: auto;
    padding-top: 0.5rem;
    display: flex;
    gap: 0.75rem;
  }

  #view-about.active-view .bento-card.col-4 {
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.75rem;
  }

  #view-about.active-view .mascot-frame-wrap {
    margin: 0.5rem auto 1.15rem;
  }

  #view-about.active-view .mascot-img {
    width: 120px;
    height: 120px;
    margin-bottom: 0;
  }

  #view-about.active-view .mascot-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.5rem;
  }

  #view-about.active-view .mascot-desc {
    font-size: 0.825rem;
    line-height: 1.6;
    margin: 0.65rem auto 1.5rem;
    max-width: 280px;
  }

  #view-about.active-view .mascot-quote-box {
    margin-top: auto;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
  }

  /* Contact View - Full height bento expansion */
  #view-contact.active-view .contact-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1.75rem;
    min-height: 0;
    margin-bottom: 0;
    align-items: stretch;
  }

  #view-contact.active-view .contact-info-card,
  #view-contact.active-view .contact-form-card {
    height: 100%;
    min-height: 0;
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
  }

  #view-contact.active-view .contact-info-card {
    justify-content: space-between;
  }

  #view-contact.active-view .contact-info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
  }

  #view-contact.active-view .contact-info-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
  }

  #view-contact.active-view .contact-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: auto;
  }

  #view-contact.active-view .contact-social-row {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  #view-contact.active-view .contact-quick-copy {
    margin-top: auto;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
  }

  #view-contact.active-view .contact-form-card form {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.85rem;
  }

  #view-contact.active-view .form-group,
  #view-contact.active-view .floating-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  #view-contact.active-view .form-group:has(.form-textarea),
  #view-contact.active-view .form-group-textarea,
  #view-contact.active-view .floating-textarea-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 120px;
  }

  #view-contact.active-view .form-input,
  #view-contact.active-view .floating-input {
    padding: 1.15rem 0.85rem 0.45rem;
    font-size: 0.85rem;
  }

  #view-contact.active-view .form-textarea,
  #view-contact.active-view .floating-textarea {
    flex: 1;
    width: 100%;
    min-height: 110px;
    resize: none;
    padding: 1.25rem 0.85rem 0.45rem;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  #view-contact.active-view .btn-submit {
    margin-top: 0.25rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    justify-content: center;
    width: 100%;
  }
}

.bento-view {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  padding: 2.5rem 3rem 4rem;
  display: none;
  position: relative;
}

.bento-view.active-view {
  display: block;
}

.bento-view.stack-push-old,
.bento-view.stack-push-new {
  will-change: transform;
}

/* ====================================================
   Stack Push Page Transitions
   (BrewedOps Motion Library: transitions-stack-push)
   https://brewedops.cloud/motionlibrary/?id=transitions-stack-push
   New page slides in from the right (100% -> 0) over the old one,
   which shifts left about 28% and dims.
   ==================================================== */
.bento-view.stack-push-old {
  z-index: 1;
  pointer-events: none;
  animation: stackPushOld 460ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.bento-view.stack-push-old::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 15, 0.65);
  pointer-events: none;
  z-index: 20;
  animation: stackPushDim 460ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.bento-view.stack-push-new {
  z-index: 2;
  background: var(--bg);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 48px rgba(0, 0, 0, 0.75), -4px 0 16px rgba(0, 0, 0, 0.45);
  animation: stackPushNew 460ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes stackPushOld {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-28%);
  }
}

@keyframes stackPushDim {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes stackPushNew {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-view.stack-push-old,
  .bento-view.stack-push-new {
    animation: none !important;
    transform: none !important;
  }
  .bento-view.stack-push-old::after {
    display: none !important;
  }
}

.bento-section-header {
  margin-bottom: 2rem;
}

.section-tag-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-count-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bento-section-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.bento-section-header p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  max-width: 720px;
}

/* --- Hero Headline Header --- */
.bento-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.85rem;
}

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

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin-bottom: 0.75rem;
  max-width: 820px;
}

.hero-text p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* --- Quick Stat Ribbon --- */
.hero-stats-banner {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.5rem;
  margin-bottom: 1.75rem;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-stat-cell {
  flex: 1;
  text-align: left;
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
}

.hero-stat-cell:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-cell-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-cell-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.stat-cell-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  display: block;
}

/* --- Tools Ribbon (Logo Marquee: proof-logo-marquee) --- */
.tools-ribbon {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow: hidden;
  position: relative;
}

.tools-ribbon-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 1.25rem;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 2;
}

.tools-marquee-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.tools-marquee-wrap:hover .tools-marquee-track {
  animation-play-state: paused;
}

.tools-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: toolsMarquee 26s linear infinite;
  will-change: transform;
}

.tools-marquee-track .tool-chip {
  margin-right: 2rem;
}

@keyframes toolsMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition), transform var(--transition);
}

.tool-chip:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* ====================================================
   Bento Grid Architecture (12-Column Layout)
   ==================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
  margin-bottom: 3rem;
}

.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

/* Header component inside bento cards */
.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-top-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-top-icon i, .card-top-icon svg {
  width: 17px;
  height: 17px;
}

.card-top-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.card-top-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

/* Column spans */
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

/* Bento 1: Flagship Web Systems */
.projects-mini-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  flex: 1;
}

.mini-project-item {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.mini-project-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.mini-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.mini-project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-project-item:hover .mini-project-thumb {
  transform: scale(1.03);
}

.mini-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  background: rgba(9, 10, 15, 0.9);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  color: var(--accent);
}

.mini-project-meta {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mini-project-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.mini-project-sub {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--accent-blue);
  margin-top: 0.25rem;
}

.mini-project-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.45rem;
}

/* Bento 2: Bio & Presence */
.bio-card-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bio-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bio-cat-img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.bio-status-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.live-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.bio-availability {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.725rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.bio-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Bento 3: Data & Architecture Metrics */
.stack-metric-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stack-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stack-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.775rem;
}

.metric-name {
  color: var(--text);
  font-weight: 600;
}

.metric-tag {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--text-subtle);
}

.metric-bar-bg {
  width: 100%;
  height: 5px;
  background: var(--bg-sidebar);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  border-radius: 4px;
}

/* Bento 4: Services Matrix */
.services-mini-matrix {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-pill-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.service-pill-row:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateX(2px);
}

/* Bento 5: AI Prompts */
.ai-prompts-container {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ai-prompt-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.ai-prompt-chip:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: #fff;
}

.ai-prompt-chip i {
  color: var(--accent);
  flex-shrink: 0;
}

/* ====================================================
   Projects Directory View
   ==================================================== */
.projects-control-bar {
  position: sticky;
  top: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 2.5rem 0.7rem 2.6rem;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--border-focus);
}

.clear-search-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}

.clear-search-btn:hover {
  color: #fff;
}

.filter-bar {
  display: flex;
  gap: 0.45rem;
  background: var(--surface);
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  font-size: 0.775rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
  background: var(--bg-sidebar);
  color: #fff;
  border-color: var(--border-hover);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.projects-grid {
  display: block;
  width: 100%;
}

/* ====================================================
   Peek Carousel Projects Showcase
   (Motion Library: media-carousel)
   https://brewedops.cloud/motionlibrary/?id=media-carousel
   Next slide peeks, active dot stretches
   ==================================================== */
.projects-carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.carousel-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.carousel-index-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xs);
}

.carousel-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-nav-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-1px);
}

.carousel-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-nav-btn i, .carousel-nav-btn svg {
  width: 18px;
  height: 18px;
}

/* Viewport and Track */
.peek-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0 1rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.peek-viewport:active {
  cursor: grabbing;
}

.peek-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 587ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Individual Slide */
.peek-slide {
  position: relative;
  flex: 0 0 76%;
  max-width: 860px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0.42;
  transform: scale(0.94);
  transition: opacity 0.45s ease, transform 587ms cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.peek-slide.active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(56, 189, 248, 0.36);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 32px rgba(56, 189, 248, 0.12);
  cursor: default;
}

/* Slide Media Header */
.slide-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 400px;
  overflow: hidden;
  background: #090a0f;
}

.slide-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.peek-slide.active:hover .slide-media-img {
  transform: scale(1.03);
}

.slide-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 15, 0.35) 0%, rgba(9, 10, 15, 0) 40%, rgba(18, 24, 36, 0.95) 100%);
  pointer-events: none;
}

.slide-badge-row {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.slide-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(14, 18, 25, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
}

.slide-num-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(14, 18, 25, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
}

/* Slide Body */
.slide-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--surface);
  flex: 1;
}

.slide-title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.slide-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}

.slide-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.slide-tags .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.slide-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Pagination Dots */
.peek-dots-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.peek-dot {
  display: inline-block;
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 587ms cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.peek-dot:hover {
  background: rgba(255, 255, 255, 0.38);
}

.peek-dot.active {
  width: 28px;
  background: var(--accent-blue);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.project-thumb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  will-change: clip-path;
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

.project-body {
  will-change: transform, opacity;
}

.project-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(9, 10, 15, 0.9);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  color: var(--accent);
}

.project-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.project-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.icon-link {
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  transition: color var(--transition);
}

.icon-link:hover {
  color: #fff;
}

.project-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
}

.project-footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.projects-empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-icon {
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}

.projects-empty-state h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.projects-empty-state p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0.35rem 0 1.25rem;
}

/* ====================================================
   Services View
   ==================================================== */
.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.825rem;
  color: var(--text);
  line-height: 1.45;
}

.feature-checklist li i {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.card-footer-action {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ====================================================
   About Me View
   ==================================================== */
.about-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
}

.about-paragraph {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin: 1.5rem 0;
}

.detail-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.detail-val {
  font-size: 0.825rem;
  color: var(--text);
  font-weight: 600;
}

.about-action-btns {
  display: flex;
  gap: 0.75rem;
}

/* Mascot Card */
.mascot-frame-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 1.15rem;
}

.mascot-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  object-fit: cover;
  display: block;
}

.mascot-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
  color: var(--text);
}

.mascot-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.5rem;
}

.mascot-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0.45rem auto 1.25rem;
  max-width: 280px;
}

.mascot-quote-box {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ====================================================
   Contact View
   ==================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.75rem;
  align-items: start;
}

.contact-info-card, .contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.contact-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contact-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box i {
  width: 17px;
  height: 17px;
}

.contact-row-label {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.contact-row-val {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 600;
}

.contact-row-val.link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.contact-social-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--border-focus);
}

/* Floating Labels System (Motion Library: forms-floating-label) */
.floating-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.floating-input, .floating-textarea {
  width: 100%;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.35rem 0.95rem 0.45rem;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition), background-color var(--transition);
}

.floating-textarea {
  min-height: 110px;
  resize: none;
  padding-top: 1.45rem;
  line-height: 1.5;
}

.floating-label {
  position: absolute;
  left: 0.95rem;
  top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  transform-origin: left top;
  pointer-events: none;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), color 260ms ease;
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label,
.floating-textarea:focus + .floating-label,
.floating-textarea:not(:placeholder-shown) + .floating-label {
  transform: translateY(-9px) scale(0.8);
  color: var(--accent-blue);
}

/* Focus Ring (Motion Library: forms-focus-ring) */
.focus-ring {
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-sm) + 3px);
  border: 1.5px solid var(--accent-blue);
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 280ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}

.focus-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-sm) + 6px);
  border: 4px solid rgba(56, 189, 248, 0.16);
  pointer-events: none;
}

.search-input-wrap:focus-within .focus-ring,
.floating-group:focus-within .focus-ring {
  opacity: 1;
  transform: scale(1);
}

/* Submit to Success State (Motion Library: forms-submit-success) */
.contact-form-card {
  position: relative;
  overflow: hidden;
  transition: clip-path 500ms cubic-bezier(0.32, 0.72, 0, 1), transform 300ms ease;
}

.contact-form-card.sent form {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  display: none !important;
}

.contact-success-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  min-height: 360px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 300ms ease, transform 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-form-card.sent .contact-success-panel {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
}

.success-check-svg {
  width: 28px;
  height: 28px;
}

.success-check-svg path {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  transition: stroke-dashoffset 450ms cubic-bezier(0.32, 0.72, 0, 1) 200ms;
}

.contact-form-card.sent .success-check-svg path {
  stroke-dashoffset: 0;
}

.success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.success-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.form-feedback-banner {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ====================================================
   Buttons System
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
}

.btn-primary {
  background: #ffffff;
  color: #090a0f;
  font-weight: 700;
  border-color: #ffffff;
}

.btn-primary:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.btn-icon-close, .btn-icon-control {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon-close:hover, .btn-icon-control:hover {
  color: #fff;
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* ====================================================
   Mobile Curved Notch Navigation Bar
   Motion Library: mobile-nav-notch
   https://brewedops.cloud/motionlibrary/?id=mobile-nav-notch
   ==================================================== */
.mobile-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(66px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 50;
  background: transparent;
  user-select: none;
}

.notch-bar-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 -6px 22px rgba(0, 0, 0, 0.68)) drop-shadow(0 -1px 0 rgba(56, 189, 248, 0.24));
}

.notch-bar-path {
  fill: rgba(14, 18, 25, 0.96);
}

.notch-tabs-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 66px;
  display: flex;
  z-index: 2;
}

.dock-item {
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.28rem;
  padding-top: 0.3rem;
  min-height: 44px;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

.dock-item:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: -2px;
  border-radius: 12px;
}

.dock-item svg {
  width: 20px;
  height: 20px;
  transition: opacity 0.2s ease, transform 587ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dock-item span {
  font: 600 0.7rem/1 var(--font-sans);
  letter-spacing: 0.01em;
}

.dock-item:hover {
  color: #ffffff;
}

.dock-item.active {
  color: var(--accent-blue);
}

.dock-item.active svg {
  opacity: 0;
  transform: translateY(10px) scale(0.7);
}

.notch-circle {
  position: absolute;
  left: 0;
  top: -18px;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cff0ff 0%, #10b981 100%);
  color: #090a0f;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.42), 0 0 0 2px rgba(9, 10, 15, 0.85);
  pointer-events: none;
  will-change: transform;
  z-index: 3;
}

.notch-circle svg {
  grid-area: 1 / 1;
  width: 21px;
  height: 21px;
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 0.2s ease, transform 587ms cubic-bezier(0.22, 1, 0.36, 1);
}

.notch-circle svg.on {
  opacity: 1;
  transform: scale(1);
}

/* ====================================================
   AI Assistant Floating FAB
   ==================================================== */
.chat-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  color: #fff;
  padding: 0.65rem 1.15rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.chat-fab-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.chat-fab:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ====================================================
   Modals
   ==================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-dialog {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalEnter {
  0% { opacity: 0; transform: scale(0.96) translateY(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.modal-body {
  padding: 1.35rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  border-top: 1px solid var(--border);
}

/* Project Modal Specific */
.project-modal-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.15rem;
}

.project-modal-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-modal-desc {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.modal-stack-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal-stack-title {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

/* AI Chat Modal */
.chat-dialog {
  max-width: 480px;
  height: 590px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chat-header-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-token-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-subtle);
}

.chat-header-actions {
  display: flex;
  gap: 0.4rem;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.chat-msg {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.chat-msg.user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.chat-bubble {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.chat-msg.user .chat-bubble {
  background: #242c3d;
  color: #fff;
  border: 1px solid var(--border-hover);
}

.chat-msg.ai .chat-bubble {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--accent-blue);
}

.chat-quick-suggestions {
  display: flex;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-quick-suggestions::-webkit-scrollbar {
  display: none;
}

.suggestion-chip {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
}

.suggestion-chip:hover {
  background: var(--surface-hover);
  color: #fff;
  border-color: var(--border-hover);
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-sidebar);
}

.chat-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.825rem;
  color: var(--text);
  outline: none;
}

.chat-form input:focus {
  border-color: var(--border-focus);
}

.btn-chat-send {
  padding: 0.55rem 0.85rem;
}

/* Chat loading animation */
.chat-loading-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  margin: 0 2px;
  animation: chatDot 1.4s infinite ease-in-out both;
}

.chat-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.chat-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes chatDot {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ====================================================
   Toast System
   ==================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #182232;
  border: 1px solid var(--border-hover);
  color: #fff;
  font-size: 0.8125rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ====================================================
   Responsive Breakpoints
   ==================================================== */
@media (max-width: 1140px) {
  .col-8 { grid-column: span 12; }
  .col-6 { grid-column: span 12; }
  .col-4 { grid-column: span 6; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-hero { flex-direction: column; }
  .hero-cta-group { flex-direction: row; }
}

@media (max-width: 860px) {
  .mobile-top-header {
    display: flex;
  }
  .bento-sidebar {
    display: none;
  }
  .bento-main {
    padding: 0;
  }
  .bento-view {
    padding: 1.5rem 1.25rem 6.5rem;
    min-height: calc(100vh - 60px);
  }
  .hero-text h1 {
    font-size: 1.85rem;
  }
  .hero-stats-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .hero-stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    padding-right: 0;
  }
  .hero-stat-cell:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .col-4 { grid-column: span 12; }
  .projects-mini-list { grid-template-columns: 1fr; }
  .projects-grid {
    display: block;
    width: 100%;
  }
  .peek-slide {
    flex: 0 0 92%;
    border-radius: var(--radius);
  }
  .slide-media-wrap {
    aspect-ratio: 16 / 10;
  }
  .slide-body {
    padding: 1.15rem 1.25rem 1.35rem;
    gap: 0.65rem;
  }
  .slide-title {
    font-size: 1.15rem;
  }
  .slide-desc {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slide-footer-actions {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
  }
  .slide-footer-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .about-details-grid { grid-template-columns: 1fr; }
  .mobile-dock {
    display: flex;
  }
  .chat-fab {
    bottom: 5.5rem;
    right: 1.25rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.775rem;
  }
  .chat-fab-text {
    display: none;
  }
}

/* ====================================================
   BrewedOps Motion Library Enhancements
   (Spotlight Cards, Shimmer Beams, Magnetic Hover)
   ==================================================== */

/* 2. Interactive Spotlight Radial Lighting on Hover (Pointer tracking) */
.bento-card, .project-card, .service-card, .contact-info-card, .contact-form-card {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  --spotlight-opacity: 0;
  position: relative;
}

.bento-card::before, 
.project-card::before, 
.service-card::before,
.contact-info-card::before,
.contact-form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    450px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(16, 185, 129, 0.07),
    transparent 65%
  );
  opacity: var(--spotlight-opacity);
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1;
}

/* 3. Subtle Animated Border Shimmer Beam on Flagship Cards */
.flagship-beam {
  position: relative;
  overflow: hidden;
}

.flagship-beam::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: brewedShimmer 4.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes brewedShimmer {
  0% { left: -100%; }
  35%, 100% { left: 100%; }
}

/* ====================================================
   Constellation Background (Motion Library: backgrounds-constellation)
   ==================================================== */
.constellation-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.bento-app {
  position: relative;
  z-index: 1;
}

/* ====================================================
   Spring Follower Cursor (Motion Library: cursor-follower)
   ==================================================== */
@media (pointer: fine) {
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--accent-blue);
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transform: translate(-100px, -100px);
    transition: opacity 0.25s ease, background-color 0.2s ease;
    will-change: transform;
  }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-blue);
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
    transform: translate(-100px, -100px) scale(1);
    transition: opacity 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    will-change: transform;
  }

  .cursor-ring.big {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.12);
  }

  body.cursor-active .cursor-dot,
  body.cursor-active .cursor-ring {
    opacity: 1;
  }
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* ====================================================
   Projects Scrollytelling Scene (Motion Library: scroll-story)
   ==================================================== */
.project-card {
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 300ms ease,
              box-shadow 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card.scrolly-focus {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.16);
  transform: translateY(-4px) scale(1.015);
}

.project-card.scrolly-focus .project-badge {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-blue);
}

/* 4. Interactive Micro-Motion Button Lift */
.btn:active, .social-circle-btn:active {
  transform: scale(0.97) !important;
}

/* ====================================================
   Obsidian Text & Typography Motion Library
   (text-hover-weight, text-highlighter, text-blur-in,
    text-shine, text-shimmer-label, text-quote)
   ==================================================== */

/* A. Hover Weight (Motion Library: text-hover-weight) */
.hw-heading {
  position: relative;
  cursor: default;
}

.hw-word {
  display: inline-block;
  white-space: nowrap;
}

.hw-char {
  display: inline-block;
  transition: color 0.14s ease;
  will-change: font-weight;
}

/* B. Marker Highlight (Motion Library: text-highlighter) */
.text-marker-hl {
  position: relative;
  display: inline;
  isolation: isolate;
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.text-marker-hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.04em;
  right: -0.04em;
  top: 0.32em;
  bottom: -0.02em;
  border-radius: 0.14em;
  background: color-mix(in srgb, var(--accent-blue) 30%, transparent);
  transform-origin: left center;
  transform: scaleX(0) rotate(-0.8deg);
  animation: textMarkerSweep 5.2s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  pointer-events: none;
}

@keyframes textMarkerSweep {
  0%, 8% {
    transform: scaleX(0) rotate(-0.8deg);
    opacity: 1;
  }
  30%, 82% {
    transform: scaleX(1) rotate(-0.8deg);
    opacity: 1;
  }
  95%, 100% {
    transform: scaleX(1) rotate(-0.8deg);
    opacity: 0;
  }
}

/* C. Blur In Word-by-Word (Motion Library: text-blur-in) */
.blur-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.bento-view.active-view .blur-word {
  animation: textBlurInWord 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--wi, 0) * 24ms);
}

@keyframes textBlurInWord {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

/* D. Text Shine Sweep & Shimmering Label (text-shine & text-shimmer-label) */
.hero-badge span:last-child,
.section-badge,
.profile-status-pill span:last-child,
.mobile-status-tag span:last-child {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(110deg, var(--accent) 32%, #ffffff 50%, var(--accent) 68%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShineSweep 3.4s linear infinite;
}

.chat-token-tag,
.shimmer-thinking-text {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(100deg, var(--text-muted) 35%, #ffffff 50%, var(--accent-blue) 65%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShimmerLabel 1.8s linear infinite;
}

.chat-shimmer-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem !important;
  border-radius: 999px !important;
}

.shimmer-sparkle-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
  flex-shrink: 0;
  animation: shimmerSparklePulse 2.4s ease-in-out infinite;
}

@keyframes textShineSweep {
  0%, 28% {
    background-position: 130% 0;
  }
  72%, 100% {
    background-position: -30% 0;
  }
}

@keyframes textShimmerLabel {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -30% 0;
  }
}

@keyframes shimmerSparklePulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.18) rotate(14deg);
  }
}

/* E. Quote Reveal (Motion Library: text-quote) */
.quote-reveal-figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.45rem;
  padding: 1rem 1.15rem !important;
}

.quote-reveal-mark {
  width: 22px;
  height: 22px;
  fill: var(--accent-blue);
  transform-origin: 0 100%;
}

.bento-view.active-view .quote-reveal-mark {
  animation: quoteMarkPop 620ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.quote-reveal-text {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.01em;
}

.quote-word {
  display: inline-block;
  margin-right: 0.26em;
}

.bento-view.active-view .quote-word {
  animation: quoteWordRise 560ms cubic-bezier(0.32, 0.72, 0, 1) both;
  animation-delay: calc(0.22s + var(--i, 0) * 75ms);
}

.quote-reveal-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.bento-view.active-view .quote-reveal-caption {
  animation: quoteWordRise 560ms cubic-bezier(0.32, 0.72, 0, 1) both;
  animation-delay: 0.78s;
}

@keyframes quoteMarkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes quoteWordRise {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* ====================================================
   Bento Focus: Hover one tile, the rest recede
   (Motion Library: cards-bento-focus)
   Scoped strictly to #view-home .bento-grid ("in that part only")
   ==================================================== */
#view-home .bento-grid {
  --bento-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --bento-spring-dur: 587ms;
}

@supports (transition-timing-function: linear(0, 1)) {
  #view-home .bento-grid {
    --bento-spring: linear(
      0, 0.0941 5.6%, 0.2736 11.1%, 0.4548 16.7%, 0.6076 22.2%, 0.7255 27.8%,
      0.8119 33.3%, 0.8732 38.9%, 0.9156 44.4%, 0.9444 50.0%, 0.9636 55.6%,
      0.9764 61.1%, 0.9848 66.7%, 0.9902 72.2%, 0.9938 77.8%, 0.9960 83.3%,
      0.9975 88.9%, 0.9984 94.4%, 1 100%
    );
  }
}

#view-home .bento-grid .bento-card {
  transition: transform var(--bento-spring-dur) var(--bento-spring),
              opacity 400ms ease,
              filter 400ms ease,
              box-shadow var(--bento-spring-dur) var(--bento-spring),
              border-color 250ms ease;
  will-change: transform, opacity;
  transform-origin: center center;
}

#view-home .bento-grid .bento-card:focus {
  outline: none;
}

/* Focus state: Active on mobile tap + desktop keyboard/pointer fallback */
#view-home .bento-grid.has-bento-focus .bento-card:not(.is-bento-focused) {
  opacity: 0.42;
  transform: scale(0.96);
  filter: saturate(0.85);
}

#view-home .bento-grid.has-bento-focus .bento-card.is-bento-focused {
  transform: scale(1.02);
  opacity: 1;
  z-index: 5;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 42px -10px rgba(0, 0, 0, 0.65), 0 0 24px -2px rgba(56, 189, 248, 0.2);
}

/* Desktop native hover with :has() */
@media (hover: hover) and (pointer: fine) {
  #view-home .bento-grid:has(.bento-card:hover) .bento-card:not(:hover) {
    opacity: 0.42;
    transform: scale(0.95);
    filter: saturate(0.85);
  }

  #view-home .bento-grid .bento-card:hover {
    transform: scale(1.025);
    opacity: 1;
    z-index: 5;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 16px 42px -10px rgba(0, 0, 0, 0.65), 0 0 24px -2px rgba(56, 189, 248, 0.2);
  }
}

/* Keyboard navigation focus */
#view-home .bento-grid:has(.bento-card:focus-visible) .bento-card:not(:focus-visible) {
  opacity: 0.42;
  transform: scale(0.95);
  filter: saturate(0.85);
}

#view-home .bento-grid .bento-card:focus-visible {
  transform: scale(1.025);
  opacity: 1;
  z-index: 5;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 42px -10px rgba(0, 0, 0, 0.65), 0 0 24px -2px rgba(56, 189, 248, 0.2);
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Respect user's prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .bento-view.active-view > *,
  .bento-view.active-view .blur-word,
  .bento-view.active-view .quote-reveal-mark,
  .bento-view.active-view .quote-word,
  .bento-view.active-view .quote-reveal-caption,
  .text-marker-hl::before,
  .hero-badge span:last-child,
  .section-badge,
  .profile-status-pill span:last-child,
  .mobile-status-tag span:last-child,
  .chat-token-tag,
  .shimmer-thinking-text,
  .shimmer-sparkle-icon {
    animation: none !important;
    transition: none !important;
  }
  .text-marker-hl::before {
    transform: scaleX(1) rotate(-0.8deg) !important;
    opacity: 1 !important;
  }
  .hero-badge span:last-child,
  .section-badge,
  .profile-status-pill span:last-child,
  .mobile-status-tag span:last-child,
  .chat-token-tag,
  .shimmer-thinking-text {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
  }
  .tools-marquee-track {
    animation: none !important;
  }
  .constellation-canvas,
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
  .flagship-beam::after {
    display: none !important;
  }
  .bento-card::before, 
  .project-card::before, 
  .service-card::before,
  .contact-info-card::before,
  .contact-form-card::before {
    display: none !important;
  }
  #view-home .bento-grid .bento-card,
  #view-home .bento-grid:has(.bento-card:hover) .bento-card:not(:hover),
  #view-home .bento-grid:has(.bento-card:focus-visible) .bento-card:not(:focus-visible),
  #view-home .bento-grid .bento-card:hover,
  #view-home .bento-grid .bento-card:focus-visible,
  #view-home .bento-grid.has-bento-focus .bento-card,
  .project-thumb-frame,
  .project-thumb,
  .project-body {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .peek-track,
  .peek-slide,
  .peek-dot {
    transition: none !important;
  }
}
