@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #f4f4f4;
  --text-primary: #282b22;
  --text-secondary: rgba(40, 43, 34, 0.72);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(40, 43, 34, 0.08);
  --accent-color: #2b30b1;
  
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-secondary: 'DM Sans', sans-serif;
  --font-tertiary: 'Rubik', sans-serif;
}

body.theme-dark {
  --bg-color: #050505;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent-color: #6366F1;
}

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

body {
  background-color: var(--bg-color);
  background-image: linear-gradient(269deg, #e3eee4 0%, #f4f4f4 100%);
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

body.theme-dark {
  background-color: #050505;
  background-image: none;
}

/* Custom Fonts */
@font-face {
  font-family: 'Agrandir';
  src: local('Agrandir Regular'), local('Agrandir-Regular');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Agrandir Wide Light';
  src: local('Agrandir Wide Light'), local('Agrandir-WideLight');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Agrandir Grand Light';
  src: local('Agrandir Grand Light'), local('Agrandir-GrandLight');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Agrandir Grand Heavy';
  src: local('Agrandir Grand Heavy'), local('Agrandir-GrandHeavy');
  font-weight: 800;
  font-style: normal;
}

/* Beautiful Scrolling Ambient Background */
.background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-repeat: no-repeat;
  border-radius: inherit;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(180px);
  -webkit-filter: blur(180px);
  opacity: 0.22;
  mix-blend-mode: normal;
}

body.theme-dark .blob {
  filter: blur(120px);
  -webkit-filter: blur(120px);
  opacity: 0.4;
  mix-blend-mode: screen;
}

/* Mint, Blue, Lime Glow (Center-Top) */
.blob-1 {
  width: 925px;
  height: 925px;
  left: 50%;
  top: -547px;
  transform: translateX(-30%);
  background: radial-gradient(circle, rgba(103,128,212,0.7) 0%, rgba(77,208,158,0.6) 35%, rgba(164,229,80,0.45) 70%, transparent 100%);
}

body.theme-dark .blob-1 {
  width: 500px;
  height: 500px;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(77,208,158,0.6) 0%, rgba(103,128,212,0.4) 40%, rgba(164,229,80,0.2) 80%, transparent 100%);
}

/* Pink, Orange Glow (Left) */
.blob-2 {
  width: 554px;
  height: 481px;
  left: -113px;
  top: 287px;
  opacity: 0.14;
  background: radial-gradient(circle, rgba(227,11,155,0.65) 0%, rgba(216,150,17,0.45) 75%, transparent 100%);
}

body.theme-dark .blob-2 {
  width: 400px;
  height: 400px;
  left: -50px;
  top: 100px;
  opacity: 0.4;
  background: radial-gradient(circle, rgba(227,11,155,0.6) 0%, rgba(216,150,17,0.3) 70%, transparent 100%);
}

/* Blue, Mint, Lime Glow (Right) */
.blob-3 {
  width: 867px;
  height: 732px;
  right: -190px;
  top: 917px;
  background: radial-gradient(circle, rgba(103,128,212,0.6) 0%, rgba(77,208,158,0.5) 55%, rgba(164,229,80,0.35) 90%, transparent 100%);
}

body.theme-dark .blob-3 {
  width: 500px;
  height: 500px;
  right: -100px;
  top: 200px;
  background: radial-gradient(circle, rgba(184,54,210,0.5) 0%, rgba(229,159,80,0.3) 60%, rgba(255,204,0,0.1) 100%);
}

/* Contact/Bottom Blobs */
.blob-4 {
  display: block;
  width: 600px;
  height: 600px;
  left: 30%;
  bottom: -200px;
  background: radial-gradient(circle, rgba(77,208,158,0.5) 0%, rgba(103,128,212,0.3) 50%, transparent 100%);
}
.blob-5 {
  width: 450px;
  height: 450px;
  right: 10%;
  bottom: -50px;
  background: radial-gradient(circle, rgba(227,11,155,0.5) 0%, rgba(184,54,210,0.3) 60%, transparent 100%);
}
.blob-6 {
  width: 300px;
  height: 300px;
  left: -50px;
  bottom: 100px;
  background: radial-gradient(circle, rgba(255,204,0,0.4) 0%, rgba(229,159,80,0.2) 70%, transparent 100%);
}

/* Middle Blobs */
.blob-7 {
  width: 837px;
  height: 919px;
  left: -320px;
  top: 1344px;
  background: radial-gradient(circle, rgba(229,159,80,0.6) 0%, rgba(184,54,210,0.45) 70%, rgba(255,204,0,0.25) 100%);
}

body.theme-dark .blob-7 {
  width: 700px;
  height: 700px;
  left: -200px;
  top: 40%;
  background: radial-gradient(circle, rgba(103,128,212,0.4) 0%, rgba(77,208,158,0.2) 60%, transparent 100%);
}

.blob-8 {
  width: 550px;
  height: 550px;
  right: -150px;
  top: 60%;
  background: radial-gradient(circle, rgba(184,54,210,0.4) 0%, rgba(227,11,155,0.2) 60%, transparent 100%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Agrandir Grand Heavy', 'Agrandir', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--font-secondary);
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(90px);
  -webkit-backdrop-filter: blur(90px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

/* Navigation */
nav {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 664px;
  max-width: 90%;
  height: 66px;
  padding: 0 36px;
  z-index: 100;
  
  /* Light Frosted Glass Effect from Figma 1670:649 */
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 46px;
  border: 1px solid rgba(189, 189, 189, 0.54);
  box-shadow: 0 4px 24px rgba(40, 43, 34, 0.05);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

body.theme-dark nav {
  top: 2rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(24px) saturate(200%) contrast(120%);
  -webkit-backdrop-filter: blur(24px) saturate(200%) contrast(120%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body.theme-dark nav.nav-light-mode {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-brand {
  font-family: 'Yellowtail', cursive;
  font-weight: 400;
  font-size: 34px;
  line-height: 46.33px;
  background: linear-gradient(135deg, #636363 0%, #342e2e 46.15%, #636363 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #342e2e;
  transition: color 0.4s ease;
}

body.theme-dark .nav-brand {
  background: none;
  -webkit-text-fill-color: initial;
  color: #ffffff;
  line-height: 1;
}

body.theme-dark nav.nav-light-mode .nav-brand {
  color: #050505;
}

.nav-links {
  display: flex;
  gap: 48px;
}

.nav-links a {
  font-family: 'Agrandir Wide Light', 'Agrandir', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 23.4px;
  color: #2c2828;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.4s ease, opacity 0.3s ease;
}

body.theme-dark .nav-links a {
  color: #ffffff;
}

body.theme-dark nav.nav-light-mode .nav-links a {
  color: #050505;
}

/* Mobile Toggle & Drawer Base (Hidden on Desktop) */
.mobile-nav-toggle {
  display: none;
}

.mobile-drawer-overlay {
  display: none;
}

.mobile-drawer {
  display: none;
}

/* Layout Container */
.container {
  max-width: 1184px; /* 1120px + 64px padding */
  margin: 0 auto;
  padding: 0 32px;
}

/* Sections */
section {
  padding: 0;
}

/* Hero Section (Figma 1670:477 + 1670:647) */
.hero {
  display: flex;
  align-items: center;
  padding-top: 181px;
  padding-bottom: 92px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 685px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-greeting {
  font-family: 'Agrandir Wide Light', 'Agrandir', sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 31.2px;
  color: #282b22;
  margin-bottom: 0;
}

.hero-title {
  font-family: 'Agrandir Grand Heavy', 'Agrandir', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 42px;
  letter-spacing: 0;
  color: #282b22;
  margin-bottom: 0;
  -webkit-text-fill-color: initial;
  background: none;
}

body.theme-dark .hero-title {
  font-size: 52px;
  line-height: 67.6px;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: rgba(40, 43, 34, 0.7);
  margin-bottom: 0;
  max-width: 685px;
}

/* Help Section Layout (Figma 1670:504) */
.help-section {
  padding-top: 52px;
  padding-bottom: 140px;
}

.help-content {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.help-title {
  font-family: 'Agrandir Grand Light', 'Agrandir', sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 41.6px;
  letter-spacing: 0;
  color: #282b22;
  width: 277px;
  flex-shrink: 0;
  margin: 0;
}

.help-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #282b22;
  flex: 1;
  max-width: 813px;
  margin: 0;
}

/* Colored Links in Help Subtitle (Figma 1670:507 styleOverrideTable) */
.colored-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: text-decoration-style 0.3s ease, opacity 0.3s ease;
  font-weight: 400;
}

.colored-link:hover {
  opacity: 0.8;
}

.case-link { color: #2b30b1; text-decoration-color: #2b30b1; }
.journey-link { color: #258da1; text-decoration-color: #258da1; }
.beyond-link { color: #ceaa35; text-decoration-color: #ceaa35; }
.contact-link { color: #3e8624; text-decoration-color: #3e8624; }

.worked-at {
  display: flex;
  flex-direction: column;
  padding-top: 36px;
  margin-top: 0;
}

.logos {
  display: flex;
  gap: 36px;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.logos img {
  height: 28px;
  width: auto;
  opacity: 1;
  filter: none;
}

.logos img.logo-dunzo {
  height: 24px;
}

.hero-image-wrapper {
  flex-shrink: 0;
  width: 395px;
  height: 395px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: visible;
  position: relative;
  mix-blend-mode: multiply;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Selected Work Section */
.section-header {
  margin-bottom: 2.25rem;
}

.work-section {
  width: 100%;
  padding-bottom: 50px;
}

.other-work-header {
  margin-top: 3.5rem;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.25rem;
}

.scroll-controls {
  display: flex;
  gap: 0.75rem;
}

.scroll-btn {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(40, 43, 34, 0.12);
  color: #282b22;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(40, 43, 34, 0.04);
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  background: #ffffff;
  border-color: rgba(40, 43, 34, 0.25);
  transform: scale(1.05);
}

body.theme-dark .scroll-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  box-shadow: none;
}

body.theme-dark .scroll-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section-title {
  font-family: 'Agrandir Grand Heavy', 'Agrandir', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 26px;
  letter-spacing: 0;
  color: #282b22;
  margin-bottom: 0;
}

body.theme-dark .section-title {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.work-scroll-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  /* Use scroll-padding to align snapping to the container's left edge */
  scroll-padding-left: max(2rem, calc((100% - 1120px) / 2));
  padding-top: 2rem;
  padding-bottom: 4rem; /* room for shadow */
  margin-top: -2rem; /* offset padding */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  perspective: 1200px;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
}

/* Spacers to allow cards to bleed off the edges without getting clipped by container padding */
.work-scroll-container::before,
.work-scroll-container::after {
  content: "";
  display: block;
  flex: 0 0 max(0px, calc((100% - 1184px) / 2));
  height: 1px;
}

.work-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  min-width: 470px;
  flex: 0 0 470px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(40, 43, 34, 0.08);
  box-shadow: 0 10px 30px rgba(40, 43, 34, 0.04);
}

/* Ensure content stays above the reflection */
.work-card > * {
  position: relative;
  z-index: 11;
}

.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at calc(100% - var(--iridescent-x, 50%)) calc(100% - var(--iridescent-y, 50%)),
    rgba(255, 255, 255, 0.6),
    transparent 50%
  ),
  linear-gradient(
    115deg,
    transparent 35%,
    rgba(100, 200, 255, 0.06) 42%,
    rgba(255, 120, 200, 0.06) 47%,
    rgba(255, 220, 100, 0.05) 53%,
    transparent 60%
  );
  
  background-size: 100% 100%, 250% 250%;
  background-position: 0 0, calc(100% - var(--iridescent-x, 50%)) calc(100% - var(--iridescent-y, 50%));
  opacity: 0;
  mix-blend-mode: normal;
  transition: opacity 0.6s ease;
  z-index: 10;
}

.work-card:hover {
  /* JS overrides transform */
  box-shadow: 0 20px 40px rgba(40, 43, 34, 0.1);
}

.work-card:hover::before {
  opacity: 1;
}

.work-card.has-link {
  cursor: pointer;
}

.work-card-image {
  height: 300px;
  border-radius: 16px;
  background: rgba(40, 43, 34, 0.05);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.work-card-image img,
.work-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-image:not(.trio-mockups):not(.policy-details-mockup):not(.game-trio-mockups) img,
.work-card:hover .work-card-image video {
  transform: scale(1.03); /* reduced zoom */
}

/* Status Badges on Card Thumbnails (Protected / Coming Soon) */
.card-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: 'Work Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.badge-locked {
  background: rgba(38, 38, 38, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-coming-soon {
  background: rgba(255, 255, 255, 0.88);
  color: #282b22;
  border: 1px solid rgba(40, 43, 34, 0.14);
}

/* Browser mockup thumbnail (Card 1: Deal-Based Setup) */
.work-card-image.browser-mockup {
  background: #F2F0E9;
  padding: 18px 0 0 18px;
  align-items: flex-start;
  justify-content: flex-start;
  border: 1px solid rgba(40, 43, 34, 0.08);
}

.work-card-image.browser-mockup img {
  width: 128%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-top-left-radius: 10px;
  box-shadow: -4px -4px 20px rgba(0, 0, 0, 0.06);
  transform-origin: top left;
}

.work-card:hover .work-card-image.browser-mockup img {
  transform: scale(1.025) translate(-4px, -2px);
}

/* Trio phone mockups thumbnail (Card 2: Custom Pages & Matrix Widget) */
.work-card-image.trio-mockups {
  background: radial-gradient(circle at 50% 60%, rgba(152, 155, 237, 0.16), rgba(40, 43, 34, 0.04) 75%);
  overflow: hidden;
}

.work-card-image.trio-mockups .trio-screen {
  position: absolute;
  width: 156px;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.work-card-image.trio-mockups .screen-left {
  left: 24px;
  top: 28px;
  transform: rotate(-6deg) scale(0.94);
  z-index: 1;
}

.work-card-image.trio-mockups .screen-center {
  left: 50%;
  top: 12px;
  width: 152px;
  transform: translateX(-50%) scale(1);
  z-index: 3;
}

.work-card-image.trio-mockups .screen-right {
  right: 24px;
  top: 28px;
  transform: rotate(6deg) scale(0.94);
  z-index: 2;
}

.work-card:hover .work-card-image.trio-mockups .screen-left {
  transform: translateX(-6px) translateY(-4px) rotate(-9deg) scale(0.96);
}

.work-card:hover .work-card-image.trio-mockups .screen-center {
  transform: translateX(-50%) translateY(-6px) scale(1.04);
}

.work-card:hover .work-card-image.trio-mockups .screen-right {
  transform: translateX(6px) translateY(-4px) rotate(9deg) scale(0.96);
}

/* Enrolment Portal desktop mockup (Card 3: HealthFlex Enrolment Portal) */
.work-card-image.enrolment-portal-mockup {
  background: linear-gradient(145deg, #0b3c2c 0%, #124d39 100%);
  padding: 18px 0 0 18px;
  align-items: flex-start;
  justify-content: flex-start;
  border: 1px solid rgba(40, 43, 34, 0.1);
}

.work-card-image.enrolment-portal-mockup img {
  width: 122%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-top-left-radius: 12px;
  box-shadow: -6px -6px 24px rgba(0, 0, 0, 0.22);
  transform-origin: top left;
}

.work-card:hover .work-card-image.enrolment-portal-mockup img {
  transform: scale(1.025) translate(-4px, -2px);
}

/* Policy Details dual staggered mobile mockup (Card 4: Policy Details Redesign) */
.work-card-image.policy-details-mockup {
  background: radial-gradient(circle at 50% 40%, #e5f0eb 0%, #d4e5dd 100%);
  border: 1px solid rgba(40, 43, 34, 0.08);
  overflow: hidden;
}

.work-card-image.policy-details-mockup .policy-phone {
  position: absolute;
  width: 176px;
  height: 290px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(13, 46, 35, 0.18), 0 0 0 4px rgba(255, 255, 255, 0.85);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.work-card-image.policy-details-mockup .policy-phone img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.work-card-image.policy-details-mockup .phone-top-view {
  left: 34px;
  top: 26px;
  transform: rotate(-4deg);
  z-index: 1;
}

.work-card-image.policy-details-mockup .phone-top-view img {
  margin-top: 0;
}

.work-card-image.policy-details-mockup .phone-ecard-view {
  right: 34px;
  top: 16px;
  transform: rotate(3deg);
  z-index: 2;
}

.work-card-image.policy-details-mockup .phone-ecard-view img {
  margin-top: -215px;
}

.work-card:hover .work-card-image.policy-details-mockup .phone-top-view {
  transform: translateX(-6px) translateY(-4px) rotate(-6.5deg) scale(1.02);
}

.work-card:hover .work-card-image.policy-details-mockup .phone-ecard-view {
  transform: translateX(6px) translateY(-6px) rotate(5deg) scale(1.03);
}

/* Enrolment Game 3-screen fanned landscape composition (Card 5: Enrolment Game) */
.work-card-image.game-trio-mockups {
  background: linear-gradient(180deg, #1b67d1 0%, #469be8 62%, #4a8c3f 100%);
  border: 1px solid rgba(40, 43, 34, 0.12);
  overflow: hidden;
}

.work-card-image.game-trio-mockups .game-screen {
  position: absolute;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 248, 220, 0.85);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  will-change: transform;
}

.work-card-image.game-trio-mockups .game-screen-left {
  width: 220px;
  left: 16px;
  top: 34px;
  transform: rotate(-7deg) scale(0.92);
  z-index: 1;
  filter: brightness(0.94);
}

.work-card-image.game-trio-mockups .game-screen-right {
  width: 220px;
  right: 16px;
  top: 34px;
  transform: rotate(7deg) scale(0.92);
  z-index: 2;
  filter: brightness(0.94);
}

.work-card-image.game-trio-mockups .game-screen-center {
  width: 268px;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) scale(1);
  z-index: 3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
}

.work-card:hover .work-card-image.game-trio-mockups .game-screen-left {
  transform: translateX(-10px) translateY(-6px) rotate(-10deg) scale(0.95);
  filter: brightness(1);
}

.work-card:hover .work-card-image.game-trio-mockups .game-screen-right {
  transform: translateX(10px) translateY(-6px) rotate(10deg) scale(0.95);
  filter: brightness(1);
}

.work-card:hover .work-card-image.game-trio-mockups .game-screen-center {
  transform: translateX(-50%) translateY(-6px) scale(1.04);
}

.work-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tag {
  background: rgba(40, 43, 34, 0.08);
  color: #282b22;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-card-title {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  font-family: 'Agrandir Grand Heavy', 'Agrandir', sans-serif;
  font-weight: 800;
  color: #282b22;
}

.work-card p {
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(40, 43, 34, 0.75);
  margin-bottom: 1.5rem;
}

.work-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #282b22;
  font-family: 'Agrandir Grand Heavy', 'Agrandir', sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.work-card.is-coming-soon {
  cursor: pointer;
}

.work-link-coming-soon {
  color: rgba(40, 43, 34, 0.48);
  user-select: none;
}

.work-link-request {
  color: rgba(40, 43, 34, 0.72);
  transition: color 0.25s ease;
}

.work-card:hover .work-link-request,
.work-link-request:hover {
  color: #282b22;
}

/* Values Section */
.values-section {
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}

.values-scroll-container {
  display: flex;
  gap: 4rem;
  overflow-x: auto;
  padding-bottom: 4rem;
  padding-top: 2rem;
  margin-top: -2rem;
  margin-right: -32px; /* bleed right */
  padding-right: 32px;
  /* Hide scrollbar */
  scrollbar-width: none;
}
.values-scroll-container::-webkit-scrollbar {
  display: none;
}

.values-intro {
  flex: 0 0 335px;
  position: sticky;
  left: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
  padding-top: 0.5rem;
  text-align: left;
}

.values-intro p {
  font-family: 'Work Sans', sans-serif;
  font-size: 18px;
  line-height: 30px;
  color: rgba(40, 43, 34, 0.8);
}

.values-intro.faded {
  opacity: 0.3; /* 70% transparent */
}

.values-cards-wrapper {
  display: flex;
  gap: 2rem;
  padding-left: 2rem;
  z-index: 10;
}

.value-card {
  padding: 3rem;
  flex: 0 0 380px; /* match Figma width */
}

.color-card {
  border-radius: 24px;
  color: #000;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
  border: 1px solid rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

/* Subtle noise overlay */
.color-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  background-repeat: no-repeat;
  border-radius: inherit;
  mix-blend-mode: overlay;
  z-index: 1;
}

.color-card h3, .color-card p {
  position: relative;
  z-index: 2;
}

.color-card h3 {
  color: #000;
  font-family: 'Agrandir Grand Heavy', 'Agrandir', sans-serif;
  font-size: 24px;
  margin-bottom: 1rem;
}

.color-card p {
  color: rgba(0,0,0,0.75);
  font-weight: 500;
}

.color-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(40, 43, 34, 0.12);
}

/* Tweaked colors to be slightly nicer but match design */
.card-yellow {
  background: linear-gradient(135deg, #f7ff0c, #e6ed00);
}

.card-pink {
  background: linear-gradient(135deg, #f647ed, #e032d8);
}

.card-green {
  background: linear-gradient(135deg, #b2ff37, #99eb1b);
}

.card-cyan {
  background: linear-gradient(135deg, #0ce6ff, #0cc2ff);
}

.card-orange {
  background: linear-gradient(135deg, #ff9a0c, #ff7b0c);
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Experience Section (Figma 1670:345) */
.experience-section {
  position: relative;
  padding: 6.5rem 0;
  margin-top: 60px;
  margin-bottom: 90px;
  z-index: 1;
  color: var(--text-primary, #282b22);
  --grid-cell-size: clamp(34px, 4.5vw, 60px);
  --grid-line-color: rgba(40, 43, 34, 0.12);
  --exp-surface-bg: rgba(255, 255, 255, 0.36);
  --exp-surface-border: rgba(40, 43, 34, 0.07);
}

.experience-bg, .experience-grid {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.experience-bg {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    var(--exp-surface-bg) 14%,
    var(--exp-surface-bg) 86%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  mask-image: radial-gradient(
    ellipse 48% 46% at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 36%,
    rgba(0, 0, 0, 0.75) 65%,
    rgba(0, 0, 0, 0.25) 85%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 48% 46% at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 36%,
    rgba(0, 0, 0, 0.75) 65%,
    rgba(0, 0, 0, 0.25) 85%,
    transparent 100%
  );
  z-index: -2;
}

/* Pure CSS architectural horizontal stripe pattern that scales fluidly and softly fades on all edges */
.experience-grid {
  z-index: -1;
  background-repeat: repeat-y;
  background-image:
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 100% var(--grid-cell-size);
  background-position: center top;
  /* Smoothly and completely dissolves into the page background on all edges */
  mask-image: radial-gradient(
    ellipse 48% 46% at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 36%,
    rgba(0, 0, 0, 0.75) 65%,
    rgba(0, 0, 0, 0.25) 85%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 48% 46% at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 36%,
    rgba(0, 0, 0, 0.75) 65%,
    rgba(0, 0, 0, 0.25) 85%,
    transparent 100%
  );
}

.experience-section .section-title {
  color: #282b22;
}

.experience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.view-resume-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(40, 43, 34, 0.12);
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: #282b22;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.view-resume-badge:hover {
  background: #282b22;
  color: #ffffff;
  border-color: #282b22;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(40, 43, 34, 0.18);
}

.view-resume-badge svg {
  transition: transform 0.25s ease;
}

.view-resume-badge:hover svg {
  transform: translate(2px, -2px);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem; /* Gap between different experiences */
}

.experience-item {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.sticker-container {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  --base-peel: 0px;
  --peel: var(--base-peel);
  cursor: grab;
  touch-action: none; /* Prevent scroll while peeling */
  z-index: 10;
}

/* Sticker Peeling Tooltip (Once per session) */
.sticker-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  margin-left: 12px;
  transform: translateY(0);
  background: #18181b;
  color: #ffffff;
  padding: 8px 12px 8px 16px;
  border-radius: 999px;
  font-family: 'Work Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 100;
  white-space: nowrap;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.sticker-tooltip.visible {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: floatTooltipDesktop 3s ease-in-out infinite;
}

@keyframes floatTooltipDesktop {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.sticker-tooltip.dismissed {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(6px) !important;
  pointer-events: none !important;
  animation: none !important;
}

.tooltip-icon {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.tooltip-text {
  line-height: 1.2;
}

.tooltip-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tooltip-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.1);
}

.tooltip-arrow {
  position: absolute;
  bottom: -5px;
  left: 30px;
  transform: rotate(45deg);
  width: 10px;
  height: 10px;
  background: #18181b;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  background-repeat: no-repeat;
  border-radius: 0;
}

@media (max-width: 768px) {
  .sticker-tooltip {
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%) translateY(0);
    bottom: calc(100% + 12px);
    padding: 7px 10px 7px 14px;
    font-size: 11.5px;
    gap: 7px;
    max-width: calc(100vw - 40px);
  }

  .sticker-tooltip.visible {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: floatTooltipMobile 3s ease-in-out infinite;
  }

  .sticker-tooltip.dismissed {
    transform: translateX(-50%) translateY(6px) !important;
  }

  .tooltip-arrow {
    left: 50%;
    margin-left: -5px;
    transform: rotate(45deg);
  }
}

@keyframes floatTooltipMobile {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@media (max-width: 480px) {
  .sticker-tooltip {
    padding: 6px 9px 6px 12px;
    font-size: 11px;
    gap: 6px;
    max-width: calc(100vw - 32px);
  }
  .tooltip-icon {
    font-size: 12px;
  }
  .tooltip-close {
    width: 16px;
    height: 16px;
    font-size: 12px;
  }
}

.sticker-container.dragging {
  cursor: grabbing;
  --peel: var(--drag-peel, 30px);
  user-select: none;
  -webkit-user-select: none;
}

.sticker-reveal {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Agrandir', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sticker-reveal video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.sticker-front {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(40, 43, 34, 0.08);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* Top-down clip */
  clip-path: inset(var(--peel) 0 0 0);
  transition: clip-path 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: clip-path;
}

.sticker-container.dragging .sticker-front {
  transition: none;
}

.sticker-flap {
  position: absolute;
  top: var(--peel);
  left: 0;
  width: 100%;
  height: var(--flap-height, var(--peel));
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  background: linear-gradient(180deg, #d2d4d0 0%, #ececec 22%, #f8f8f7 55%, #ffffff 100%);
  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(40, 43, 34, 0.08);
  border-right: 1px solid rgba(40, 43, 34, 0.08);
  border-bottom: 1px solid rgba(40, 43, 34, 0.1);
  filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.2));
  pointer-events: none;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, visibility 0.2s ease;
  will-change: top, height, opacity;
}

.sticker-container.dragging .sticker-flap {
  opacity: 1;
  visibility: visible;
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  body:not(.is-peeling-sticker) .sticker-container:hover {
    --base-peel: 35px; /* Reveal top edge slightly on desktop hover only when no tile is actively peeled */
  }

  body:not(.is-peeling-sticker) .sticker-container:hover .sticker-flap {
    opacity: 1;
    visibility: visible;
  }
}

body.is-peeling-sticker .sticker-container:not(.dragging) {
  pointer-events: none;
  --base-peel: 0px !important;
  --peel: 0px !important;
}

.exp-logo-img {
  max-width: 108px;
  max-height: 50px;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(0.2) contrast(1.2); /* darken the logos so they show up on light bg */
}

.exp-content {
  flex: 1;
  padding-top: 0.25rem;
}

.exp-header {
  margin-bottom: 1.15rem;
}

.exp-company-role {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-family: 'Agrandir Grand Heavy', 'Agrandir', sans-serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  color: #282b22;
}

.exp-divider {
  font-family: 'Agrandir Wide Light', 'Agrandir', sans-serif;
  font-size: 26px;
  font-weight: 300;
  color: rgba(40, 43, 34, 0.32);
}

.exp-role {
  font-family: 'Agrandir', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(40, 43, 34, 0.72);
}

.exp-meta {
  font-family: 'Agrandir Wide Light', 'Agrandir', sans-serif;
  font-size: 14px;
  color: rgba(40, 43, 34, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exp-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(40, 43, 34, 0.78);
  max-width: 781px;
}

/* Footer / Contact */
.footer-cta {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.footer-title {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.footer-subtitle {
  font-size: 1.5rem;
  margin-bottom: 4rem;
}

.contact-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: #fff;
  color: #000;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.contact-btn:hover {
  transform: scale(1.05);
}



/* Contact Banner
   Theme tokens live on the banner itself – light is the default, body.theme-dark overrides.
   --particle-rgb is read by script.js to colour the "Get in touch" particle headline. */
.contact-banner-section {
  padding-top: 40px;
  padding-bottom: 110px;
}

.contact-banner {
  --banner-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.52) 100%);
  --banner-border: rgba(40, 43, 34, 0.1);
  --banner-shadow: 0 12px 40px rgba(40, 43, 34, 0.06);
  --banner-text: rgba(40, 43, 34, 0.85);
  --banner-link: #282b22;
  --banner-link-underline: rgba(40, 43, 34, 0.4);
  --banner-link-hover: #2b30b1;
  --particle-rgb: 40, 43, 34;

  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  /* Fluid padding: top = reserved zone for the particle headline (headline is visually centered in it,
     giving balanced, generous breathing room above the header and between header and paragraph) */
  padding: clamp(160px, 16vw + 40px, 240px) clamp(20px, 4vw, 48px) clamp(36px, 4.5vw, 52px);
  border-radius: clamp(24px, 3vw, 32px);
  background: var(--banner-bg);
  border: 1px solid var(--banner-border);
  box-shadow: var(--banner-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

body.theme-dark .contact-banner {
  --banner-bg: rgba(255, 255, 255, 0.02);
  --banner-border: rgba(255, 255, 255, 0.1);
  --banner-shadow: none;
  --banner-text: rgba(255, 255, 255, 0.85);
  --banner-link: #ffffff;
  --banner-link-underline: rgba(255, 255, 255, 0.4);
  --banner-link-hover: #989bed;
  --particle-rgb: 255, 255, 255;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 760px;
}

.banner-context {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--banner-text);
  max-width: 100%;
  text-align: center;
  margin-bottom: 24px;
  pointer-events: none;
  text-wrap: pretty;
}

.banner-links {
  display: flex;
  gap: 8px 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  pointer-events: auto;
}

.context-link {
  color: var(--banner-link);
  text-decoration: underline;
  text-decoration-color: var(--banner-link-underline);
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.context-link:hover {
  color: var(--banner-link-hover);
  text-decoration-color: var(--banner-link-hover);
}

.context-link:focus-visible {
  outline: 2px solid var(--banner-link-hover);
  outline-offset: 4px;
  border-radius: 4px;
}

.btn-as-link {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Work Sans', sans-serif;
  cursor: pointer;
}

/* Contact Modal */
.contact-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.theme-dark .contact-modal-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.contact-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.94);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body.theme-dark .contact-modal-content {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.contact-modal-overlay.active .contact-modal-content {
  transform: translateY(0) scale(1);
}

.close-modal {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  color: rgba(40, 43, 34, 0.5);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s ease;
}

body.theme-dark .close-modal {
  color: rgba(255,255,255,0.5);
}

.close-modal:hover {
  color: #282b22;
}

body.theme-dark .close-modal:hover {
  color: #fff;
}

.contact-modal-content h3 {
  font-family: 'Agrandir Grand Heavy', 'Agrandir', sans-serif;
  font-size: 28px;
  margin-bottom: 24px;
  color: #282b22;
}

body.theme-dark .contact-modal-content h3 {
  color: #fff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: rgba(40, 43, 34, 0.75);
  margin-bottom: 8px;
}

body.theme-dark .form-group label {
  color: rgba(255,255,255,0.7);
}

.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: #282b22;
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
  box-sizing: border-box;
}

body.theme-dark .form-group input, body.theme-dark .form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: rgba(40, 43, 34, 0.35);
  background: rgba(0, 0, 0, 0.05);
}

body.theme-dark .form-group input:focus, body.theme-dark .form-group textarea:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
}

.submit-btn {
  width: 100%;
  background: #282b22;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 100px;
  font-family: 'Agrandir', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.theme-dark .submit-btn {
  background: #fff;
  color: #000;
}

.submit-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: rgba(40, 43, 34, 0.4);
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
}

body.theme-dark .modal-divider {
  color: rgba(255,255,255,0.3);
}

.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-dark .modal-divider::before, body.theme-dark .modal-divider::after {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-divider span {
  padding: 0 10px;
}

.calendly-btn {
  width: 100%;
  background: transparent;
  color: #282b22;
  border: 1px solid rgba(40, 43, 34, 0.25);
  padding: 16px;
  border-radius: 100px;
  font-family: 'Agrandir', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.theme-dark .calendly-btn {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.calendly-btn:hover {
  background: rgba(40, 43, 34, 0.06);
  border-color: rgba(40, 43, 34, 0.45);
}

body.theme-dark .calendly-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* Footer */
.site-footer {
  padding-top: 30px;
  padding-bottom: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 24px;
  min-height: 80px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(40, 43, 34, 0.55);
}

body.theme-dark .footer-content {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}

.footer-vibe {
  color: rgba(40, 43, 34, 0.8);
  font-weight: 500;
}

body.theme-dark .footer-vibe {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Responsive Styles & Mobile Navigation (Desktop 100% Preserved)
   ========================================================================== */

@media (max-width: 768px) {
  /* Container & Global adjustments */
  .container {
    padding: 0 20px;
  }

  body {
    overflow-x: hidden;
  }

  .blob {
    opacity: 0.2;
    filter: blur(80px);
    -webkit-filter: blur(80px);
  }

  body.theme-dark .blob {
    opacity: 0.25;
  }

  /* Floating Pill Navbar on Mobile */
  nav {
    top: 1rem;
    width: calc(100% - 32px);
    max-width: 480px;
    height: 58px;
    padding: 0 18px;
    border-radius: 36px;
  }

  .nav-brand {
    font-size: 28px;
  }

  .nav-links {
    display: none !important;
  }

  /* Hamburger Toggle Button */
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    z-index: 101;
  }

  .hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #2c2828;
    border-radius: 2px;
    transition: transform 0.3s ease, background-color 0.4s ease, opacity 0.3s ease;
  }

  body.theme-dark .hamburger-bar {
    background-color: #ffffff;
  }

  nav.nav-light-mode .hamburger-bar {
    background-color: #050505;
  }

  .mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  /* Mobile Side Drawer Overlay */
  .mobile-drawer-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    border-radius: inherit;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  }

  body.theme-dark .mobile-drawer-overlay {
    background: rgba(0, 0, 0, 0.65);
  }

  .mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile Side Drawer Panel */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 24px 20px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    box-sizing: border-box;
  }

  body.theme-dark .mobile-drawer {
    background: rgba(18, 18, 20, 0.94);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.7);
  }

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

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

  body.theme-dark .drawer-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .drawer-brand {
    font-family: 'Yellowtail', cursive;
    font-size: 30px;
    color: #282b22;
    line-height: 1;
  }

  body.theme-dark .drawer-brand {
    color: #ffffff;
  }

  .drawer-close-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #282b22;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  body.theme-dark .drawer-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .drawer-close-btn:hover,
  .drawer-close-btn:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
  }

  body.theme-dark .drawer-close-btn:hover,
  body.theme-dark .drawer-close-btn:active {
    background: rgba(255, 255, 255, 0.15);
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
  }

  .drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 14px;
    font-family: 'Agrandir Wide Light', 'Agrandir', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #282b22;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  body.theme-dark .drawer-link {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .drawer-link:hover,
  .drawer-link:active {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.15);
    color: #050505;
    transform: translateX(4px);
  }

  body.theme-dark .drawer-link:hover,
  body.theme-dark .drawer-link:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  .drawer-link-badge {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(206, 170, 53, 0.18);
    color: #a6851b;
    border: 1px solid rgba(206, 170, 53, 0.35);
  }

  body.theme-dark .drawer-link-badge {
    background: rgba(240, 214, 126, 0.2);
    color: #f0d67e;
    border: 1px solid rgba(240, 214, 126, 0.3);
  }

  .drawer-link-arrow {
    font-size: 16px;
    color: rgba(40, 43, 34, 0.45);
    transition: transform 0.2s ease, color 0.2s ease;
  }

  body.theme-dark .drawer-link-arrow {
    color: rgba(255, 255, 255, 0.4);
  }

  .drawer-link:hover .drawer-link-arrow,
  .drawer-link:active .drawer-link-arrow {
    color: #282b22;
    transform: translate(2px, -2px);
  }

  body.theme-dark .drawer-link:hover .drawer-link-arrow,
  body.theme-dark .drawer-link:active .drawer-link-arrow {
    color: #ffffff;
  }

  .drawer-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  body.theme-dark .drawer-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .drawer-location {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: rgba(40, 43, 34, 0.65);
    margin-bottom: 2px;
  }

  body.theme-dark .drawer-location {
    color: rgba(255, 255, 255, 0.6);
  }

  .drawer-sub {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    color: rgba(40, 43, 34, 0.45);
  }

  body.theme-dark .drawer-sub {
    color: rgba(255, 255, 255, 0.35);
  }

  /* Hero Section */
  .hero {
    padding-top: 112px;
    padding-bottom: 80px;
  }

  .hero-content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-image-wrapper {
    margin: 0 auto;
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    mix-blend-mode: multiply;
  }

  .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .hero-text {
    max-width: 100%;
    align-items: center;
  }

  .hero-greeting {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 4px;
    color: #282b22;
    letter-spacing: 0.01em;
  }

  .hero-title {
    font-family: 'Agrandir Grand Heavy', 'Agrandir', sans-serif;
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: #282b22;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 350px;
    color: rgba(40, 43, 34, 0.7);
  }

  .worked-at {
    padding-top: 2rem;
    align-items: center;
    text-align: center;
  }

  .logos {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.75rem;
  }

  .logos img.logo-dunzo {
    height: 20px;
  }

  .logos img.logo-leap,
  .logos img.logo-loop {
    height: 23px;
  }

  /* How Can I Help Section */
  .help-section {
    padding-top: 40px;
    padding-bottom: 95px;
  }

  .help-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .help-title {
    font-family: 'Agrandir Grand Light', 'Agrandir', sans-serif;
    font-weight: 300;
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.22;
    letter-spacing: -0.01em;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    color: #282b22;
  }

  .help-subtitle {
    font-size: 15.5px;
    line-height: 1.7;
    max-width: 350px;
    margin: 0 auto;
    color: #282b22;
  }

  /* Work Section */
  .work-section {
    padding-top: 15px;
    padding-bottom: 25px;
  }

  .other-work-header {
    margin-top: 1.5rem;
  }

  .section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
  }

  .section-title {
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    flex: 1;
  }

  .scroll-controls {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }

  .scroll-btn {
    width: 36px;
    height: 36px;
  }

  .scroll-btn svg {
    width: 16px;
    height: 16px;
  }

  .work-scroll-container {
    gap: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    margin-top: -1rem;
    scroll-padding-left: 20px;
  }

  .work-scroll-container::before,
  .work-scroll-container::after {
    flex: 0 0 20px;
  }

  .work-card {
    min-width: 0;
    flex: 0 0 calc(100vw - 56px);
    max-width: 350px;
    padding: 1.5rem;
    border-radius: 20px;
  }

  .work-card-image {
    height: 210px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
  }

  .work-card-image.browser-mockup,
  .work-card-image.enrolment-portal-mockup {
    padding: 12px 0 0 12px;
  }

  .work-card-image.trio-mockups .trio-screen {
    width: 112px;
  }

  .work-card-image.trio-mockups .screen-center {
    width: 110px;
    top: 10px;
  }

  .work-card-image.trio-mockups .screen-left {
    left: 14px;
    top: 20px;
  }

  .work-card-image.trio-mockups .screen-right {
    right: 14px;
    top: 20px;
  }

  .work-card-image.policy-details-mockup .policy-phone {
    width: 128px;
    height: 200px;
    border-radius: 14px;
  }

  .work-card-image.policy-details-mockup .phone-top-view {
    left: 18px;
    top: 18px;
  }

  .work-card-image.policy-details-mockup .phone-ecard-view {
    right: 18px;
    top: 12px;
  }

  .work-card-image.policy-details-mockup .phone-ecard-view img {
    margin-top: -156px;
  }

  .work-card-image.game-trio-mockups .game-screen-left,
  .work-card-image.game-trio-mockups .game-screen-right {
    width: 156px;
    top: 24px;
  }

  .work-card-image.game-trio-mockups .game-screen-center {
    width: 192px;
    bottom: 14px;
  }

  .work-card-title {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .work-card p {
    font-size: 14px;
    line-height: 1.55;
  }

  /* Experience Section */
  .experience-section {
    padding: 4.5rem 0;
    margin-top: 1.25rem;
    margin-bottom: 3.75rem;
    --grid-cell-size: clamp(32px, 8.5vw, 48px);
  }

  .experience-bg, .experience-grid {
    mask-image: radial-gradient(
      ellipse 49% 47% at 50% 50%,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 42%,
      rgba(0, 0, 0, 0.7) 68%,
      rgba(0, 0, 0, 0.2) 86%,
      transparent 100%
    );
    -webkit-mask-image: radial-gradient(
      ellipse 49% 47% at 50% 50%,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 42%,
      rgba(0, 0, 0, 0.7) 68%,
      rgba(0, 0, 0, 0.2) 86%,
      transparent 100%
    );
  }

  .experience-list {
    gap: 2.75rem;
  }

  .experience-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .sticker-container {
    width: 150px;
    height: 150px;
    border-radius: 20px;
  }

  .sticker-front,
  .sticker-reveal {
    border-radius: 20px;
  }

  .sticker-flap {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .sticker-front {
    padding: 18px;
  }

  .exp-logo-img {
    max-width: 90px;
    max-height: 42px;
  }

  .exp-content {
    padding-top: 0;
    text-align: center;
    width: 100%;
  }

  .exp-header {
    margin-bottom: 0.75rem;
  }

  .exp-company-role {
    font-size: 18px;
    line-height: 1.3;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
  }

  .exp-divider {
    font-size: 18px;
  }

  .exp-role {
    font-size: 15px;
  }

  .exp-meta {
    font-size: 12px;
  }

  .exp-desc {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    max-width: 100%;
  }

  /* Values Section */
  .values-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .values-scroll-container {
    flex-direction: column;
    gap: 1.5rem;
    overflow-x: visible;
    margin-right: 0;
    padding-right: 0;
    padding-top: 0;
    margin-top: 0;
    padding-bottom: 0;
  }

  .values-intro {
    position: static;
    flex: none;
    width: 100%;
    text-align: left;
    padding: 0;
    opacity: 1 !important;
  }

  .values-intro p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0;
    text-align: left;
  }

  .values-cards-wrapper {
    padding-left: 0;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: calc(1.25rem + 24px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -20px;
    padding-right: 20px;
  }

  .values-cards-wrapper::-webkit-scrollbar {
    display: none;
  }

  .value-card {
    flex: 0 0 calc(100vw - 64px);
    max-width: 310px;
    padding: 1.75rem 1.4rem;
    border-radius: 20px;
    scroll-snap-align: start;
  }

  .color-card h3 {
    font-size: 19px;
    margin-bottom: 0.6rem;
  }

  .color-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Contact Banner & Modal */
  .contact-banner-section {
    padding-top: 35px;
    padding-bottom: 75px;
  }

  /* Padding/radius are fluid (clamp) on the base rule – only text & links tune here */
  .banner-context {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .banner-links {
    gap: 2px 20px;
  }

  .context-link {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 40px; /* comfortable tap target */
  }

  .contact-modal-overlay {
    padding: 16px;
  }

  .contact-modal-content {
    padding: 26px 18px;
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
    max-width: 100%;
  }

  .close-modal {
    top: 14px;
    right: 14px;
    font-size: 26px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-modal-content h3 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .submit-btn,
  .calendly-btn {
    padding: 14px;
    font-size: 15px;
  }

  /* Footer */
  .site-footer {
    padding-top: 20px;
    padding-bottom: 56px;
  }

  .footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 24px;
    padding-bottom: 24px;
    min-height: 72px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.02em;
    color: rgba(40, 43, 34, 0.55);
  }

  body.theme-dark .footer-content {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
  }

  .footer-est,
  .footer-updated {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .footer-vibe {
    color: rgba(40, 43, 34, 0.8);
    font-weight: 500;
    text-align: center;
    padding: 0 4px;
  }

  body.theme-dark .footer-vibe {
    color: rgba(255, 255, 255, 0.7);
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 105px;
    padding-bottom: 75px;
  }

  .hero-image-wrapper {
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
  }

  .section-title {
    font-size: 18px;
  }

  .hero-subtitle,
  .help-subtitle {
    max-width: 310px;
  }

  .help-section {
    padding-top: 30px;
    padding-bottom: 85px;
  }

  .footer-content {
    font-size: 10px;
    gap: 4px;
    padding-top: 20px;
    padding-bottom: 24px;
    min-height: 72px;
  }

  .work-card {
    flex: 0 0 calc(100vw - 44px);
    padding: 1.25rem;
  }

  .work-card-image {
    height: 180px;
  }

  .value-card {
    flex: 0 0 calc(100vw - 48px);
    padding: 1.5rem 1.2rem;
  }

  .values-cards-wrapper {
    margin-right: -16px;
    padding-right: 16px;
  }
}


/* --- Skeletons & Fallbacks --- */
.skeleton-wrapper {
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.04);
    min-height: 20px;
}

body.theme-dark .skeleton-wrapper {
    background-color: rgba(255, 255, 255, 0.05);
}

.skeleton-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.8) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
    background-repeat: no-repeat;
    border-radius: inherit;
}

body.theme-dark .skeleton-wrapper::after {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
}

[data-theme="light"] .skeleton-wrapper, .experience-section .skeleton-wrapper {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .skeleton-wrapper::after, .experience-section .skeleton-wrapper::after {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.8) 60%,
        rgba(255, 255, 255, 0)
    );
}

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

.skeleton-wrapper img,
.skeleton-wrapper iframe {
    opacity: 1; /* Fallback to 1 so they don't break */
    transition: opacity 0.3s ease;
}

.skeleton-wrapper.loaded::after {
    display: none;
}

.skeleton-wrapper.loaded {
    background-color: transparent !important;
}

.skeleton-wrapper.loaded img,
.skeleton-wrapper.loaded iframe {
    opacity: 1;
}

/* Fallback state */
.skeleton-wrapper.error::after {
    display: none;
}
.skeleton-wrapper.error {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.05);
}
body.theme-dark .skeleton-wrapper.error {
    background-color: rgba(255, 255, 255, 0.05);
}
.skeleton-wrapper.error::before {
    content: 'Image not found';
    font-size: 0.8rem;
    color: rgba(40, 43, 34, 0.5);
}
body.theme-dark .skeleton-wrapper.error::before {
    color: rgba(255, 255, 255, 0.5);
}
[data-theme="light"] .skeleton-wrapper.error, .experience-section .skeleton-wrapper.error {
    background-color: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .skeleton-wrapper.error::before, .experience-section .skeleton-wrapper.error::before {
    color: rgba(0, 0, 0, 0.5);
}


/* --- Scroll Animations --- */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
}

.fade-up-element.fade-up-visible {
    opacity: 1;
    transform: none;
}

/* Specific overrides for when JS is disabled */
noscript .fade-up-element {
    opacity: 1;
    transform: none;
}

html {
  scroll-behavior: smooth;
}
