/* ==========================================================================
   1. FONTS & VARIABLES
   ========================================================================== */
@font-face { font-family: 'Goga'; src: url('../fonts/Goga-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Goga'; src: url('../fonts/Goga-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Goga'; src: url('../fonts/Goga-Bold.woff2') format('woff2'); font-weight: bold; font-style: normal; font-display: swap; }
@font-face { font-family: 'Emilio'; src: url('../fonts/Emilio-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Emilio'; src: url('../fonts/Emilio-ThinItalic.woff2') format('woff2'); font-weight: 100; font-style: italic; font-display: swap; }

:root {
  --bg-color: #F4F4F0; 
  --text-color: #2A2A2A; 
  --accent-color: #2A2A2A;
  --nav-hover: #EAA023;
  --card-bg: #EAEAEA;
  --media-filter: grayscale(100%); 
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg-color: #2A2A2A; 
  --text-color: #F4F4F0; 
  --accent-color: #EAA023; 
  --nav-hover: #EAA023;
  --card-bg: #333333;
  --media-filter: grayscale(0%); 
  --glass-bg: rgba(60, 60, 60, 0.4);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   2. BASE STYLES & TYPOGRAPHY
   ========================================================================== */
body { margin: 0; padding: 0; background-color: var(--bg-color); color: var(--text-color); font-family: 'Emilio', sans-serif; transition: background-color 0.4s ease, color 0.4s ease; line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Goga', sans-serif; margin-bottom: 0.5rem; }
p { font-size: 1.1rem; margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; }
.accent-text { color: var(--accent-color); transition: color 0.4s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 5%; }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn { padding: 0.8rem 1.5rem; border: 1px solid var(--text-color); background: transparent; color: var(--text-color); font-family: 'Goga', sans-serif; cursor: pointer; border-radius: 4px; transition: all 0.3s ease; min-width: 90px; text-align: center; }
.btn:hover { background: var(--text-color); color: var(--bg-color); }
.btn-primary { background: var(--accent-color); color: var(--bg-color); border-color: var(--accent-color); }
[data-theme="dark"] .btn-primary { color: #2A2A2A; }

/* ==========================================================================
   4. NAVIGATION & FOOTER
   ========================================================================== */
nav { display: flex; justify-content: space-between; align-items: center; padding: 2rem 5%; }
.site-logo { height: 35px; display: block; transition: filter 0.4s ease; }
[data-theme="dark"] .site-logo { filter: invert(1) brightness(0.95); }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: 'Goga', sans-serif; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--nav-hover); }
.nav-actions { display: flex; gap: 1rem; align-items: center; }

footer { border-top: 1px solid var(--text-color); padding: 4rem 5% 2rem 5%; margin-top: 6rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-col h1 { font-size: 2rem; font-weight: bold; }
.footer-col h2 { font-family: 'Emilio', sans-serif; font-style: italic; font-size: 1.2rem; font-weight: 100; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { font-family: 'Goga', sans-serif; font-weight: 500; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--nav-hover); }
.contact-info p { margin-bottom: 0.5rem; font-family: 'Goga', sans-serif; }
.copyright { text-align: center; margin-top: 4rem; font-size: 0.9rem; opacity: 0.7; }

/* ==========================================================================
   5. PAGE HEADERS (Used on Work & Inner Pages)
   ========================================================================== */
.page-header { text-align: center; padding: 4rem 0 4rem 0; max-width: 900px; margin: 0 auto; }
.page-header h1 { font-size: 4.5rem; font-weight: bold; margin-top: 0; margin-bottom: 3rem; }
.page-header h2 { font-size: 1.8rem; font-family: 'Emilio', sans-serif; font-style: italic; font-weight: 100; opacity: 0.9; line-height: 1.4; }
.back-link { font-family: 'Goga', sans-serif; opacity: 0.7; transition: opacity 0.3s; display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.back-link:hover { opacity: 1; color: var(--accent-color); }

/* ==========================================================================
   6. HOMEPAGE SPECIFIC
   ========================================================================== */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; min-height: 70vh; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; font-weight: bold; }
.hero-text h2 { font-size: 1.8rem; font-family: 'Emilio', sans-serif; font-style: italic; font-weight: 100; opacity: 0.9; }
.hero-image { padding-right: 2rem; }
.hero-image img { width: 100%; border-radius: 12px; filter: var(--media-filter); transition: filter 0.5s ease-in-out; }
.hero-image img:hover { filter: grayscale(0%); }

.showreel-section { text-align: center; margin: 6rem 0; }
.showreel-section h1 { font-size: 3rem; margin-bottom: 2rem; font-weight: 500; }
.video-wrapper { max-width: 1000px; margin: 0 auto 2rem auto; border-radius: 12px; overflow: hidden; }
.video-wrapper video { width: 100%; display: block; filter: var(--media-filter); transition: filter 0.4s; }
.video-wrapper:hover video { filter: grayscale(0%); }

.about-section { max-width: 900px; margin: 6rem auto; }
.about-section h2 { font-size: 2.5rem; font-weight: bold; text-align: center; margin-bottom: 2rem; }
.glass-box { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px 0 var(--glass-shadow); border-radius: 20px; padding: 3.5rem 4rem; transition: all 0.4s ease; }
.glass-box p { font-size: 1.2rem; margin-bottom: 1.5rem; }
.glass-box p:last-child { margin-bottom: 0; }

.skills-section { margin: 6rem 0; text-align: center; }
.skills-section h2 { font-size: 2.5rem; font-weight: bold; margin-bottom: 1rem; }
.skills-subtitle { max-width: 800px; margin: 0 auto 3rem auto; font-size: 1.2rem; opacity: 0.9; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.skill-card { background: var(--card-bg); padding: 1.5rem; border-radius: 12px; font-family: 'Goga', sans-serif; font-size: 1.1rem; font-weight: 500; border: 1px solid transparent; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.skill-card:hover { border-color: var(--accent-color); transform: translateY(-5px); color: var(--accent-color); }
.skill-icon { width: 28px; height: 28px; filter: var(--media-filter); transition: filter 0.4s ease; }
.skill-card:hover .skill-icon { filter: grayscale(0%); }

/* ==========================================================================
   7. MY WORK PAGE SPECIFIC
   ========================================================================== */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-bottom: 8rem; }
.category-card { display: block; text-decoration: none; color: var(--text-color); }
.card-image-wrapper { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background-color: var(--card-bg); margin-bottom: 1.5rem; }
.card-image-wrapper img, .card-image-wrapper video { width: 100%; height: 100%; object-fit: cover; filter: var(--media-filter); transition: filter 0.5s ease, transform 0.6s ease; }
.category-card:hover .card-image-wrapper img, .category-card:hover .card-image-wrapper video { filter: grayscale(0%); transform: scale(1.03); }
.category-card h3 { font-size: 2rem; font-weight: 500; margin-bottom: 0.5rem; transition: color 0.3s ease; }
.category-card:hover h3 { color: var(--accent-color); }
.category-card p { font-size: 1.1rem; opacity: 0.8; margin: 0; }

.metrics-section { border-top: 1px solid var(--text-color); border-bottom: 1px solid var(--text-color); padding: 4rem 0; margin-bottom: 6rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.metric-item h4 { font-family: 'Goga', sans-serif; font-size: 4rem; font-weight: bold; color: var(--accent-color); margin: 0 0 0.5rem 0; line-height: 1; }
.metric-item p { font-family: 'Emilio', sans-serif; font-size: 1.2rem; margin: 0; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   8. PROJECT PAGES (Video, Motion, 3D)
   ========================================================================== */
.project-grid { display: grid; gap: 6rem; margin-bottom: 6rem; }
.project-item { width: 100%; }
.project-media { width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem; background: #000; }
.project-media video, .project-media img { width: 100%; display: block; filter: var(--media-filter); transition: filter 0.5s ease; }
.project-media:hover video, .project-media:hover img { filter: grayscale(0%); }
.project-info h3 { font-size: 2rem; font-weight: bold; margin-bottom: 0.5rem; }
.project-info p { font-size: 1.1rem; opacity: 0.9; max-width: 800px; margin-bottom: 0; }
.project-tags { display: flex; gap: 1rem; margin-top: 1rem; font-family: 'Goga', sans-serif; font-size: 0.9rem; opacity: 0.7; text-transform: uppercase; }

/* ==========================================================================
   9. GRAPHIC DESIGN PAGE (Lightbox)
   ========================================================================== */
.graphic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; margin-bottom: 6rem; }
.graphic-thumb { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; cursor: zoom-in; filter: var(--media-filter); transition: filter 0.4s ease, transform 0.4s ease; }
.graphic-thumb:hover { filter: grayscale(0%); transform: scale(1.02); }

.lightbox { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); align-items: center; justify-content: center; flex-direction: column; }
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-controls { position: absolute; width: 100%; top: 50%; display: flex; justify-content: space-between; padding: 0 2rem; box-sizing: border-box; transform: translateY(-50%); pointer-events: none; }
.lb-btn { background: rgba(255,255,255,0.1); color: #fff; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 1.5rem; cursor: pointer; pointer-events: auto; transition: background 0.3s; }
.lb-btn:hover { background: rgba(255,255,255,0.3); }
.lb-close { position: absolute; top: 2rem; right: 3rem; color: #fff; font-size: 3rem; cursor: pointer; font-family: sans-serif; line-height: 1; }
.lb-counter {
  position: absolute; 
  top: 2rem; 
  left: 3rem; 
  color: #fff; 
  font-family: 'Goga', sans-serif; 
  font-size: 1.2rem; 
  letter-spacing: 2px;
}
@media (max-width: 768px) { .lb-counter { left: 1.5rem; font-size: 1rem; top: 2.5rem; } 
}

/* ==========================================================================
   11. PROCESS SECTION
   ========================================================================== */
.process-section {
  text-align: center;
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--text-color); /* Subtle divider */
}
.process-section h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 4rem;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.process-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--text-color);
  background: rgba(128, 128, 128, 0.05); /* Very subtle fill */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Goga', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  transition: all 0.4s ease;
}
.process-step:hover .process-circle {
  color: var(--bg-color);
  background: var(--accent-color); /* Changed to use your mustard/charcoal variable */
  border-color: var(--accent-color); /* Blends the border smoothly into the background */
  opacity: 1;
  transform: translateY(-5px);
}
.process-step h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.process-step p {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 250px;
  line-height: 1.5;
}

/* ==========================================================================
   12. MOTION PAGE SPECIFIC (Philosophy & Cards)
   ========================================================================== */
/* How I Think in Motion (Pills) */
.motion-philosophy { 
  text-align: center; 
  padding: 4rem 0; 
  border-top: 1px solid var(--text-color); 
  margin-top: 4rem; 
}
.motion-philosophy h2 { 
  font-size: 3rem; 
  font-weight: bold; 
  margin-bottom: 1rem; 
}
.motion-philosophy p { 
  font-size: 1.2rem; 
  max-width: 700px; 
  margin: 0 auto 3rem auto; 
  opacity: 0.9; 
}
.philosophy-pills { 
  display: flex; 
  justify-content: center; 
  gap: 1.5rem; 
  flex-wrap: wrap; 
}
.pill { 
  padding: 1rem 2rem; 
  border-radius: 50px; 
  background: var(--card-bg); 
  border: 1px solid transparent; 
  font-family: 'Goga', sans-serif; 
  font-weight: bold; 
  font-size: 1.1rem; 
  transition: all 0.3s ease; 
  box-shadow: 0 4px 6px var(--glass-shadow);
}
.pill:hover { 
  border-color: var(--accent-color); 
  color: var(--accent-color); 
  transform: translateY(-3px); 
}

/* Motion Design Process (Vertical Cards) */
.motion-process { 
  text-align: center; 
  padding: 4rem 0 2rem 0; 
}
.motion-process h2 { 
  font-size: 3rem; 
  font-weight: bold; 
  margin-bottom: 4rem; 
}
.motion-process-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 2rem; 
}
.motion-card { 
  background: var(--card-bg); 
  border-radius: 16px; 
  padding: 3rem 2rem; 
  text-align: center; 
  transition: all 0.3s ease; 
  border: 1px solid transparent; 
  box-shadow: 0 4px 15px var(--glass-shadow);
}
.motion-card:hover { 
  transform: translateY(-5px); 
  border-color: var(--accent-color); 
}
.motion-card-num { 
  font-family: 'Goga', sans-serif; 
  font-size: 2.5rem; 
  font-weight: bold; 
  color: var(--accent-color); 
  margin-bottom: 1rem; 
}
.motion-card h3 { 
  font-size: 1.4rem; 
  font-weight: bold; 
  margin-bottom: 1rem; 
}
.motion-card p { 
  font-size: 1rem; 
  opacity: 0.8; 
  line-height: 1.5; 
  margin: 0; 
}
/* 2x2 Grid specifically for the Graphic Design Process */
.design-process-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 2rem; 
  max-width: 1000px; 
  margin: 0 auto; 
}

/* Add this to your mobile queries at the very bottom so it stacks on phones */
@media (max-width: 768px) {
  .design-process-grid { grid-template-columns: 1fr; }
}

/* 5-Column Grid specifically for the 3D Animation Workflow */
.workflow-grid-5 { 
  display: grid; 
  grid-template-columns: repeat(5, 1fr); 
  gap: 1.5rem; 
  max-width: 1200px; 
  margin: 0 auto; 
}

/* Add these to your mobile queries at the very bottom so it stacks smoothly */
@media (max-width: 1100px) {
  .workflow-grid-5 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
@media (max-width: 768px) {
  .workflow-grid-5 { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   13. CASE STUDIES INDEX PAGE
   ========================================================================== */
.case-studies-container {
  display: flex;
  flex-direction: column;
  gap: 10rem; /* Massive breathing room between projects */
  margin: 4rem 0 8rem 0;
}

.case-row {
  display: flex;
  align-items: center;
  gap: 6rem;
}

/* THE MAGIC TRICK: This makes every even row flip its layout automatically */
.case-row:nth-child(even) {
  flex-direction: row-reverse;
}

.case-media {
  flex: 1.3; /* Makes the image/video slightly larger than the text area */
  position: relative;
}

.case-media img, .case-media video {
  width: 100%;
  border-radius: 16px;
  filter: var(--media-filter);
  transition: filter 0.5s ease, transform 0.6s ease;
  box-shadow: 0 10px 30px var(--glass-shadow);
}

.case-media:hover img, .case-media:hover video {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.case-content {
  flex: 1;
  position: relative;
}

/* The giant background number */
.case-number {
  font-family: 'Goga', sans-serif;
  font-size: 10rem;
  font-weight: bold;
  color: var(--text-color);
  opacity: 0.05;
  line-height: 0.8;
  margin-bottom: -4rem;
  margin-left: -1rem;
  pointer-events: none;
}
[data-theme="dark"] .case-number { opacity: 0.1; }

.case-title {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.case-role {
  font-family: 'Emilio', sans-serif;
  font-style: italic;
  font-size: 1.4rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.case-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--accent-color);
  border-radius: 50px;
  font-family: 'Goga', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 1.5rem 0 2.5rem 0;
  color: var(--text-color);
}

/* Add this to your mobile queries at the very bottom */
@media (max-width: 900px) {
  .case-row, .case-row:nth-child(even) { flex-direction: column; gap: 3rem; }
  .case-studies-container { gap: 6rem; }
  .case-title { font-size: 2.5rem; }
  .case-number { font-size: 6rem; margin-bottom: -2rem; }
}

/* ==========================================================================
   14. CASE STUDY GLASS MODALS
   ========================================================================== */
.cs-modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.cs-modal-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto; /* Scrollable inside */
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.cs-modal-overlay.active .cs-modal-box {
  transform: translateY(0);
}

.cs-close-btn {
  position: sticky;
  top: 1.5rem;
  left: 95%; /* Push to right edge */
  width: 40px; height: 40px;
  background: var(--text-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Modal Content Styling */
.cs-modal-content {
  padding: 0 4rem 4rem 4rem;
  margin-top: -20px;
}

.cs-modal-content h2 { font-size: 3rem; font-weight: bold; margin-bottom: 0.5rem; line-height: 1.1;}
.cs-modal-content h3 { font-size: 1.8rem; margin: 3rem 0 1rem 0; color: var(--accent-color); }
.cs-modal-content p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 1.5rem; }

/* Horizontal Mixed Media Gallery */
.cs-media-gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  margin: 2rem 0 3rem 0;
  /* Hide scrollbar for cleaner look */
  scrollbar-width: none; 
}
.cs-media-gallery::-webkit-scrollbar { display: none; }

.cs-gallery-item {
  flex: 0 0 85%; /* Shows 85% of the first item, hinting there is more to scroll */
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.cs-gallery-item img, .cs-gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Measurable Impact Box */
.cs-impact-box {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 3rem;
  border-radius: 16px;
  margin-top: 4rem;
  text-align: center;
}
/* Modal Text & 2-Column Grid (Matches your screenshot) */
.cs-modal-content h2 { font-size: 3rem; font-weight: bold; margin-bottom: 0.5rem; line-height: 1.1;}
.cs-modal-subtitle { font-family: 'Emilio', sans-serif; font-style: italic; font-size: 1.3rem; opacity: 0.8; margin-bottom: 2rem; }

.cs-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  margin-top: 3rem;
}

.cs-text-block h3 { 
  font-family: 'Goga', sans-serif;
  font-size: 0.9rem; 
  text-transform: uppercase; 
  letter-spacing: 2px;
  color: var(--accent-color); /* Changed to Mustard/Accent */
  margin-bottom: 1rem; 
}

.cs-text-block p { 
  font-size: 1.15rem; 
  opacity: 0.9; 
  line-height: 1.6;
  margin-bottom: 0;
}

/* Horizontal Gallery with Physical Arrows */
.gallery-wrapper {
  position: relative;
  margin: 3rem 0;
}

.cs-media-gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none; 
  scroll-behavior: smooth; /* Smooth scrolling for arrows */
}
.cs-media-gallery::-webkit-scrollbar { display: none; }

.cs-gallery-item {
  flex: 0 0 85%; 
  scroll-snap-align: center;
  border-radius: 16px; /* Uniform curved corners */
  overflow: hidden;
  background: var(--card-bg);
}
.cs-gallery-item img, .cs-gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Physical Gallery Arrows & Micro-interactions */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0.6;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.gallery-arrow:hover {
  opacity: 1;
  background: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-50%) scale(1.08); /* Hover pop effect */
}
.prev-arrow { left: -1.5rem; }
.next-arrow { right: -1.5rem; }

/* Pulsing Active Counter */
@keyframes pulse-counter {
  0% { opacity: 0.6; }
  50% { opacity: 1; color: var(--accent-color); }
  100% { opacity: 0.6; }
}
.cs-active-pulse {
  animation: pulse-counter 3s infinite;
  font-family: 'Goga', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Measurable Impact Box (Now Frosted Glass!) */
.cs-impact-box {
  background: var(--glass-bg); /* Applies glass effect */
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px var(--glass-shadow);
  color: var(--text-color);
  padding: 3rem;
  border-radius: 24px; /* Matches main modal curvature */
  margin-top: 4rem;
}
.cs-impact-box h3 { 
  font-family: 'Goga', sans-serif;
  font-size: 1rem; 
  text-transform: uppercase; 
  letter-spacing: 2px;
  color: var(--accent-color); /* Changed to Mustard/Accent */
  margin: 0 0 1.5rem 0;
}
.cs-impact-box p { font-size: 1.3rem; margin-bottom: 0; line-height: 1.6;}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .cs-modal-overlay { padding: 1rem; }
  .cs-modal-content { padding: 0 2rem 2rem 2rem; }
  .cs-modal-content h2 { font-size: 2rem; }
  .cs-gallery-item { flex: 0 0 95%; }
  .cs-close-btn { left: 85%; }
  .cs-text-grid { grid-template-columns: 1fr; gap: 2rem; }
  .prev-arrow { left: 0.5rem; }
  .next-arrow { right: 0.5rem; }
}

/* Case Study Toggle System (Short vs Long Form) */
.cs-short-version, .cs-long-version {
  animation: csFadeIn 0.5s ease forwards;
}

.cs-long-version {
  display: none; /* Hidden by default */
}

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

/* Toggle Buttons */
.cs-toggle-btn {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-family: 'Goga', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1rem 3rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 3rem auto 0 auto; /* Centers the button at the bottom of the text */
}

.cs-toggle-btn:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(234, 160, 35, 0.2); /* Mustard glow */
}

/* ==========================================================================
   10. MEDIA QUERIES (Mobile Responsiveness)
   ========================================================================== */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem 2rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem 2rem; }
  .motion-process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-image { padding-right: 0; order: -1; } 
  .nav-links { display: none; } 
  .glass-box { padding: 2rem; }
  .page-header h1 { font-size: 3rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .lb-close { right: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .process-grid { grid-template-columns: 1fr; gap: 3rem; }
  .process-section h2 { font-size: 2.5rem; margin-bottom: 3rem; }
  .motion-process-grid { grid-template-columns: 1fr; gap: 2rem; }
  .philosophy-pills { flex-direction: column; align-items: center; }
  .pill { width: 100%; max-width: 300px; text-align: center; }
  .motion-philosophy h2, .motion-process h2 { font-size: 2.5rem; }
}

/* ==========================================================================
   15. CONTACT PAGE (The Closer)
   ========================================================================== */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Calendar side is slightly wider */
  gap: 6rem;
  min-height: 75vh;
  align-items: center;
  padding: 4rem 0 8rem 0;
}

.contact-pitch h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  /* Changes the contact headline to Mustard only in Dark Mode */
[data-theme="dark"] .contact-pitch h1 {
  color: var(--accent-color) !important;
}
}

.contact-pitch p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--text-color);
  padding-top: 2rem;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'Goga', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease, color 0.3s ease;
}

.method-item:hover {
  color: var(--accent-color);
  transform: translateX(10px); /* Smooth slide right on hover */
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.method-item:hover .method-icon {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--bg-color);
}

/* The Glass Calendar Container */
.booking-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px var(--glass-shadow);
  border-radius: 24px;
  padding: 1rem;
  height: 700px; 
  overflow: hidden;
  position: relative;
}

/* Mobile Tweaks */
@media (max-width: 900px) {
  .contact-section { grid-template-columns: 1fr; gap: 4rem; }
  .contact-pitch h1 { font-size: 4rem; }
  .booking-card { height: 650px; }
}