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

@font-face {
  font-family: 'Genesize Grotesk';
  src: url('Fonts/Genesize Grotesk.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

/* Custom properties & design system */
:root {
  --bg-dark: #000000;
  --bg-primary: #050505;
  --bg-card: #0d0d0f;
  --bg-card-hover: #121215;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  
  --text-primary: #ffffff;
  --text-secondary: #86868b;
  --text-muted: #515154;

  /* Brand Color Palette */
  --color-blue: #0010A2;
  --color-blue-glow: rgba(0, 16, 162, 0.35);
  --color-orange: #F8540A;
  --color-orange-glow: rgba(248, 84, 10, 0.35);
  --color-yellow: #FEB500;
  --color-yellow-glow: rgba(254, 181, 0, 0.35);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-tall: 'Plus Jakarta Sans', var(--font-sans);
  --nav-height: 4.5rem;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
  line-height: 1.5;
}

/* Noise overlay texture */
.noise-overlay {
  display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #222225;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333336;
}

/* Utility Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Navigation Bar */
header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 3rem);
  max-width: 1200px;
  height: var(--nav-height);
  z-index: 1000;
  background-color: rgba(10, 10, 12, 0.45);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15),
              0 15px 35px rgba(0, 0, 0, 0.6);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              top 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  top: 0.75rem;
  background-color: rgba(5, 5, 8, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.18),
              0 20px 40px rgba(0, 0, 0, 0.7);
}

header.nav-hidden {
  transform: translateY(-130%);
  opacity: 0;
  pointer-events: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2.5rem;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  height: 2.2rem;
}

.logo img {
  height: 100%;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--text-primary);
}

.mobile-menu-toggle {
  display: none;
}

.mobile-cta-li {
  display: none;
}

.cta-nav {
  display: inline-flex;
  align-items: center;
  background-color: var(--text-primary);
  color: var(--bg-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.cta-nav:hover {
  background-color: var(--color-blue);
  color: var(--text-primary);
  border-color: var(--color-blue);
  box-shadow: 0 0 20px rgba(0, 16, 162, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 85%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1280px;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transform: translateY(2.75rem);
}

.hero-tag {
  color: var(--color-orange);
  text-shadow: 0 0 15px rgba(248, 84, 10, 0.5);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  /* Glass pill badge */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(248, 84, 10, 0.08);
  border: 1px solid rgba(248, 84, 10, 0.28);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(248, 84, 10, 0.12), inset 0 1px 0 rgba(248, 84, 10, 0.1);
}

.hero h1 {
  font-family: var(--font-tall);
  font-size: clamp(3.4rem, 6.8vw, 5.9rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-primary);
  line-height: 0.96;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  max-width: 1220px;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero p {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background-color: var(--text-primary);
  color: var(--bg-dark);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 130%;
  opacity: 1;
}

.btn-primary:hover {
  background-color: var(--color-blue);
  color: var(--text-primary);
  border-color: var(--color-blue);
  box-shadow: 0 0 30px rgba(0, 16, 162, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
}

.btn-secondary:hover::after {
  left: 130%;
  opacity: 1;
}

.btn-secondary:hover {
  background-color: rgba(0, 16, 162, 0.2);
  border-color: var(--color-blue);
  box-shadow: 0 0 30px rgba(0, 16, 162, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: heroReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--text-secondary);
  animation: scrollDown 2s infinite ease-in-out;
}

/* Animations */
@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* Bento Services Section */
.desktop-br {
  display: block;
}
@media (max-width: 768px) {
  .desktop-br {
    display: inline;
    content: " ";
  }
}

.section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: 5rem;
  max-width: 1120px;
}

.section-tag {
  color: var(--color-orange);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
  /* Glass pill badge */
  display: inline-flex;
  align-items: center;
  background: rgba(248, 84, 10, 0.07);
  border: 1px solid rgba(248, 84, 10, 0.25);
  padding: 0.38rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 16px rgba(248, 84, 10, 0.1), inset 0 1px 0 rgba(248, 84, 10, 0.08);
  text-shadow: 0 0 18px rgba(248, 84, 10, 0.35);
}

.section-title {
  font-family: var(--font-tall);
  font-size: clamp(2.5rem, 5.15vw, 3.9rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.section-desc {
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.bento-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15),
              0 15px 35px rgba(0, 0, 0, 0.5);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--x, 0px) var(--y, 0px), var(--glow-color, rgba(255,255,255,0.03)), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
  /* Clip the glow to the card's rounded shape even when overflow: visible is set */
  clip-path: inset(0 round 24px);
}

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

.bento-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-color: var(--hover-border-color, rgba(255, 255, 255, 0.2));
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25),
              0 15px 35px rgba(0, 0, 0, 0.5),
              0 0 30px var(--glow-shadow, transparent);
}

.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-7 { grid-column: span 7; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-5 { grid-column: span 5; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-12 { grid-column: span 12; }

.bento-card.height-large { min-height: 420px; }
.bento-card.height-medium { min-height: 320px; }

.bento-card-header {
  position: relative;
  z-index: 3;
}

.bento-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 12px rgba(0,0,0,0.25);
  transition: var(--transition-smooth);
}

/* Color-specific icon backgrounds even in resting state */
.bento-ai .bento-icon {
  background: linear-gradient(135deg, rgba(0,82,255,0.12) 0%, rgba(0,210,255,0.04) 100%);
  border-color: rgba(0,82,255,0.2);
}

.bento-com .bento-icon {
  background: linear-gradient(135deg, rgba(255,87,13,0.12) 0%, rgba(255,181,0,0.04) 100%);
  border-color: rgba(255,87,13,0.2);
}

.bento-ugc .bento-icon {
  background: linear-gradient(135deg, rgba(255,179,0,0.12) 0%, rgba(255,87,13,0.04) 100%);
  border-color: rgba(255,179,0,0.2);
}

.bento-card:hover .bento-icon {
  background: linear-gradient(135deg, var(--icon-bg, rgba(255,255,255,0.1)) 0%, transparent 100%);
  border-color: var(--icon-border, var(--border-hover));
  color: var(--icon-color, var(--text-primary));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 20px rgba(0,0,0,0.3), 0 0 16px var(--glow-shadow, transparent);
  transform: scale(1.05);
}

.bento-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.bento-card-content {
  display: flex;
  height: 100%;
  width: 100%;
  gap: 2.5rem;
  align-items: flex-start;
}

.bento-card-text {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bento-pipeline-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 220px;
}

.bento-keyframe-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 240px;
  width: 100%;
}

/* Giant Liquid Glass Keyframe */
.glass-keyframe-container {
  position: absolute;
  top: 30px;
  right: 10px;
  width: 230px;
  height: 230px;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0, 20, 180, 0.7)) 
          drop-shadow(0 0 20px rgba(0, 100, 255, 0.55)) 
          drop-shadow(0 0 60px rgba(0, 210, 255, 0.3))
          drop-shadow(0 0 100px rgba(0, 180, 255, 0.12));
  animation: floatGlassKeyframe 6s ease-in-out infinite;
}

/* Blur layer clipped to the exact hourglass shape using url(#keyframe-clip) */
.glass-keyframe-blur-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: url(#keyframe-clip);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  pointer-events: none;
  z-index: 1;
}

@keyframes floatGlassKeyframe {
  0% {
    transform: rotate(-14deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(-12px);
  }
  100% {
    transform: rotate(-14deg) translateY(0);
  }
}

.glass-keyframe-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Ensure the card containing the overlapping glass keyframe stacks on top of adjacent cards */
.bento-card:has(.glass-keyframe-container) {
  z-index: 3;
}

/* Redraw the card border ON TOP of the overflowing keyframe so all 4 corners stay rounded */
.bento-card:has(.glass-keyframe-container)::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  pointer-events: none;
  z-index: 11;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.65),
              inset 1px 0 0 rgba(255, 255, 255, 0.20);
}

/* Glow Themes per Card type */
.bento-ai {
  --glow-shadow: rgba(0, 82, 255, 0.25);
  --glow-color: var(--color-blue-glow);
  --icon-bg: rgba(0, 28, 184, 0.1);
  --icon-border: rgba(0, 28, 184, 0.3);
  --icon-color: #5580ff;
  overflow: visible;
}

.bento-com {
  --glow-shadow: rgba(255, 87, 13, 0.25);
  --glow-color: var(--color-orange-glow);
  --icon-bg: rgba(255, 87, 13, 0.1);
  --icon-border: rgba(255, 87, 13, 0.3);
  --icon-color: #ff854d;
}

.bento-ugc {
  --glow-shadow: rgba(255, 179, 0, 0.25);
  --glow-color: var(--color-yellow-glow);
  --icon-bg: rgba(255, 179, 0, 0.1);
  --icon-border: rgba(255, 179, 0, 0.3);
  --icon-color: #ffd666;
}

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(35px) scale(0.985);
  /* Fast animation-out to prevent drag when scrolling fast */
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  /* Elegant slow animation-in when scroll-revealing */
  transition: opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reveal Text triggers based on its parent .reveal container getting .active */
.reveal-text {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active .reveal-text,
.reveal-text.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger transition delay for section descriptions */
.reveal.active p.reveal-text,
p.reveal-text.active {
  transition-delay: 0.12s;
}

/* Portfolio Section */
.portfolio-filter-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 3.5rem;
}

.portfolio-filters {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 100px;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 1.8rem;
  cursor: pointer;
  border-radius: 100px;
  transition: var(--transition-smooth);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  color: var(--text-primary);
  background-color: var(--color-orange);
  font-weight: 800;
  box-shadow: 0 0 20px rgba(248, 84, 10, 0.4);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* Project Card layout */
.project-card {
  grid-column: span 6;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15),
              0 15px 35px rgba(0, 0, 0, 0.5);
}

.project-card.vertical {
  grid-column: span 4;
}

.project-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25),
              0 25px 50px rgba(0, 0, 0, 0.65),
              0 0 30px rgba(255, 255, 255, 0.08);
}

/* Video Wrapper */
.project-video-wrapper {
  position: relative;
  width: 100%;
  background-color: #000;
  overflow: hidden;
}

/* Aspect ratios */
.project-card.horizontal .project-video-wrapper {
  aspect-ratio: 16 / 9;
}

.project-card.vertical .project-video-wrapper {
  aspect-ratio: 9 / 16;
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.project-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Cinematic multi-layer gradient: subtle blue mid, dark bottom */
  background: 
    radial-gradient(ellipse at center, rgba(0,16,162,0.08) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.78) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover .project-video-overlay {
  opacity: 1;
}

/* Play button with ring pulse effect */
.play-trigger-btn {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 30px rgba(0,0,0,0.55), 0 0 0 0 rgba(255,255,255,0.25);
  transform: scale(0.88);
  backdrop-filter: blur(4px);
}

/* Subtle ring around play button */
.play-trigger-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: var(--transition-smooth);
}

.project-card:hover .play-trigger-btn {
  transform: scale(1);
}

.project-card:hover .play-trigger-btn::before {
  inset: -10px;
  border-color: rgba(255,255,255,0.35);
}

.play-trigger-btn:hover {
  background: var(--text-primary);
  box-shadow: 0 8px 35px rgba(0,0,0,0.6), 0 0 20px rgba(255,255,255,0.15);
  transform: scale(1.1) !important;
}

.project-details {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
}

.project-card.vertical .project-category {
  color: var(--color-orange);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

#about .section-header {
  margin-bottom: 3rem;
}

.about-manifesto {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.manifesto-item {
  display: flex;
  gap: 2.2rem;
  align-items: flex-start;
}

.manifesto-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-orange);
  box-shadow: 0 0 10px rgba(248, 84, 10, 0.7),
              0 0 20px rgba(248, 84, 10, 0.3);
  margin-top: 0.7rem;
  flex-shrink: 0;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.manifesto-text {
  color: var(--text-secondary);
  font-size: clamp(1.15rem, 2.1vw, 1.3rem);
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.manifesto-item:hover .manifesto-text {
  color: var(--text-primary);
}

.manifesto-item:hover .manifesto-bullet {
  background-color: var(--text-primary);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9),
              0 0 22px rgba(255, 255, 255, 0.4);
  transform: scale(1.3);
}


/* Fullscreen Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: rotate(90deg);
}

.modal-container {
  width: 92%;
  max-width: 1350px;
  position: relative;
  transition: var(--transition-smooth);
  transform: scale(0.95);
}

.video-modal.active .modal-container {
  transform: scale(1);
}

.modal-container.vertical-video {
  max-width: 480px;
  width: 90%;
}

.modal-video-ratio-box {
  width: 100%;
  position: relative;
}

.modal-container:not(.vertical-video) .modal-video-ratio-box {
  aspect-ratio: 16 / 9;
}

.modal-container.vertical-video .modal-video-ratio-box {
  aspect-ratio: 9 / 16;
}

.modal-video-ratio-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 
              0 0 50px rgba(0, 16, 162, 0.25);
}

/* Contact / Footer Section */
.footer-cta {
  position: relative;
  /* Dramatic multi-layer gradient: strong blue orb top + warm tint bottom */
  background:
    radial-gradient(900px circle at top left, rgba(0, 40, 220, 0.18) 0%, transparent 55%),
    radial-gradient(600px circle at 80% 80%, rgba(248, 84, 10, 0.06) 0%, transparent 60%),
    radial-gradient(400px circle at 20% 100%, rgba(0, 82, 255, 0.08) 0%, transparent 50%);
  border-bottom: 1px solid var(--border-color);
  padding: 9rem 0 8rem;
  text-align: left;
  overflow: hidden;
}

/* Glowing horizontal line at the top of the CTA section */
.footer-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 210, 255, 0.8) 0%, rgba(0, 82, 255, 0.5) 40%, rgba(0, 40, 220, 0.2) 70%, transparent 100%);
  box-shadow: 0 0 25px rgba(0, 162, 255, 0.3);
}

/* Align every child inside footer-cta to the left */
.footer-cta .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-cta h2 {
  font-size: clamp(2.5rem, 5.15vw, 3.9rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  text-align: left;
}

.footer-cta-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
}

footer {
  padding: 3rem 0;
  background-color: var(--bg-dark);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-location {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
}

.contact-email-text {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-email-text a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: var(--transition-fast);
}

.contact-email-text a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .bento-card.col-8,
  .bento-card.col-7,
  .bento-card.col-6,
  .bento-card.col-5,
  .bento-card.col-4 {
    grid-column: span 12;
  }
  .bento-card {
    min-height: auto;
  }
  .project-card {
    grid-column: span 12;
  }
  .project-card.vertical {
    grid-column: span 6;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Bento cards tablet layout: 6-6 instead of 12-12 for columns */
  .bento-card.col-8,
  .bento-card.col-7,
  .bento-card.col-6,
  .bento-card.col-5,
  .bento-card.col-4 {
    grid-column: span 6;
  }
  
  .hero h1 {
    font-size: clamp(3.1rem, 7.2vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: 0;
  }
  .bento-card.height-large {
    min-height: 380px;
  }
  .portfolio-grid {
    gap: 1.5rem;
  }
  .project-card {
    grid-column: span 6 !important;
  }
  .project-card.vertical {
    grid-column: span 6 !important;
  }
  header {
    width: calc(100% - 4rem);
    max-width: calc(1024px - 4rem);
  }

  /* Disable dangerous horizontal translates on tablet & mobile to prevent viewport overflow */
  .reveal-left, .reveal-right {
    transform: translateY(30px);
  }
}

@media (max-width: 1024px) {
  .bento-keyframe-visual {
    position: static;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    width: 0;
    overflow: visible;
  }
  .glass-keyframe-container {
    position: absolute;
    top: -50px;
    right: -35px;
    width: 230px;
    height: 230px;
    margin: 0;
    z-index: 10;
  }
  .bento-ai .bento-card-text {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  header {
    top: 1.25rem;
    width: calc(100% - 4rem); /* 2rem (32px) margin on each side for spacious alignment */
    height: 4rem;
    border-radius: 20px;
  }
  
  header.scrolled {
    top: 0.75rem;
  }
  
  .nav-container {
    position: static;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1.75rem;
  }

  .container {
    padding: 0 2rem; /* Spacious left/right page border on mobile */
  }

  .hero-content {
    padding: 0 2rem; /* Matches container padding for perfect visual alignment */
    transform: translateY(2rem);
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem; /* Premium, clean section vertical padding */
  }
  
  /* Center section headers on mobile so multi-line titles look intentional & premium */
  .section-header {
    text-align: center;
    max-width: 100%;
    margin-bottom: 3rem;
  }

  /* Disable dangerous horizontal translates on mobile to prevent viewport overflow */
  .reveal-left, .reveal-right {
    transform: translateY(30px);
  }
  
  .cta-nav {
    display: none;
  }
  
  /* Hamburger button */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
  }
  
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, width 0.35s ease;
  }
  
  .menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  
  .menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  
  .menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  
  /* Floating Glass Capsule Navigation Dropdown */
  nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: rgba(10, 10, 12, 0.96);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 0;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-15px);
  }
  
  nav.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
  
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  nav ul li a {
    font-family: var(--font-tall);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 400;
    transition: var(--transition-smooth);
  }
  
  nav ul li a:hover,
  nav ul li a.active {
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  }
  
  .mobile-cta-li {
    display: block;
    margin-top: 1.5rem;
  }
  
  .mobile-cta {
    display: inline-flex;
    align-items: center;
    background-color: var(--text-primary);
    color: var(--bg-dark);
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    font-family: var(--font-sans) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
  }
  
  .mobile-cta:hover {
    background-color: var(--color-blue);
    color: var(--text-primary);
    box-shadow: 0 0 25px rgba(0, 16, 162, 0.6);
  }
  
  /* Bento Grid mobile styles */
  .bento-grid {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .bento-card-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .bento-card {
    grid-column: span 12 !important;
    padding: 1.5rem;
    min-height: auto !important;
  }
  
  .bento-icon {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .bento-card h3 {
    font-size: 1.3rem;
  }
  
  /* Hero adjustments */
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 8rem;
    padding-bottom: 5rem;
  }
  
  .scroll-indicator {
    display: none !important;
  }
  
  .hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.7rem);
    line-height: 1;
    letter-spacing: 0;
  }

  .hero-content {
    transform: none;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    max-width: 280px;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Portfolio adjustments */
  .portfolio-filters {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 4px;
    border-radius: 24px;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    flex: 1 1 30%;
    text-align: center;
    min-width: 0;
  }
  
  .portfolio-grid {
    gap: 1rem;
  }
  
  .project-card {
    grid-column: span 12 !important;
  }
  
  .project-card.vertical {
    grid-column: span 6 !important;
  }
  
  .project-card.vertical .project-details {
    padding: 0.85rem;
  }
  
  .project-card.vertical .project-category {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
  }
  
  .project-card.vertical .project-title {
    font-size: 0.95rem;
  }
  
  .project-card.vertical .project-desc {
    font-size: 0.8rem;
    line-height: 1.35;
  }
  
  .project-details {
    padding: 1.25rem;
  }
  
  .project-title {
    font-size: 1.15rem;
  }
  
  /* Philosophy typography */
  .philosophy-text {
    line-height: 1.35;
  }
  
  /* Footer adjustments */
  .footer-cta {
    padding: 5rem 0;
    text-align: center;
  }

  .footer-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-cta h2 {
    font-size: clamp(2.55rem, 10vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: 0;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .footer-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  
  .footer-cta-buttons .btn-primary,
  .footer-cta-buttons .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .contact-email-text {
    margin-top: 2rem;
    font-size: 0.95rem;
    text-align: center;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-info {
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 1.5rem;
  }
  
  /* Video Modal adjustments */
  .modal-close-btn {
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
  }
  
  .modal-container {
    width: 95%;
  }
  
  .modal-video-ratio-box iframe {
    border-radius: 12px;
  }
  
  /* Blob Performance Mode: disable GPU active animations and remove 2 blobs on mobile */
  .glass-blob {
    animation: none !important;
    opacity: 0.22;
  }
  
  .blob-3, .blob-4 {
    display: none !important;
  }
  
  .blob-1 {
    width: 300px;
    height: 300px;
    top: 10%;
  }
  
  .blob-2 {
    width: 250px;
    height: 250px;
    top: 45%;
  }


  .section-title {
    font-size: clamp(2.55rem, 10vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: 0;
  }
  
  .section-desc {
    font-size: 1.05rem;
  }
  
  /* About section mobile */
  #about .section-header {
    margin-bottom: 3rem;
  }
  .about-manifesto {
    gap: 2.2rem;
  }
  .manifesto-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .manifesto-bullet {
    width: 6px;
    height: 6px;
    margin-top: 0;
  }
  .manifesto-text {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero-content {
    padding: 0 1.25rem;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .section-header {
    margin-bottom: 3rem;
  }
  .portfolio-grid {
    gap: 0.75rem;
  }
}

/* Tall Font & Liquid Glass Background Blobs */
h1, .hero h1, .section-title, .footer-cta h2 {
  font-family: var(--font-tall);
  letter-spacing: 0;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
}

body {
  position: relative;
}

.glass-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0052ff 0%, #00d2ff 50%, transparent 80%);
  top: 5%;
  right: -10%;
  animation-duration: 25s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff570d 0%, #ffb300 50%, transparent 80%);
  top: 35%;
  left: -15%;
  animation-duration: 28s;
}

.blob-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #8f00ff 0%, #ff007f 50%, transparent 80%);
  bottom: 5%;
  right: -15%;
  animation-duration: 35s;
}

.blob-4 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00ff87 0%, #60efff 50%, transparent 80%);
  bottom: 40%;
  left: 5%;
  animation-duration: 30s;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, 40px) scale(1.1);
  }
  100% {
    transform: translate(-40px, -60px) scale(0.95);
  }
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 99999;
  background: linear-gradient(
    90deg,
    rgba(0, 82, 255, 0.95) 0%,
    rgba(0, 210, 255, 1.0) 45%,
    rgba(248, 84, 10, 0.85) 100%
  );
  box-shadow: 
    0 0 8px rgba(0, 210, 255, 0.7),
    0 0 20px rgba(0, 82, 255, 0.45);
  pointer-events: none;
  /* Smooth update without visible lag */
  transition: opacity 0.3s ease;
}

/* =============================================
   PARALLAX GPU HINTS
   ============================================= */
.hero-video-container,
.hero-content,
.glass-blob {
  will-change: transform;
}

/* =============================================
   SCROLL-DIRECTION AWARE TWEAKS
   ============================================= */
/* When scrolling down: bento cards reveal with a slightly stronger Y offset */
[data-scroll-dir="down"] .reveal:not(.active) {
  transform: translateY(45px) scale(0.98);
}
/* When scrolling up: reveal from a smaller distance (feels lighter) */
[data-scroll-dir="up"] .reveal:not(.active) {
  transform: translateY(-20px) scale(0.99);
}

/* =============================================
   APPLE-STYLE DARK REDESIGN OVERRIDES
   ============================================= */
:root {
  --bg-dark: #000000;
  --bg-primary: #030303;
  --bg-card: #101012;
  --bg-card-hover: #161618;
  --border-color: rgba(255, 255, 255, 0.11);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  --color-blue: #0071e3;
  --color-blue-glow: rgba(0, 113, 227, 0.22);
  --color-orange: #f5f5f7;
  --color-orange-glow: rgba(245, 245, 247, 0.12);
  --color-yellow: #d2d2d7;
  --color-yellow-glow: rgba(210, 210, 215, 0.12);
  --nav-height: 4rem;
  --transition-smooth: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  background: var(--bg-primary);
}

body {
  background:
    linear-gradient(180deg, #000 0%, #030303 34%, #080809 100%);
  color: var(--text-primary);
}

.glass-blob,
.noise-overlay {
  display: none !important;
}

.container {
  max-width: 1180px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero h1,
.section-title,
.footer-cta h2 {
  letter-spacing: 0;
  text-transform: none;
}

header {
  top: 1rem;
  width: min(980px, calc(100% - 2rem));
  height: var(--nav-height);
  border-radius: 999px;
  background: rgba(22, 22, 24, 0.58);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 50px rgba(0, 0, 0, 0.34);
}

header.scrolled {
  top: 0.7rem;
  background: rgba(18, 18, 20, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 18px 60px rgba(0, 0, 0, 0.46);
}

.nav-container {
  padding: 0 1.35rem 0 1.6rem;
}

.logo {
  height: 1.85rem;
}

nav ul {
  gap: 1.8rem;
}

nav ul li a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245, 245, 247, 0.68);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--text-primary);
}

.cta-nav,
.btn-primary,
.mobile-cta {
  background: var(--text-primary);
  color: #000;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.cta-nav {
  padding: 0.58rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.cta-nav:hover,
.btn-primary:hover,
.mobile-cta:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.btn-primary,
.btn-secondary {
  padding: 0.92rem 1.55rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-primary::after,
.btn-secondary::after {
  display: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.hero {
  min-height: 760px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.hero-video-container {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  opacity: 0.82;
}

.hero-video-container video {
  filter: saturate(0.88) contrast(1.04) brightness(0.72);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.16) 36%, rgba(0, 0, 0, 0.76) 100%),
    radial-gradient(ellipse at 50% 54%, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.58) 72%);
}

.hero-content {
  max-width: 980px;
  gap: 1.45rem;
  transform: translateY(2.1rem);
}

.hero h1 {
  font-size: clamp(3.7rem, 8vw, 7.4rem);
  font-weight: 800;
  line-height: 0.98;
  text-wrap: balance;
}

.hero p {
  max-width: 720px;
  color: rgba(245, 245, 247, 0.76);
  font-size: clamp(1.05rem, 1.75vw, 1.34rem);
  line-height: 1.55;
}

.hero-ctas {
  gap: 0.8rem;
  margin-top: 0.35rem;
}

.scroll-indicator {
  bottom: 2rem;
}

.scroll-indicator span {
  height: 42px;
  background: linear-gradient(to bottom, rgba(245, 245, 247, 0.58), transparent);
}

.section {
  padding-top: 9rem;
  padding-bottom: 9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
}

.section-header {
  max-width: 920px;
  margin-bottom: 4rem;
}

.section-tag {
  color: var(--text-muted);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  text-shadow: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.section-title {
  font-size: clamp(2.7rem, 5.8vw, 5.15rem);
  line-height: 1.02;
  font-weight: 800;
  max-width: 940px;
}

.section-desc {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}

.portfolio-filter-container {
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.portfolio-filters {
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.filter-btn {
  padding: 0.62rem 1.25rem;
  color: rgba(245, 245, 247, 0.62);
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-btn.active {
  color: #000;
  background: var(--text-primary);
  box-shadow: none;
}

.filter-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-grid,
.bento-grid {
  gap: 1.15rem;
}

.project-card,
.bento-card,
.about-manifesto,
.seo-card,
.seo-proof-list li,
.seo-process li,
.seo-faq article,
.seo-entity-block {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.26);
}

.project-card,
.bento-card {
  border-radius: 26px;
}

.project-card:hover,
.bento-card:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 26px 72px rgba(0, 0, 0, 0.34);
}

.project-video-wrapper {
  background: #080809;
}

.project-thumbnail {
  filter: saturate(0.92) contrast(1.02);
}

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

.project-video-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.48));
}

.play-trigger-btn {
  width: 4rem;
  height: 4rem;
  background: rgba(245, 245, 247, 0.92);
  color: #000;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.42);
}

.play-trigger-btn::before {
  border-color: rgba(245, 245, 247, 0.28);
}

.project-details {
  padding: 1.35rem;
  border-top-color: rgba(255, 255, 255, 0.09);
}

.project-category {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.project-title {
  color: var(--text-primary);
  font-size: 1.16rem;
  line-height: 1.22;
}

.project-desc {
  color: var(--text-secondary);
  line-height: 1.52;
}

.bento-card {
  padding: 2rem;
  overflow: hidden;
}

.bento-card::before {
  display: none;
}

.bento-card.height-large {
  min-height: 390px;
}

.bento-card.height-medium {
  min-height: 280px;
}

.bento-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none;
  font-size: 1.22rem;
}

.bento-card:hover .bento-icon {
  transform: none;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none;
  color: var(--text-primary);
}

.bento-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.12;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.62;
}

.glass-keyframe-container {
  opacity: 0.58;
  filter:
    drop-shadow(0 22px 44px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.12));
}

.bento-card:has(.glass-keyframe-container)::after {
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

.about-manifesto {
  max-width: 980px;
  gap: 0;
  border-radius: 26px;
  padding: 0.4rem 2rem;
}

.manifesto-item {
  gap: 1.35rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.manifesto-item:last-child {
  border-bottom: 0;
}

.manifesto-bullet {
  width: 5px;
  height: 5px;
  background: var(--text-primary);
  box-shadow: none;
}

.manifesto-item:hover .manifesto-bullet {
  box-shadow: none;
  transform: scale(1.15);
}

.manifesto-text {
  font-size: clamp(1.03rem, 1.65vw, 1.2rem);
  line-height: 1.68;
}

.footer-cta {
  padding: 8rem 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.footer-cta::before {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.footer-cta h2 {
  font-size: clamp(2.7rem, 5.8vw, 5.15rem);
  line-height: 1.02;
  font-weight: 800;
}

footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.video-modal {
  background: rgba(0, 0, 0, 0.82);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.12);
}

.modal-close-btn:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.16);
}

.modal-video-ratio-box iframe {
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.72);
}

#scroll-progress-bar {
  height: 1px;
  background: rgba(245, 245, 247, 0.84);
  box-shadow: none;
}

/* SEO/supporting page polish */
.seo-page {
  background:
    linear-gradient(180deg, #000 0%, #050506 48%, #09090a 100%) !important;
}

.seo-page::after {
  opacity: 0.18;
}

.seo-kicker,
.seo-eyebrow {
  color: var(--text-muted) !important;
}

.seo-hero h1 {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.seo-answer-box {
  border-left-color: rgba(245, 245, 247, 0.45) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.seo-section {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.seo-entity-block {
  border-color: rgba(255, 255, 255, 0.11) !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  header {
    width: min(900px, calc(100% - 2rem));
    max-width: none;
  }
}

@media (max-width: 768px) {
  header {
    top: 0.85rem;
    width: calc(100% - 1.5rem);
    height: 3.75rem;
    border-radius: 999px;
  }

  header.scrolled {
    top: 0.55rem;
  }

  .nav-container {
    padding: 0 1.2rem;
  }

  nav {
    top: calc(100% + 0.6rem);
    background: rgba(18, 18, 20, 0.94);
    border-radius: 24px;
    padding: 1.45rem 0;
  }

  nav ul {
    gap: 0.95rem;
  }

  nav ul li a {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
  }

  .hero {
    min-height: 100dvh;
    padding-top: 7rem;
    padding-bottom: 4.25rem;
  }

  .hero-video-container {
    inset: 0;
    border-radius: 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.65rem);
    white-space: normal;
  }

  .hero-line {
    white-space: normal;
  }

  .hero p {
    font-size: 1.02rem;
  }

  .section,
  .footer-cta {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .section-header {
    text-align: left;
    margin-bottom: 2.6rem;
  }

  .section-title,
  .footer-cta h2 {
    font-size: clamp(2.55rem, 11vw, 3.75rem);
    line-height: 1.04;
  }

  .portfolio-filter-container {
    justify-content: flex-start;
    overflow: visible;
    padding-bottom: 0;
  }

  .portfolio-filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-btn {
    min-width: 0;
    padding: 0.56rem 0.45rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .project-card.vertical {
    grid-column: span 12 !important;
  }

  .project-card.vertical .project-video-wrapper {
    aspect-ratio: 4 / 5;
  }

  .project-card.vertical .project-details {
    padding: 1.2rem;
  }

  .project-card.vertical .project-title {
    font-size: 1.1rem;
  }

  .bento-card {
    border-radius: 22px;
    padding: 1.35rem;
  }

  .bento-card.height-large,
  .bento-card.height-medium {
    min-height: 0;
  }

  .bento-ai .bento-card-text {
    max-width: none;
  }

  .bento-keyframe-visual,
  .glass-keyframe-container {
    display: none;
  }

  .about-manifesto {
    padding: 0.1rem 1.2rem;
    border-radius: 22px;
  }

  .manifesto-item {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .manifesto-text {
    text-align: left;
    font-size: 1rem;
  }

  .footer-cta .container {
    align-items: flex-start;
  }

  .footer-cta h2,
  .contact-email-text {
    text-align: left;
  }

  .footer-cta-buttons {
    align-items: flex-start;
  }

  .mobile-menu-toggle {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    gap: 0;
    outline: none;
    background: rgba(255, 255, 255, 0.055);
  }

  .mobile-menu-toggle span {
    position: absolute;
    width: 1rem;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
  }

  .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(-4px);
  }

  .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(4px);
  }

  .menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .container,
  .hero-content {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .hero-ctas,
  .footer-cta-buttons .btn-primary,
  .footer-cta-buttons .btn-secondary {
    max-width: none;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.82rem 1.1rem;
  }
}

/* =============================================
   SECTION COLOR CADENCE + NATIVE CURSOR
   ============================================= */
body {
  background: #000;
}

#works {
  background:
    linear-gradient(180deg, #000 0%, #050506 22%, #050506 100%);
}

#services {
  background:
    linear-gradient(180deg, #101012 0%, #141416 48%, #0d0d0f 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#about {
  background:
    linear-gradient(180deg, #050506 0%, #000 100%);
}

.footer-cta {
  background:
    linear-gradient(180deg, #111113 0%, #09090a 100%);
}

footer {
  background: #000;
}

img,
video {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

img,
.hero-video-container video {
  pointer-events: none;
}

.commercials-collage {
  position: relative;
  width: min(315px, 100%);
  height: 285px;
  margin: 0 auto;
  perspective: 900px;
}

.collage-card {
  position: absolute;
  left: 50%;
  width: 245px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #151517, #080809);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.collage-card-1 {
  top: 58px;
  z-index: 5;
}

.collage-card-2 {
  top: 38px;
  z-index: 4;
  width: 235px;
  opacity: 0.92;
  filter: saturate(0.92) brightness(0.96);
}

.collage-card-3 {
  top: 22px;
  z-index: 3;
  width: 225px;
  opacity: 0.78;
  filter: saturate(0.86) brightness(0.9);
}

.collage-card-4 {
  top: 9px;
  z-index: 2;
  width: 210px;
  opacity: 0.58;
  filter: saturate(0.78) brightness(0.86);
}

.collage-card-5 {
  top: 0;
  z-index: 1;
  width: 190px;
  opacity: 0.36;
  filter: saturate(0.7) brightness(0.82);
}

.bento-card:hover .collage-card-1 {
  transform: translateX(-50%) translateY(-4px);
}

.bento-card:hover .collage-card-2 {
  transform: translateX(-50%) translateY(-8px);
}

.bento-card:hover .collage-card-3 {
  transform: translateX(-50%) translateY(-12px);
}

.bento-card:hover .collage-card-4 {
  transform: translateX(-50%) translateY(-16px);
}

.bento-card:hover .collage-card-5 {
  transform: translateX(-50%) translateY(-20px);
}

#works::before,
#services::before,
#about::before,
.footer-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
}

#services .bento-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04));
}

  #about .about-manifesto {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  }

@media (max-width: 1024px) {
  .bento-ai .bento-card-content {
    flex-direction: column;
    gap: 1.6rem;
  }

  .bento-ai .bento-card-text {
    max-width: none;
  }

  .bento-keyframe-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 285px;
    min-height: 285px;
    margin-top: 0.2rem;
    overflow: visible;
  }

  .commercials-collage {
    width: min(360px, 100%);
    height: 275px;
  }

  .collage-card {
    width: min(245px, 72vw);
    border-radius: 16px;
  }

  .collage-card-2 {
    width: min(235px, 69vw);
  }

  .collage-card-3 {
    width: min(224px, 66vw);
  }

  .collage-card-4 {
    width: min(210px, 62vw);
  }

  .collage-card-5 {
    width: min(192px, 57vw);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .bento-card.col-7.bento-ai,
  .bento-card.col-5,
  .bento-card.col-6 {
    grid-column: span 6 !important;
  }

  .bento-card.col-7.bento-ai .bento-card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .bento-card.col-7.bento-ai .bento-card-text {
    max-width: none;
  }

  .bento-card.col-7.bento-ai .bento-keyframe-visual {
    display: none;
  }
}

@media (max-width: 1024px) {
  .bento-ai .bento-card-content {
    gap: 1.25rem;
  }

  .bento-keyframe-visual {
    display: none;
  }
}

/* =============================================
   NAV BALANCE
   ============================================= */
@media (min-width: 769px) {
  .nav-container {
    display: flex;
    gap: 0;
    padding: 0 1.15rem;
  }

  .logo {
    width: auto;
    height: 2rem;
    margin-right: auto;
    justify-content: flex-start;
  }

  .logo img {
    display: block;
    width: auto;
    height: 100%;
  }

  nav {
    transform: none;
  }

  nav ul {
    gap: 2.65rem;
  }

  .cta-nav {
    margin-left: 2.65rem;
  }
}

@media (max-width: 768px) {
  .logo {
    width: auto;
    height: 1.7rem;
  }

  .logo img {
    display: block;
    width: auto;
    height: 100%;
  }
}
