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

:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-border: #e5e5e5;
  --color-text: #1a1a1a;
  --color-text-secondary: #525252;
  --color-text-muted: #737373;
  --color-hover: #f5f5f5;
  --topbar-height: 56px;
  --mobile-nav-height: 52px;
  --left-panel-width: 32%;
  --right-panel-width: 68%;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
}

/* ── Topbar ── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.topbar-name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
}

.topbar-role {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

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

.topbar-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.topbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition-fast);
}

.topbar-links a:hover {
  color: var(--color-text);
}

.topbar-links a:hover::after {
  width: 100%;
}

/* ── Mobile project nav (hidden on desktop) ── */

.mobile-project-nav {
  display: none;
}

.project-content--about {
  padding: 48px 56px 80px;
}

.project-content--about .open-for-challenges {
  margin-top: 24px;
  margin-bottom: 16px;
}

.project-content--about .left-panel-footer__links {
  flex-direction: row;
  gap: 24px;
}

@media (min-width: 1024px) {
  .project-content--about {
    display: none !important;
  }
}

/* ── Layout ── */

.layout {
  display: flex;
  height: 100vh;
  padding-top: var(--topbar-height);
}

/* ── Left Panel ── */

.left-panel {
  flex: 0 0 var(--left-panel-width);
  width: var(--left-panel-width);
  min-width: 280px;
  height: calc(100vh - var(--topbar-height));
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: 48px 40px;
  position: sticky;
  top: var(--topbar-height);
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
}

.designer-info {
  margin-bottom: 48px;
}

.designer-photo {
  display: none;
}

.left-panel-footer {
  margin-top: auto;
  padding-top: 32px;
}

.open-for-challenges {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 12px;
}

.left-panel-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.left-panel-footer__links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  display: inline-block;
  width: fit-content;
}

.left-panel-footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition-fast);
}

.left-panel-footer__links a:hover {
  color: var(--color-text);
}

.left-panel-footer__links a:hover::after {
  width: 100%;
}

.globe-animation {
  width: 32px;
  height: 32px;
  color: #1a1a1a;
  animation: globe-spin 8s linear infinite;
}

.globe-animation svg {
  width: 100%;
  height: 100%;
}

@keyframes globe-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.designer-bio {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
}

.project-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.project-link {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  width: fit-content;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.project-link-text {
  position: relative;
}

.project-link-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition-fast);
}

.project-link:hover .project-link-name,
.project-link:hover .project-link-arrow {
  color: var(--color-text);
}

.project-link:hover .project-link-text::after {
  width: 100%;
}

.project-link-name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: font-weight var(--transition-fast), color var(--transition-fast);
}

.project-link.active .project-link-name {
  font-weight: 500;
  color: var(--color-text);
}

.project-link-arrow {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-left: 2px;
}

.project-link:not(.active) .project-link-arrow {
  display: none;
}

.project-link.active .project-link-arrow {
  color: var(--color-text);
}

.project-link-years {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 4px;
}

/* ── Right Panel ── */

.right-panel {
  flex: 0 0 var(--right-panel-width);
  width: var(--right-panel-width);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  background: #ffffff;
}

.right-panel::-webkit-scrollbar {
  width: 6px;
}

.right-panel::-webkit-scrollbar-track {
  background: transparent;
}

.right-panel::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ── Project Content ── */

.project-content {
  display: none;
  padding: 48px 56px 80px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.project-content.active {
  display: block;
}

.project-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-title {
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-text);
}

.project-role {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.project-responsibilities {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.project-years-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.project-years-wrap .project-years {
  margin-bottom: 0;
}

.project-years {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.project-production-link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.project-production-link:hover {
  color: var(--color-text);
}

.project-production-link__icon {
  display: inline-flex;
  align-items: center;
}

.project-production-link__icon svg {
  flex-shrink: 0;
}

.project-case-block-years-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-case-block-years-wrap .project-case-block-years {
  margin-bottom: 0;
}

.project-case-block-years-wrap .project-production-link {
  font-size: 1rem;
}

.project-mockups {
  display: flex;
  gap: 16px;
  margin: 32px 0;
  margin-right: -56px;
  width: calc(100% + 56px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.project-mockups::-webkit-scrollbar {
  height: 6px;
}

.project-mockups::-webkit-scrollbar-track {
  background: transparent;
}

.project-mockups::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.project-mockups::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

.mockup-phone {
  width: 208px;
  flex-shrink: 0;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border-radius: 8px;
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
}

.mockup-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-metrics {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.project-metrics--cards {
  gap: 24px;
}

/* Figma-style metrics: label + large value + struck-through old value */
.project-metrics--figma {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.project-metric-figma {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.project-metric-figma__label {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.375;
  color: var(--color-text);
}

.project-metric-figma__values {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.project-metric-figma__value {
  font-size: 2.625rem;
  font-weight: 400;
  line-height: 1.14;
  color: var(--color-text);
}

.project-metric-figma__value--old {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text);
  text-decoration: line-through;
  opacity: 0.3;
}

.project-metric-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
  background: #f7f7f7;
  border-radius: 12px;
  min-width: 120px;
}

.project-metric-card__label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-metric-card__value {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.metric {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.project-metrics .metric {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 400;
}

.project-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 40px;
}

.project-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.project-more-details {
  margin-top: 48px;
}

.project-more-summary {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-more-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 1rem;
  font-variation-settings: 'opsz' 20, 'wght' 400;
  transition: transform 0.2s ease;
}

.project-more-details.is-open .project-more-icon {
  transform: rotate(180deg);
}

.project-more-content {
  margin-top: 16px;
}

.project-more-content .project-subtitle:first-child {
  margin-top: 0;
}

.project-text-block--gray {
  background-color: #F5F5F5;
  border-radius: 40px;
  padding: 24px;
  margin: 40px 0;
  text-align: center;
}

.project-text-block--gray .project-text {
  font-size: 20px;
  margin-bottom: 12px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .project-text-block--gray .project-text {
    max-width: 100%;
  }
}

.project-text-block--gray .project-text:last-child {
  margin-bottom: 0;
}

.project-goal-card {
  background-color: #f5f5f5;
  background-image: url('assets/chart-cover.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 40px;
  padding: 24px 24px 20px;
  margin: 40px 0;
  border: none;
  text-align: center;
  overflow: hidden;
}

.project-goal-card .project-goal-title,
.project-goal-card .project-text {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.project-goal-card .project-text {
  margin-bottom: 0;
}

.project-goal-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 6px;
}

.project-chart-placeholder {
  width: 100%;
  height: 100px;
}

.project-matrix-image {
  margin: 32px 0;
}

.project-matrix-image img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.project-comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.comparison-column {
  background: #fafafa;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--color-border);
}

.comparison-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 16px;
}

.comparison-section {
  margin-bottom: 16px;
}

.comparison-section:last-child {
  margin-bottom: 0;
}

.comparison-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 8px;
}

.comparison-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comparison-section li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.comparison-section li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

/* ── Project case block (phones left, content right) ── */

.project-case-block {
  margin: 40px 0;
}


/* ── Project case carousel (multiple project cards) ── */

.project-case-carousel {
  margin: 40px 0;
  overflow: hidden;
}

.project-case-carousel-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}

.project-case-carousel-track::-webkit-scrollbar {
  display: none;
}

.project-case-carousel .project-case-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: start;
}

.project-case-block-main {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.project-case-block-main:has(.project-case-block-problems-list) .project-case-block-content {
  padding-top: 16px;
}

.project-case-block--experiment .project-case-block-main {
  align-items: flex-start;
}

.project-case-block--experiment .project-case-block-content {
  padding-top: 16px;
}

.project-case-block--experiment .project-case-block-phones-wrap {
  max-width: 520px;
}

.project-experiment-image {
  width: 473px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

.project-experiment-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top;
}

.project-case-block-phones-wrap {
  flex-shrink: 0;
  max-width: 45%;
  overflow: hidden;
}

.project-case-block-phones {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.project-case-block-phones::-webkit-scrollbar {
  display: none;
}

.project-case-block-phones .project-case-phone {
  width: 220px;
  flex-shrink: 0;
}

.project-case-block-phones .mockup-screen-img {
  object-fit: contain;
}

.project-case-block-content {
  flex: 1;
  min-width: 0;
}

.project-case-block-arrows {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.project-case-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.project-case-arrow:hover {
  color: var(--color-text);
  background: var(--color-hover);
  border-color: var(--color-text-muted);
}

.project-case-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.project-case-block-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.project-case-block-metrics {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.project-case-block-figma-element {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.project-case-block-figma-text {
  font-size: 1rem;
  line-height: 1.375;
  color: var(--color-text);
  margin: 0;
}

.project-case-block-problems-intro {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 16px;
}

.project-case-block-problems-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-case-block-problems-list li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
}

.project-case-block-problems-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: url('images/Projects/Doctors/heart-icon.svg') no-repeat center;
  background-size: contain;
}

.project-case-block-problems-list li:last-child {
  margin-bottom: 0;
}

.project-case-block-description {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 12px;
}

.project-case-block-years {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.project-hero {
  margin-top: 24px;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  border-radius: 8px;
}

/* ── Role list (responsibilities under role) ── */

.project-role-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.project-role-list li {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-secondary);
  padding-left: 16px;
  position: relative;
}

.project-role-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

/* ── Generic project list ── */

.project-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.project-list li {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  padding: 0 0 0 14px;
  margin-bottom: 8px;
  position: relative;
}

.project-list li:last-child {
  margin-bottom: 0;
}

.project-list--compact {
  gap: 4px;
}

.project-list--compact li {
  margin-bottom: 0;
}

.project-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

/* ── Horizontal images row (20px gap) ── */

.project-images-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 32px 0;
}

.project-images-row__img {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.project-images-row--compact .project-images-row__img {
  flex: 0 0 auto;
  max-width: 260px;
  min-width: unset;
}

/* ── Image placeholders ── */

.project-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
  border-radius: 16px;
  margin: 32px 0;
}

.project-image-placeholder--hero {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
}

.project-image-placeholder--wide {
  aspect-ratio: 2 / 1;
}

.project-image-placeholder--square {
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 12px;
}

/* ── Section label (h3 sub-subtitle, same style as Market Opportunity) ── */

.project-section-label {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: 48px;
  margin-bottom: 16px;
}

/* ── Wants / Solves table ── */

.project-wants-solves-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 48px 0 40px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
}

.project-wants-solves-table__header {
  font-size: 16px;
  font-weight: 400;
  padding: 16px 20px;
  background: #f7f7f7;
  color: var(--color-text-secondary);
}

.project-wants-solves-table__cell {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  padding: 12px 20px;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
}

.project-wants-solves-table__cell--right {
  border-left: 1px solid var(--color-border);
}

.project-wants-solves-table__header.project-wants-solves-table__cell--right {
  border-left: 1px solid var(--color-border);
}

/* ── Accent text ── */

.project-text--accent {
  font-weight: 500;
  color: var(--color-text);
  margin-top: -16px;
}

/* ── Design challenges grid ── */

.project-challenges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 40px;
}

.project-challenge {
  background: #f7f7f7;
  border-radius: 16px;
  padding: 24px 28px;
}

.project-challenge-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.project-challenge-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ── Improvements grid ── */

.project-improvements {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 8px 0 40px;
}

.project-improvement {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.project-improvement .project-image-placeholder--square,
.project-improvement__img {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}

.project-improvement-content {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.project-improvement-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.project-improvement-metric {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ── Mobile ── */

@media (max-width: 768px) {
  html, body {
    height: 100%;
    overflow: hidden;
    max-width: 100vw;
  }

  .topbar {
    padding: 0 20px;
  }

  .topbar-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .topbar-name {
    font-size: 1rem;
    word-spacing: -0.5px;
  }

  .topbar-role {
    font-size: 1rem;
    word-spacing: -0.5px;
  }

  .topbar-links {
    gap: 20px;
  }

  .topbar-links a {
    font-size: 1rem;
  }

  .topbar-links .telegram-link {
    display: none;
  }

  /* Mobile project nav — second level under header */
  .mobile-project-nav {
    display: block;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 99;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.25s ease;
    max-width: 100vw;
  }

  .mobile-project-nav.mobile-nav-hidden {
    transform: translateY(-100%);
  }

  .layout {
    transition: top 0.25s ease;
  }

  .layout.mobile-nav-hidden {
    top: var(--topbar-height);
  }

  .mobile-project-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 12px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-project-list::-webkit-scrollbar {
    display: none;
  }

  .mobile-project-nav .project-link {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: opacity var(--transition-fast);
  }

  .mobile-project-nav .project-link:hover .project-link-name,
  .mobile-project-nav .project-link:hover .project-link-arrow {
    color: var(--color-text);
  }

  .mobile-project-nav .project-link:hover .project-link-text::after {
    width: 100%;
  }

  .mobile-project-nav .project-link .project-link-name {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-secondary);
  }

  .mobile-project-nav .project-link.active .project-link-name {
    font-weight: 600;
    color: var(--color-text);
  }

  .mobile-project-nav .project-link .project-link-arrow {
    display: none;
  }

  .mobile-project-nav .project-link-text::after {
    display: none;
  }

  .mobile-project-nav .project-link .project-link-years {
    font-size: 0.875rem;
    color: var(--color-text-muted);
  }

  .layout {
    position: fixed;
    top: calc(var(--topbar-height) + var(--mobile-nav-height));
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding-top: 0;
    overflow: hidden;
  }

  .left-panel {
    display: none;
  }

  .designer-photo {
    display: none;
  }

  .right-panel {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .project-content {
    padding: 32px 20px 80px;
    min-width: 0;
    overflow-x: hidden;
  }

  .project-content--about {
    padding: 32px 20px 80px;
    min-width: 0;
    overflow-x: hidden;
  }

  .project-content--about .left-panel-footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .project-content--about .left-panel-footer__links a {
    display: inline-block;
    padding: 12px 20px;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 50px;
    font-weight: 500;
  }

  .project-content--about .left-panel-footer__links a::after {
    display: none;
  }

  .project-content--about .left-panel-footer__links a:hover {
    color: var(--color-bg);
    opacity: 0.9;
  }

  .project-title {
    font-size: 1.75rem;
  }

  .project-role {
    font-size: 1rem;
  }

  .project-responsibilities {
    font-size: 1rem;
  }

  .project-years-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .project-case-block-years-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .project-mockups {
    gap: 12px;
    margin: 24px 0;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .mockup-phone {
    width: 140px;
    flex-shrink: 0;
    max-width: 45vw;
  }

  .mockup-screen-img {
    object-fit: contain;
  }

  .project-metrics {
    gap: 12px;
    margin-bottom: 24px;
  }

  .project-metrics--cards {
    gap: 16px;
  }

  .project-metrics--figma {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .project-metric-figma__label {
    font-size: 1rem;
  }

  .project-metric-figma__value {
    font-size: 2rem;
  }

  .project-metric-figma__value--old {
    font-size: 1rem;
  }

  .project-metric-card {
    padding: 12px 18px;
    min-width: 100px;
  }

  .project-metric-card__label {
    font-size: 0.75rem;
  }

  .project-metric-card__value {
    font-size: 1.0625rem;
  }

  .project-metrics .metric {
    font-size: 1rem;
  }

  .project-text {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .hero-image-placeholder {
    aspect-ratio: 4 / 3;
  }

  .project-goal-card {
    padding: 24px 20px 16px;
    margin: 32px 0;
  }

  .project-goal-card .project-goal-title,
  .project-goal-card .project-text {
    max-width: 90%;
  }

  .project-chart-placeholder {
    height: 80px;
  }

  .project-comparison-table {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-matrix-image img {
    width: 100%;
  }

  .project-case-block {
    margin: 32px 0;
  }

  .project-case-block-main {
    flex-direction: column;
    gap: 24px;
  }

  .project-case-block-phones-wrap {
    max-width: 100%;
    overflow: visible;
  }

  .project-case-carousel .project-case-block-phones-wrap {
    overflow: visible;
  }

  .project-case-block-phones {
    gap: 12px;
  }

  .project-case-block-phones .project-case-phone {
    width: 140px;
    max-width: 45vw;
  }

  .project-case-block-arrows {
    margin-top: 20px;
  }

  .project-case-arrow {
    width: 40px;
    height: 40px;
  }

  .project-case-carousel {
    margin: 32px 0;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .project-case-carousel .project-case-block-main {
    flex-direction: column;
  }

  .project-case-carousel .project-case-block-phones-wrap {
    max-width: 100%;
  }

  .project-case-block--experiment .project-case-block-phones-wrap {
    max-width: 100%;
    order: 1;
  }

  .project-case-block--experiment .project-case-block-content {
    order: 0;
    padding-top: 0;
  }

  .project-experiment-image {
    width: 100%;
    max-width: 100%;
  }

  .project-experiment-image img {
    max-width: 100%;
    height: auto;
  }

  .project-role-list {
    margin-bottom: 24px;
  }

  .project-role-list li {
    font-size: 0.875rem;
  }

  .project-list li {
    font-size: 1rem;
    line-height: 1.4;
    padding: 0 0 0 14px;
    margin-bottom: 8px;
  }

  .project-list li::before {
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
  }

  .project-image-placeholder {
    margin: 24px 0;
    border-radius: 12px;
  }

  .project-image-placeholder--hero {
    border-radius: 16px;
  }

  .project-section-label {
    margin-top: 40px;
    margin-bottom: 14px;
  }

  .project-wants-solves-table {
    margin: 40px 0 32px;
  }

  .project-wants-solves-table__header,
  .project-wants-solves-table__cell {
    padding: 12px 16px;
    font-size: 16px;
  }

  .project-challenge {
    padding: 20px 22px;
    border-radius: 12px;
  }

  .project-improvement {
    gap: 16px;
  }

  .project-improvement .project-image-placeholder--square,
  .project-improvement__img {
    width: 88px;
    height: 88px;
    border-radius: 10px;
  }

  .project-images-row {
    margin: 24px 0;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .project-images-row::-webkit-scrollbar {
    display: none;
  }

  .project-images-row__img {
    width: 208px;
    min-width: 208px;
    max-width: 208px;
    flex-shrink: 0;
  }

  .project-images-row--compact .project-images-row__img {
    width: 208px;
    min-width: 208px;
    max-width: 208px;
  }

  .project-improvement-content {
    padding-top: 4px;
  }

  .project-improvement-title {
    font-size: 1rem;
  }

  .project-improvement-metric {
    font-size: 0.875rem;
  }
}
