/* ==========================================================
   MAGAZINE HUB · editorial grid + filter chips
   ========================================================== */

/* ============ HERO ============ */
.mag-hero {
  background: linear-gradient(180deg, #FAFAF8 0%, #F4F1ED 100%);
  padding: 100px 56px 64px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.mag-hero-inner { max-width: 1320px; margin: 0 auto; position: relative; }

.mag-eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--hairline);
  margin-bottom: 28px;
}

.mag-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.035em;
  color: var(--ink-1); margin: 0 0 26px;
}
.mag-hero h1 .grad,
.mag-hero h1 .grad-alt {
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
  font-family: var(--font-serif, 'Source Serif Pro', Georgia, serif);
  font-weight: 500;
}
.mag-hero h1 .grad { background-image: linear-gradient(90deg, #FB993F, #F83C72); }
.mag-hero h1 .grad-alt { background-image: linear-gradient(90deg, #A78BFA, #4D01B4); }

.mag-lede {
  font-size: 19px; line-height: 1.55; color: var(--ink-3);
  max-width: 760px; margin: 0 0 40px;
}

.mag-stat-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 14px; color: var(--ink-3);
  align-items: center;
}
.mag-stat-row strong {
  color: var(--ink-1); font-weight: 600;
  font-size: 18px; margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

/* ============ GRID SECTION ============ */
.mag-grid-section {
  padding: 80px 56px 120px;
  background: #fff;
}
.mag-wrap { max-width: 1320px; margin: 0 auto; }

.mag-section-head { margin-bottom: 32px; }
.mag-section-head .section-h {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink-1); margin: 8px 0 0;
}

/* ============ FILTERS · matches client-case-page filterbar ============ */
.mag-filterbar {
  /* Inherit base from .filterbar in case.css; just adjust spacing for hub */
  margin-bottom: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* ============ GRID ============ */
.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ============ CARD ============ */
.mag-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none; color: inherit;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 220px;
}
.mag-card:hover:not(.not-clickable) {
  border-color: var(--ink-3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.mag-card.not-clickable { cursor: default; }

/* CASE vs USE CASE · subtle: case has slightly warmer fill, use case has plain white */
.mag-card.mag-case {
  background: #FEFBF7;
}
.mag-card.mag-pattern {
  background: #fff;
}

/* Path: industry × domain */
.mag-path {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 11px;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-4);
}
.mag-path-ind { color: var(--ink-3); }
.mag-path-sep { color: var(--ink-4); opacity: 0.5; }
.mag-path-dom { color: var(--ink-3); }

/* Title */
.mag-card-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; line-height: 1.25; letter-spacing: -0.012em;
  color: var(--ink-1);
  margin: 0;
  text-wrap: pretty;
}

/* Oneliner */
.mag-card-one {
  font-size: 14px; line-height: 1.55; color: var(--ink-3);
  margin: 0;
  flex: 1;
}

/* Footer */
.mag-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 12px; margin-top: auto;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-display); font-size: 12px;
}
.mag-card.mag-case .mag-card-foot {
  border-top-color: rgba(0,0,0,0.06);
}
.mag-card-kind { color: var(--ink-4); font-weight: 500; }
.mag-card.mag-case .mag-card-kind {
  color: var(--ink-2); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.mag-card.mag-case .mag-card-kind::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ind-color, var(--brand-orange));
}
.mag-card-arr { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.mag-card:hover:not(.not-clickable) .mag-card-arr { color: var(--ink-1); }

/* Status label inside client-case kind footer */
.mag-card-status {
  font-weight: 600; letter-spacing: 0.02em;
}
.mag-card-status.live { color: #059669; }
.mag-card-status.building { color: #B86A1C; }
.mag-card-status.concept { color: #6D49C5; }

/* Empty state */
.mag-empty {
  padding: 60px 24px; text-align: center;
  font-size: 15px; color: var(--ink-3);
  background: #FAFAF8; border-radius: 14px;
  border: 1px dashed var(--hairline);
}

.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--brand-purple);
  font-family: var(--font-display); font-weight: 600; font-size: inherit;
  text-decoration: none; cursor: pointer;
}
.link-btn:hover { color: var(--brand-orange); }

/* Responsive */
@media (max-width: 1100px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .mag-hero, .mag-grid-section { padding-left: 20px; padding-right: 20px; }
  .mag-hero { padding-top: 56px; padding-bottom: 40px; }
  .mag-hero h1, .mag-hero .lede { font-size: clamp(30px, 7.8vw, 38px); line-height: 1.05; }
  .mag-lede { font-size: 16px; line-height: 1.5; }
  .mag-grid { grid-template-columns: 1fr; gap: 14px; }
  .mag-card { padding: 22px; }
  .mag-card-title { font-size: 19px; line-height: 1.2; }
  .mag-card-one { font-size: 14px; }
  .mag-filterbar { gap: 6px; flex-wrap: wrap; }
  .mag-filterbar .chip, .filterbar .chip { font-size: 12px; padding: 6px 12px; }
  .mag-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
