@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@200;400&family=Public+Sans:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FAFAFA;
  color: #000;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.6;
}

/* Header */
header {
  background-color: #FAFAFA;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 0;
}

.header-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #DCDCDC;
}

.site-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
  font-size: 13px;
}

.intro-section {
  padding-bottom: 48px;
  margin-bottom: 64px;
  border-bottom: 1px solid #DCDCDC;
  width: 100%;
}

.intro-text {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 920px;
}

.intro-text:last-child {
  margin-bottom: 0;
}

/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 48px;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  align-items: start;
  margin-bottom: 64px;
}

.case-card {
  display: block;
  transition: transform 0.2s;
}

.case-card:hover {
  transform: translateY(-4px);
}

.case-meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}

.case-title {
  font-size: 26px;
  font-weight: 200;
  line-height: 1.3;
  font-family: 'Newsreader', Georgia, serif;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.case-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  letter-spacing: -0.005em;
  margin-bottom: 16px;
}

.case-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* Case Study Detail */
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

.detail-content {
  max-width: 720px;
}

.project-meta {
  display: flex;
  gap: 0;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  width: 100%;
}

.project-meta > div {
  flex: 1;
}

.meta-label {
  display: block;
  margin-bottom: 4px;
}

.meta-value {
  color: #000;
  font-weight: 500;
}

.project-title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  font-family: 'Public Sans', sans-serif;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.context-text {
  font-size: 18px;
  line-height: 1.6;
  color: #222;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-image {
  width: 88%;
  margin-left: auto;
  margin-right: auto;
  background-color: #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 48px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hero-image img:hover {
  opacity: 0.9;
}

/* Typography */
h2 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  font-family: 'Public Sans', sans-serif;
  letter-spacing: -0.02em;
  margin: 48px 0 20px 0;
}

h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  font-family: 'Public Sans', sans-serif;
  letter-spacing: -0.01em;
  margin: 32px 0 16px 0;
}

p {
  font-size: 16px;
  line-height: 1.65;
  color: #333;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
}

/* Lists */
ul {
  font-size: 16px;
  line-height: 1.65;
  color: #333;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
  padding-left: 0;
  list-style: none;
}

ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #000;
}

/* Blockquote */
blockquote {
  font-size: 48px;
  line-height: 1.3;
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-style: italic;
  margin: 80px auto;
  padding: 72px 80px 72px 120px;
  max-width: 1000px;
  background: linear-gradient(135deg, #F8F8F8 0%, #FAFAFA 100%);
  border-left: 6px solid #000;
  position: relative;
  color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

blockquote * {
  font-size: 48px !important;
  line-height: 1.3 !important;
}

blockquote::before {
  content: '"';
  font-size: 220px;
  line-height: 0;
  position: absolute;
  left: 28px;
  top: 64px;
  color: rgba(0, 0, 0, 0.08);
  font-family: 'Newsreader', serif;
  font-weight: 200;
}

blockquote::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #000 0%, #666 100%);
}

/* Images */
figure {
  margin: 40px 0;
  width: 100%;
}

.figure-image {
  width: 88%;
  margin-left: auto;
  margin-right: auto;
  background-color: #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.figure-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.figure-image img:hover {
  opacity: 0.9;
}

figcaption {
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* Lightbox Modal */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  width: auto;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2001;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Metrics Section */
.metrics-section {
  margin: 32px 0;
  padding: 40px 0;
  border-top: 1px solid #DCDCDC;
  border-bottom: 1px solid #DCDCDC;
}

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

.metric-value {
  font-size: 40px;
  font-weight: 200;
  font-family: 'Newsreader', Georgia, serif;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.metric-description {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Footer */
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.footer-content {
  padding-top: 32px;
  border-top: 1px solid #DCDCDC;
  text-align: center;
}

.footer-text {
  font-size: 12px;
  color: #999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .intro-text {
    font-size: 28px;
  }
  
  .project-title {
    font-size: 32px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  blockquote {
    font-size: 28px;
    margin: 48px auto;
    padding: 48px 40px 48px 60px;
    max-width: 100%;
  }

  blockquote * {
    font-size: 28px !important;
  }

  blockquote::before {
    font-size: 120px;
    left: 12px;
    top: 32px;
  }
}