/* PP Neue Montreal Font Faces */
@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Animation classes for smooth loading */
.fade-blur-up {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-blur-up.animate {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* Initial state - all sections hidden by default */
.navbar,
.hero,
.video-intro,
.case-studies,
.more-work,
.other-work-section,
.writing-section,
.articles-section,
.testimonials-section,
.final-illustration-section,
.footer-section {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
}

/* Container for staggered animations */
.stagger-container {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stagger-container.animate {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

/* Spring animation delays for staggered loading */
.stagger-delay-1 {
  animation-delay: 0.06s;
}
.stagger-delay-2 {
  animation-delay: 0.12s;
}
.stagger-delay-3 {
  animation-delay: 0.18s;
}
.stagger-delay-4 {
  animation-delay: 0.24s;
}
.stagger-delay-5 {
  animation-delay: 0.3s;
}
.stagger-delay-6 {
  animation-delay: 0.36s;
}
.stagger-delay-7 {
  animation-delay: 0.42s;
}
.stagger-delay-8 {
  animation-delay: 0.48s;
}

/* Enhanced transitions for interactive elements */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Design System Variables */
:root {
  --text-primary: #303030;
  --text-muted: #36394a;
  --text-subdued: #818898;
  --text-normal: #666d80;
  --bg-normal: #f6f8fa;
  --bg-pressed: #dfe1e7;
  --bg-white: #fefefe;
  --gradient-from: #949494;
  --gradient-to: #b3b3b399;
  --navbar-bg: rgba(254, 254, 254, 0.8);
  --navbar-bg-scrolled: rgba(254, 254, 254, 0.85);
  --hero-bg: #f6f8fa;
  --hero-border: #eceff3;
  --video-intro-bg: rgba(254, 255, 255, 0.95);
  --video-intro-border: #eceff3;
  --modal-overlay: rgba(0, 0, 0, 0.8);
  --card-border: #eceff3;
  --card-role-text: rgba(0, 0, 0, 0.6);
  --article-title: #36394a;
  --article-button-bg: #fefefe;
  --article-button-border: rgba(18, 55, 105, 0.08);
  --article-button-shadow: rgba(164, 172, 185, 0.24);
  --article-button-hover: #f8f9fa;
  --article-divider: #eceff3;
  --testimonial-bg: #fefefe;
  --testimonial-name: #000000;
  --testimonial-border: #eceff3;
}

/* Layout */
.home {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  padding-top: 0; /* navbar is not fixed */
}

/* Stack wrapper for hero + video intro + case studies */
.intro-stack {
  position: relative;
  z-index: 0;
  min-height: 130vh; /* Ensure content below starts after gradient end */
}

/* Top-of-page dreamy sky gradient behind hero (fills initial viewport) */
.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 130vh; /* Extend further past viewport */
  pointer-events: none;
  z-index: -2; /* Render behind clouds and all content */
  /* Larger white ramp at the bottom for a smoother transition */
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 85%,
      rgba(255, 255, 255, 0.7) 95%,
      #ffffff 100%
    ),
    radial-gradient(
      313% 100% at 50% 0%,
      rgb(58, 128, 196) 0%,
      rgb(80, 150, 210) 60%,
      rgb(120, 180, 225) 88%,
      rgb(160, 200, 235) 98%,
      rgb(255, 255, 255) 100%
    );
}

/* Animated cloud layer (behind content, above sky gradient) */
.cloud-layer {
  position: absolute; /* keep cloud in hero region; don't stick to viewport */
  top: 0;
  left: 0;
  width: 100vw;
  height: 55vh;
  pointer-events: none;
  z-index: -1; /* below content, above ::before sky */
  overflow: visible;
}

.cloud-layer::before {
  content: "";
  position: absolute;
  top: 6vh;
  left: -40vw; /* start off-screen */
  width: 900px;
  height: 360px;
  background-image: url("assets/cloud.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  filter: blur(0.6px) saturate(110%);
  animation: single-cloud-pan 60s linear infinite;
}

@keyframes single-cloud-pan {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(140vw);
  }
}

/* (cloud-2 removed) */

@media (max-width: 768px) {
  .cloud-layer {
    height: 42vh; /* slightly taller cloud viewport on mobile */
  }
  .cloud-layer::before {
    width: 192px; /* 30% of 640px */
    height: 78px; /* 30% of 260px */
    left: -96px; /* start half visible on load */
    opacity: 1;
    animation-duration: 55s;
    animation-delay: 0s; /* ensure no delay */
    will-change: transform; /* hint for smoother start */
  }
  /* cloud-2 mobile variant removed */
}

@supports (height: 100svh) {
  .home::before {
    height: 130svh; /* default svh height; desktop override below */
  }
}

/* Desktop-only: extend gradient further below the viewport */
@media (min-width: 769px) {
  .home::before {
    height: 140vh; /* fallback */
    height: 140svh; /* stable viewport unit where supported */
  }
  .intro-stack {
    min-height: 140vh; /* ensure following content starts after gradient */
    min-height: 140svh;
  }
  /* Desktop: keep cloud fixed at a specific spot (no travel) */
  .cloud-layer::before {
    top: 6vh; /* revert to animated path start */
    left: -40vw;
    animation: single-cloud-pan 60s linear infinite; /* resume travel */
  }
  /* Desktop cloud-2: fixed near right-bottom, slightly crossing last case card */
  .cloud-layer::after {
    content: none; /* remove cloud-2 */
  }
}

/* Mobile: extend gradient down to the end of intro stack */
@media (max-width: 768px) {
  .intro-stack::after {
    content: "";
    position: absolute;
    inset: 0 -5vw -40vh -5vw; /* extend blue well below the cards */
    z-index: -2; /* keep mobile gradient below clouds so clouds remain visible */
    /* Mobile: larger white ramp for smoother transition */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 85%,
        rgba(255, 255, 255, 0.7) 95%,
        #ffffff 100%
      ),
      radial-gradient(
        320% 95% at 50% -10%,
        rgba(58, 128, 196, 0.95) 0%,
        rgba(80, 150, 210, 0.92) 55%,
        rgba(120, 180, 225, 0.9) 85%,
        rgba(160, 200, 235, 0.9) 98%,
        #ffffff 100%
      );
    pointer-events: none;
  }
  .intro-stack {
    min-height: 130svh; /* Match mobile gradient height */
  }
}

/* Navbar */
.navbar {
  position: relative;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: color 0.3s ease;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  max-width: 656px;
  margin: 0 auto;
  width: 90%;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

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

.logo-link:active {
  opacity: 0.6;
}

.logo-circle {
  width: 24px;
  height: 24px;
  background-color: #bc002d;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-image {
  height: 24px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Make logo white-toned */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  color: #ffffff !important;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link.active {
  color: #ffffff !important;
  font-weight: 500;
}

.nav-link:hover {
  color: #ffffff !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle.active {
  background-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle img {
  display: block;
}

.mobile-menu-overlay {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 354px;
  background: rgb(12, 18, 28); /* fully opaque */
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: saturate(130%) blur(22px);
  -webkit-backdrop-filter: saturate(130%) blur(22px);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  margin-top: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Removed scrolled navbar background behavior */

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 4px;
  gap: 0;
}

.mobile-nav-link {
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  color: #ffffff; /* ensure white text on frosted background */
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.mobile-nav-link.active {
  color: #ffffff;
  font-weight: 500;
  border-radius: 6px;
}

.mobile-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

/* Hero Section */
.hero {
  margin: 0 auto 32px;
  width: 720px;
  max-width: 90%;
  background: rgba(255, 255, 255, 0.035); /* softer, blends more */
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(120%) blur(26px);
  -webkit-backdrop-filter: saturate(120%) blur(26px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero-content {
  padding: 35px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: 32px;
  line-height: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

.highlighted-text {
  color: rgba(255, 255, 255, 1);
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.body-text {
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.highlight-text {
  color: #ffffff;
  font-weight: 500;
}

/* Video Intro Section */
.video-intro {
  margin: 0 auto 32px;
  width: 720px;
  max-width: 90%;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(120%) blur(22px);
  -webkit-backdrop-filter: saturate(120%) blur(22px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.video-content {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 16px;
}

.video-thumbnail {
  width: 58px;
  height: 40px;
  background: url("assets/video-icon.png") center/cover no-repeat;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (min-width: 769px) {
  .video-thumbnail:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  }

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

.video-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.video-description {
  font-size: 14px;
  line-height: 20px;
  color: #ffffff;
  margin: 0;
}

.watch-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.1s ease;
  position: relative;
  z-index: 10;
}

.watch-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.watch-btn:active {
  transform: translateY(0.5px);
  background: rgba(255, 255, 255, 0.1);
}

.watch-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35),
    0 8px 22px rgba(0, 0, 0, 0.16);
}

/* Video Modal Styles */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #fefefe;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 10001;
  animation: slideUp 0.3s ease-out;
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  transition: background 0.2s ease;
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.video-modal-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 62.5%; /* 16:10 aspect ratio for Loom */
}

.video-modal-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Showcase Modal Styles */
.showcase-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.showcase-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(37, 37, 37, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.showcase-modal-content {
  position: relative;
  width: 656px;
  max-width: 90%;
  max-height: 90vh;
  background: #fefefe;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 10001;
  animation: slideUp 0.3s ease-out;
}

.showcase-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: #666d80;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  transition: background 0.2s ease;
}

.showcase-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.showcase-modal-container {
  padding: 40px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.showcase-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 132px;
}

.showcase-logo {
  width: 48px;
  height: 48px;
  background-color: #d9d9d9;
  border-radius: 8px;
  flex-shrink: 0;
}

.showcase-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-company {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #36394a;
  margin: 0;
}

.showcase-role {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #818898;
  margin: 0;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-text-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-title {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 44px;
  letter-spacing: -0.32px;
  color: #36394a;
  margin: 0;
}

.showcase-description {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #666d80;
  margin: 0;
}

.showcase-more-content {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #36394a;
  margin: 0;
}

/* Image Popup Modal Styles */
.image-popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.image-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(37, 37, 37, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.image-popup-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: #fefefe;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 10001;
  animation: slideUp 0.3s ease-out;
}

.image-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: #666d80;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  transition: background 0.2s ease;
}

.image-popup-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.image-popup-container {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.popup-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  /* Prevent browser from interfering with zoom */
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Ensure transform origin is centered for better zoom experience */
  transform-origin: center center;
}

.popup-image.zoomed {
  cursor: zoom-out;
  /* Remove transition when zoomed to prevent interference with pinch gestures */
  transition: none;
}

/* Make images clickable */
.bento-img,
.other-work-img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bento-img:hover,
.other-work-img:hover {
  transform: scale(1.02);
}

/* Case Studies Section */
.case-studies {
  margin: 0 auto 96px;
  max-width: 90%;
}

.cards-container {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.case-card {
  width: 250px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(120%) blur(22px);
  -webkit-backdrop-filter: saturate(120%) blur(22px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.card-role {
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
}

.card-logo {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.card-cta {
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  margin: 0;
  position: relative;
  display: inline-block;
}

.card-cta::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

/* Arrow animation on card hover */
.case-card:hover .card-cta::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* More Work Section */
.more-work {
  margin: 0 auto 48px;
  max-width: 90%;
}

.more-work-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bento-image {
  width: 108px;
  height: 108px;
  border-radius: 0;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.more-work-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.more-work-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
}

.more-work-description {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-subdued);
  margin: 0;
  max-width: 319px;
}

/* Other Work Section */
.other-work-section {
  margin: 0 auto 96px;
  width: 720px;
  max-width: 90%;
}

.other-work-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.other-work-item {
  width: 100%;
  aspect-ratio: 2880 / 1792;
  overflow: hidden;
}

.other-work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Writing Section */
.writing-section {
  margin: 0 auto 48px;
  max-width: 90%;
}

.writing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.notebook-image {
  width: 108px;
  height: 108px;
  border-radius: 0;
}

.notebook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.writing-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.writing-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
}

.writing-description {
  font-size: 16px;
  line-height: 24px;
  color: #818898;
  margin: 0;
  width: 320px; /* Added fixed width */
}

/* Articles Section */
.articles-section {
  margin: 0 auto 124px;
  width: 720px;
  max-width: 90%;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px; /* 2xl in Tailwind */
  border: 1px solid #eceff3;
  padding: 16px; /* py-4 (gap-4 implies padding around content) */
  box-sizing: border-box;
}

.articles-content {
  display: flex;
  flex-direction: column;
  gap: 16px; /* gap-4 from Figma */
}

.article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.article-text {
  display: flex;
  flex-direction: column;
}

.article-title {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500; /* Medium */
  font-size: 14px;
  line-height: 20px;
  color: var(--article-title);
  margin: 0;
}

.article-read-time {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400; /* Regular */
  font-size: 14px;
  line-height: 20px;
  color: #666d80; /* Text/Normal [500] */
  margin: 0;
}

.read-article-btn {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500; /* Medium */
  font-size: 14px;
  line-height: 20px;
  color: var(--article-title);
  background-color: var(--article-button-bg);
  border: 1px solid var(--article-button-border);
  box-shadow: 0px 1px 2px 0px var(--article-button-shadow);
  border-radius: 6px; /* rounded-md */
  padding: 4px 14px; /* py-1 px-3.5 */
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease; /* Added transition */
}

.read-article-btn:hover {
  background-color: var(--article-button-hover);
}

.article-divider {
  border: none;
  height: 1px;
  background-color: var(--article-divider);
  margin: 0; /* Reset margin */
}

/* Testimonials Section */
.testimonials-section {
  margin: 0 auto 48px;
  max-width: 720px;
  width: 90%;
}

.testimonials-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.envelope-image {
  width: 108px;
  height: 108px;
  border-radius: 0;
}

.envelope-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.testimonials-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.testimonials-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
}

.testimonials-description {
  font-size: 16px;
  line-height: 24px;
  color: #818898;
  margin: 0;
  width: 320px; /* Added fixed width */
}

.testimonial-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 2rem;
}

.testimonial-card {
  background-color: var(--testimonial-bg);
  border-radius: 15px;
  padding: 2rem;
  width: 100%;
  max-width: 730px;
}

.testimonial-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.testimonial-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.testimonial-author {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-name {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--testimonial-name);
}

.testimonial-role {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #666d80;
}

.testimonial-quote {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 28px;
  color: var(--text-normal);
  border: 1px solid var(--testimonial-border);
  padding: 1.5rem;
  border-radius: 24px;
  max-width: 560px;
}

.testimonial-quote p {
  margin: 0;
}

/* Final Illustration Section */
.final-illustration-section {
  margin-top: 100px;
  margin-bottom: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.final-illustration-img {
  width: 146px;
  height: 146px;
  border-radius: 24px;
}

/* Footer Section */
.footer-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 64px;
  margin-bottom: 80px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-thankyou {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #666d80;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  font-weight: 400;
}
.footer-credit {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #666d80;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  font-weight: 400;
  max-width: 666px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.footer-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #666d80;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #36394a;
}
.footer-copyright {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #666d80;
  text-transform: uppercase;
  font-weight: 400;
}

@media (max-width: 600px) {
  .footer-credit {
    max-width: 90vw;
  }
  .footer-section {
    margin-top: 40px;
    margin-bottom: 16px;
  }
  .footer-content {
    gap: 16px;
  }
  .footer-nav {
    gap: 12px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Container adjustments */
  .home {
    min-height: auto;
    padding-bottom: 40px;
    padding-top: 0; /* no fixed navbar */
  }

  .navbar,
  .hero,
  .video-intro,
  .case-studies,
  .more-work,
  .other-work-section,
  .writing-section,
  .articles-section,
  .testimonials-section,
  .final-illustration-section {
    width: 90% !important;
    max-width: 720px !important;
  }

  /* Reduce margins on mobile */
  .hero {
    margin-bottom: 32px;
    background: rgba(
      255,
      255,
      255,
      0.045
    ) !important; /* ensure frosted look remains on mobile */
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: saturate(120%) blur(22px) !important; /* match case-card */
    -webkit-backdrop-filter: saturate(120%) blur(22px) !important;
  }

  .video-intro {
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.035) !important; /* align with cards */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: saturate(120%) blur(22px) !important; /* match case-card */
    -webkit-backdrop-filter: saturate(120%) blur(22px) !important;
  }

  .case-studies {
    margin-bottom: 72px;
  }

  .more-work {
    margin-bottom: 32px;
  }

  .other-work-section {
    margin-bottom: 72px;
  }

  .writing-section {
    margin-bottom: 32px;
  }

  .articles-section {
    margin-bottom: 72px;
  }

  .testimonials-section {
    margin-bottom: 32px;
  }

  .final-illustration-section {
    margin-top: 60px;
    margin-bottom: 32px;
    width: 100% !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
  }

  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .case-card {
    width: 100% !important;
    max-width: none !important;
  }

  .hero-title {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.02em;
    font-family: "PP Neue Montreal", "Inter", -apple-system, BlinkMacSystemFont,
      "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

  .hero-content {
    padding: 24px; /* Reduce padding on mobile */
  }

  .more-work-description {
    width: 90%;
    max-width: 319px;
  }

  /* Mobile navbar adjustments: no fixed behavior */
  .navbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    transform: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin-bottom: 0 !important;
  }

  .navbar-content {
    padding: 16px 0; /* Reduce navbar padding */
  }

  /* Hide desktop nav links and show mobile menu on mobile */
  .nav-links {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block !important;
  }
  /* Make hamburger icon white on mobile */
  .mobile-menu-toggle img {
    filter: brightness(0) invert(1);
  }

  /* Mobile video section layout adjustments */
  .video-content {
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px !important;
  }

  .video-thumbnail {
    width: 58px !important;
    height: 40px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: url("assets/video-icon.png") center/cover no-repeat !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .video-thumbnail:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  }

  .video-thumbnail:active {
    transform: translateY(0) !important;
  }

  .video-info {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .video-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .video-title {
    display: block !important;
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  .video-description {
    display: none !important;
  }

  .watch-btn {
    display: none !important; /* hide button on mobile per spec */
  }

  /* Mobile text adjustments */
  .body-text {
    font-size: 16px;
    line-height: 26px;
  }

  /* Mobile video modal adjustments */
  .video-modal-content {
    width: 95% !important;
    margin: 16px !important;
    border-radius: 12px !important;
  }

  .video-modal-close {
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }

  /* Mobile showcase modal adjustments */
  .showcase-modal-content {
    width: 95% !important;
    margin: 16px !important;
    border-radius: 24px !important;
    max-height: 85vh !important;
  }

  .showcase-modal-container {
    padding: 24px 20px 20px 20px !important;
    gap: 20px !important;
  }

  .showcase-title {
    font-size: 24px !important;
    line-height: 32px !important;
    letter-spacing: -0.24px !important;
  }

  .showcase-description {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .showcase-modal-close {
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }

  /* Mobile image popup adjustments */
  .image-popup-content {
    width: 95% !important;
    max-height: 95vh !important;
    border-radius: 24px !important;
  }

  .image-popup-container {
    padding: 20px !important;
    min-height: 150px !important;
  }

  .popup-image {
    max-height: 85vh !important;
    border-radius: 12px !important;
  }

  .image-popup-close {
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }
}

/* Interactive elements */
.case-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.case-card:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced button animations */
