/* Work V2: works index + project pages. Builds on home-v4.css and service-v1.css. */

/* ---------- Works index ---------- */
.wv2-hero {
  padding: 40px 0 48px;
  background: radial-gradient(800px 420px at 80% 0%, rgba(116,67,182,.12), transparent 70%), linear-gradient(180deg, #fff, var(--hv4-lav));
}
.wv2-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: end; margin: 22px 0 36px; }
.hv4 .wv2-hero__title { font-size: clamp(40px, 5vw, 72px) !important; margin: 0; letter-spacing: -0.04em; line-height: 1; }
.wv2-hero__lead { margin: 0; font-size: 18px; line-height: 1.7; color: var(--c03-muted); max-width: 46ch; }
.wv2-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.wv2-filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(116,67,182,.18); font-size: 14px; font-weight: 700; color: var(--c03-ink);
  transition: background .3s, border-color .3s, color .3s;
}
.wv2-filter span { font: 800 11px/1 var(--c03-en); color: var(--c03-muted); }
.wv2-filter:hover { border-color: var(--c03-purple); color: var(--c03-purple); }
.wv2-filter.is-active { background: var(--c03-purple); border-color: var(--c03-purple); color: #fff; }
.wv2-filter.is-active span { color: #fff; }

.wv2-list { padding: 48px 0 112px; background: var(--hv4-lav); }
.wv2-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.wv2-card--third { grid-column: span 2; }
.wv2-card--half { grid-column: span 3; }
.wv2-card--full { grid-column: 1 / -1; }
.wv2-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: #fff;
  border: 1px solid rgba(116,67,182,.1); box-shadow: var(--hv4-shadow);
  transition: transform .5s var(--c03-ease), box-shadow .5s var(--c03-ease);
}
.wv2-card:hover { transform: translateY(-6px); box-shadow: var(--hv4-shadow-hover); }
.wv2-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ece6f3; }
.wv2-card--half .wv2-card__media { aspect-ratio: 16 / 9.4; }
.hv4 .wv2-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--c03-ease); }
.wv2-card:hover .wv2-card__media img { transform: scale(1.035); }
.wv2-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.wv2-card__field { font-size: 12.5px; font-weight: 700; color: var(--c03-purple); }
.wv2-card__name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--c03-ink); }
.wv2-card--half .wv2-card__name { font-size: 28px; }
.wv2-card__summary {
  font-size: 15px; line-height: 1.65; color: var(--c03-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wv2-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wv2-card__tags i { font-style: normal; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--hv4-lav); color: var(--c03-ink); }
.wv2-card__more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 800; color: var(--c03-purple); }
.wv2-card__more span { display: inline-block; transition: transform .35s var(--c03-ease); }
.wv2-card:hover .wv2-card__more span { transform: translateX(-4px); }
.wv2-card--full { flex-direction: row; }
.wv2-card--full .wv2-card__media { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
.wv2-card--full .wv2-card__body { flex: 1; justify-content: center; padding: 36px; }

/* CTA band (works + project) */
.hv4 .wv2-cta { padding: 96px 0; }
.wv2-cta__inner { position: relative; z-index: 1; display: grid; justify-items: start; gap: 4px; }
.hv4 .wv2-cta h2 { max-width: 18ch; font-size: clamp(34px, 4vw, 56px) !important; }
.wv2-cta .hv4-cta__lead { margin-bottom: 24px; }
.wv2-cta .c03-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.c03-site .hv4 a.wv2-cta__btn { background: #fff !important; color: var(--c03-purple) !important; -webkit-text-fill-color: var(--c03-purple) !important; }

/* ---------- Project page ---------- */
.wv2-phero {
  position: relative; overflow: hidden; padding: 36px 0 88px;
  background:
    radial-gradient(700px 480px at 20% 50%, color-mix(in srgb, var(--wv2-accent) 18%, transparent), transparent 70%),
    linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--wv2-bg) 70%, #fff) 100%);
}
.wv2-phero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; margin-top: 18px; }
.hv4 .wv2-phero__logo { height: 52px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 22px; }
.hv4 .wv2-phero__logo.is-light { filter: brightness(0); opacity: .8; }
.hv4 .wv2-phero__title { font-size: clamp(40px, 4.8vw, 66px) !important; margin: 0 0 18px; letter-spacing: -0.035em; line-height: 1.02; }
.wv2-phero__lead { margin: 0 0 26px; font-size: 18px; line-height: 1.7; color: var(--c03-muted); max-width: 54ch; }
.wv2-facts { display: grid; gap: 0; margin: 0 0 22px; border-top: 1px solid rgba(22,22,27,.12); }
.wv2-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(22,22,27,.12); }
.wv2-facts dt { font-size: 13px; font-weight: 700; color: var(--c03-muted); }
.wv2-facts dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--c03-ink); }
.wv2-facts a { color: var(--c03-purple); }
.wv2-tags { margin: 0; }
.wv2-phero__visual { position: relative; min-height: 500px; }
.wv2-mac { position: absolute; top: 6%; left: 0; width: 94%; transform: rotate(-1deg); z-index: 2; }
.wv2-phone { position: absolute; bottom: 0; left: 5%; width: 156px; transform: rotate(2deg); z-index: 3; }

.wv2-story { padding: 96px 0; background: var(--hv4-lav); }
.wv2-story__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wv2-story__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wv2-story__grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.hv4 .wv2-story__card h2 { font-size: 22px !important; margin: 6px 0 0; letter-spacing: -0.02em; }
.wv2-story__card p { font-size: 16px; line-height: 1.75; }

.wv2-screens { padding: 104px 0; background: #fff; }
.hv4 .wv2-screens__title { font-size: clamp(30px, 3.4vw, 44px) !important; margin: 0 0 32px; }
.wv2-screens__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px; align-items: start; }
.wv2-screens__grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.wv2-frame {
  margin: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--c03-line);
  box-shadow: 0 30px 60px -34px rgba(22,22,27,.45);
}

.wv2-frame__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #f4f2f7; border-bottom: 1px solid var(--c03-line); }
.wv2-frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d4e2; }
.wv2-frame__bar b { margin-inline: auto; font: 600 11px/1 var(--c03-en); color: #55555d; padding: 5px 14px; border-radius: 999px; background: #fff; }
.hv4 .wv2-frame img { width: 100%; height: auto; display: block; }
.wv2-gallery { margin-top: 22px; columns: 3; column-gap: 22px; }
.wv2-gallery--2 { columns: 2; }
.wv2-gallery--4 { columns: 4; column-gap: 16px; }
.wv2-shot {
  break-inside: avoid; margin: 0 0 22px; border-radius: 18px; overflow: hidden; background: var(--hv4-lav);
  box-shadow: 0 24px 50px -30px rgba(22,22,27,.4);
}
.wv2-gallery--4 .wv2-shot { margin-bottom: 16px; }
.hv4 .wv2-shot img { width: 100%; height: auto; display: block; }

.wv2-services { padding: 64px 0; background: var(--hv4-graphite); color: #fff; }
.wv2-services__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: center; }
.hv4 .wv2-services h2 { color: #fff !important; font-size: clamp(24px, 2.4vw, 32px) !important; margin: 0; }
.wv2-services__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wv2-services__list a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 700; font-size: 15px;
  transition: background .3s, border-color .3s;
}
.wv2-services__list a:hover { background: rgba(185,149,236,.18); border-color: #b995ec; }

.wv2-related { padding: 104px 0; background: var(--hv4-lav); }
.wv2-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.hv4 .wv2-related__head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wv2-hero__grid, .wv2-phero__grid { grid-template-columns: 1fr; gap: 20px; }
  .wv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wv2-card--third, .wv2-card--half { grid-column: span 1; }
  .wv2-card--full { grid-column: 1 / -1; }
  .wv2-phero__visual { min-height: 440px; max-width: 640px; width: 100%; justify-self: center; }
  .wv2-story__grid, .wv2-story__grid--2 { grid-template-columns: 1fr; }
  .wv2-services__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .wv2-hero { padding: 24px 0 32px; }
  .wv2-hero__lead, .wv2-phero__lead { font-size: 16px; }
  .wv2-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .wv2-filter { flex: none; }
  .wv2-list { padding: 28px 0 72px; }
  .wv2-grid { grid-template-columns: 1fr; gap: 16px; }
  .wv2-card--full { flex-direction: column; }
  .wv2-card--full .wv2-card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .wv2-card--full .wv2-card__body { padding: 22px 24px 24px; }
  .wv2-card--half .wv2-card__name { font-size: 22px; }
  .hv4 .wv2-cta { padding: 72px 0; }
  .wv2-phero { padding: 20px 0 56px; }
  .wv2-phero__visual { min-height: 300px; }
  .wv2-phone { width: 104px; }
  .wv2-story, .wv2-screens, .wv2-related { padding: 64px 0; }
  .wv2-screens__grid { grid-template-columns: 1fr; }
  .wv2-gallery, .wv2-gallery--4 { columns: 2; column-gap: 12px; }
  .wv2-shot { margin-bottom: 12px; border-radius: 14px; }
  .wv2-facts > div { grid-template-columns: 90px 1fr; }
  .wv2-related__head { flex-direction: column; gap: 4px; }
}
