/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM — REPLICATING EMMANUELEBEH.DEV
   Typography: Baufra Font Family
   Palette: Warm Linen (#f6f5ef), Woodsmoke Charcoal (#161616), Accent Coral Orange (#ff5c39)
   ========================================================================== */

@font-face {
  font-family: 'Baufra';
  src: url('/assets/fonts/Baufra-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baufra';
  src: url('/assets/fonts/Baufra-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baufra';
  src: url('/assets/fonts/Baufra-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baufra';
  src: url('/assets/fonts/Baufra-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --woodsmoke: #161616;
  --woodsmoke-rgb: 22, 22, 22;
  --accent-orange: #ff5c39;
  --accent-orange-rgb: 255, 92, 57;
  --background: #f6f5ef;
  --muted-foreground: #71717a;
  --border-light: rgba(22, 22, 22, 0.12);
  --border-medium: rgba(22, 22, 22, 0.15);
  --border-dark: rgba(255, 255, 255, 0.15);
  --font-main: 'Baufra', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scrollbar-color: var(--accent-orange) var(--woodsmoke);
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

* {
  scrollbar-color: var(--accent-orange) var(--woodsmoke);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--woodsmoke);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-orange);
  border-radius: 9999px;
  border: 2px solid var(--woodsmoke);
}

::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

body {
  font-family: var(--font-main);
  background-color: var(--background);
  background-image: url('/assets/images/noise-bg.webp');
  background-repeat: repeat;
  color: var(--woodsmoke);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Skip Link */
.skip-to-content {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--woodsmoke);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 100;
  text-decoration: none;
  font-weight: 500;
}
.skip-to-content:focus {
  top: 1rem;
}

/* Utilities & Grid Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1440px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

.text-accent-orange {
  color: var(--accent-orange);
}

.bg-accent-orange {
  background-color: var(--accent-orange);
}

.bg-woodsmoke {
  background-color: var(--woodsmoke);
}

.text-woodsmoke {
  color: var(--woodsmoke);
}

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

/* ==========================================================================
   DESKTOP FLOATING NAVBAR
   ========================================================================== */
.floating-nav-container {
  display: none;
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  will-change: transform, opacity;
}

@media (min-width: 1024px) {
  .floating-nav-container {
    display: block;
  }
}

.floating-nav-container.is-hidden {
  transform: translate(-50%, -160%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease !important;
}

.floating-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--woodsmoke);
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 0.85rem 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.floating-nav:hover,
.floating-nav:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.nav-brand {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  font-size: 0.95rem;
  text-decoration: none;
  margin-right: 0.25rem;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--accent-orange);
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: auto;
  max-width: 650px;
  transition: max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease-out,
              transform 0.25s ease-out;
}

/* Deep-page collapsed / collapsing transitions: fold inward into center capsule */
.floating-nav.is-deep-collapsed:not(.is-scroll-up) .nav-links-wrapper,
.floating-nav.is-collapsing .nav-links-wrapper {
  max-width: 0px !important;
  pointer-events: none !important;
  transition: max-width 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.floating-nav.is-deep-collapsed:not(.is-scroll-up) .nav-links,
.floating-nav.is-collapsing .nav-links {
  opacity: 0 !important;
  transform: translateY(-12px) !important;
  transition: opacity 0.32s ease-out,
              transform 0.32s ease-out !important;
}

/* Hover expansion when collapsed, or intentional scroll-up expansion */
.floating-nav:hover:not(.is-clicked):not(.is-collapsing) .nav-links-wrapper,
.floating-nav.is-scroll-up:not(.is-collapsing) .nav-links-wrapper {
  max-width: 650px !important;
  pointer-events: auto !important;
  transition: max-width 0.62s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.floating-nav:hover:not(.is-clicked):not(.is-collapsing) .nav-links,
.floating-nav.is-scroll-up:not(.is-collapsing) .nav-links {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.42s ease-out 0.1s,
              transform 0.42s ease-out 0.1s !important;
}

/* Creative Agency Dual-line Text Roll Hover Effect */
.roll-link {
  position: relative;
  overflow: hidden;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #a1a1aa;
  border: none;
  background: transparent;
  padding: 0;
  transition: color 0.3s ease;
}

.roll-link .roll-text-1 {
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 0.64, 0.32, 1);
  transform: translateY(0%);
}

.roll-link .roll-text-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 0.64, 0.32, 1);
  transform: translateY(100%);
  color: #ffffff;
}

.roll-link:hover .roll-text-1 {
  transform: translateY(-100%);
}

.roll-link:hover .roll-text-2 {
  transform: translateY(0%);
}

.roll-link.active {
  color: var(--accent-orange);
}

.roll-link.active .roll-text-2 {
  color: var(--accent-orange);
}

/* Language Switcher in Navbar */
.lang-switcher-container {
  position: relative;
  margin-left: 0.5rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.lang-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn img {
  width: 1.25rem;
  height: 1rem;
  border-radius: 2px;
  object-fit: cover;
}

.lang-btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.lang-btn.open svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 11rem;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 50;
}

.lang-dropdown.show {
  display: block;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--woodsmoke);
  text-align: left;
  transition: background-color 0.2s ease;
}

.lang-option:hover {
  background-color: rgba(22, 22, 22, 0.05);
}

.lang-option.active {
  background-color: rgba(22, 22, 22, 0.1);
}

.lang-option img {
  width: 1.25rem;
  height: 1rem;
  border-radius: 2px;
  object-fit: cover;
}

/* ==========================================================================
   MOBILE HEADER & DRAWER NAVIGATION
   ========================================================================== */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background-color: var(--woodsmoke);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 1024px) {
  .mobile-header {
    display: none;
  }
}

.mobile-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--accent-orange);
  color: var(--woodsmoke);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 20rem;
  max-width: 85vw;
  background-color: var(--woodsmoke);
  color: #ffffff;
  z-index: 50;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 0.64, 0.32, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.drawer-title {
  font-weight: 700;
  font-size: 1.25rem;
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.drawer-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.drawer-bio {
  color: #d1d5db;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.drawer-divider {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.drawer-link {
  background: transparent;
  border: none;
  color: #a1a1aa;
  text-align: left;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.drawer-link:hover, .drawer-link.active {
  color: var(--accent-orange);
}

.drawer-lang-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.drawer-lang-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.drawer-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.drawer-lang-btn.active {
  background-color: rgba(255, 92, 57, 0.2);
  color: var(--accent-orange);
}

.drawer-lang-btn:not(.active) {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.drawer-lang-btn:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.drawer-lang-btn img {
  width: 1.25rem;
  height: 1rem;
  border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION (#about)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  }
  .hero-grid > .hero-portrait-col {
    order: 2;
  }
  .hero-grid > .hero-content-col {
    order: 1;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 3rem;
  }
  .hero-grid > .hero-content-col {
    padding-right: 2.5rem;
  }
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--woodsmoke);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--woodsmoke);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  width: fit-content;
}

.available-badge svg {
  width: 1rem;
  height: 1rem;
}

.hero-heading {
  font-size: clamp(1.75rem, 2.3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero-title-name {
  display: block;
  margin-bottom: 0.25rem;
}

.hero-role-line {
  display: inline-block;
  min-height: 2.5em;
}

@media (min-width: 640px) {
  .hero-role-line {
    display: block;
    white-space: nowrap;
    min-height: 1.3em;
  }
}

.typewriter-text {
  color: var(--accent-orange);
}

.animate-blink {
  display: inline-block;
  font-weight: 300;
  color: var(--accent-orange);
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--woodsmoke);
  max-width: 620px;
}

/* Social Link Cards */
.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--woodsmoke);
  text-decoration: none;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-light);
  border-radius: 0.375rem;
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.social-card svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex-shrink: 0;
}

.social-card:hover {
  background-color: var(--woodsmoke);
  color: #ffffff;
  border-color: var(--woodsmoke);
}

/* Hero Portrait */
.hero-portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.portrait-frame {
  background-color: rgba(156, 163, 175, 0.1);
  border-radius: 0.75rem;
  background-clip: padding-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  max-width: 360px;
  width: 100%;
}

.portrait-img {
  width: 100%;
  height: auto;
  aspect-ratio: 0.78 / 1;
  max-height: min(490px, 62vh);
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.portrait-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(22, 22, 22, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  width: fit-content;
}

.portrait-badge-icon {
  background-color: rgba(255, 92, 57, 0.2);
  padding: 0.35rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-badge-num {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.portrait-badge-text {
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.2;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  cursor: pointer;
  color: var(--woodsmoke);
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .scroll-indicator {
    display: block;
  }
}

.scroll-indicator-inner {
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ==========================================================================
   SECTION HEADERS & ANCHOR OFFSETS
   ========================================================================== */
.section-wrapper,
.hero-section,
.afk-section {
  scroll-margin-top: 6.5rem;
}

.section-wrapper {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section-wrapper {
    padding-top: 6.5rem;
    padding-bottom: 6rem;
  }
}

.section-header-block {
  text-align: center;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .section-header-block {
    margin-top: 0.75rem;
    margin-bottom: 4.5rem;
  }
}

.section-eyebrow {
  color: var(--accent-orange);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  #afk .section-subtitle,
  #skills .section-subtitle {
    max-width: none;
    white-space: nowrap;
  }
}

/* ==========================================================================
   AFK / HOBBIES BENTO SECTION (#afk) — OPTION 3 MINI BENTO
   ========================================================================== */
.afk-section.section-wrapper {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 1024px) {
  .afk-section.section-wrapper {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

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

.afk-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .afk-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .afk-bento-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.bento-card {
  position: relative;
  border-radius: 1rem;
  background-color: #161618;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  min-height: 230px;
  height: 230px;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: rgba(255, 92, 57, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -8px rgba(255, 92, 57, 0.22);
}

/* Cybernetic corner brackets */
.bento-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(255, 92, 57, 0.6);
  border-style: solid;
  pointer-events: none;
  z-index: 10;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.bento-card:hover .bento-corner {
  border-color: #ff5c39;
}

.bento-corner-tl {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}

.bento-corner-tr {
  top: 8px;
  right: 8px;
  border-width: 2px 2px 0 0;
}

.bento-corner-bl {
  bottom: 8px;
  left: 8px;
  border-width: 0 0 2px 2px;
}

.bento-corner-br {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
}

/* Photo Card */
.bento-photo-card {
  padding: 0;
  min-height: 230px;
  height: 230px;
}

.bento-img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-photo-card:hover .bento-img {
  transform: scale(1.05);
}

.bento-img-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e4e4e7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
  pointer-events: none;
}

/* Story Card */
.bento-story-card {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  height: 230px;
}

.bento-story-card .bento-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bento-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bento-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bento-desc {
  color: #d4d4d8;
  font-size: 0.86rem;
  line-height: 1.5;
}

.bento-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: #71717a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-footer-meta span:last-child {
  color: var(--accent-orange);
  font-weight: 600;
}

@media (max-width: 640px) {
  .afk-section.section-wrapper {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }
  .bento-photo-card {
    height: 210px;
    min-height: 210px;
  }
  .bento-photo-card .bento-img {
    height: 210px;
    min-height: 210px;
    object-fit: cover;
  }
  .bento-story-card {
    height: auto;
    min-height: 200px;
    padding: 1.25rem 1.25rem;
  }
}

/* ==========================================================================
   SKILLS SECTION (#skills) — COMPACT SINGLE-VIEWPORT LAYOUT
   ========================================================================== */
#skills.section-wrapper {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

@media (min-width: 1024px) {
  #skills.section-wrapper {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

#skills .section-header-block {
  margin-bottom: 1.15rem;
}

#skills .section-subtitle {
  font-size: 0.95rem;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.skills-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.15rem auto 1.5rem;
  max-width: 980px;
}

.skills-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--woodsmoke);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 0.64, 0.32, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.skills-filter-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(22, 22, 22, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 22, 22, 0.06);
}

.skills-filter-btn.active {
  background: var(--woodsmoke);
  color: #ffffff;
  border-color: var(--woodsmoke);
  box-shadow: 0 4px 14px rgba(22, 22, 22, 0.16);
  transform: translateY(-1px);
}

.skills-filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: rgba(22, 22, 22, 0.08);
  color: var(--muted-foreground);
  min-width: 1.15rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.skills-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* 4-column side-by-side grid on desktop */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1rem;
  }
  .skills-grid > .skill-category-card { grid-column: span 2; }
  .skills-grid > .skill-category-card:nth-child(5) { grid-column: 2 / span 2; grid-row: 2; }
  .skills-grid > .skill-category-card:nth-child(6) { grid-column: 4 / span 2; grid-row: 2; }
  .skills-grid > .skill-category-card:nth-child(7) { grid-column: 6 / span 2; grid-row: 2; }
}

.skill-category-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.05rem;
  border: 1px solid var(--border-medium);
  border-radius: 0.875rem;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.025);
  transition: transform 0.35s cubic-bezier(0.16, 0.64, 0.32, 1),
              box-shadow 0.35s cubic-bezier(0.16, 0.64, 0.32, 1),
              border-color 0.25s ease,
              opacity 0.35s ease,
              filter 0.35s ease;
}

.skill-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(22, 22, 22, 0.08);
  border-color: rgba(22, 22, 22, 0.25);
}

.skill-category-card.is-dimmed,
.skill-category-card.reveal.is-visible.is-dimmed {
  opacity: 0.22 !important;
  filter: grayscale(90%);
  pointer-events: none;
  transform: scale(0.98) !important;
}

.skill-category-card.is-highlighted,
.skill-category-card.reveal.is-visible.is-highlighted {
  opacity: 1 !important;
  filter: none;
  transform: scale(1) !important;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.category-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.45rem;
  background: rgba(22, 22, 22, 0.05);
  border: 1px solid rgba(22, 22, 22, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--woodsmoke);
  flex-shrink: 0;
}

.category-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2;
}

.skill-category-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--woodsmoke);
}

.skill-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-start;
}

/* --- Solid Brand Background Badges --- */
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.42rem 0.72rem;
  border-radius: 0.45rem;
  color: #ffffff;
  background: #2b2b2b;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.16, 0.64, 0.32, 1),
              box-shadow 0.2s cubic-bezier(0.16, 0.64, 0.32, 1),
              filter 0.2s ease;
  cursor: default;
  user-select: none;
  line-height: 1.2;
}

.skill-pill svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 0.64, 0.32, 1);
}

.skill-pill img { width: 1rem; height: 1rem; object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(1); }
.skill-pill[data-brand="maven"] { background: #b12550; }
.skill-pill[data-brand="vite"] { background: #646cff; }
.skill-pill[data-brand="testing"] { background: #247448; }
.skill-pill[data-brand="alm"] { background: #00629b; }
.skill-pill[data-brand="openai"] { background: #185f50; }
.skill-pill[data-brand="ai"] { background: #6741a5; }
.skill-pill[data-brand="claude"] { background: #a84f36; }
.skill-pill[data-brand="cursor"] { background: #262626; }
.skill-pill[data-brand="gradle"] { background: #02303a; }
.skill-pill[data-brand="sqlite"] { background: #003b57; }
.skill-pill[data-brand="cloudflare"] { background: #f38020; color: #161616; }
.skill-pill[data-brand="cloudflare"] img { filter: brightness(0); }

.skill-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  filter: brightness(1.08);
}

.skill-pill:hover svg {
  transform: scale(1.12);
}

/* Category 1: Languages & Core Systems */
.skill-pill[data-brand="java"] { background: #ea6c00; }
.skill-pill[data-brand="python"] { background: #3776ab; }
.skill-pill[data-brand="typescript"] { background: #3178c6; }
.skill-pill[data-brand="javascript"] { background: #f7df1e; color: #161616; }
.skill-pill[data-brand="javascript"] svg { fill: #161616; }
.skill-pill[data-brand="golang"] { background: #00add8; }
.skill-pill[data-brand="cpp"] { background: #00599c; }
.skill-pill[data-brand="html"] { background: #e34f26; }

/* Category 2: Frameworks & Web Development */
.skill-pill[data-brand="spring"] { background: #6db33f; }
.skill-pill[data-brand="react"] { background: #0088cc; }
.skill-pill[data-brand="nextjs"] { background: #161616; border-color: rgba(255, 255, 255, 0.15); }
.skill-pill[data-brand="fastapi"] { background: #009688; }
.skill-pill[data-brand="tailwind"] { background: #06b6d4; }

/* Category 3: Databases & Storage */
.skill-pill[data-brand="postgresql"] { background: #336791; }
.skill-pill[data-brand="oracle"] { background: #ea1b22; }
.skill-pill[data-brand="mongodb"] { background: #13aa52; }
.skill-pill[data-brand="redis"] { background: #dc382d; }
.skill-pill[data-brand="supabase"] { background: #3ecf8e; color: #161616; }
.skill-pill[data-brand="supabase"] svg { fill: #161616; }

/* Category 4: Cloud, DevOps & Tools */
.skill-pill[data-brand="docker"] { background: #2496ed; }
.skill-pill[data-brand="aws"] { background: #ff9900; color: #161616; }
.skill-pill[data-brand="aws"] svg { fill: #161616; }
.skill-pill[data-brand="kubernetes"] { background: #326ce5; }
.skill-pill[data-brand="github"] { background: #24292e; }
.skill-pill[data-brand="jenkins"] { background: #d24939; }
.skill-pill[data-brand="linux"] { background: #2b2b2b; }
.skill-pill[data-brand="git"] { background: #f05032; }
.skill-pill[data-brand="postman"] { background: #ff6c37; }
.skill-pill[data-brand="selenium"] { background: #43b02a; }

@media (max-width: 640px) {
  .skills-filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.775rem;
  }
  .skill-category-card {
    padding: 1.15rem 0.95rem;
  }
}

/* ==========================================================================
   EDUCATION SECTION (#education)
   ========================================================================== */
.education-container {
  width: 100%;
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .education-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1440px) {
  .education-container {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
  }
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 960px) {
  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.education-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.025);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.education-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
  border-color: rgba(255, 92, 57, 0.4);
}

.edu-card-media {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: #1a1a1a;
}

.edu-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.edu-card-img-york { object-position: center 70%; }
.edu-card-img-bergeron { object-position: center 50%; }

.education-card:hover .edu-card-img {
  transform: scale(1.05);
}

.edu-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.45) 0%, rgba(22, 22, 22, 0.1) 40%, rgba(22, 22, 22, 0.88) 100%);
  pointer-events: none;
}

.edu-floating-header {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.edu-logo-badge {
  height: 64px;
  width: 64px;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-logo-badge-wide {
  width: 76px;
  padding: 0.2rem 0.65rem;
}

.edu-logo-img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.edu-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #15803d;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.edu-status-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.edu-status-pill-cert {
  color: #ff5c39;
}

.edu-status-dot-cert {
  background: #ff5c39;
  box-shadow: 0 0 0 2px rgba(255, 92, 57, 0.25);
}

.edu-media-tag {
  position: absolute;
  bottom: 0.55rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  font-size: 0.68rem;
}

.edu-track-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(4px);
  padding: 0.12rem 0.42rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 92, 57, 0.35);
}

.edu-campus-badge {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  font-size: 0.68rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.edu-card-content {
  padding: 1.15rem 1.35rem 1.05rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.edu-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.edu-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.edu-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--woodsmoke);
  margin: 0;
  letter-spacing: -0.015em;
}

.edu-focus-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.5rem;
  border-radius: 9999px;
  background: rgba(22, 22, 22, 0.06);
  color: var(--woodsmoke);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.edu-focus-chip-cert {
  background: rgba(255, 92, 57, 0.08);
  color: var(--accent-orange);
  border-color: rgba(255, 92, 57, 0.25);
}

.edu-card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.edu-school-name {
  font-weight: 600;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
}

.edu-convocation-badge {
  margin-left: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.edu-convocation-icon {
  display: inline-flex;
  align-items: center;
  color: var(--accent-orange);
  font-size: 0.825rem;
}

.edu-card-desc {
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--woodsmoke);
  margin: 0 0 0.75rem 0;
}

.edu-card-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
}

/* Shared row sizing aligns titles, metadata, descriptions and footers even
   when one certificate title wraps onto more lines than the other. */
@media (min-width: 961px) {
  .education-grid { row-gap: 0; }
  .education-card { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
  .edu-card-content { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
  .edu-card-body { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
  .edu-card-title-row, .edu-card-meta-row { align-items: start; }
  .edu-card-footer { margin-top: 0; }
}

.edu-tags-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.edu-tags-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.edu-tags-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-orange);
}

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

.edu-tag {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.22rem 0.52rem;
  border-radius: 0.32rem;
  background: rgba(22, 22, 22, 0.04);
  border: 1px solid var(--border-light);
  color: var(--woodsmoke);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.edu-tag:hover {
  background: rgba(255, 92, 57, 0.08);
  border-color: rgba(255, 92, 57, 0.25);
  color: var(--accent-orange);
}

.edu-tag-accent {
  background: rgba(255, 92, 57, 0.08);
  border-color: rgba(255, 92, 57, 0.3);
  color: var(--accent-orange);
  font-weight: 600;
}

/* ==========================================================================
   EXPERIENCES SECTION (#experiences) — OPTION 2: 3-PILLAR BENTO GRID
   ========================================================================== */
.experiences-container {
  width: 100%;
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   EXPERIENCE SECTION (#experiences) — COMPACT SINGLE-VIEWPORT FIT
   ========================================================================== */
#experiences.section-wrapper {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  scroll-margin-top: 0;
}

@media (min-width: 1024px) {
  #experiences.section-wrapper {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    scroll-margin-top: 0;
  }

  #experiences .section-header-block {
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
}

#experiences .section-eyebrow {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

#afk .section-title,
#skills .section-title,
#education .section-title,
#experiences .section-title,
#projects .section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

@media (min-width: 768px) {
  .experiences-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1440px) {
  .experiences-container {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
  }
}

.exp-bento-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  border-radius: 0.875rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.exp-bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  border-color: rgba(255, 92, 57, 0.35);
}

.exp-bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(246, 245, 239, 0.6);
  border-bottom: 1px solid var(--border-light);
  gap: 1rem;
}

@media (max-width: 960px) {
  .exp-bento-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
  }
}

.exp-bento-header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

@media (max-width: 640px) {
  .exp-bento-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.exp-emblem-badge {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 0.55rem;
  background: #49aaa8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(22, 22, 22, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.exp-emblem-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-badge-corner-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-orange);
  border: 2px solid #ffffff;
}

.exp-role-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.exp-domain-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.exp-domain-badge {
  color: var(--accent-orange);
}

.exp-dot-sep {
  color: rgba(22, 22, 22, 0.3);
}

.exp-domain-sub {
  color: var(--text-muted);
}

.exp-role-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--woodsmoke);
  line-height: 1.2;
  margin: 0 0 0.15rem;
}

@media (max-width: 640px) {
  .exp-role-title {
    font-size: 1.05rem;
  }
}

.exp-org-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.exp-org-name {
  font-weight: 600;
  color: var(--woodsmoke);
}

.exp-location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.exp-loc-icon {
  display: inline-flex;
  align-items: center;
}

.exp-loc-icon svg {
  width: 0.82rem;
  height: 0.82rem;
  color: var(--accent-orange);
}

.exp-bento-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

@media (max-width: 960px) {
  .exp-bento-header-right {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.exp-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(22, 22, 22, 0.05);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--woodsmoke);
}

.exp-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 6px rgba(255, 92, 57, 0.5);
}

.exp-tenure-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0.6rem;
  border-radius: 0.3rem;
  border: 1px solid var(--border-light);
}

.exp-tenure-icon {
  display: inline-flex;
  align-items: center;
}

.exp-tenure-icon svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--accent-orange);
}

.exp-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.15rem 1.35rem;
}

@media (max-width: 1080px) {
  .exp-bento-grid {
    gap: 0.85rem;
    padding: 1rem;
  }
}

@media (max-width: 960px) {
  .exp-bento-grid {
    grid-template-columns: 1fr;
  }
}

.exp-pillar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(246, 245, 239, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 0.65rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.exp-pillar:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 92, 57, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.exp-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.45rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-light);
}

.exp-pillar-title-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.exp-pillar-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--woodsmoke);
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.exp-pillar:hover .exp-pillar-icon {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
}

.exp-pillar-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.exp-pillar-num {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.exp-pillar-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--woodsmoke);
  letter-spacing: -0.01em;
  margin-top: 0.05rem;
}

.exp-pillar-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.exp-scope-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.exp-scope-lines {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.exp-scope-row {
  display: grid;
  gap: 0.08rem;
}

.exp-scope-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--accent-orange);
  background: rgba(255, 92, 57, 0.1);
}

.exp-scope-icon svg {
  width: 1rem;
  height: 1rem;
}

.exp-scope-label {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.exp-scope-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--woodsmoke);
}

.exp-stat-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.4rem;
  box-sizing: border-box;
  padding: 0.35rem 0.65rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  margin-bottom: 0.65rem;
}

.exp-stat-metrics {
  display: flex;
  gap: 1.15rem;
}

.exp-stat-metric {
  min-width: 5.25rem;
}

.exp-stat-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--woodsmoke);
  line-height: 1;
  letter-spacing: -0.02em;
}

.exp-plus {
  color: var(--accent-orange);
  font-weight: 700;
}

.exp-stat-unit {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-left: 0.2rem;
}

.exp-stat-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

@media (max-width: 480px) {
  .exp-stat-metrics {
    gap: 0.75rem;
  }

  .exp-stat-metric {
    min-width: 0;
  }
}

.exp-stat-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(255, 92, 57, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.exp-stat-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.exp-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.exp-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.exp-bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-orange);
  margin-top: 0.38rem;
  flex-shrink: 0;
}

.exp-bullet-text {
  font-size: 0.79rem;
  line-height: 1.38;
  color: #333333;
  margin: 0;
}

.exp-strong {
  color: var(--woodsmoke);
  font-weight: 600;
}

.exp-pillar-footer {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.exp-pillar-tags-label {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.exp-pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.exp-pillar-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.12rem 0.42rem;
  border-radius: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--woodsmoke);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.exp-pillar-tag:hover {
  background: rgba(255, 92, 57, 0.08);
  border-color: rgba(255, 92, 57, 0.3);
  color: var(--accent-orange);
}

.exp-bento-footer {
  padding: 1.15rem 2rem;
  background: rgba(246, 245, 239, 0.7);
  border-top: 1px solid var(--border-light);
}

@media (max-width: 640px) {
  .exp-bento-footer {
    padding: 1rem 1.25rem;
  }
}

.exp-tech-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.exp-tech-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--woodsmoke);
}

.exp-tech-strip-icon {
  display: inline-flex;
  align-items: center;
}

.exp-tech-strip-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--accent-orange);
}

.exp-tech-strip-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.exp-tech-strip-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.55rem;
  border-radius: 0.25rem;
  color: var(--woodsmoke);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.exp-tech-strip-pill:hover {
  background: var(--woodsmoke);
  color: #ffffff;
  border-color: var(--woodsmoke);
}

.exp-tech-strip-sep {
  font-size: 0.65rem;
  color: rgba(22, 22, 22, 0.25);
}

.resume-download-wrapper {
  margin-top: 1.35rem;
  text-align: center;
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.85rem;
  background-color: var(--woodsmoke);
  color: #ffffff;
  height: 2.6rem;
  padding: 0 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.resume-download-btn:hover {
  background-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 92, 57, 0.25);
}

/* ==========================================================================
   PROJECTS SECTION (#projects)
   ========================================================================== */
.projects-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Category Filter Bar */
.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 2.5rem;
  max-width: 800px;
}

.project-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  background-color: rgba(246, 245, 239, 0.85);
  border: 1px solid var(--border-medium);
  color: var(--woodsmoke);
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 0.64, 0.32, 1);
}

.project-filter-btn:hover {
  border-color: var(--woodsmoke);
  transform: translateY(-1px);
  background-color: #ffffff;
}

.project-filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background-color: rgba(22, 22, 22, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--woodsmoke);
  transition: all 0.2s ease;
}

.project-filter-btn.active {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 92, 57, 0.32);
}

.project-filter-btn.active .filter-count {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* 2x2 Balanced Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 860px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-medium);
  border-radius: 0.75rem;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 0.64, 0.32, 1), box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 16px 36px rgba(22, 22, 22, 0.08), 0 0 0 1px var(--accent-orange);
}

.project-card.is-hidden {
  display: none !important;
}

/* Clean Minimalist Media Header */
.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1.15rem;
  background-color: #faf9f5;
  border-bottom: 1px solid rgba(22, 22, 22, 0.07);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #71717a;
}

.project-card-domain {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--woodsmoke);
  text-transform: uppercase;
}

.project-domain-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}

.project-domain-text {
  letter-spacing: 0.03em;
}

.project-card-date {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #71717a;
  font-size: 0.68rem;
  white-space: nowrap;
}

.project-cal-icon {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Browser Preview Frame */
.project-preview-frame {
  position: relative;
  background-color: #f7f6f0;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: #efede6;
  border-bottom: 1px solid rgba(22, 22, 22, 0.06);
}

.preview-dots {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.preview-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(22, 22, 22, 0.22);
}

.preview-address-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.55rem;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid rgba(22, 22, 22, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #71717a;
  max-width: 170px;
  overflow: hidden;
}

.preview-lock-icon {
  width: 0.65rem;
  height: 0.65rem;
  flex-shrink: 0;
  stroke: #71717a;
}

.preview-address-text {
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid currentColor;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-media-wrapper {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
  background-color: #e8e6dd;
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 0.64, 0.32, 1);
}

.project-card:hover .project-thumbnail {
  transform: scale(1.04);
}

/* Card Body Information */
.project-info {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1.1rem;
  flex: 1;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.project-title-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--woodsmoke);
  transition: color 0.2s ease;
}

.project-title-link:hover {
  color: var(--accent-orange);
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-arrow {
  font-size: 1.05rem;
  color: var(--accent-orange);
  transition: transform 0.2s ease;
}

.project-title-link:hover .project-arrow {
  transform: translate(2px, -2px);
}

.project-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.project-desc {
  font-size: 0.88rem;
  color: #3f3f46;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.project-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background-color: #f6f5ef;
  border: 1px solid rgba(22, 22, 22, 0.08);
  color: var(--woodsmoke);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.project-card:hover .project-tag {
  background-color: #edebe2;
}

.project-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
}

.case-study-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  background-color: rgba(255, 92, 57, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.case-study-btn:hover {
  background-color: var(--accent-orange);
  color: #ffffff;
  transform: translateY(-1px);
}

.project-ext-links {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.project-ghost-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: #52525b;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(22, 22, 22, 0.12);
  transition: all 0.2s ease;
}

.project-ghost-link:hover {
  color: var(--woodsmoke);
  border-color: var(--woodsmoke);
  background-color: rgba(22, 22, 22, 0.04);
}

@media (min-width: 1200px) {
  .projects-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #projects .section-header-block {
    margin-bottom: 0.75rem;
  }

  .projects-grid {
    gap: 1rem;
  }

  .project-card {
    display: grid;
    grid-template-columns: 42% 58%;
    grid-template-rows: auto minmax(0, 1fr);
    height: 231px;
  }

  .project-card-header {
    grid-column: 1 / -1;
    padding: 0.4rem 0.75rem;
    font-size: 0.58rem;
  }

  .project-card-date {
    font-size: 0.58rem;
  }

  .project-preview-frame {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    border-right: 1px solid rgba(22, 22, 22, 0.08);
    border-bottom: 0;
  }

  .preview-browser-bar {
    padding: 0.25rem 0.45rem;
  }

  .preview-address-bar {
    max-width: 115px;
    font-size: 0.55rem;
  }

  .preview-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.35rem;
  }

  .project-media-wrapper {
    height: auto;
    min-height: 0;
    flex: 1;
  }

  .project-info {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
    padding: 0.55rem 0.7rem 0.6rem;
  }

  .project-title-row {
    margin-bottom: 0.1rem;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-subtitle {
    margin-bottom: 0.25rem;
    font-size: 0.55rem;
  }

  .project-desc {
    flex: 0 0 auto;
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .project-tags {
    gap: 0.25rem;
    margin-bottom: 0.35rem;
  }

  .project-tag {
    padding: 0.12rem 0.35rem;
    font-size: 0.55rem;
  }

  .project-tag:nth-child(n + 4) {
    display: none;
  }

  .project-footer-actions {
    flex-wrap: nowrap;
    padding-top: 0.35rem;
  }

  .case-study-btn,
  .project-ghost-link {
    padding: 0.25rem 0.4rem;
    font-size: 0.65rem;
  }

  .project-ext-links {
    gap: 0.25rem;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-medium);
  margin-top: 2rem;
}

.footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--woodsmoke);
}

/* ==========================================================================
   FLOATING AUDIO PLAYER WIDGET
   ========================================================================== */
.floating-audio-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
}

.audio-pill {
  background-color: rgba(22, 22, 22, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.audio-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--accent-orange);
  transition: background-color 0.2s ease;
  padding: 0;
}

.audio-play-btn:hover {
  background-color: rgba(255, 92, 57, 0.2);
}

.audio-play-btn svg {
  width: 1rem;
  height: 1rem;
}

.equalizer-bars-group {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 1.5rem;
}

.equalizer-bar {
  background-color: var(--accent-orange);
  border-radius: 2px;
  width: 2px;
  height: 3px;
  min-height: 3px;
  max-height: 22px;
  transition: height 0.08s ease;
}

.audio-music-icon {
  padding: 0.375rem;
  border-radius: 9999px;
  background-color: rgba(255, 92, 57, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
}

.audio-music-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.64, 0.32, 1), transform 0.7s cubic-bezier(0.16, 0.64, 0.32, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .roll-link span {
    transition: none !important;
  }
  .animate-blink {
    animation: none !important;
  }
  .scroll-indicator-inner {
    animation: none !important;
  }
}

/* Recruiter actions and case studies share the existing typography and palette. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid #b83619; outline-offset: 5px; }
.hero-actions, .project-actions, .project-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions { margin: 1.25rem 0 0.875rem; gap: 0.75rem; }
.hero-actions .resume-download-btn { font-size: .85rem; padding: 10px 16px; border-radius: 6px; }
.location-line { margin-top: 0.75rem; color: #52525b; font-size: 0.95rem; }
.project-tags { margin: 18px 0; gap: 8px; }
.project-tags span { border: 1px solid var(--border-medium); border-radius: 5px; padding: 4px 9px; font-size: .8rem; }
.project-actions { margin: 18px 0; gap: 12px 24px; }
.project-actions a, .case-study-link, .case-toc a, .case-next a { text-decoration: underline; text-underline-offset: 4px; }
.case-study-link { display: inline-block; font-weight: 600; color: #b83619; }
.project-info { align-items: stretch; }
.contact-section { border-top: 1px solid var(--border-medium); margin-top: 80px; }
.contact-section .section-title { margin: 12px 0 24px; }
.contact-section .project-actions a { overflow-wrap: anywhere; }
.case-header { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-medium); }
.case-header a { font-weight: 600; }
.case-header a, .case-toc a, .case-next a, .project-actions a { color: var(--woodsmoke); }
.case-header a:hover, .case-toc a:hover, .case-next a:hover, .project-actions a:hover { color: #b83619; }
.case-header span { color: var(--accent-orange); }
.case-main { padding-top: 64px; }
.case-intro { max-width: 850px; }
.case-intro h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.15; margin: 18px 0 24px; overflow-wrap: anywhere; }
.case-summary { font-size: 1.2rem; }
.case-note, .case-screenshot figcaption { font-size: .85rem; color: #52525b; }
.case-screenshot { margin: 40px 0 64px; }
.case-screenshot img { display: block; width: 100%; max-height: 650px; object-fit: contain; border: 1px solid var(--border-medium); border-radius: 10px; }
.case-screenshot figcaption { margin-top: 12px; }
.case-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.case-toc { display: flex; flex-direction: column; align-self: start; position: sticky; top: 32px; gap: 16px; font-size: .9rem; }
.case-layout article { max-width: 800px; }
.case-layout article section { margin-bottom: 48px; scroll-margin-top: 32px; }
.case-layout h2 { font-size: 1.6rem; margin-bottom: 16px; }
.case-layout p, .case-layout li { margin-bottom: 16px; }
.case-layout ul { padding-left: 24px; }
.case-layout article a { text-decoration: underline; text-underline-offset: 4px; }
.case-next { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--border-medium); }
@media (max-width: 767px) {
  .case-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .case-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--border-medium); }
  .case-header { font-size: .85rem; }
  .case-next { flex-direction: column; }
  .hero-actions { justify-content: center; }
  .experience-date-badge { white-space: normal; }
}

/* ==========================================================================
   LENIS SMOOTH SCROLLING (MATCHING EMMANUELEBEH.DEV)
   ========================================================================== */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}
