/* =========================================
   1. SYSTEM VARIABLES (LIGHT THEME)
   ========================================= */
:root {
  /* Colors - Matched to Reference Image */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-border: transparent;
  /* No visible border for a flatter look or use very subtle #F3F4F6 */

  /* Accents */
  --primary: #F0A48D;
  --primary-glow: rgba(240, 164, 141, 0.1);
  --accent: #8EC5FC;

  /* Text */
  --text-main: #111827;
  --text-body: #4B5563;
  --text-muted: #6B7280;
  --text-dim: #9CA3AF;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text-main);
  margin: 0;
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Background Ambience - Hidden for light mode */
.bg-glow {
  display: none;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--primary);
  z-index: 1000;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* Body Text: 16px with Relaxed Line Height */
p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 40px;
  max-width: 760px;
}

p b,
.stat-label b,
.feature-list b,
.insight p b {
  color: var(--text-main);
  font-weight: 600;
}

/* Section Labels */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-body);
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: inline-block;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================
   8. STARTUP LOADER - REMOVED
   ========================================= */

/* =========================================
   3. NAVIGATION & LAYOUT
   ========================================= */
/* Navigation */
.nav-shell {
  position: fixed;
  top: 20px;
  width: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 100px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-inner a {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 20px;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.nav-inner a:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
}

.nav-inner a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Main Container */
.container {
  max-width: 1400px;
  /* Increased from 1280px to give more breathing room */
  margin: 0 auto;
  padding: 0 4%;
  /* Slightly less padding to use more screen width */
}

/* Grid Layout */
.case-grid {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 760px) 1fr;
  /* Wider main column */
  align-items: flex-start;
  margin-top: 100px;
  gap: 60px;
  /* Explicit gap between TOC and content */
}

.case-grid>main {
  grid-column: 2;
  width: 100%;
}

.toc {
  position: sticky;
  top: 120px;
  grid-column: 1;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: -2vw;
  /* Push TOC closer to the left edge to counter container padding */
}

.toc a {
  text-decoration: none;
  font-size: 15px;
  color: var(--text-dim);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
  white-space: nowrap;
  transform-origin: left center;
}

.toc a:hover {
  color: var(--text-body);
  transform: translateX(12px);
  /* Pops to the right like a bookmark */
}

.toc a.active {
  color: var(--text-main, #111827);
  font-weight: 600;
}

/* =========================================
   4. STUDIO STYLE - GLASS CARD VERSION
   ========================================= */

/* Container */
.studio-showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px;
  position: relative;
  z-index: 10;
}

/* Studio Card - Glassmorphism & Interaction */
.studio-card {
  display: block;
  position: relative;
  background: rgba(25, 25, 25, 0.6);
  /* Glass Base */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 48px;
  text-decoration: none;
  /* Duten-style smooth luxury ease */
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
  margin-bottom: 24px;
}

/* Hover Effect: Scale & Brighten */
.studio-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.5);
  z-index: 10;
}

/* Image Zoom Effect */
.studio-card .project-visual img {
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.studio-card:hover .project-visual img {
  transform: scale(1.06);
}

/* Link Slide Effect */
.studio-card .studio-link {
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.studio-card:hover .studio-link {
  transform: translateX(12px);
}

/* Typography Inside Cards */
.studio-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.studio-desc {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--text-body);
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.6;
}

.studio-impact {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: auto;
  /* Push to bottom */
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.studio-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/*
   HERO PROJECT (UNIMO)
   Full width card at the top
*/
/* 
   CASE STUDY HERO (Restored)
   Used in unimo.html, TMS.html, etc.
*/
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 40px;
  color: var(--text-main);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-meta {
    grid-template-columns: 1fr;
  }
}

.meta-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 12px;
}

.meta-pill b {
  color: var(--text-main);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-visual {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-inline: auto;
  overflow: visible;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -80px;
  pointer-events: none;
  background: none;
  z-index: -1;
}

.hero-visual img {
  height: 100%;
  width: 100%;
  border-radius: 24px;
  object-fit: contain;
  display: block;
}


/*
   STUDIO HERO PROJECT (Homepage)
   Full width card at the top
*/
.hero-project {
  margin-bottom: 40px;
  min-height: 400px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Renamed to avoid conflict */
.studio-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 56px;
  color: var(--text-main);
  margin: 0 0 24px 0;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/*
   SUPPORTING PROJECTS LIST
   3-Column Grid
*/
.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-item {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 32px;
}

.project-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--text-main);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.project-item .studio-desc {
  font-size: 15px;
  margin-bottom: 24px;
}

/* Responsiveness */
@media (max-width: 900px) {
  .studio-grid {
    grid-template-columns: 1fr;
    /* Stack on mobile/tablet */
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-project {
    padding: 32px;
    min-height: auto;
  }

  .studio-showcase {
    padding-top: 100px;
  }

  .project-title {
    font-size: 24px;
  }
}

/* =========================================
   5. CONTENT MODULES
   ========================================= */
.section {
  padding: 140px 0;
  border-top: 1px solid var(--surface-border);
}

.section:first-child {
  border-top: none;
  padding-top: 0;
}

h2 {
  font-size: 40px;
  letter-spacing: -1px;
  margin-bottom: 40px;
  line-height: 1.2;
}

/* Lead Text (TL;DR) */
.lead-text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 800px;
  margin-bottom: 0;
}

/* Insight Block */
.insight {
  margin-top: 40px;
  padding-left: 32px;
  border-left: 3px solid var(--primary);
}

.insight-label {
  font-family: var(--font-mono);
  font-size: 11px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.insight p {
  font-size: 18px;
  color: var(--text-main);
  margin: 0;
  font-style: italic;
}

/* Quote Block */
blockquote {
  margin: 40px 0;
  padding: 32px 40px;
  background: var(--surface);
  border-radius: 8px;
  /* Less rounded for an editorial feel */
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.6;
  border: 1px solid var(--surface-border);
}

blockquote footer {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

/* Stats Grid (Impact) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 32px;
  border-radius: 8px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 18px;
  /* Text based label */
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-check {
  color: var(--primary);
  margin-right: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Intro Callout (beginning of short cases) */
.intro-callout {
  display: flex;
  gap: 32px;
  align-items: center;
  border-radius: 24px;
  margin: 120px 0;
}

.intro-callout img {
  width: 140px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.intro-callout p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-main);
  margin: 0;
}

@media (max-width: 768px) {
  .intro-callout {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* Avatar Callout (Commentary) */
.avatar-callout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 24px 32px;
  margin: 40px 0;
}

.avatar-callout .avatar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: transparent;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-callout .avatar-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Shift Layout */
.shift-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  background: var(--surface);
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
}

.shift-item {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  width: 100%;
}

.shift-from {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.shift-to {
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
}

.shift-arrow {
  color: var(--text-muted);
  background: var(--bg-alt);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
}

/* Phone Mockup Wrapper */
.phone-mockup {
  position: relative;
  background: #000;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 2px #333, inset 0 0 0 4px #1a1a1a;
  flex: 1;
  display: flex;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
}

.phone-mockup-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  margin: 40px 0;
  flex-wrap: wrap;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 24px;
  background: #000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-mockup img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
  object-fit: contain;
}

.avatar-callout .callout-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

/* Comparison Grid */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.compare-item {
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.compare-header {
  padding: 20px;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
}

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid var(--surface-border);
}

.badge.old {
  background: var(--surface);
  color: var(--text-dim);
}

.badge.new {
  background: #FFF0ED;
  /* Very light orange for highlight */
  color: var(--primary);
  border-color: rgba(240, 164, 141, 0.3);
}

.compare-visual {
  height: 240px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.compare-text {
  padding: 24px;
}

.compare-text h4 {
  margin: 0 0 8px 0;
  color: var(--text-main);
}

.compare-text p {
  font-size: 14px;
  margin: 0;
}

/* Step List */
.steps {
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

/* =========================================
   PHONE MOCKUP STYLES & ANIMATIONS
   ========================================= */
@keyframes floatLeft {
  0% {
    transform: rotateY(15deg) translateZ(-50px) translateY(0);
  }

  50% {
    transform: rotateY(15deg) translateZ(-50px) translateY(15px);
  }

  100% {
    transform: rotateY(15deg) translateZ(-50px) translateY(0);
  }
}

@keyframes floatCenter {
  0% {
    transform: translateZ(50px) translateY(0);
  }

  50% {
    transform: translateZ(50px) translateY(-15px);
  }

  100% {
    transform: translateZ(50px) translateY(0);
  }
}

@keyframes floatRight {
  0% {
    transform: rotateY(-15deg) translateZ(-50px) translateY(0);
  }

  50% {
    transform: rotateY(-15deg) translateZ(-50px) translateY(15px);
  }

  100% {
    transform: rotateY(-15deg) translateZ(-50px) translateY(0);
  }
}

/* Hover overriding animations */
.hero-phone:hover {
  animation-play-state: paused !important;
  transform: scale(1.05) translateZ(80px) translateY(-10px) !important;
  z-index: 10 !important;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(255, 255, 255, 0.1),
    inset 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

.step-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.step-num {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 700;
  margin-top: 4px;
}

.step-desc b {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Feature List (Why Dark Mode) */
.feature-list {
  margin: 24px 0;
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-body);
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.feature-list b {
  color: var(--text-main);
}

/* Footer */
.footer {
  padding: 120px 0;
  text-align: center;
  margin-top: 80px;
}

.cta-btn {
  background: var(--text-main);
  color: #fff;
  padding: 20px 48px;
  font-weight: 700;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  margin-top: 32px;
  transition: 0.3s;
}

.cta-btn:hover {
  background: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

/* ===============================
   BEFORE / AFTER MODULE (FIXED)
   - drag mouse/touch 
   - works with your existing markup
   =============================== */
.before-after {
  position: relative;
  margin: 80px 0;
}

.ba-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  /* allow touch drag */
}

.ba-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.ba-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fix: Use clip-path instead of width to prevent image resizing */
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  cursor: ew-resize;
}

.ba-handle::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 0 1px rgba(157, 0, 255, 0.15);
}

.ba-handle::after {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ba-label {
  position: absolute;
  top: -40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(14, 14, 18, 0.72);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
  color: #eaeaf0;
}

.ba-label.left {
  left: 0;
}

.ba-label.right {
  right: 0;
}

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

  .case-grid>main {
    grid-column: 1 / -1;
  }

  .toc {
    display: none;
  }

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

  .hero-title {
    font-size: 32px;
  }

  .ba-label {
    top: -46px;
  }

  /* mobile spacing */
}

/* =========================================
   6. PROJECT MOCKUPS & VISUALS
   ========================================= */

.project-visual {
  width: 100%;
  /* Fixed constraint for grid items */
  max-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  /* Center the image */
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-visual img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.studio-card:hover .project-visual img {
  transform: scale(1.03);
}

.mockup-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Specific adjustment for the hero card visual */
.hero-project .project-visual {
  margin-bottom: 32px;
  /* Reduced from 480px */
  background: transparent;
  border: none;
  box-shadow: none;
}

/* =========================================
   9. CUSTOM CURSOR
   ========================================= */
.mouse-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
}


/* =========================================
   10. OTHER WORK SECTION
   ========================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.work-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
}

.work-visual {
  height: 240px;
  width: 100%;
  background: #f3f4f6;
  position: relative;
  overflow: hidden;
}

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

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

.work-content {
  padding: 24px;
}

.work-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px 0;
}

.work-desc {
  font-size: 14px;
  color: var(--text-body);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.work-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


/* =========================================
   11. COMPETITIVE ANALYSIS TABLE
   ========================================= */
.analysis-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}

.analysis-table th {
  text-align: left;
  padding: 16px;
  border-bottom: 2px solid var(--surface-border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.analysis-table td {
  padding: 16px;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-body);
  vertical-align: top;
  line-height: 1.6;
}

.analysis-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
  width: 40%;
}

.key-findings {
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 16px;
  padding: 32px;
  margin-top: 40px;
}

.key-findings h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.findings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.findings-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
}

/* Circular Numbered List */
.numbered-circles {
  list-style-type: none;
  padding: 0;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.numbered-circles li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  color: var(--text-main);
  font-weight: 500;
  background: var(--surface-alt);
  padding: 16px 24px;
  border-radius: 100px;
  border: 1px solid var(--surface-border);
}

.numbered-circles li::before {
  content: counter(item);
  counter-increment: item;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.numbered-circles {
  counter-reset: item;
}

.findings-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

@media (max-width: 768px) {
  .nav-shell {
    position: fixed !important;
    top: 16px !important;
    z-index: 2000 !important;
  }
}

/* =========================================
   OTHER WORK SECTION
   ========================================= */
.other-work-section {
  padding: 80px 0 40px;
  border-top: 1px solid var(--surface-border);
  margin-top: 80px;
}

.other-work-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 750;
  margin-bottom: 32px;
  color: var(--text-main);
  text-align: left;
}

.other-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.other-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.other-card:hover {
  transform: translateY(-8px);
}

.other-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.other-card:hover .other-card-img {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  transform: scale(1.02);
}

.other-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.other-card-content {
  padding: 24px 8px;
  display: flex;
  flex-direction: column;
}

.other-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: block;
}

.other-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .other-work-grid {
    grid-template-columns: 1fr;
  }

  body {
    cursor: auto !important;
  }

  a,
  button,
  input,
  textarea,
  select,
  .studio-card,
  .project-item,
  .other-card,
  .sfx-hover,
  .sfx-click {
    cursor: auto !important;
  }

  #cursor-spotlight,
  body.has-cursor #cursor-spotlight {
    display: none !important;
  }
}

/* =========================================
   NEW EDITORIAL LAYOUT MODULES
   ========================================= */

/* 1. Bento Box Modular Layout */
.bento-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin: 60px 0;
}

.bento-main {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

/* 2. Full-Bleed Immersive Breaks */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 100px;
  margin-bottom: 100px;
  position: relative;
}

.full-bleed img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  display: block;
}

.full-bleed-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 80px 5% 40px 5%;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.9), transparent);
  color: var(--text-main);
  box-sizing: border-box;
}

.full-bleed-caption p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

/* 3. Sticky Split Scrolling */
.sticky-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin: 80px 0;
  align-items: start;
}

.sticky-split-left {
  position: sticky;
  top: 160px;
}

.sticky-split-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (max-width: 900px) {
  .sticky-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sticky-split-left {
    position: relative;
    top: 0;
  }
}

/* =========================================
   11. SECTION SCROLL ANIMATIONS
   ========================================= */
.section {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   12. UIVERSE BUTTON STYLE (GLOBAL)
   ========================================= */
.btn {
  --color: var(--primary, #3d8bfd);
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all .5s;
  border: none;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
}

.btn .btn-text {
  letter-spacing: 2px;
  font-weight: bold;
  background: var(--color);
  border-radius: 2rem;
  color: white;
  padding: 12px 24px;
  font-size: 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  z-index: 2;
}

.btn::before {
  content: '';
  z-index: -1;
  background-color: var(--color);
  border: 2px solid white;
  border-radius: 2rem;
  width: 110%;
  height: 100%;
  position: absolute;
  transform: rotate(10deg);
  transition: .5s;
  opacity: 0.2;
}

.btn:hover {
  filter: brightness(1.2);
  transform: scale(1.1);
}

.btn:hover::before {
  transform: rotate(0deg);
  opacity: 1;
}

.btn svg {
  transform: translateX(-200%);
  transition: .5s;
  width: 0;
  opacity: 0;
}

.btn:hover svg {
  width: 25px;
  transform: translateX(0%);
  opacity: 1;
  margin-left: 8px;
}

.btn:active {
  filter: brightness(1.4);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  font-size: 20px;
  background-color: white;
  /* Slightly distinguished by shadow and hover */
  color: #111827;
  width: 48px;
  height: 48px;
  opacity: 0;
  visibility: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: bounce_513 1.5s infinite;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary);
  color: white;
  border-color: transparent;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation-play-state: paused;
}

@keyframes bounce_513 {

  0%,
  100% {
    transform: translateY(-20%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}