/* ==========================================================================
   SAI BHARADWAJ — PRODUCT DESIGNER PORTFOLIO
   Design System & Stylesheet
   Aesthetic: Architectural Minimalist, Warm Linen, Crisp Typography, Editorial Craft
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- Root CSS Variables (Light Theme Default) --- */
:root {
  /* Surface & Background */
  --bg-main: #F7F6F3;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F0EFEB;
  --bg-surface-hover: #ECEAE3;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FCFBFA;
  --bg-card-inner: #F8F7F4;
  --bg-modal-backdrop: rgba(18, 18, 20, 0.6);
  --bg-pill: rgba(0, 0, 0, 0.05);
  --bg-pill-active: #FFFFFF;

  /* Typography */
  --text-primary: #121212;
  --text-secondary: #5E5D59;
  --text-muted: #8E8C85;
  --text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.14);
  --border-card: rgba(0, 0, 0, 0.06);

  /* Accents & Brand */
  --accent-coral: #FF5533;
  --accent-coral-subtle: #FFEBE6;
  --accent-green: #10B981;
  --accent-green-glow: rgba(16, 185, 129, 0.25);
  --accent-blue: #2563EB;
  --accent-yellow: #F7DC5F;
  --accent-lavender: #DFD6F6;
  --accent-orange-card: #FF5A36;

  /* Ambient Dot Field (background effect) */
  --dotfield-from: rgba(255, 85, 51, 0.55);
  --dotfield-to: rgba(255, 150, 110, 0.28);
  --dotfield-glow: rgba(245, 244, 240, 0);

  /* Elevation / Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-floating: 0 20px 48px -10px rgba(0, 0, 0, 0.12);
  --shadow-pill: 0 2px 8px rgba(0, 0, 0, 0.06);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Figtree', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
  --bg-main: #111113;
  --bg-surface: #18181B;
  --bg-surface-subtle: #212126;
  --bg-surface-hover: #2A2A32;
  --bg-card: #18181B;
  --bg-card-hover: #1E1E23;
  --bg-card-inner: #141416;
  --bg-modal-backdrop: rgba(0, 0, 0, 0.75);
  --bg-pill: rgba(255, 255, 255, 0.07);
  --bg-pill-active: #27272D;

  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-muted: #9898A2;
  --text-inverse: #111113;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-card: rgba(255, 255, 255, 0.08);

  --accent-coral-subtle: rgba(255, 85, 51, 0.15);

  --dotfield-from: rgba(255, 110, 78, 0.46);
  --dotfield-to: rgba(255, 170, 130, 0.20);
  --dotfield-glow: rgba(18, 15, 23, 0.45);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-floating: 0 20px 48px -10px rgba(0, 0, 0, 0.6);
  --shadow-pill: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   PAGE TRANSITION — directional mask wipe (native Cross-Document View
   Transitions, the vanilla-CSS equivalent of @motion/page-mask-transitions).
   Opting in via @view-transition makes every same-origin navigation across
   this site animate through this wipe instead of an instant page swap.
   Chrome/Edge support this today; browsers that don't just navigate
   normally, so this is a pure progressive enhancement with no JS needed.
   ========================================================================== */
@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Both layers are full-viewport captures stacked in the same spot; a
   transform-only slide (GPU-composited, no per-frame repaint) reads as a
   smooth wipe of the new page over the old one, which stays put underneath. */
::view-transition-old(root) {
  animation: none;
  transform: translateX(0);
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  animation: page-mask-wipe 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform;
  mix-blend-mode: normal;
}

@keyframes page-mask-wipe {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
}

/* Ambient dot field background — sits behind all page content, follows theme */
.dot-field-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.dot-field-bg canvas,
.dot-field-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .dot-field-bg { display: none; }
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Section Counters & Headers --- */
.section-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-coral);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-meta span.separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 32px;
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 580px;
}

.section-desc-wrap {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.section-desc {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.section-link:hover {
  color: var(--accent-coral);
  gap: 10px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), padding var(--transition-fast);
}

.site-header.scrolled {
  background-color: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

[data-theme="dark"] .site-header.scrolled {
  background-color: rgba(17, 17, 19, 0.88);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.brand-role {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Center Pill Navigation */
.nav-pill-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  box-shadow: var(--shadow-sm);
  gap: 4px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
}

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

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
  background-color: var(--bg-surface-subtle);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background-color: var(--accent-coral);
  border-radius: var(--radius-full);
}

/* AI Lab Nav Link with Glowing Pulse Orb (matching ankurchandra.com) */
.nav-link-ailab {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ailab-orb {
  position: absolute;
  top: 8px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A855F7 0%, #3B82F6 100%);
  box-shadow: 0 0 5px 1px rgba(168, 85, 247, 0.6), 0 0 2px rgba(59, 130, 246, 0.7);
  animation: ailab-orb-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes ailab-orb-pulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.85;
    box-shadow: 0 0 4px 1px rgba(168, 85, 247, 0.5), 0 0 2px rgba(59, 130, 246, 0.6);
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 8px 2px rgba(168, 85, 247, 0.9), 0 0 4px 1px rgba(59, 130, 246, 0.9);
  }
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--text-primary);
  color: var(--bg-main);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-hire:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-hire:active {
  transform: translateY(0);
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: rotate(20deg);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: calc(100svh - var(--header-height, 84px));
  display: flex;
  align-items: center;
  padding: 32px 0;
  box-sizing: border-box;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

/* Hero Left Info */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.status-dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background-color: var(--accent-green-glow);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.status-text {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-headline {
  font-size: clamp(2.5rem, 4.4vw, 3.85rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-primary);
}

.hero-headline .coral-accent {
  color: var(--accent-coral);
  position: relative;
  display: inline-block;
}

.hero-bio {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--text-primary);
  color: var(--bg-main);
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.94;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background-color: var(--bg-surface-subtle);
}

/* Stats Row */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --- Hero Right: Bento Collage --- */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.bento-collage {
  display: grid;
  grid-template-columns: 140px 140px 80px;
  grid-template-rows: 140px 100px 90px;
  gap: 14px;
  width: 100%;
  max-width: 440px;
}

/* Bento Cards */
.bento-card {
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: var(--shadow-md);
}

/* Card 1: Orange "Design Build Iterate Repeat" */
.bento-orange {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  background-color: var(--accent-orange-card);
  color: #FFFFFF;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.bento-orange .card-tagline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bento-orange .dash {
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 6px;
}

/* Card 2: Cream "products" */
.bento-cream {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
  background-color: #ECEAE4;
  color: #1A1A1A;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
}

[data-theme="dark"] .bento-cream {
  background-color: #242429;
  color: #F0F0F2;
}

.bento-cream .bento-word {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bento-cream .green-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #34D399, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Card 3: Blue starburst */
.bento-blue {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  background-color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.starburst-icon {
  width: 48px;
  height: 48px;
  animation: rotate-slow 24s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Card 4: Lavender "systems" */
.bento-lavender {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  background-color: var(--accent-lavender);
  color: #2B1D4B;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .bento-lavender {
  background-color: #382E54;
  color: #E2D9F7;
}

.bento-lavender .serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Card 5: Yellow "people" */
.bento-yellow {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  background-color: var(--accent-yellow);
  color: #3B3310;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .bento-yellow {
  background-color: #4D4314;
  color: #FEEF85;
}

.bento-yellow .serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.15rem;
  font-weight: 400;
}

/* Card 6: Black arrow */
.bento-black {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
  background-color: #121214;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 300;
}

[data-theme="dark"] .bento-black {
  background-color: #27272D;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-caption {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* ==========================================================================
   SECTION 01: SELECTED WORK
   ========================================================================== */
.projects-section {
  padding: 88px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* Project Visual Preview */
.project-media {
  width: 100%;
  height: 220px;
  background-color: var(--bg-surface-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-mockup-wrap {
  width: 90%;
  height: 85%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

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

/* Card Content */
.project-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.project-header-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.project-category {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.project-desc {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.project-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-coral);
  margin-top: 8px;
  transition: gap var(--transition-fast);
}

.project-card:hover .project-action {
  gap: 10px;
}

/* All Projects Drawer / Grid */
.extra-projects-wrap {
  margin-top: 40px;
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.extra-projects-wrap.show {
  display: block;
}

.extra-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SECTION 02: HOW I WORK
   ========================================================================== */
.process-section {
  padding: 88px 0;
}

.process-steps-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.process-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.process-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Process icon colors */
.icon-understand {
  background-color: #DCFCE7;
  color: #15803D;
}
.icon-structure {
  background-color: #FEF9C3;
  color: #A16207;
}
.icon-design {
  background-color: #DBEAFE;
  color: #1D4ED8;
}
.icon-build {
  background-color: #F3E8FF;
  color: #7E22CE;
}

[data-theme="dark"] .icon-understand {
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
}
[data-theme="dark"] .icon-structure {
  background-color: rgba(234, 179, 8, 0.2);
  color: #FDE047;
}
[data-theme="dark"] .icon-design {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}
[data-theme="dark"] .icon-build {
  background-color: rgba(168, 85, 247, 0.2);
  color: #C084FC;
}

.process-arrow-next {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.process-meta-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.process-name {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 2px;
}

.process-summary {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 03: EXPERIENCE
   ========================================================================== */
.experience-section {
  padding: 88px 0;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.experience-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.experience-card:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.exp-left-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 680px;
}

.company-logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #141416;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

[data-theme="dark"] .company-logo-badge {
  background-color: #27272D;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.exp-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.company-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.company-period {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.exp-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-coral);
}

.exp-desc {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.exp-tags-block {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 320px;
}

.exp-toggle-action {
  margin-top: 28px;
}

.full-experience-details {
  display: none;
  margin-top: 24px;
  animation: fadeIn 0.35s ease forwards;
}

.full-experience-details.show {
  display: block;
}

/* Extended Experience Items */
.exp-deepdive-card {
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
}

.exp-deepdive-bullets {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-deepdive-bullets li {
  font-size: 0.925rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}

.exp-deepdive-bullets li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent-coral);
  font-weight: bold;
}

/* ==========================================================================
   AI LABS & WORKFLOWS SECTION
   ========================================================================== */
.ailabs-section {
  padding: 88px 0;
}

.ailabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ailab-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ailab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ailab-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ailab-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-coral-subtle);
  color: var(--accent-coral);
}

.ailab-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
}

.ailab-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   SECTION 04: LET'S BUILD (CTA CARD)
   ========================================================================== */
.cta-section {
  padding: 88px 0 100px;
}

.cta-banner-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 85, 51, 0.08) 0%, rgba(255, 85, 51, 0) 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 740px;
  color: var(--text-primary);
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 40px 0;
  background-color: var(--bg-main);
}

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

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.social-icon-link:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

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

/* ==========================================================================
   MODALS (CASE STUDY, RESUME, CONTACT)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-modal-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-window {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-floating);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: sticky;
  top: 20px;
  align-self: flex-end;
  margin-right: 20px;
  margin-top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  z-index: 10;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--bg-surface-hover);
  transform: rotate(90deg);
}

.modal-content-inner {
  padding: 0 44px 44px;
}

/* Contact Drawer Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.direct-contact-card {
  background-color: var(--bg-surface-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.contact-chip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chip-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.chip-val {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-coral);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-coral-subtle);
  transition: opacity var(--transition-fast);
}

.copy-btn:hover {
  opacity: 0.85;
}

/* Form inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 3px var(--accent-coral-subtle);
}

/* Toast notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #121214;
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-right {
    align-items: center;
  }

  .bento-collage {
    max-width: 460px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .ailabs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 0;
  }

  .nav-pill-group {
    display: none; /* Mobile navigation */
  }

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

  .mobile-nav-drawer {
    position: fixed;
    top: 70px;
    left: 20px;
    right: 20px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-floating);
    z-index: 99;
    display: none;
  }

  .mobile-nav-drawer.open {
    display: flex;
  }

  .mobile-nav-link {
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
  }

  .mobile-nav-link:hover {
    background-color: var(--bg-surface-subtle);
  }

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

  .extra-projects-grid {
    grid-template-columns: 1fr;
  }

  .process-steps-wrap {
    grid-template-columns: 1fr;
  }

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

  .experience-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .exp-tags-block {
    justify-content: flex-start;
    max-width: 100%;
  }

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

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cta-banner-card {
    padding: 48px 24px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* ==========================================================================
   WORK PAGE (Matching https://ankurchandra.com/work)
   ========================================================================== */
.work-page-header {
  padding: 64px 0 48px;
}

.work-page-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.work-page-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.work-list-container {
  display: flex;
  flex-direction: column;
}

.work-item-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0;
}

.work-item-row.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.work-item-row.reverse .work-visual-wrap {
  order: 2;
}

.work-item-row.reverse .work-info-wrap {
  order: 1;
}

/* Work Item Visual Cover (16/10 aspect ratio) */
.work-visual-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background-color: var(--bg-surface-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-item-row:hover .work-visual-wrap {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.work-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.work-cover-inner {
  width: 90%;
  height: 85%;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.work-item-row:hover .work-cover-inner {
  transform: scale(1.02);
}

/* Work Info Column */
.work-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-year-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.work-item-title {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.work-item-row:hover .work-item-title {
  color: var(--accent-coral);
}

.work-item-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
}

.work-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 6px;
}

.work-item-outcome {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-primary);
  padding: 10px 14px;
  background-color: var(--bg-surface-subtle);
  border-left: 3px solid var(--accent-coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 480px;
}

.work-item-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-coral);
  padding-bottom: 2px;
  width: fit-content;
  margin-top: 8px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.work-item-link:hover {
  gap: 12px;
  color: var(--accent-coral);
}

/* ==========================================================================
   CASE STUDY DETAIL TEMPLATE (Matching https://ankurchandra.com/work/halo-design-system)
   ========================================================================== */
.cs-header-wrap {
  padding: 48px 0 36px;
}

.cs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.cs-back-link:hover {
  color: var(--text-primary);
  transform: translateX(-4px);
}

.cs-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 960px;
}

.cs-lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 40px;
}

.cs-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Metadata Grid */
.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-meta-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
}

/* Sticky Phase Navigation Bar */
.cs-phase-nav-wrap {
  position: sticky;
  top: 72px;
  z-index: 40;
  background-color: var(--bg-main);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 56px;
}

.cs-phase-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.cs-phase-nav::-webkit-scrollbar {
  display: none;
}

.cs-phase-link {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.cs-phase-link:hover, .cs-phase-link.active {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background-color: var(--bg-surface-subtle);
}

.cs-phase-link.active {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
}

/* Case Study Content Blocks */
.cs-content-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.cs-section {
  scroll-margin-top: 140px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-coral);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.cs-body-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.cs-body-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Comparison Table */
.cs-table-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  margin: 16px 0;
}

.cs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.cs-table th {
  background-color: var(--bg-surface-subtle);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.cs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.55;
  vertical-align: top;
}

.cs-table tr:last-child td {
  border-bottom: none;
}

.cs-table td.aspect-col {
  font-weight: 600;
  color: var(--text-primary);
  width: 25%;
}

.cs-table td.after-col {
  color: var(--text-primary);
  background-color: rgba(16, 185, 129, 0.03);
}

/* Insight Blocks */
.insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}

.insight-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.insight-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-coral-subtle);
  color: var(--accent-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.insight-body h4 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.insight-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Interactive Before / After Comparison Slider */
.compare-slider-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: #141416;
  margin: 24px 0;
  user-select: none;
  touch-action: none;
}

.compare-img-after, .compare-img-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-img-before {
  overflow: hidden;
  border-right: 2px solid #FFFFFF;
}

.compare-badge-left {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.compare-badge-right {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.compare-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 20;
  color: #121212;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Numbered Screens Showcase */
.screen-walkthrough-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 16px 0;
}

.screen-walkthrough-visual {
  width: 100%;
  padding: 24px;
  background-color: var(--bg-surface-subtle);
  display: flex;
  justify-content: center;
}

.screen-walkthrough-details {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screen-step-label {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--accent-coral);
}

.screen-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
}

.screen-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Plain Stats Impact Callout */
.plain-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.plain-stat-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.plain-stat-val {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

.plain-stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Next Project Teaser Footer */
.next-project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  margin-top: 48px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.next-project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.next-project-sub {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.next-project-title {
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Responsive Overrides for Work & Case Study */
@media (max-width: 1024px) {
  .work-item-row, .work-item-row.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 60px 0;
  }
  .work-item-row.reverse .work-visual-wrap {
    order: 1;
  }
  .work-item-row.reverse .work-info-wrap {
    order: 2;
  }
  .cs-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plain-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cs-meta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plain-stats-grid {
    grid-template-columns: 1fr;
  }
  .next-project-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
}
