/* ============================================================
   FLITZEN - Work-by-type template (Websites / Phone Apps / Software)
   Extends styles.css + works.css - Mayfair Editorial
   ============================================================ */

/* ============================================================
   TYPE HERO - display title + type index panel
   ============================================================ */
.wt-hero {
  padding-top: clamp(122px, 15vw, 188px);
  padding-bottom: clamp(34px, 4vw, 58px);
}
.wt-hero .crumbs { margin-bottom: clamp(26px, 3vw, 40px); }
.wt-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(34px, 5vw, 96px);
  align-items: end;
}
.wt-h1 {
  font-size: clamp(54px, 9vw, 152px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-top: clamp(16px, 1.8vw, 26px);
}
.wt-hero .lead {
  max-width: 46ch;
  margin-top: clamp(24px, 2.4vw, 34px);
  color: var(--gray-1);
  font-size: clamp(17px, 1.25vw, 21px);
}

/* type index panel - the template's switchboard */
.type-index {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
}
.type-index .ti-head {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-2);
  padding: 20px 26px 14px;
}
.ti-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 26px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 1.5vw, 23px);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: background 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.ti-item:hover { background: var(--paper-2); padding-left: 32px; }
.ti-item .ti-count {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 4px 11px;
  font-variant-numeric: tabular-nums;
}
.ti-item .ti-go { font-size: 15px; color: var(--gray-2); transition: transform 0.4s var(--ease), color 0.3s; }
.ti-item:hover .ti-go { transform: translate(2px, -2px); color: var(--ink); }
.ti-item.current {
  background: var(--ink);
  color: #fff;
}
.ti-item.current:hover { padding-left: 26px; }
.ti-item.current .ti-count { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.3); }
.ti-item.current em { font-style: italic; }

/* ============================================================
   INDEX - full project list with hover preview
   ============================================================ */
.wt-index .sec-head { grid-template-columns: 1fr auto; align-items: end; }

/* chip bar (auto-generated from data groups) - full-width mosaic */
.wt-bar {
  margin-bottom: clamp(28px, 3vw, 42px);
  padding-bottom: clamp(22px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line-strong);
}
.wt-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 10px;
  width: 100%;
}
.wt-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 14px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.3s var(--ease);
}
.wt-chip .tx {
  overflow: hidden;
  text-overflow: ellipsis;
}
.wt-chip .ct { margin-left: auto; }
.wt-chip .ic {
  display: inline-flex;
  flex: none;
}
.wt-chip .ic svg {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}
.wt-chip .ct {
  font-size: 12px;
  color: var(--gray-2);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 2px 9px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.wt-chip:hover { border-color: var(--ink); }
.wt-chip:hover .ic svg { opacity: 1; }
.wt-chip:active { transform: scale(0.97); }
.wt-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.wt-chip[aria-pressed="true"] .ic svg { opacity: 1; }
.wt-chip[aria-pressed="true"] .ct { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.35); }
.wt-count {
  font-size: 13.5px;
  color: var(--gray-2);
  white-space: nowrap;
  padding-top: 10px;
}
.wt-count b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* empty state */
.wt-empty {
  display: none;
  text-align: center;
  padding: clamp(40px, 6vw, 90px) 0;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gray-2);
}
.wt-empty.show { display: block; }

/* ============================================================
   FEATURED - outcome chip on top of works.css wp-cards
   ============================================================ */
.wp-outcome {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 6;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 100px;
  box-shadow: 0 14px 30px -14px rgba(14,14,14,0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .wt-hero-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .type-index { max-width: 520px; }
}
@media (max-width: 760px) {
  .wt-bar { flex-direction: column; }
  .wt-count { padding-top: 0; }
}
