/* ==========================================================================
   EVAN SWOPE - DESIGN SYSTEM & PORTFOLIO STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT CONSTANTS & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-heading: 'Space Mono', monospace;
  --font-body: 'Space Mono', monospace;

  /* Colors (Base Dark Mode) */
  --bg-dark: #0a0a0c;
  --bg-card: rgba(20, 20, 25, 1);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Transition timings */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* 2. LENS ACCENT THEMES (Morphed by JS) */

/* Hybrid Lens Variables (Active Intersection) */
body.lens-hybrid {
  --accent-color: #ff7eb3; /* Neon Magenta */
  --accent-secondary: #00ffff; /* Neon Cyan */
  --accent-grad: linear-gradient(135deg, #ff7eb3, #00ffff);
  --orb-1-color: rgba(244, 114, 182, 0.28);
  --orb-2-color: rgba(96, 165, 250, 0.28);
  --glow-shadow: 0 10px 25px rgba(167, 139, 250, 0.12);
}

/* Creative Lens Variables (Art & Design) */
body.lens-creative {
  --accent-color: #ff7eb3;
  --accent-secondary: #39ff14; /* Acid Green */
  --accent-grad: linear-gradient(135deg, #ff7eb3, #39ff14);
  --orb-1-color: rgba(244, 114, 182, 0.32);
  --orb-2-color: rgba(251, 191, 36, 0.22);
  --glow-shadow: 0 10px 25px rgba(244, 114, 182, 0.12);
  --bg-dark: #fdfaf8; /* Warm light sand bg */
}

/* Strategy & Growth Lens Variables */
body.lens-strategy {
  --accent-color: #0ea5e9; /* Sky Blue */
  --accent-secondary: #6366f1; /* Indigo */
  --accent-grad: linear-gradient(135deg, #38bdf8, #818cf8);
  --orb-1-color: rgba(56, 189, 248, 0.28);
  --orb-2-color: rgba(129, 140, 248, 0.28);
  --glow-shadow: 0 10px 25px rgba(129, 140, 248, 0.12);
  --bg-dark: #f1f5f9; /* Cool light cyan-slate bg */
}

/* Background Canvas for Vector Grid */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Rendered on top of base background */
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  transition: background-color 0.8s ease;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('assets/images/desertscape_bg.png') no-repeat center center fixed;
  background-size: cover;
  transition: background-color 0.8s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary); /* Fixed for dark theme */
}

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

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND AMBIENT GLOWS
   -------------------------------------------------------------------------- */
.orb {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 0;
  pointer-events: none;
  z-index: 0; /* Placed behind the canvas grid */
  filter: blur(140px);
  mix-blend-mode: multiply; /* Blend mode for light backgrounds */
  transition: background var(--transition-smooth), transform 2s ease-in-out;
  opacity: 0.7;
}

.orb-1 {
  top: -15%;
  left: -10%;
  background: var(--orb-1-color);
  animation: floatOrb1 25s infinite alternate;
}

.orb-2 {
  bottom: -15%;
  right: -10%;
  background: var(--orb-2-color);
  animation: floatOrb2 30s infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 15%) scale(1.1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-15%, -10%) scale(0.9); }
}

/* --------------------------------------------------------------------------
   4. NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95); /* Slate dark */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 2rem;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.logo-subtext {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Bifocal Lens Selector Widget */
.lens-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 0;
}

.selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-left: 0.5rem;
}

.selector-label i {
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

.lens-selector {
  display: flex;
  position: relative;
  gap: 0.25rem;
}

.lens-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  transition: var(--transition-fast);
}

.lens-btn.active {
  color: #fff;
}

.slider-indicator {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--accent-grad);
  box-shadow: var(--glow-shadow);
  border-radius: 0;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.btn-contact {
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

.btn-contact:hover {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-shadow);
}

/* --------------------------------------------------------------------------
   5. LENS-SPECIFIC ELEMENT TOGGLING (CSS FILTERING)
   -------------------------------------------------------------------------- */
/* Rule: Filter dynamic components based on the active lens */
body.lens-creative [data-lens-only]:not([data-lens-only*="creative"]),
body.lens-strategy [data-lens-only]:not([data-lens-only*="strategy"]),
body.lens-hybrid [data-lens-only]:not([data-lens-only*="hybrid"]) {
  display: none !important;
}

/* Dynamic Text Showing/Hiding inside Hero/Titles */
.title-creative, .subtitle-creative, .badge-creative-text, .display-creative-graphic, .font-creative {
  display: none;
}
.title-strategy, .subtitle-strategy, .badge-strategy-text, .display-strategy-graphic, .font-strategy {
  display: none;
}
.title-hybrid, .subtitle-hybrid, .badge-hybrid-text, .display-hybrid-graphic, .card-hybrid, .font-hybrid {
  display: none;
}

/* Activate specific elements based on body class */
body.lens-creative .title-creative,
body.lens-creative .subtitle-creative,
body.lens-creative .badge-creative-text,
body.lens-creative .display-creative-graphic,
body.lens-creative .font-creative {
  display: block;
}

body.lens-strategy .title-strategy,
body.lens-strategy .subtitle-strategy,
body.lens-strategy .badge-strategy-text,
body.lens-strategy .display-strategy-graphic,
body.lens-strategy .font-strategy {
  display: block;
}

body.lens-hybrid .title-hybrid,
body.lens-hybrid .subtitle-hybrid,
body.lens-hybrid .badge-hybrid-text,
body.lens-hybrid .display-hybrid-graphic,
body.lens-hybrid .card-hybrid,
body.lens-hybrid .font-hybrid {
  display: block;
}

.main-content {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 8rem 2rem 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.tagline-badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.tagline-badge i {
  margin-right: 0.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* Highlights gradient */
.hero-title strong, 
.hero-subtitle strong {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-smooth);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
}

.cta-primary {
  background: var(--accent-grad);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  box-shadow: var(--glow-shadow);
  transition: var(--transition-smooth);
}

.cta-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.cta-secondary {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  border-radius: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition-fast);
}

.cta-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Hero Visual Box */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-card-wrapper {
  width: 100%;
  aspect-ratio: 1.1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 4px 4px 0 var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: border-color 0.8s ease;
}

.visual-card {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-card > div {
  width: 100%;
  height: 100%;
  transition: var(--transition-smooth);
}

/* Creative Graphic Mode: Image Reel layout */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  height: 85%;
  margin-bottom: 10px;
}

.grid-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

/* Dynamic Placeholder Visual Elements */
.grid-item.item-1 { background-image: url('assets/images/Cut%20+%20Dry%20Primary%20Banners%20spread%20MFS-11.jpg'); }
.grid-item.item-2 { background-image: url('assets/images/crushworthy%20sock%20all-2.jpg'); }
.grid-item.item-3 { background-image: url('assets/images/marx_showcase.png'); }
.grid-item.item-4 { background-image: url('assets/images/EJP%20wed%202.jpg'); }

.media-badge {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent-color);
}

/* Strategy Graphic Mode: Board & Stats */
.stats-board {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
}

.font-glow-blue {
  color: #00f2fe;
  text-shadow: 0 0 15px rgba(0,242,254,0.4);
}

.stat-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  height: 50%;
}

.bar {
  flex-grow: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 0;
  border-top: 2px solid var(--accent-color);
  transition: var(--transition-smooth);
}

.bar-1 { background: rgba(0, 242, 254, 0.2); }
.bar-2 { background: rgba(0, 242, 254, 0.4); }
.bar-3 { background: rgba(79, 172, 254, 0.5); }
.bar-4 { background: var(--accent-grad); }

.stat-footer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
}

/* Hybrid Intersection graphic: Venn Diagram */
.display-hybrid-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.intersection-venn {
  position: relative;
  width: 250px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.circle-creative {
  left: 0;
  background: rgba(255, 107, 74, 0.15);
  border: 2px solid #ff6b4a;
  color: #ff6b4a;
  align-items: center;
  padding-right: 35px;
}

.circle-strategy {
  right: 0;
  background: rgba(0, 242, 254, 0.1);
  border: 2px solid #00f2fe;
  color: #00f2fe;
  align-items: center;
  padding-left: 35px;
}

.venn-core {
  position: absolute;
  width: 75px;
  height: 75px;
  border-radius: 0;
  background: rgba(168, 85, 247, 0.45);
  border: 2px solid #a855f7;
  color: #fff;
  box-shadow: 4px 4px 0 var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 5;
  animation: corePulse 3s infinite alternate;
}

@keyframes corePulse {
  0% { transform: scale(1); box-shadow: 4px 4px 0 var(--accent-color); }
  100% { transform: scale(1.06); box-shadow: 4px 4px 0 var(--accent-color); }
}

/* --------------------------------------------------------------------------
   7. METRICS HIGHLIGHT SECTION
   -------------------------------------------------------------------------- */
.metrics-section {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.metrics-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.metric-card {
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.metric-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  transition: var(--transition-smooth);
}

.metric-label {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
}

/* --------------------------------------------------------------------------
   8. WORK / CASE STUDIES SECTION
   -------------------------------------------------------------------------- */
.work-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header-container {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  color: #fff;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* FLIP CARD STYLES */
.project-card-container {
  position: relative;
  perspective: 1500px;
  cursor: pointer;
}

.project-card-inner {
  display: grid;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 450px; /* Base height to prevent collapse */
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.project-card-container.is-flipped .project-card-inner {
  transform: rotateY(180deg);
}

/* Nudge cue on hover for desktop */
@media (hover: hover) {
  .project-card-container:hover:not(.is-flipped) .project-card-inner {
    transform: rotateY(5deg);
  }
  .project-card-container.is-flipped:hover .project-card-inner {
    transform: rotateY(175deg);
  }
}

.project-card-face {
  grid-area: 1 / 1;
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-smooth);
}

@media (hover: hover) {
  .project-card-container:hover .project-card-face {
    border-color: var(--accent-color);
  }
}

.project-card-back {
  transform: rotateY(180deg);
}

/* Flip Cue Badge / Button */
.flip-cue {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}
@media (hover: hover) {
  .project-card-container:hover .flip-cue {
    background: rgba(255, 255, 255, 0.1);
  }
}
.card-creative .flip-cue:hover {
  background: #ff6b4a;
  border-color: #ff6b4a;
}
.card-strategy .flip-cue:hover {
  background: #00f2fe;
  border-color: #00f2fe;
}

/* Full Bleed Front Media */
.front-media-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.front-media-background img,
.front-media-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
@media (hover: hover) {
  .project-card-container:hover .front-media-background img,
  .project-card-container:hover .front-media-background video {
    transform: scale(1.05);
  }
}

.front-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
  z-index: 2;
}

.front-title-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.front-title-container .project-category {
  color: #ff6b4a;
}
.front-title-container .project-title {
  color: #fff;
  margin-bottom: 0;
}
.project-title { font-family: var(--font-body); text-transform: uppercase; }

/* SVG Animations */
.svg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.animated-svg {
  position: absolute;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}
@keyframes pop {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.2); opacity: 0.4; }
}

.float-1 { top: 15%; left: 10%; animation: float 6s ease-in-out infinite; font-size: 3.5rem; color: #ff6b4a; opacity: 0.8; }
.float-2 { top: 40%; right: 15%; animation: float 5s ease-in-out infinite 1s; font-size: 2.5rem; color: #ffca28; opacity: 0.6; }
.float-3 { bottom: 35%; left: 20%; animation: float 7s ease-in-out infinite 2s; font-size: 4.5rem; color: #ff6b4a; opacity: 0.5; }

.pop-1 { top: 15%; right: 15%; animation: pop 5s ease-in-out infinite; font-size: 8rem; color: #00f2fe; opacity: 0.1; }
.pop-2 { bottom: 10%; right: 10%; animation: pop 6s ease-in-out infinite 1s; font-size: 10rem; color: #4facfe; opacity: 0.05; }
.pop-3 { top: 45%; left: 5%; animation: pop 7s ease-in-out infinite 2s; font-size: 6rem; color: #00f2fe; opacity: 0.08; }

/* Custom Card Colors */
.card-creative {
  border-color: rgba(255, 107, 74, 0.3);
}
.card-strategy {
  border-color: rgba(0, 242, 254, 0.3);
}

.placeholder-icon {
  font-size: 2.25rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.project-card:hover .placeholder-icon {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.placeholder-main-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.placeholder-sub-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.strategy-badge, .hybrid-badge, .creative-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
  color: #fff;
  letter-spacing: 0.05em;
}

.strategy-badge { background: #00f2fe; color: #050b14; }
.hybrid-badge { background: #a855f7; }
.creative-badge { background: #ff6b4a; }

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Fun stylized tech backgrounds for placeholders */
.b2b-colors { background: linear-gradient(145deg, #020713, #092338); }
.b2b-lines {
  position: absolute;
  width: 80%;
  height: 80%;
  background-image: radial-gradient(circle, rgba(0,242,254,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

.creative-ops-colors { background: linear-gradient(145deg, #090312, #290a47); }
.ai-dots {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 10%, transparent 10.5%);
  background-size: 24px 24px;
}

.creative-colors { background: linear-gradient(145deg, #120502, #3b1108); }
.creative-shapes {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 0;
  background: rgba(255, 107, 74, 0.1);
  border: 1px dashed rgba(255, 107, 74, 0.3);
  animation: morphShape 15s infinite linear;
}

@keyframes morphShape {
  0% { transform: rotate(0deg); border-radius: 0; }
  50% { border-radius: 0; }
  100% { transform: rotate(360deg); border-radius: 0; }
}

.brand-watermark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
  color: #fff;
  z-index: 2;
}

.project-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.project-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fff;
}

.project-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.project-bullets {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bullet-item {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.bullet-item i {
  color: var(--accent-color);
  margin-top: 0.2rem;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: 0;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   9. EXPERIENCE / RESUME SECTION
   -------------------------------------------------------------------------- */
.resume-section {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.timeline-item {
  position: relative;
}

/* Marker dots on the timeline vertical line */
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 6px);
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: var(--bg-dark);
  border: 2px solid var(--accent-color);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  background: var(--accent-grad);
  border-radius: 0;
  color: #fff;
  box-shadow: var(--glow-shadow);
  transition: var(--transition-smooth);
}

.timeline-company {
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.job-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.job-summary {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.job-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1.2rem;
  list-style-type: square;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.job-bullets li::marker {
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   10. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section {
  padding: 6rem 2rem;
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
}

.about-frame {
  width: 280px;
  height: 280px;
  border-radius: 0;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.about-frame::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 0;
  padding: 1px;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.headshot-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5rem;
  color: var(--text-muted);
}

.about-headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: var(--transition-smooth);
}

.about-headshot:hover {
  filter: brightness(1.05);
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}

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

.about-fun-fact {
  border-left: 2px solid var(--accent-color);
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
  margin-top: 1rem;
  transition: var(--transition-smooth);
}

.about-fun-fact i {
  color: var(--accent-color);
  margin-right: 0.4rem;
  transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   11. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.contact-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 4rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 4px 4px 0 var(--accent-color);
}

.contact-card h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.8rem;
  border-radius: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.contact-link:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image-wrapper {
    order: 2;
  }
  
  .about-text-content {
    order: 1;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
  }
  
  .header-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    order: 3;
    font-size: 0.8rem;
    gap: 1rem;
  }
  
  .brand-logo {
    order: 1;
    align-items: center;
  }
  
  .lens-selector-wrapper {
    order: 2;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-info {
    padding: 2rem;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-item::before {
    left: calc(-1.5rem - 6px);
  }
}

@media (max-width: 480px) {
  .lens-selector-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  
  .selector-label {
    display: none;
  }
  
  .lens-selector {
    width: 100%;
  }
  
  .lens-btn {
    flex-grow: 1;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }
  
  .cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-primary, .cta-secondary {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   14. EDITORIAL TECH LAB ACCENTS & SUBSECTIONS
   ========================================================================== */

/* Subsection Containers for grid headers */
.subsection-container {
  margin-top: 3rem;
  margin-bottom: 5rem;
  position: relative;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  transition: var(--transition-smooth);
}

.subsection-title i {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Technical Blueprint Accents */
.projects-grid {
  /* Grid pattern in background */
  background-image: radial-gradient(var(--border-color) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  padding: 1.5rem;
  border-radius: 0;
  border: 1px dashed var(--border-color);
  background-color: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

.project-card {
  position: relative;
}

/* Coordinate indicator at top-right of project cards */
.project-card::after {
  content: '[LAB_ID::' attr(id) ']';
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: monospace;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.4;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
}

.section-header-container {
  position: relative;
}
.section-header-container::before {
  content: 'Case Studies';
  font-family: var(--font-body);
  font-size: 1.1rem;
  
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--accent-color);
  opacity: 0.9;
  display: block;
  margin-bottom: 0.5rem;
  transform: rotate(-2deg);
}

/* Philosophy & Approach Section */
.philosophy-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
}

.philosophy-section .section-header-container::before {
  content: 'How I Operate';
}

.resume-section .section-header-container::before {
  content: 'You can stalk me in the past\A if you had a time machine';
  white-space: pre;
}

.about-section .section-header-container::before {
  content: "You've been wondering";
}


.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.philosophy-card {
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.philosophy-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: var(--glow-shadow);
}

.philosophy-card:hover::before {
  height: 100%;
}

.phil-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.philosophy-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
}

.philosophy-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive adjustments for subsections */
@media (max-width: 768px) {
  .subsection-container {
    margin-bottom: 3rem;
  }
  .projects-grid {
    padding: 0 1rem;
  }
  
  .project-card-face {
    padding: 1rem !important; /* Reduce padding to give text room! */
  }
}

/* --------------------------------------------------------------------------
   10. LIGHTBOX GALLERY
   -------------------------------------------------------------------------- */
.view-gallery-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5;
  backdrop-filter: blur(4px);
  pointer-events: auto; /* Ensure it's clickable */
}

.view-gallery-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

@media (hover: hover) {
  .project-card-container:hover .view-gallery-btn {
    opacity: 1;
  }
}

/* Modal Core */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.lightbox-media-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-media-container img,
.lightbox-media-container video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--accent-color);
}

/* Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

.lightbox-close {
  top: -20px;
  right: -20px;
}

.lightbox-prev {
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-content { width: 100%; height: 80%; }
}


/* Scribble Outline */
.scribble-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}
.scribble-outline rect {
  x: 10px;
  y: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  rx: 12px;
  fill: none;
  stroke-width: 4;
  shape-rendering: crispEdges;
  stroke-dasharray: 4000; /* much larger array for big cards */
  stroke-dashoffset: 4000;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: url(#scribble-filter);
}
.card-creative .scribble-outline rect {
  stroke: url(#gradient-orange);
}
.card-strategy .scribble-outline rect {
  stroke: url(#gradient-blue);
}

@media (hover: hover) {
  .project-card-container:hover .scribble-outline rect {
    stroke-dashoffset: 0;
  }
}
.project-card-container.is-flipped .scribble-outline rect {
  stroke-dashoffset: 0;
}

/* Tutorial Peeking Card */
.tutorial-card-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  perspective: 2000px;
}
.tutorial-card {
  min-height: 650px; /* Allow natural growth on desktop */
}

@media (max-width: 768px) {
  .tutorial-card {
    min-height: 650px !important; 
    height: auto !important;
  }
}

@keyframes peekFlip {
  0%, 10% { transform: rotateY(0deg); }
  25%, 35% { transform: rotateY(20deg); } /* Peek */
  50%, 100% { transform: rotateY(0deg); }
}

/* Only peek if it hasn't been flipped yet */
.tutorial-card:not(.is-flipped) .project-card-inner {
  animation: peekFlip 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@media (hover: hover) {
  .tutorial-card:hover .project-card-inner {
    animation: none !important;
    transform: rotateY(5deg);
  }
}

.peeking-hand {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--neon-orange);
  animation: bounceHand 2s infinite;
}
@keyframes bounceHand {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, -10px) scale(0.9); }
}

/* --- INCHWORM ANIMATION --- */
.inchworm-svg path {
  filter: url(#scribble-filter);
}

/* --- V3 AUTHENTIC OVERRIDES --- */
body {
    background: #0a0a0c !important; /* solid stark black/grey */
    background-image: none !important;
}
.project-card-face {
    background: #111 !important; /* Solid dark grey card */
    box-shadow: none !important;
    border: none !important; /* The scribble outline handles the border */
    padding: 3rem;
}
/* Ensure the front title container is visible and bold */
.front-title-container {
    z-index: 20;
}


/* --- PIXELATION --- */
img, video, .front-media-background {
  image-rendering: pixelated;
}

/* --- GRID BREAKERS --- */
.tilt-left {
  transform: rotate(-1deg);
}
.tilt-right {
  transform: rotate(1deg);
}


/* --- NEW SVG ICON ANIMATIONS --- */

/* 1. Chart */
.chart-line {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawChart 3s infinite;
}
.chart-arrow {
  opacity: 0;
  animation: pulseArrow 3s infinite;
}
@keyframes drawChart {
  0% { stroke-dashoffset: 40; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulseArrow {
  0% { opacity: 0; }
  45% { opacity: 0; }
  50% { opacity: 1; transform: translate(1px, -1px); }
  75% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 1; }
}

/* 2. Camera Flash */
.camera-flash {
  opacity: 0;
  animation: flashBulb 4s infinite;
}
@keyframes flashBulb {
  0% { opacity: 0; r: 1; }
  10% { opacity: 1; r: 3; }
  15% { opacity: 0; r: 1; }
  100% { opacity: 0; }
}

/* 3. Cart Bounce */
.icon-cart {
  animation: cartBounce 2s infinite;
}
@keyframes cartBounce {
  0% { transform: translateY(0); }
  10% { transform: translateY(-4px); }
  20% { transform: translateY(0); }
  30% { transform: translateY(-2px); }
  40% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* 4. Heart Beat */
.heart-beat {
  transform-origin: center;
  animation: beatHeart 1.5s infinite;
}
@keyframes beatHeart {
  0% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* 5. Stamp Slam */
.stamp-slam {
  transform-origin: center;
  animation: slamStamp 3s infinite;
}
@keyframes slamStamp {
  0% { transform: translateY(-10px) scale(1.1); opacity: 0; }
  15% { transform: translateY(0) scale(1); opacity: 1; }
  85% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-10px) scale(1.1); opacity: 0; }
}

/* 6. Clapper Snap */
.clapper-snap {
  transform-origin: 3px 10px;
  animation: snapClapper 3s infinite;
}
@keyframes snapClapper {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(20deg); }
  25% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* --- NEW SVG ICON ANIMATIONS --- */

/* 1. Chart */
.chart-line {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawChart 3s infinite;
}
.chart-arrow {
  opacity: 0;
  animation: pulseArrow 3s infinite;
}
@keyframes drawChart {
  0% { stroke-dashoffset: 40; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulseArrow {
  0% { opacity: 0; }
  45% { opacity: 0; }
  50% { opacity: 1; transform: translate(1px, -1px); }
  75% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 1; }
}

/* 2. Camera Flash */
.camera-flash {
  opacity: 0;
  animation: flashBulb 4s infinite;
}
@keyframes flashBulb {
  0% { opacity: 0; r: 1; }
  10% { opacity: 1; r: 3; }
  15% { opacity: 0; r: 1; }
  100% { opacity: 0; }
}

/* 3. Cart Bounce */
.icon-cart {
  animation: cartBounce 2s infinite;
}
@keyframes cartBounce {
  0% { transform: translateY(0); }
  10% { transform: translateY(-4px); }
  20% { transform: translateY(0); }
  30% { transform: translateY(-2px); }
  40% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* 4. Heart Beat */
.heart-beat {
  transform-origin: center;
  animation: beatHeart 1.5s infinite;
}
@keyframes beatHeart {
  0% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* 5. Stamp Slam */
.stamp-slam {
  transform-origin: center;
  animation: slamStamp 3s infinite;
}
@keyframes slamStamp {
  0% { transform: translateY(-10px) scale(1.1); opacity: 0; }
  15% { transform: translateY(0) scale(1); opacity: 1; }
  85% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-10px) scale(1.1); opacity: 0; }
}

/* 6. Clapper Snap */
.clapper-snap {
  transform-origin: 3px 10px;
  animation: snapClapper 3s infinite;
}
@keyframes snapClapper {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(20deg); }
  25% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* Philosophy SVG Animations */
.icon-unravel .unravel-path {
  stroke-dasharray: 60;
  animation: unravel-anim 3s ease-in-out infinite alternate;
}
@keyframes unravel-anim {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 60; }
}
.icon-unravel .unravel-dot {
  animation: unravel-dot-anim 3s ease-in-out infinite alternate;
}
@keyframes unravel-dot-anim {
  0% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.icon-lift .lift-hands {
  animation: lift-hands-anim 2s ease-in-out infinite alternate;
}
.icon-lift .lift-block {
  animation: lift-block-anim 2s ease-in-out infinite alternate;
}
@keyframes lift-hands-anim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}
@keyframes lift-block-anim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.icon-spark .spark-hammer {
  transform-origin: 41px 16px;
  animation: hammer-anim 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes hammer-anim {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-40deg); }
  30% { transform: rotate(15deg); }
  40% { transform: rotate(0deg); }
}
.icon-spark .spark-particle {
  opacity: 0;
  animation: particle-anim 1.5s ease-out infinite;
}
.icon-spark .p1 { animation-delay: 0.3s; }
.icon-spark .p2 { animation-delay: 0.4s; }
@keyframes particle-anim {
  0% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: 1; }
  60% { opacity: 0; transform: translate(8px, -12px); }
  100% { opacity: 0; }
}

.icon-shifter .shifter-square {
  animation: shifter-sq-anim 4s steps(1, end) infinite;
}
.icon-shifter .shifter-scribble {
  animation: shifter-sc-anim 4s steps(1, end) infinite;
}
@keyframes shifter-sq-anim {
  0%, 50% { opacity: 1; }
  25%, 75%, 100% { opacity: 0; }
}
@keyframes shifter-sc-anim {
  0%, 50% { opacity: 0; }
  25%, 75%, 100% { opacity: 1; }
}
