/* Bento home — inspired by clean 3-column developer portfolios */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #ededed;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #ffffff;
  --radius: 16px;
  --radius-lg: 22px;
  --font: "DM Sans", system-ui, sans-serif;
  --col-gap: 14px;
  --panel-pad: 1.15rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.bento-app {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Cursor-following typewriter hint (reference-style) */
.cursor-type-bubble {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  max-width: min(340px, 46vw);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-hover);
  background: rgba(16, 16, 16, 0.94);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

body.bento-app.theme-light .cursor-type-bubble {
  background: rgba(252, 252, 252, 0.96);
}

.cursor-type-bubble.is-visible {
  opacity: 1;
}

.cursor-type-bubble.is-typing::after {
  content: "▍";
  display: inline-block;
  margin-left: 1px;
  color: var(--text-muted);
  animation: type-caret 0.85s step-end infinite;
}

@keyframes type-caret {
  50% {
    opacity: 0;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-type-bubble {
    display: none !important;
  }
}

body.bento-app.theme-light {
  --bg: #f5f5f5;
  --bg-elevated: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);
  --text: #111111;
  --text-muted: #525252;
  --text-dim: #737373;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Subtle dot grid (left column) */
.bento-shell {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 12px 12px 88px;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .bento-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
    gap: var(--col-gap);
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding: 12px;
    padding-bottom: 72px;
  }
}

.bento-col {
  display: flex;
  flex-direction: column;
  gap: var(--col-gap);
  min-height: 0;
}

@media (min-width: 1024px) {
  .bento-col {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  }

  .bento-col-left {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 18px 18px;
    background-position: 0 0;
    padding-right: 4px;
  }
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--panel-pad);
}

.panel-flat {
  background: transparent;
  border: none;
  padding: 0.25rem 0;
}

/* Profile */
.profile-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #1a1a1a center / cover no-repeat;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.profile-avatar--has-photo {
  background-image: url("Assets/Profile/Annie-Profile.jpg?v=6");
  background-position: center 44%;
  background-size: 128%;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.profile-name {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.verified-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
}

.profile-role {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.profile-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.profile-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
}

.btn-follow {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

body.bento-app.theme-light .btn-follow {
  background: #111;
  color: #fff;
}

.btn-follow:hover {
  opacity: 0.9;
}

.btn-message {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-message:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.section-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.25rem;
}

.section-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.section-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-nav-btn i {
  font-size: 1rem;
}

.section-nav-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  text-align: center;
}

.section-nav-item:has(.section-nav-btn:hover) .section-nav-label,
.section-nav-item:has(.section-nav-btn.active) .section-nav-label {
  color: var(--text-muted);
}

.section-nav-btn:hover,
.section-nav-btn.active {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Center modals */
.bento-modal-root {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-modal-root.is-open {
  pointer-events: auto;
  opacity: 1;
}

.bento-modal-root[hidden] {
  display: none !important;
}

.bento-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bento-modal-box {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(88vh, 640px);
  overflow-y: auto;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-modal-root.is-open .bento-modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.bento-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.bento-modal-close:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.bento-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 2rem 0.85rem 0;
}

.bento-modal-lead {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.bento-modal-text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.bento-modal-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.bento-modal-stats li {
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.bento-modal-stats strong {
  color: var(--text);
}

.bento-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bento-modal-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bento-modal-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.84rem;
}

.bento-modal-contact-list span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.bento-modal-contact-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.panel-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.panel-title--main {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.panel-title-row .panel-title {
  margin-bottom: 0;
}

.link-ghost {
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.link-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* Timeline */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.75rem;
  align-items: start;
}

.timeline-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.timeline-marker.now {
  border-color: #34d399;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.timeline-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  grid-column: 1 / -1;
  padding-left: 1.35rem;
}

.timeline-body {
  grid-column: 2;
}

.timeline-org {
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Achievements */
.achieve-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.achieve-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.achieve-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.achieve-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.achieve-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.achieve-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.55rem;
}

.chip-btn,
.link-inpage,
.stack-chip-btn {
  font: inherit;
  cursor: pointer;
}

.stack-chip-btn {
  border: none;
  text-decoration: none;
}

.quick-links-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.quick-link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.quick-link-chip:hover,
.quick-link-chip:focus-visible {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.bento-testimonial-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 4px;
}

.bento-testimonial-card {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.bento-testimonial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.bento-testimonial-head strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.bento-testimonial-stars {
  color: #fbbf24;
  font-size: 0.62rem;
  display: inline-flex;
  gap: 0.1rem;
  flex-shrink: 0;
}

.bento-testimonial-meta {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}

.bento-testimonial-quote {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
}

.bento-modal-contact-list--prominent a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.achieve-expand {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.achieve-expand[hidden] {
  display: none;
}

.achieve-quote {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.achieve-quote:last-child {
  margin-bottom: 0;
}

.achieve-cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.achieve-cert-list li {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.35;
}

.achieve-cert-list span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.chip-btn.active {
  border-color: var(--border-hover);
  color: var(--text);
}

.achieve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip-link {
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.chip-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* Hire / Now card (reference-style) */
.hire-card {
  padding: 1.1rem 1.15rem 1.15rem;
}

.hire-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.hire-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
  flex-shrink: 0;
}

.hire-status-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hire-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 0.95rem;
}

.hire-time-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.hire-time-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.hire-time {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.hire-mood {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  flex: 1;
  min-width: 120px;
}

.hire-reply {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.hire-actions {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}

.hire-btn-cv {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.hire-btn-cv:hover {
  background: #fff;
  transform: translateY(-1px);
}

body.bento-app.theme-light .hire-btn-cv {
  background: #111;
  color: #fff;
}

body.bento-app.theme-light .hire-btn-cv:hover {
  background: #1f1f1f;
}

.hire-btn-msg {
  width: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.hire-btn-msg:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #34d399;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

/* Featured — top 3 horizontal + more in list */
.featured-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.featured-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  margin: 0;
}

.featured-fraction {
  color: var(--text-muted);
  font-weight: 600;
}

.featured-stage {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0d0d0d;
  flex: 0 0 auto;
  width: 100%;
  padding: 0;
}

.featured-strip {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.featured-strip-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr minmax(0, 168px);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
}

.featured-strip-card:hover,
.featured-strip-card:focus-visible {
  background: rgba(255, 255, 255, 0.03);
}

.featured-strip-copy {
  min-width: 0;
}

.featured-strip-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  line-height: 1.15;
}

.featured-strip-copy .featured-tags {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.featured-strip-lead {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.featured-strip-copy .featured-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.5rem;
  margin-bottom: 0.75rem;
}

.featured-strip-copy .metric {
  flex: 1 1 calc(33.33% - 0.5rem);
  min-width: 72px;
  font-size: 0.6rem;
  line-height: 1.25;
  color: var(--text-dim);
}

.featured-strip-copy .metric span {
  display: block;
}

.featured-strip-copy .metric strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.2rem;
  line-height: 1.1;
}

.featured-strip-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 168px;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
}

.featured-strip-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.featured-dot {
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
}

.client-projects-panel {
  flex-shrink: 0;
}

.client-projects-panel .project-card {
  grid-template-columns: 52px 1fr;
  padding: 0.85rem;
}

.client-projects-panel .project-thumb {
  width: 52px;
  height: 52px;
}

@media (max-width: 520px) {
  .featured-strip-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .featured-strip-visual {
    max-width: 100%;
    justify-self: stretch;
  }
}

.featured-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 2px;
}

.featured-client-card {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    grid-template-columns 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-client-card:hover,
.featured-client-card:focus-visible {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  grid-template-columns: 1fr minmax(132px, 42%);
}

.featured-client-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.featured-client-tags {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.featured-client-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.featured-client-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 200px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0d0d0d;
  justify-self: end;
  transition:
    max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-client-card:hover .featured-client-thumb,
.featured-client-card:focus-visible .featured-client-thumb {
  max-height: 268px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.featured-client-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-client-card:hover .featured-client-thumb img,
.featured-client-card:focus-visible .featured-client-thumb img {
  transform: scale(1.04);
}

.featured-client-bubble,
.project-card-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  background: rgba(248, 250, 252, 0.96);
  color: #111;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 9px;
  line-height: 1.25;
  text-align: center;
  max-width: 92%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition:
    opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.featured-client-card:hover .featured-client-bubble,
.featured-client-card:focus-visible .featured-client-bubble,
.project-card:hover .project-card-bubble,
.project-card:focus-visible .project-card-bubble {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.project-thumb {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0d0d0d;
  transition:
    width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb,
.project-card:focus-visible .project-thumb {
  width: 72px;
  height: 72px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.project-cats {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.project-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 520px) {
  .featured-client-card {
    grid-template-columns: 1fr;
  }

  .featured-client-card:hover,
  .featured-client-card:focus-visible {
    grid-template-columns: 1fr;
  }

  .featured-client-thumb {
    max-height: 220px;
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .featured-client-card:hover .featured-client-thumb,
  .featured-client-card:focus-visible .featured-client-thumb {
    max-height: 240px;
  }

  .featured-client-thumb img {
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-strip {
    transition: none;
  }

  .featured-client-card,
  .project-card,
  .featured-client-thumb,
  .project-thumb,
  .featured-client-thumb img,
  .featured-client-bubble,
  .project-card-bubble {
    transition: none;
  }
}

@media (hover: none) {
  .featured-client-bubble,
  .project-card-bubble {
    display: none;
  }
}

.featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.featured-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.featured-nav {
  display: flex;
  gap: 0.35rem;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

body.bento-app.theme-light .featured-stage {
  background: #fafafa;
}

.featured-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
  animation: fadeIn 0.35s ease;
}

.featured-slide.active {
  display: grid;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.featured-copy h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.featured-tags {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.featured-copy p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.featured-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.metric {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.featured-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.featured-visual img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.featured-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.featured-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s, transform 0.2s;
}

.featured-dot.active {
  background: #fff;
  transform: scale(1.15);
}

body.bento-app.theme-light .featured-dot.active {
  background: #111;
}

/* Projects list */
.projects-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.filter-wrap {
  position: relative;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 140px;
  background: #161616;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem;
  display: none;
  z-index: 20;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

body.bento-app.theme-light .filter-menu {
  background: #fff;
}

.filter-menu.open {
  display: block;
}

.filter-menu button {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.filter-menu button:hover,
.filter-menu button.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 2px;
}

.project-card.hidden,
.project-card.filter-hidden {
  display: none;
}

.view-more-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.view-more-btn:hover {
  color: var(--text);
  border-style: solid;
}

/* GitHub + stack */
.github-chart-link {
  display: block;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0d1117;
  -webkit-overflow-scrolling: touch;
}

.github-chart {
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  display: block;
}

@media (min-width: 1024px) {
  .github-chart {
    min-width: 480px;
  }
}

.stack-group {
  margin-bottom: 1rem;
}

.stack-group:last-child {
  margin-bottom: 0;
}

.stack-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.stack-group-head span:first-child {
  font-size: 0.78rem;
  font-weight: 600;
}

.stack-count {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.stack-chip i {
  opacity: 0.85;
  font-size: 0.85rem;
}

.about-blurb {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-blurb strong {
  color: var(--text);
  font-weight: 600;
}

/* Dock */
.bento-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

body.bento-app.theme-light .bento-dock {
  background: rgba(255, 255, 255, 0.92);
}

.dock-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.dock-btn:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.dock-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.dock-link {
  font-size: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dock-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile featured */
@media (max-width: 767px) {
  .featured-slide.active {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    order: -1;
    min-height: 180px;
  }
}

@media (max-width: 1023px) {
  .bento-col-center {
    order: 1;
  }

  .bento-col-left {
    order: 2;
  }

  .bento-col-right {
    order: 3;
  }
}