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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  color: #f5f5f5;
  background: #0a0a0a;
}

/* Prevent FOUC */
body:not(.js-loaded) #nav-placeholder,
body:not(.js-loaded) #footer-placeholder {
    visibility: hidden;
}

#nav-placeholder:empty {
    min-height: 73px;
}

#footer-placeholder:empty {
    min-height: 100px;
}

/* Prevent FOUC for dynamically loaded elements */
#nav-placeholder:empty::before {
    content: '';
    display: block;
    height: 73px;
}

#footer-placeholder:empty::before {
    content: '';
    display: block;
    height: 100px;
}

body:not(.js-loaded) #nav-placeholder,
body:not(.js-loaded) #footer-placeholder {
    visibility: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode nav {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid #2a2a2a;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.dark-mode .logo {
  color: #f5f5f5;
}

.logo:hover {
  opacity: 0.6;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1a1a1a;
}

body.dark-mode .nav-links a:hover {
  color: #f5f5f5;
}

.theme-toggle {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  transition: color 0.2s;
}

.theme-toggle:hover {
  color: #1a1a1a;
}

body.dark-mode .theme-toggle:hover {
  color: #f5f5f5;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 48px 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 72px;
  font-weight: 300;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 32px;
  max-width: 900px;
}

.hero p {
  font-size: 22px;
  color: #666;
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 64px;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .hero {
    padding: 140px 24px 60px;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 20px;
  }
}

.hero-meta {
  display: flex;
  gap: 48px;
  font-size: 14px;
  color: #999;
}

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

.meta-label {
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  color: #1a1a1a;
  font-size: 14px;
  transition: color 0.3s ease;
}

body.dark-mode .meta-value {
  color: #f5f5f5;
}

/* Work Section */
.work {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
}

.section-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 64px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

body.dark-mode .section-header {
  color: #f5f5f5;
}

.project {
  margin-bottom: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.project-info {
  position: sticky;
  top: 120px;
}

.project-company {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 8px;
}

.project-title {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

body.dark-mode .project-title {
  color: #f5f5f5;
}

.project-description {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 32px;
  transition: color 0.3s ease;
}

.project-impact {
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 32px;
  transition: border-color 0.3s ease;
}

body.dark-mode .project-impact {
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

.impact-number {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -1px;
  color: #1a1a1a;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

body.dark-mode .impact-number {
  color: #f5f5f5;
}

.impact-label {
  font-size: 13px;
  color: #999;
  transition: color 0.3s ease;
}

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

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

.tag {
  font-size: 12px;
  color: #666;
  padding: 6px 12px;
  background: #f8f8f8;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .tag {
  color: #999;
  background: #1a1a1a;
}

.project-visual {
  background: #f8f8f8;
  aspect-ratio: 4/3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .project-visual {
  background: #1a1a1a;
  color: #666;
}

/* Contact Section */
.contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
  border-top: 1px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

body.dark-mode .contact {
  border-top: 1px solid #2a2a2a;
}

.contact h2 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: 32px;
}

.contact p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
  transition: color 0.3s ease;
}

.contact-links {
  display: flex;
  gap: 32px;
}

.contact-link {
  font-size: 16px;
  color: #1a1a1a;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid #1a1a1a;
  transition: opacity 0.2s, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .contact-link {
  color: #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}

.contact-link:hover {
  opacity: 0.6;
}

/* Footer */
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-inner {
    padding: 20px 24px;
  }

  .hero {
    padding: 140px 24px 80px;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 24px;
  }

  .work {
    padding: 80px 24px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }

  .project-info {
    position: relative;
    top: 0;
  }

  .contact {
    padding: 80px 24px;
  }

  .contact h2 {
    font-size: 32px;
  }

  .contact-links {
    flex-direction: column;
    gap: 16px;
  }

  footer {
    padding: 48px 24px;
    flex-direction: column;
    gap: 16px;
  }
}

/* Case Study Styles */
.back-link {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  margin-bottom: 48px;
  display: inline-block;
  transition: color 0.2s;
}

.back-link:hover {
  color: #1a1a1a;
}

body.dark-mode .back-link:hover {
  color: #f5f5f5;
}

.hero-content {
  max-width: 800px;
}

.project-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 16px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

body.dark-mode .hero-meta {
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

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

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
}

.meta-value {
  font-size: 16px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

body.dark-mode .meta-value {
  color: #f5f5f5;
}

.featured-image {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 48px;
}

.image-placeholder {
  background: #f8f8f8;
  aspect-ratio: 16/9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .image-placeholder {
  background: #1a1a1a;
  color: #666;
}

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

.content-section {
  margin-bottom: 80px;
}

h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

body.dark-mode h2 {
  color: #f5f5f5;
}

h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

body.dark-mode h3 {
  color: #f5f5f5;
}

.content p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.callout {
  background: #f8f8f8;
  padding: 32px;
  border-radius: 4px;
  margin: 48px 0;
  transition: background-color 0.3s ease;
}

body.dark-mode .callout {
  background: #1a1a1a;
}

.callout-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 12px;
}

.callout-text {
  font-size: 18px;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

body.dark-mode .callout-text {
  color: #f5f5f5;
}

.impact-stat {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1px;
  color: #1a1a1a;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

body.dark-mode .impact-stat {
  color: #f5f5f5;
}

.stat-label {
  font-size: 14px;
  color: #666;
  transition: color 0.3s ease;
}

.content ul {
  margin: 24px 0;
  padding-left: 20px;
}

.content li {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.case-study-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 48px;
  border-top: 1px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

body.dark-mode .case-study-footer {
  border-top: 1px solid #2a2a2a;
}

.next-project {
  text-align: center;
}

.next-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 16px;
}

.next-link {
  font-size: 24px;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 4px;
  transition: opacity 0.2s, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .next-link {
  color: #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}

.next-link:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 18px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .featured-image {
    margin: 60px auto;
    padding: 0 24px;
  }

  .content {
    padding: 0 24px 80px;
  }

  h2 {
    font-size: 28px;
  }

  .callout {
    padding: 24px;
    margin: 32px 0;
  }

  .case-study-footer {
    padding: 60px 24px 48px;
  }
}

/* Work Section - Updated */
.work {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
}

.project-link {
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.project-link:hover .project-visual-large {
  transform: scale(0.98);
}

.project-link:hover .project-title {
  color: #666;
}

body.dark-mode .project-link:hover .project-title {
  color: #999;
}

.project-single {
  margin-bottom: 80px;
}

.project-visual-large {
  width: 100%;
  aspect-ratio: 2/1;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  border-radius: 0;
  margin-bottom: 40px;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.dark-mode .project-visual-large {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.project-visual-large img {
  width: auto;
  height: 70%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

body.dark-mode .project-visual-large img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.project-info-simple {
  max-width: 800px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
}

.project-company {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-title {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1.05;
  color: #1a1a1a;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

body.dark-mode .project-title {
  color: #f5f5f5;
}

.project-description {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 48px;
  transition: color 0.3s ease;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

body.dark-mode .project-stats {
  border-top: 1px solid #2a2a2a;
}

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

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
}

.stat-value {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

body.dark-mode .stat-value {
  color: #f5f5f5;
}

.view-more {
  margin-top: 80px;
}

.view-more-link {
  font-size: 16px;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2px;
  transition: opacity 0.2s, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .view-more-link {
  color: #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}

.view-more-link:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .work {
    padding: 80px 24px;
  }

  .project-title {
    font-size: 40px;
    letter-spacing: -1.5px;
  }

  .project-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Work Page Hero */
.work-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 48px 80px;
}

.work-hero-inner {
  max-width: 800px;
}

.work-hero h1 {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.work-intro {
  font-size: 20px;
  color: #666;
  line-height: 1.7;
  transition: color 0.3s ease;
}

/* Work List */
.work-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

.work-list-inner {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.work-item {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.work-item:hover .work-item-image {
  transform: scale(0.98);
}

.work-item:hover .work-item-title {
  color: #666;
}

body.dark-mode .work-item:hover .work-item-title {
  color: #999;
}

.work-item-image {
  width: 100%;
  aspect-ratio: 2/1;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  border-radius: 0;
  margin-bottom: 40px;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 14px;
}

body.dark-mode .work-item-image {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  color: #666;
}

.work-item-image img {
  width: auto;
  height: 60%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

body.dark-mode .work-item-image img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.work-item-content {
  max-width: 800px;
}

.work-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.work-company {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
}

.work-year {
  font-size: 13px;
  color: #999;
}

.work-item-title {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

body.dark-mode .work-item-title {
  color: #f5f5f5;
}

.work-item-description {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 48px;
  transition: color 0.3s ease;
}

.work-item-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

body.dark-mode .work-item-stats {
  border-top: 1px solid #2a2a2a;
}

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

.work-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
}

.work-stat-value {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

body.dark-mode .work-stat-value {
  color: #f5f5f5;
}

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

.tag {
  font-size: 12px;
  color: #666;
  padding: 6px 12px;
  background: #f8f8f8;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .tag {
  color: #999;
  background: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-inner {
    padding: 20px 24px;
  }

  .work-hero {
    padding: 140px 24px 60px;
  }

  .work-hero h1 {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .work-intro {
    font-size: 18px;
  }

  .work-list {
    padding: 0 24px 80px;
  }

  .work-list-inner {
    gap: 80px;
  }

  .work-item-title {
    font-size: 36px;
  }

  .work-item-description {
    font-size: 16px;
  }

  .work-item-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  footer {
    padding: 48px 24px;
    flex-direction: column;
    gap: 16px;
  }
}

/* Featured Image */
.featured-image {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 48px;
}

.image-placeholder {
  background: #f8f8f8;
  aspect-ratio: 16/9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .image-placeholder {
  background: #1a1a1a;
  color: #666;
}

/* Content */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

.content-section {
  margin-bottom: 80px;
}

h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

body.dark-mode h2 {
  color: #f5f5f5;
}

h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

body.dark-mode h3 {
  color: #f5f5f5;
}

p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.callout {
  background: #f8f8f8;
  padding: 32px;
  border-radius: 4px;
  margin: 48px 0;
  transition: background-color 0.3s ease;
}

body.dark-mode .callout {
  background: #1a1a1a;
}

.callout-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 12px;
}

.callout-text {
  font-size: 18px;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

body.dark-mode .callout-text {
  color: #f5f5f5;
}

.impact-stat {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1px;
  color: #1a1a1a;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

body.dark-mode .impact-stat {
  color: #f5f5f5;
}

.stat-label {
  font-size: 14px;
  color: #666;
  transition: color 0.3s ease;
}

ul {
  margin: 24px 0;
  padding-left: 20px;
}

li {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

/* Footer */
.case-study-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 48px;
  border-top: 1px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

body.dark-mode .case-study-footer {
  border-top: 1px solid #2a2a2a;
}

.next-project {
  text-align: center;
}

.next-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 16px;
}

.next-link {
  font-size: 24px;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 4px;
  transition: opacity 0.2s, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .next-link {
  color: #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}

.next-link:hover {
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-inner {
    padding: 20px 24px;
  }

  .hero {
    padding: 120px 24px 60px;
  }

  h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 18px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .featured-image {
    margin: 60px auto;
    padding: 0 24px;
  }

  .content {
    padding: 0 24px 80px;
  }

  h2 {
    font-size: 28px;
  }

  .callout {
    padding: 24px;
    margin: 32px 0;
  }

  .case-study-footer {
    padding: 60px 24px 48px;
  }

  footer {
    padding: 48px 24px;
    flex-direction: column;
    gap: 16px;
  }
}

/* Case Study Image */
.case-study-image {
  margin: 48px 0 64px 0;
  cursor: pointer;
}

.case-study-image:hover .image-placeholder {
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 80px 40px 40px 40px;
}

.lightbox-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.lightbox-image img {
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  color: #f5f5f5;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-caption {
  font-size: 14px;
  color: #999;
  text-align: center;
  max-width: 600px;
  margin-top: 24px;
}
