/* ── Models Hero ── */
.mhero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 56px 48px 0;
  max-width: 1440px;
  margin: 0 auto;
  gap: 32px;
  overflow: hidden;
}

.mhero__left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mhero__heading {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
  margin: 20px 0 18px;
}

.mhero__heading em {
  font-style: italic;
  color: #999;
}

.mhero__sub {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #555;
}

.mhero__right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.mhero__img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* Active nav link */
.nav__link--active {
  color: #111 !important;
  font-weight: 500;
  position: relative;
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #111;
  border-radius: 2px;
}

/* ── Models Layout ── */
.models-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 48px 64px;
  align-items: start;
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 20px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: #666;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-tab:hover { background: #f3f3f2; color: #111; }

.filter-tab--active {
  background: #111;
  color: #fff;
}

.filter-tab--active:hover { background: #222; color: #fff; }

.filter-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}

.compare-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: #666;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.compare-btn:hover { background: #f3f3f2; color: #111; }

/* ── Model List ── */
.model-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.model-card:hover {
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Thumbnail */
.model-card__thumb {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  background: #f3f3f2;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.model-thumb__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.model-thumb__size {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}

/* Info */
.model-card__info {
  flex: 1;
  min-width: 0;
}

.model-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.model-card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
}

.model-tag {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f0f0ef;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.model-tag--green {
  background: #dcfce7;
  color: #16a34a;
}

.model-card__desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}

.model-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #888;
}

.meta-dot { color: #ccc; }

/* Metrics */
.model-card__metrics {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 130px;
}

.metric__label {
  font-size: 0.72rem;
  color: #888;
  display: block;
  margin-bottom: 4px;
}

.metric__dots {
  display: flex;
  gap: 3px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e0e0e0;
  flex-shrink: 0;
}

.dot--filled { background: #111; }

.dot--half {
  background: linear-gradient(90deg, #111 50%, #e0e0e0 50%);
}

/* Arrow */
.model-card__arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f3f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #444;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  text-decoration: none;
}

.model-card:hover .model-card__arrow {
  background: #111;
  color: #fff;
  transform: translate(2px, -2px);
}

/* View all */
.view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.view-all-btn {
  padding: 13px 36px;
  font-size: 0.9rem;
}

/* ── Sidebar ── */
.sidebar-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar__title {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.sidebar-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.sidebar-feature:last-of-type { border-bottom: 1px solid rgba(0,0,0,0.06); }

.sidebar-feature__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #f3f3f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-feature h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.sidebar-feature p {
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.55;
}

.sidebar-research-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: #111;
  font-weight: 500;
  transition: opacity 0.15s;
}

.sidebar-research-link:hover { opacity: 0.6; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .models-layout {
    grid-template-columns: 1fr;
    padding: 24px 28px 48px;
  }

  .mhero { padding: 40px 28px 0; }

  .models-sidebar { display: none; }
}

@media (max-width: 640px) {
  .mhero {
    grid-template-columns: 1fr;
    padding: 32px 20px 0;
  }

  .mhero__right { display: none; }

  .models-layout { padding: 20px 20px 40px; }

  .model-card {
    flex-wrap: wrap;
    gap: 14px;
  }

  .model-card__metrics { min-width: auto; width: 100%; }

  .filter-tabs { gap: 2px; overflow-x: auto; }
  .filter-tab { padding: 7px 12px; font-size: 0.8rem; }
}
