/* =========================================================================
   D'CRYPT CODE — 2025 ULTRA-MODERN BENTO DESIGN + MEGA FEATURES
   ========================================================================= */

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

:root {
  --bg-main: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F1F1;
  --text-main: #0A0A0A;
  --text-muted: #737373;
  --border-color: #E5E5E5;
  --border-radius: 24px;
  --accent: #000000;

  --font-sans: 'Inter', -apple-system, sans-serif;
  --spotlight-color: rgba(0, 0, 0, 0.05);
}

/* ── NOISE OVERLAY ── */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  filter: contrast(170%) brightness(1000%);
}

/* ── ATMOSPHERIC CODE INSCRIPTIONS ── */
.bg-code-watermark {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8rem; /* Drastically reduced size */
  font-weight: 800;
  color: #000;
  opacity: 0.05;
  filter: blur(8px);
  pointer-events: none;
  white-space: pre;
  z-index: 0;
  user-select: none;
  line-height: 1;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .bg-code-watermark {
    font-size: 3.5rem;
    opacity: 0.02; /* Even more subtle on mobile */
    filter: blur(3px);
    display: block; /* maintain depth */
  }
}

/* ── 3D WIREFRAME CUBE ── */
.scene-3d {
  width: 200px;
  height: 200px;
  perspective: 1000px;
  margin-bottom: 3rem;
  margin-inline: auto; /* Ensure center alignment */
}

.cube-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.1s linear;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
}

.face-front  { transform: rotateY(0deg) translateZ(100px); }
.face-back   { transform: rotateY(180deg) translateZ(100px); }
.face-right  { transform: rotateY(90deg) translateZ(100px); }
.face-left   { transform: rotateY(-90deg) translateZ(100px); }
.face-top    { transform: rotateX(90deg) translateZ(100px); }
.face-bottom { transform: rotateX(-90deg) translateZ(100px); }

@media (max-width: 768px) {
  .scene-3d {
    width: 150px;
    height: 150px;
  }
  .cube-face {
    width: 150px;
    height: 150px;
  }
  .face-front  { transform: rotateY(0deg) translateZ(75px); }
  .face-back   { transform: rotateY(180deg) translateZ(75px); }
  .face-right  { transform: rotateY(90deg) translateZ(75px); }
  .face-left   { transform: rotateY(-90deg) translateZ(75px); }
  .face-top    { transform: rotateX(90deg) translateZ(75px); }
  .face-bottom { transform: rotateX(-90deg) translateZ(75px); }
}

/* ── CUSTOM CURSOR ── */
.cursor-dot, .cursor-circle {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10001;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 14px; height: 14px;
  background: var(--text-main);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  z-index: 10002;
}

.cursor-circle {
  width: 50px; height: 50px;
  border: 2.5px solid var(--text-main);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
  background: rgba(255, 255, 255, 0.1); /* Added body */
}

body:hover .cursor-dot, body:hover .cursor-circle { opacity: 1; }

.cursor-hover {
  width: 80px; height: 80px;
  background: var(--text-main);
  border-color: transparent;
}

* { cursor: auto !important; } /* Restore system cursor */
@media (max-width: 1024px) { 
  * { cursor: auto !important; } 
  .cursor-dot, .cursor-circle, .noise-overlay { display: none; }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

html, body {
  position: relative;
  overflow-x: hidden;
}

/* ── MODERN NAVBAR ── */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(255, 255, 255, 0.4); /* Glass starting point */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── GLOSSY FROST (Scrolled Mode - Greyish Tint) ── */
.navbar-scrolled {
  top: 1rem;
  background: rgba(230, 230, 230, 0.85); /* Sleek greyish tint */
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
  padding: 0.7rem 1.4rem;
}

.nav-brand img.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 25%;
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  list-style: none;
  gap: 2rem;
  background: var(--bg-tertiary);
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-cta {
  background: var(--text-main);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
  will-change: transform;
}

.nav-cta:hover {
  background: #222;
}

/* Mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav-panel.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-panel .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

@media (max-width: 768px) {

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .navbar {
    top: 0.8rem;
    width: calc(100% - 1.5rem);
    padding: 0.6rem 1.2rem;
  }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: radial-gradient(circle at 50% -20%, #F5F5F5 0%, var(--bg-main) 70%);
  position: relative;
  overflow: hidden;
}

.hero-bg-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 900px);
  height: min(80vh, 900px);
  background: url('logo.png') center/contain no-repeat;
  filter: blur(100px) grayscale(100%);
  opacity: 0.12;
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
  animation: logo-pulsate 20s ease-in-out infinite alternate;
}

@keyframes logo-pulsate {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.08;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.18;
  }
}

.typing-code-overlay {
  position: absolute;
  left: 3rem;
  top: 55%;
  transform: translateY(-50%);
  width: 320px;
  max-height: 400px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0.22; /* Increased visibility as requested */
  pointer-events: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

@media (max-width: 1100px) {
  .typing-code-overlay {
    left: 1.5rem;
    top: auto;
    bottom: 20%;
    transform: none;
    width: 200px;
    font-size: 0.65rem;
    opacity: 0.15;
    mask-image: linear-gradient(to top, transparent, black 25%, black);
    -webkit-mask-image: linear-gradient(to top, transparent, black 25%, black);
  }
}

@media (max-width: 480px) {
  .typing-code-overlay {
    bottom: 18%;
    left: 1rem;
    width: 160px;
    opacity: 0.12;
  }
}

.typing-line {
  white-space: pre;
}

.typing-line::after {
  content: "|";
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  opacity: 0.5;
}

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

.spline-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.spline-container spline-viewer {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  margin-top: 1.4rem;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .hero-content {
    margin-top: -5vh; /* Center more vertically on mobile */
  }
}

.hero-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 10vw, 8rem); /* Slightly smaller minimum for mobile SE */
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  max-width: 1000px;
  color: var(--text-main);
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.8);
  /* Sharpens text against background elements */
  z-index: 10;
  position: relative;
}

.hero-title span {
  color: var(--text-muted);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 1.2rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  will-change: transform;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-main);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:active {
  background: var(--bg-tertiary);
  transform: scale(0.95);
}

.btn-white {
  background: #FFFFFF;
  color: #0A0A0A;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #FAFAFA;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.btn-white:active {
  transform: scale(0.95);
}

/* ── TECH STACK CLUSTER ── */
.tech-cluster {
  width: 100%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  overflow: hidden; /* Ensure badges don't leak */
}

.cluster-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.cluster-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 1000px;
  width: 100%;
}

.tech-badge {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-tertiary);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-badge:hover {
  transform: translateY(-2px);
  background: #FFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ── COMMON SECTION ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden; /* CLIP WATERMARKS */
}

@media (max-width: 768px) {
  .container {
    padding: 4rem 1rem; /* Reduce padding on mobile */
  }
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
  width: 100%;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ── SPOTLIGHT BENTO GRID ── */
/* Base grid setup */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 1.5rem;
}

/* SPOTLIGHT LOGIC */
.spotlight-wrapper {
  position: relative;
}

.spotlight-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  /* keeps spotlight inside */
}

/* Subtle Grid Background for Bento */
.spotlight-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}

/* The glowing orb powered by JS coordinates */
.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
      var(--spotlight-color),
      transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.spotlight-wrapper:hover .spotlight-card::before {
  opacity: 1;
}

/* Specific Grid Spans for the 7-Card 4-Column Layout */
.card-large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Full-stack */
.card-wide {
  grid-column: span 2;
  grid-row: span 1;
}

/* AI & Data */
.card-tall {
  grid-column: span 1;
  grid-row: span 2;
}

/* UX/UI */
.card-square {
  grid-column: span 1;
  grid-row: span 1;
}

/* CRM, SEO, Perf, ML */

/* Responsive Grid Spans */

.bento-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  z-index: 2;
}

.bento-card p {
  color: var(--text-muted);
  z-index: 2;
  max-width: 400px;
  font-size: 0.95rem;
}

/* ── LIVING LAYERS (Bento Backgrounds) ── */
.bento-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22; /* Increased from 0.12 */
  transition: opacity 0.5s ease;
}

.bento-card:hover .bento-visual {
  opacity: 0.45; /* Increased from 0.25 */
}

/* 1. Blueprint (Full-stack) */
.visual-blueprint {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.3) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  background-position: center;
  animation: blueprint-move 60s linear infinite;
}

@keyframes blueprint-move {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 400px 400px;
  }
}

/* 2. Radar (Performance) */
.visual-radar {
  background: radial-gradient(circle at center, transparent 30%, var(--text-main) 31%, transparent 32%);
  background-size: 200% 200%;
  background-position: center;
  position: relative;
}

.visual-radar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: conic-gradient(from 0deg, var(--text-main), transparent 40%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: radar-rotate 4s linear infinite;
}

@keyframes radar-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 3. Pulse (CRM) */
.visual-nodes {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.node-dot {
  width: 4px;
  height: 4px;
  background: var(--text-main);
  border-radius: 50%;
  animation: node-pulse 2s ease-in-out infinite alternate;
}

@keyframes node-pulse {
  from {
    opacity: 0.2;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(2.5);
  }
}

/* 4. Glass (UX/UI) */
.visual-glass {
  display: flex;
  gap: 15px;
  padding: 40px;
  justify-content: flex-end;
  align-items: flex-end;
}

.glass-pill {
  width: 60px;
  height: 120px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  backdrop-filter: blur(5px);
  animation: float-pill 6s ease-in-out infinite alternate;
}

@keyframes float-pill {
  from {
    transform: translateY(0) rotate(0);
  }

  to {
    transform: translateY(-30px) rotate(10deg);
  }
}

/* 5. Neural (AI) */
.visual-neural {
  background: radial-gradient(circle at 70% 30%, var(--text-main) 2px, transparent 3px);
  background-size: 50px 50px;
  animation: neural-pulse 8s ease-in-out infinite;
}

@keyframes neural-pulse {

  0%,
  100% {
    opacity: 0.05;
  }

  50% {
    opacity: 0.2;
  }
}

/* 6. Growth (SEO) */
.visual-growth {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 20px;
}

.growth-bar {
  width: 10px;
  background: var(--text-main);
  animation: bar-rise 3s ease-in-out infinite alternate;
}

@keyframes bar-rise {
  from {
    height: 10%;
  }

  to {
    height: 80%;
  }
}

/* 7. Shimmer (ML Trends) */
.visual-shimmer {
  background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  background-size: 200% 200%;
  animation: shimmer-move 5s linear infinite;
}

@keyframes shimmer-move {
  0% {
    background-position: -200% -200%;
  }

  100% {
    background-position: 200% 200%;
  }
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  z-index: 2;
  position: relative;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--border-color);
}

.bento-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  z-index: 2;
}

.bento-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-main);
  fill: none;
  stroke-width: 1.5;
}

.stat-number {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 2;
}

/* ── WORK SHOWCASE ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-visual {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover .work-visual img {
  transform: scale(1.05);
  /* parallax zoom */
}

.work-card:hover .work-overlay {
  opacity: 1;
  /* reveal button */
}

.view-btn {
  background: var(--bg-secondary);
  color: var(--text-main);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  will-change: transform;
}

.work-details h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.work-details p {
  color: var(--text-muted);
}

/* ── METHODOLOGY ACCORDION HOVER ── */
.accordion-grid {
  display: flex;
  gap: 1rem;
  height: min(400px, 60vh);
  width: 100%;
}

.accordion-card {
  flex: 1;
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease;
  cursor: pointer;
}

.accordion-card:hover {
  flex: 1.4;
  background: var(--bg-secondary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  transform: translateY(-4px);
}

.accordion-content p {
  opacity: 1 !important;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.process-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: #D4D4D4;
  margin-bottom: 1rem;
  display: block;
}

/* ── CTA / FOOTER ── */
.cta-banner {
  background: var(--text-main);
  color: var(--bg-secondary);
  margin: 6rem auto;
  max-width: 1400px;
  width: calc(100% - 2rem);
  border-radius: var(--border-radius);
  padding: 6rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* Fix for 3D cube clip */
}

.cta-banner h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

.footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-logo {
  mix-blend-mode: multiply;
  height: 65px;
  margin-bottom: 1rem;
  border-radius: 25%;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Utilities */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-scrub {
  background: linear-gradient(to right, var(--text-main) 0%, var(--text-main) var(--scroll-progress, 0%), var(--border-color) var(--scroll-progress, 0%), var(--border-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  will-change: background;
}

/* ── MOBILE SWIPE SYSTEM (Breakpoints) ── */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-large,
  .card-wide {
    grid-column: span 2;
  }

  .card-tall,
  .card-square {
    grid-column: span 1;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  /* Converting the Grid into a Horizontal Scroll Snap on Mobile */
  .bento-grid,
  .snap-grid,
  .accordion-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 2rem;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    height: auto;
    /* override accordion height limit */
    /* hide scrollbar */
    scrollbar-width: none;
  }

  .bento-grid::-webkit-scrollbar,
  .snap-grid::-webkit-scrollbar,
  .accordion-grid::-webkit-scrollbar {
    display: none;
  }

  .spotlight-card,
  .accordion-card {
    min-width: 85vw;
    /* Almost full width for each card */
    scroll-snap-align: center;
    flex: none;
    /* override accordion flex rules */
    height: 100%;
  }

  .accordion-card:hover {
    transform: none;
    /* disable hover lift on mobile */
  }

  .card-large,
  .card-wide,
  .card-tall,
  .card-square {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ── MONOCHROME SOCIAL PILLS ── */
.social-pills-stack {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.social-pill {
  background: var(--text-main);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 100px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.social-pill svg {
  width: 18px;
  height: 18px;
}

.social-pill:hover {
  transform: translateY(-5px);
  background: #222;
}

.social-pill.instagram {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .social-pills-stack {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* ── LAUNCH POLISH ── */
.cta-banner {
  margin-bottom: 8rem; /* Added safe-area at the bottom before footer */
}