*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
:root {
  --text-primary: #0f0f0f;
  --text-secondary: #6b6b6b;
  --text-tertiary: #a0a0a0;
  --bg: #fafaf8;
  --bg-card: #ffffff;
  --bg-active: #ffffff;
  --border: rgba(0,0,0,0.07);
  --border-hover: rgba(0,0,0,0.13);
  --shadow-rest: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --left-width: 320px;
}
 
html, body { height: 100%; overflow: hidden; }
 
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
 
/* TOP NAV */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  z-index: 10;
}
 
.nav-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
 
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
 
.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
 
.nav-links a:hover { color: var(--text-primary); }
 
/* MAIN SPLIT */
.split {
  display: grid;
  grid-template-columns: var(--left-width) 1fr;
  flex: 1;
  overflow: hidden;
}
 
/* LEFT PANEL */
.left {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
 
.left-header {
  padding: 28px 20px 16px;
  border-bottom: 1px solid var(--border);
}
 
.left-header h1 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
 
.left-header h1 em {
  font-style: italic;
  color: var(--text-secondary);
}
 
.left-header p {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}
 
.left-section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 16px 20px 8px;
}
 
/* PROJECT CARDS IN LEFT */
.card-list {
  padding: 4px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.proj-card {
  padding: 14px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  background: transparent;
  text-align: left;
  width: 100%;
  font-family: var(--font-sans);
}
 
.proj-card:hover {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-rest);
}
 
.proj-card.active {
  background: var(--bg-card);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}
 
.proj-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
 
.tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: #f0ede8;
  padding: 2px 6px;
  border-radius: 4px;
}
 
.proj-card-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
}
 
.proj-card-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.45;
}
 
/* ABOUT CARD IN LEFT */
.about-card {
  margin: 0 12px 24px;
  padding: 14px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  text-align: left;
  width: calc(100% - 24px);
  font-family: var(--font-sans);
  background: transparent;
}
 
.about-card:hover {
  background: var(--bg-card);
  border-color: var(--border);
}
 
.about-card.active {
  background: var(--bg-card);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-rest);
}
 
.about-card-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
 
.about-card-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}
 
/* RIGHT PANEL */
.right {
  overflow-y: auto;
  background: var(--bg);
  position: relative;
}
 
.right-content {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
  position: absolute;
  inset: 0;
  padding: 48px 56px 80px;
}
 
.right-content.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  position: relative;
}
 
/* EMPTY STATE */
.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.3s var(--ease);
}
 
.empty-state.hidden { opacity: 0; pointer-events: none; }
 
.empty-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-hover);
}
 
.empty-state p {
  font-size: 13px;
  color: var(--text-tertiary);
}
 
/* CASE STUDY CONTENT */
.case-hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0ede8 0%, #e4e0d8 100%);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
 
.case-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 
.case-hero-image .placeholder-label {
  font-size: 13px;
  color: var(--text-tertiary);
}
 
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}
 
.case-meta-item {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
 
.case-meta-item:last-child { border-right: none; }
 
.case-meta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
 
.case-meta-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}
 
.case-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
 
.case-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 48px;
  max-width: 560px;
}
 
.case-section {
  margin-bottom: 48px;
}
 
.case-section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
 
.case-section h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.3;
}
 
.case-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}
 
.case-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: #f0ede8;
  border: 1px solid var(--border);
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.case-image span {
  font-size: 13px;
  color: var(--text-tertiary);
}
 
.case-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
 
/* ABOUT CONTENT */
.about-content {
  max-width: 600px;
}
 
.about-content h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}
 
.about-content h2 em {
  font-style: italic;
  color: var(--text-secondary);
}
 
.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 20px;
}
 
.about-content strong { color: var(--text-primary); font-weight: 500; }
 
.about-links {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
 
.about-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
 
.about-link:hover {
  background: var(--bg-card);
  border-color: var(--text-tertiary);
}
 
/* SCROLLBARS */
.left::-webkit-scrollbar,
.right::-webkit-scrollbar { width: 4px; }
.left::-webkit-scrollbar-track,
.right::-webkit-scrollbar-track { background: transparent; }
.left::-webkit-scrollbar-thumb,
.right::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }
 
/* MOBILE */
@media (max-width: 720px) {
  html, body { height: auto; overflow: auto; }
  .split { grid-template-columns: 1fr; }
  .left { border-right: none; border-bottom: 1px solid var(--border); overflow: visible; }
  .right { overflow: visible; }
  .right-content { position: relative; inset: auto; padding: 32px 24px 64px; }
  .right-content.visible { position: relative; }
  .empty-state { display: none; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta-item:nth-child(2) { border-right: none; }
  .case-image-grid { grid-template-columns: 1fr; }
}