/* ─── Base ──────────────────────────────────── */
html { scroll-behavior: smooth; }

h1 { font-weight: 425 !important; }
h2 { font-weight: 600 !important; }

body {
  background-color: #fdfdfc;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 460;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav blur ──────────────────────────────── */
.nav-blur {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ─── Mobile menu ───────────────────────────── */
#mobile-menu {
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Fade-up scroll reveal ─────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* ─── Image placeholders ────────────────────── */
.img-placeholder {
  background-color: #F0EDE8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #B0A89E;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
}
.img-placeholder-dashed {
  background-color: #F7F4F0;
  border: 2px dashed #C8C0B8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #B0A89E;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
}

/* ─── Case study prose ──────────────────────── */
.cs-prose h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: #1A1A1A;
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.cs-prose h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6E6E73;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.cs-prose p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: #1A1A1A;
  margin-bottom: 1.35rem;
}
.cs-prose p:last-child { margin-bottom: 0; }
.cs-prose ul {
  margin: 0 0 1.35rem 0;
  padding-left: 0;
  list-style: none;
}
.cs-prose ul li {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #1A1A1A;
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.8rem;
}
.cs-prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #6E6E73;
}

/* ─── Problem / research cards ──────────────── */
.problem-card {
  background-color: #f4f4f3;
  border: 1px solid #e8e8e7;
  border-radius: 12px;
  padding: 20px 22px 22px;
}
.problem-num {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #adadab;
  margin-bottom: 10px;
}
.problem-text {
  font-size: 14px;
  line-height: 1.6;
  color: #3A3A3A;
}
.research-card {
  background-color: #f4f4f3;
  border: 1px solid #e8e8e7;
  border-radius: 12px;
  padding: 22px 24px 24px;
}
.research-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #adadab;
  margin-bottom: 10px;
}
.research-text {
  font-size: 14px;
  line-height: 1.65;
  color: #3A3A3A;
}

/* ─── Wide images ────────────────────────────── */
.img-wide {
  margin-left: 0;
  width: 100%;
}

/* ─── Meta grid ─────────────────────────────── */
.meta-cell {
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.07);
}

/* ─── Next project card ──────────────────────── */
.next-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.next-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.08);
}

/* ─── Experience waffle chart ───────────────── */
.exp-blocks-container { position: relative; }
.exp-block-group {
  display: flex;
  gap: 2px;
  transition: none;
  cursor: pointer;
}
.exp-block-cell { flex: 1; height: 100%; border-radius: 2px; }
.exp-blocks-container.has-hover .exp-block-group:not(.active) { opacity: 0.15; }
.exp-blocks-container.has-hover .exp-block-group.active { transition: opacity 0.35s ease-out; }
.exp-tooltip {
  position: fixed;
  transform: translateX(-50%) translateY(calc(-100% + 5px));
  background: #2D2D38;
  color: #fdfdfc;
  font-size: 11px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 200;
}
.exp-tooltip.visible { opacity: 1; transform: translateX(-50%) translateY(-100%); }
.exp-item {
  transition: opacity 0.38s ease;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  border-top-color: transparent !important;
  background-image: linear-gradient(to right, rgba(0,0,0,0.07), rgba(0,0,0,0.07));
  background-repeat: no-repeat;
  background-position: top center;
  background-size: min(48rem, 100% - 3rem) 1px;
}
.exp-item:first-child { background-image: none; }
.project-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}
.project-card:hover { transform: translateY(-2px); background-color: #F5F2EF; }
.blocks-sticky {
  position: sticky;
  top: 48px;
  z-index: 40;
  background: #fdfdfc;
  padding: 20px 0 12px;
}
.industry-pill {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
}
