/* ============================================================
   FLITZEN — Our Works (Portfolio hub)
   Extends styles.css — Mayfair Editorial
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.crumbs {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray-2);
}
.crumbs a { color: var(--gray-1); transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--gray-3); }
.crumbs .here { color: var(--ink); }

/* ============================================================
   WORK HERO — editorial split with type index
   ============================================================ */
.work-hero {
  padding-top: clamp(122px, 15vw, 188px);
  padding-bottom: clamp(34px, 4vw, 58px);
}
.work-hero .crumbs { margin-bottom: clamp(26px, 3vw, 40px); }
.work-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(34px, 4.5vw, 80px);
  align-items: stretch;
}
.work-hero-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work-h1 {
  font-size: clamp(52px, 8.6vw, 132px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-top: clamp(16px, 1.8vw, 26px);
}
.work-hero-head .lead {
  max-width: 44ch;
  margin-top: clamp(24px, 2.4vw, 36px);
  color: var(--gray-1);
}

/* right-side featured visual */
.work-hero-visual {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: clamp(420px, 44vw, 600px);
}
.work-hero-visual .media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: var(--r-lg);
}
.work-hero-visual .media img { transition: transform 1.2s var(--ease); }
.work-hero-visual:hover .media img { transform: scale(1.05); }
.whv-cap {
  position: absolute;
  left: clamp(16px, 1.4vw, 22px);
  right: clamp(16px, 1.4vw, 22px);
  bottom: clamp(16px, 1.4vw, 22px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14,14,14,0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: 0 28px 54px -24px rgba(0,0,0,0.6);
}
.whv-badge {
  flex: none;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: #fff; color: var(--ink);
  padding: 6px 11px; border-radius: 100px;
}
.whv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.whv-text b { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.6vw, 26px); line-height: 1; }
.whv-text small { font-size: 12.5px; color: rgba(255,255,255,0.7); letter-spacing: 0.01em; }
.whv-go {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  display: grid; place-items: center;
  font-size: 16px;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}
.work-hero-visual:hover .whv-go { background: rgba(255,255,255,0.14); transform: rotate(-45deg); }

/* ============================================================
   SHOWCASE — filterable project grid
   ============================================================ */
.showcase .sec-head { grid-template-columns: 1fr auto; align-items: end; }

.works-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 4vw, 56px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 11px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.filter .ct {
  font-size: 12px;
  color: var(--gray-2);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.filter[aria-pressed="true"] .ct { color: rgba(255,255,255,0.6); }
.works-count {
  font-size: 13.5px;
  color: var(--gray-1);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.works-count b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.2vw, 36px) clamp(18px, 2vw, 30px);
}
.wp-card {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.wp-card.is-hidden { display: none; }
.wp-card.is-enter { opacity: 0; transform: translateY(14px) scale(0.985); }

.wp-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
}
.wp-media .media { width: 100%; height: 100%; border-radius: var(--r-md); }
.wp-media .media img { transition: transform 1.1s var(--ease); }
.wp-card:hover .wp-media .media img { transform: scale(1.06); }

.wp-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 100px;
}
.wp-badge .d { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* hover overlay CTA */
.wp-open {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(14,14,14,0.55), rgba(14,14,14,0) 52%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.wp-card:hover .wp-open { opacity: 1; }
.wp-open .pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 17px;
  border-radius: 100px;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease);
}
.wp-card:hover .wp-open .pill { transform: none; }

.wp-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(15px, 1.4vw, 20px);
}
.wp-name {
  font-family: var(--serif);
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease);
}
.wp-card:hover .wp-name { transform: translateX(4px); }
.wp-go {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink);
  transition: 0.5s var(--ease);
}
.wp-card:hover .wp-go { background: var(--ink); border-color: var(--ink); color: #fff; transform: rotate(-45deg); }
.wp-desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--gray-1);
  max-width: 42ch;
}
.wp-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.wp-tags .tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray-1);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 100px;
}

.works-empty {
  grid-column: 1 / -1;
  padding: clamp(40px, 6vw, 80px) 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--gray-2);
  display: none;
}
.works-empty.show { display: block; }

/* ============================================================
   BY TYPE — three large editorial cards
   ============================================================ */
.bytype { background: var(--paper-2); }
.bytype .sec-head { grid-template-columns: 1fr auto; align-items: end; }
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 1.8vw, 28px);
}
.type-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 2.6vw, 42px);
  display: flex;
  flex-direction: column;
  min-height: clamp(320px, 30vw, 420px);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.type-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 36px 60px -38px rgba(14,14,14,0.32);
}
.type-card .type-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.type-ic {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease);
}
.type-ic svg { width: 27px; height: 27px; }
.type-card:hover .type-ic { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-6deg); }
.type-num { font-family: var(--serif); font-size: 15px; color: var(--gray-2); }
.type-card h3 {
  font-family: var(--serif);
  font-weight: var(--display-weight);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin-top: clamp(28px, 3vw, 48px);
}
.type-card p {
  font-size: 15px;
  color: var(--gray-1);
  margin-top: 12px;
  max-width: 34ch;
}
.type-foot {
  margin-top: auto;
  padding-top: clamp(22px, 2.4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.type-foot .ct { font-size: 13px; color: var(--gray-2); }
.type-card .ulink .arr { color: var(--orange); }

/* ============================================================
   FEATURED CASE STUDY
   ============================================================ */
.spotlight { background: var(--ink); color: var(--paper); overflow: hidden; }
.spotlight .eyebrow { color: #b9b0a6; }
.spotlight .eyebrow::before { background: #fff; }
.spot-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(34px, 5vw, 84px);
  align-items: center;
  margin-top: clamp(34px, 4vw, 56px);
}
.spot-media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  box-shadow: 0 50px 90px -44px rgba(0,0,0,0.7);
}
.spot-media .media {
  width: 100%; height: 100%;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1c1c1c, #242424);
}
.spot-media .media::before {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 13px);
}
.spot-media .media .ph-label {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.spot-media .media img { transition: transform 1.1s var(--ease); }
.spot-media:hover .media img { transform: scale(1.04); }
.spot-fbadge {
  position: absolute; top: 16px; left: 16px; z-index: 4;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: #fff; color: var(--ink);
  padding: 7px 13px; border-radius: 100px;
}
.spot-body .spot-name {
  font-family: var(--serif);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 4.6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: #fff;
  margin: clamp(16px, 1.8vw, 24px) 0 clamp(18px, 2vw, 26px);
}
.spot-body .spot-name em { font-style: italic; }
.spot-body p {
  font-size: clamp(16px, 1.2vw, 18.5px);
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 50ch;
}
.spot-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(22px, 3vw, 52px);
  margin: clamp(26px, 3vw, 40px) 0;
  padding: clamp(22px, 2.4vw, 30px) 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  justify-content: start;
}
.spot-facts .f .k {
  display: block;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.spot-facts .f .v {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.05;
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .work-hero-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); align-items: stretch; }
  .work-hero-visual { min-height: clamp(340px, 56vw, 480px); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: 1fr; max-width: 520px; }
  .spot-grid { grid-template-columns: 1fr; gap: 30px; }
  .spot-media { max-width: 620px; }
}
@media (max-width: 720px) {
  .showcase .sec-head { grid-template-columns: 1fr; }
  .bytype .sec-head { grid-template-columns: 1fr; }
  .works-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .works-grid { grid-template-columns: 1fr; max-width: 460px; }
  .spot-facts { grid-template-columns: 1fr 1fr; gap: 22px 30px; }
}
