﻿/* â”€â”€â”€ 24. Work Highlights (tab showcase) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wh {
  position: relative;
  overflow: hidden;
  background: var(--clr-bg);
}

/* Concentric rings â€” centred, reuses circles-rotate keyframe */
.wh__rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
}
.wh__rings svg {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  overflow: visible;
}
.wh__rings-group {
  transform-box: fill-box;
  transform-origin: center;
  animation: circles-rotate 120s linear infinite;
}

/* 30 / 70 column grid, full section height */
.wh__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: var(--sp-2xl);
  align-items: stretch;
  min-height: 600px;
}

/* â”€â”€ Left: tabs column â”€â”€ */
.wh__tabs-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wh__tabs {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Pill tab: white card with shadow */
.wh__tab {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .9rem 1.2rem;
  border-radius: var(--r-full);
  border: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--clr-text-muted);
  cursor: pointer;
  text-align: left;
  transition: box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.wh__tab:hover {
  box-shadow: 0 4px 18px rgba(168,112,219,.22), 0 1px 4px rgba(0,0,0,.06);
  color: var(--clr-text);
  transform: translateX(4px);
}
.wh__tab.active {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(168,112,219,.35);
  transform: translateX(4px);
}
.wh__tab.active .wh__tab-dot {
  background: rgba(255,255,255,.8) !important;
}

.wh__tab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease);
}
.wh__tab-label { flex: 1; }

/* "Check all projects â†’" link */
.wh__view-all {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: var(--sp-lg);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.wh__view-all:hover { color: var(--clr-primary); gap: .75em; }
.wh__view-all svg { transition: transform var(--dur) var(--ease); }
.wh__view-all:hover svg { transform: translateX(4px); }

/* â”€â”€ Right: slide preview â”€â”€ */
.wh__preview {
  position: relative;
  overflow: visible;   /* allow sticker to poke above the card */
  min-height: 580px;   /* prevent height collapse while slides are absolute */
}

/* Slides stack in same space via absolute, active is relative */
.wh__slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .55s var(--ease-out),
              transform .55s var(--ease-out);
  padding-top: 20px; /* make room for sticker above card */
}
.wh__slide.enter-right { transform: translateX(60px);  opacity: 0; }
.wh__slide.enter-left  { transform: translateX(-60px); opacity: 0; }
.wh__slide.active {
  position: relative;
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}
.wh__slide.exit-left {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-60px);
  pointer-events: none;
  z-index: 0;
  transition: opacity .45s var(--ease),
              transform .45s var(--ease);
}
.wh__slide.exit-right {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
  z-index: 0;
  transition: opacity .45s var(--ease),
              transform .45s var(--ease);
}

/* Entire card is an <a> */
.wh__img-wrap {
  display: block;
  position: relative;
  height: 100%;
  min-height: 560px;
  border-radius: var(--r-xl);
  border: 5px solid #fff;
  box-shadow: 0 28px 72px rgba(0,0,0,.16), 0 8px 22px rgba(0,0,0,.08);
  overflow: hidden;
  text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.wh__img-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 88px rgba(0,0,0,.18), 0 10px 28px rgba(0,0,0,.10);
}
.wh__img-wrap:hover .wh__img { transform: scale(1.04); }

/* Floating sticker â€” sits on .wh__slide, above the card edge */
.wh__sticker {
  position: absolute;
  top: 0;
  left: 24px;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--clr-warm);
  color: var(--clr-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem 1.1rem;
  border-radius: var(--r-full);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  white-space: nowrap;
  pointer-events: none;
  animation: wh-sticker-pop .4s .2s var(--ease-out) both;
}
@keyframes wh-sticker-pop {
  from { opacity: 0; transform: translateY(-10px) scale(.85) rotate(-2deg); }
  to   { opacity: 1; transform: translateY(0)     scale(1)   rotate(0deg); }
}

/* Mobile-only section badge (hidden by default) */
.wh__mobile-tag {
  display: none;
  align-items: center;
  background: var(--clr-warm);
  color: var(--clr-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem 1.1rem;
  border-radius: var(--r-full);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  white-space: nowrap;
  width: fit-content;
}

/* Mobile view-all link below card (hidden by default) */
.wh__view-all--mobile { display: none; }

.wh__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.wh__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 560px;
  background: var(--grad-primary);
}

/* Bottom frosted label */
.wh__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.6);
  border-radius: 0 0 calc(var(--r-xl) - 4px) calc(var(--r-xl) - 4px);
  padding: var(--sp-lg) var(--sp-xl);
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.wh__label-body { flex: 1; min-width: 0; }

.wh__label-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .3rem;
  line-height: 1.3;
}
.wh__label-desc {
  font-size: .875rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Arrow circle â€” non-interactive (whole card is the link) */
.wh__label-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: 1.4rem;
  transition: transform var(--dur) var(--ease);
}
.wh__img-wrap:hover .wh__label-cta {
  transform: scale(1.12) rotate(-6deg);
}

/* â–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆ
/* ─── Work Highlights responsive ──────────────────────────────── */

/* Tablet: stack columns top / bottom */
@media (max-width: 992px) {
  .wh__rings { display: none; }  /* hide 1200px decorative SVG on mobile */
  .wh__layout {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  /* Tabs go horizontal, wrapping row */
  .wh__tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .wh__tab {
    flex: 1 1 auto;
    width: auto;
    min-width: 110px;
    justify-content: center;
    transform: none !important; /* no translateX on tablet */
  }
  .wh__view-all {
    width: 100%;
    justify-content: center;
  }

  /* On tablet image fills set height */
  .wh__img-wrap { min-height: 420px; }
  .wh__img,
  .wh__img-placeholder { height: 420px; }
}

@media (max-width: 768px) {
  .wh__img-wrap { min-height: 320px; }
  .wh__img,
  .wh__img-placeholder { height: 320px; }
  .wh__label { padding: var(--sp-md) var(--sp-lg); }
  .wh__sticker { top: -14px; left: 16px; }
}

/* ≤640 px – phones: clean stacked layout (badge → tab strip → tall card → view-all) */
@media (max-width: 640px) {

  /* Replace the 30/70 grid with a simple vertical stack */
  .wh__layout {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    min-height: unset;
  }

  /* ── 1. Section badge – centred ── */
  .wh__mobile-tag {
    display: flex;
    align-self: center;
  }

  /* ── 2. Tabs col: remove vertical centering ── */
  .wh__tabs-col { justify-content: flex-start; }

  /* Single-line scrollable tab strip */
  .wh__tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 4px;
  }
  .wh__tabs::-webkit-scrollbar { display: none; }
  .wh__tabs li { flex-shrink: 0; }
  .wh__tab {
    flex: 0 0 auto;
    width: auto;
    min-width: unset;
    transform: none !important;
    padding: .7rem 1.1rem;
    font-size: .875rem;
  }

  /* Hide desktop floating sticker & desktop view-all link */
  .wh__sticker  { display: none; }
  .wh__view-all { display: none; }

  /* ── 3. Slide preview: no forced height, clips overflow ── */
  .wh__preview       { min-height: unset; overflow: hidden; }
  .wh__slide.active  { padding-top: 0; }

  /* ── 4. Card: full-width, tall, self-contained ── */
  .wh__img-wrap {
    width: 100%;
    box-sizing: border-box;
    min-height: 460px;
    border: 3px solid #fff;
    border-radius: 20px;
  }
  .wh__img,
  .wh__img-placeholder { width: 100%; height: 460px; }

  /* Label inside card: readable on a phone */
  .wh__label       { padding: var(--sp-md); gap: var(--sp-sm); }
  .wh__label-title { font-size: 1rem; }
  .wh__label-desc  { font-size: .82rem; -webkit-line-clamp: 2; }
  .wh__label-cta   { width: 48px; height: 48px; font-size: 1.25rem; flex-shrink: 0; }

  /* ── 5. View-all below card ── */
  .wh__view-all--mobile {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
    width: 100%;
    margin-top: var(--sp-sm);
  }
}

