/* Work (/work/) and Products (/products/), and their Arabic twins. Class prefixes: wk-, pr-.
   Every case and product carries its family's colour (data-family, site.css). */

/* ---------- Work: hero ---------- */
.wk-hero .hm-visual { max-width: 380px; }
.wk-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.wk-jump a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 3px;
  font-family: var(--f-ui); font-weight: 500; font-size: 14.5px; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(201,211,242,.25);
  transition: background .25s, box-shadow .25s;
}
.wk-jump a::before { content: ""; width: 8px; height: 8px; background: var(--fam); transform: rotate(45deg); flex: none; }
.wk-jump a:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px var(--gold-soft); }

/* ---------- Work: one case ---------- */
.wk-case-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.wk-kind { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--f-ui); font-weight: 500; font-size: 15px; color: var(--fam-ink); }
.wk-kind::before { content: ""; width: 11px; height: 11px; background: var(--fam); transform: rotate(45deg); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.wk-case h2 { font-size: var(--t-xl); color: var(--lapis-900); }
.wk-was { margin-top: 6px; font-family: var(--f-ui); font-size: 15.5px; color: var(--ink-3); }
.wk-case .body-lg { margin-top: 20px; }
.wk-case h3 { margin-top: 30px; font-size: 19px; color: var(--lapis-900); }
.wk-built { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.wk-built li { position: relative; padding-inline-start: 26px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.wk-built li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 8px; height: 8px; background: var(--fam); transform: rotate(45deg); }
.wk-svc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 26px; font-family: var(--f-ui); font-size: 15px; }
.wk-svc span { color: var(--ink-3); margin-inline-end: 4px; }
.wk-svc a {
  padding: 6px 12px; border-radius: 3px; text-decoration: none; color: var(--lapis-800);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), inset 0 -2px 0 var(--fam);
  transition: box-shadow .25s;
}
.wk-svc a:hover { box-shadow: inset 0 0 0 1px var(--lapis-300), inset 0 -2px 0 var(--gold); }
.wk-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.wk-link { font-family: var(--f-ui); font-weight: 500; font-size: 15.5px; color: var(--lapis-500); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.wk-link:hover { color: var(--lapis-700); }

/* The facts, on a glazed panel in the family's colour. */
.wk-facts {
  position: sticky; top: 110px; padding: 28px 30px 30px; border-radius: 3px; color: #fff;
  background: linear-gradient(180deg, var(--g1), var(--g2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -6px 0 rgba(0,0,0,.28), 0 20px 30px -22px rgba(14,27,82,.7);
}
.wk-facts dl { display: grid; gap: 0; }
.wk-facts dl > div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.wk-facts dl > div:first-child { padding-top: 0; }
.wk-facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.wk-facts dt { font-family: var(--f-ui); font-size: 14px; color: var(--sub); }
.wk-facts dd { margin: 2px 0 0; font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.4; }
[data-family="auto"] .wk-facts { color: var(--lapis-950); }

/* ---------- Products: the shelf ---------- */
.pr-shelf { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pr-item {
  display: flex; flex-direction: column; gap: 10px; padding: 30px 30px 32px; border-radius: 3px;
  background: linear-gradient(180deg, #ffffff, #f1f4fa);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 5px 0 var(--fam), inset 0 -4px 0 rgba(14,27,82,.07);
  scroll-margin-top: 110px;
}
.pr-item:first-child { grid-column: 1 / -1; }
.pr-item h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.4vw, 30px); color: var(--lapis-900); }
.pr-cube {
  width: 26px; height: 26px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 88 28 50 50 12 28z' fill='%23ffffff' fill-opacity='.55'/%3E%3Cpath d='M12 28 50 50 50 94 12 72z' fill='%23000' fill-opacity='.08'/%3E%3Cpath d='M88 28 50 50 50 94 88 72z' fill='%23000' fill-opacity='.28'/%3E%3C/svg%3E") center/contain no-repeat, var(--fam);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 88 28 88 72 50 94 12 72 12 28z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 88 28 88 72 50 94 12 72 12 28z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pr-line { font-size: var(--t-md); line-height: 1.7; color: var(--ink-2); max-width: 36em; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .wk-hero .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .wk-hero .hm-visual { max-width: 260px; }
  .wk-case-grid { grid-template-columns: minmax(0, 1fr); }
  .wk-facts { position: static; }
  .pr-shelf { grid-template-columns: minmax(0, 1fr); }
}
