/* Our work and its case studies (pages/work.html, pages/work/*.html), after Vectura's case-study pages: a light head
   with the facts beside it, three plain numbers, the work shown in browser and phone frames, rows of a heading and
   its text, and the next case study at the foot. Every picture is a real screen; client dashboards are shown with
   made-up sample data and say so. Phone below 760 px, tablet 760 to 1099, desktop from 1100. */

/* ── frames ─────────────────────────────────────────────────────────────── */
.bf { position: relative; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 34px 70px -34px rgba(17, 24, 39, .5); }
.bf-bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; background: #f3f2f0; border-bottom: 1px solid #e7e5e2; }
.bf-dots { display: inline-flex; gap: 5px; flex: none; }
.bf-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d6d3cf; }
.bf-url { min-width: 0; font: 400 11px/1 var(--mono); letter-spacing: .02em; color: rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-tag { margin-left: auto; flex: none; padding: 4px 7px; border-radius: 5px; background: #fff; font: 400 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.bf img { display: block; width: 100%; height: auto; }
@media (max-width: 759px) { .bf-bar { height: 24px; padding: 0 9px; gap: 7px; } .bf-dots i { width: 6px; height: 6px; } .bf-url { font-size: 9px; } .bf-tag { padding: 3px 5px; font-size: 8px; } }
.pf { position: relative; border-radius: 13% / 6%; padding: 2.2%; background: #121212; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 34px 60px -26px rgba(0, 0, 0, .6); }
.pf img { display: block; width: 100%; height: auto; border-radius: 11% / 5.1%; }

/* ── Our work: the two case studies ─────────────────────────────────────── */
.cases { max-width: 1360px; margin-inline: auto; display: grid; gap: 20px; }
@media (min-width: 760px) { .cases { gap: 28px; } }
.case { display: grid; gap: 22px; padding: 12px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px #efedea; }
@media (min-width: 760px) { .case { padding: 16px; gap: 30px; } }
@media (min-width: 1100px) {
  .case { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding: 16px 56px 16px 16px; align-items: center; }
  .case-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 16px 16px 16px 56px; }
  .case-flip .case-vis { order: 2; }
}
.case-vis { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: var(--case-bg, #1d3b31); isolation: isolate; }
.case-vis::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .16), transparent 60%); }
.case-desk { position: absolute; left: 6%; top: 9%; width: 80%; transition: transform .6s var(--ease); }
.case-phone { position: absolute; right: 5.5%; bottom: -14%; width: 23%; transition: transform .6s var(--ease); }
@media (hover: hover) { .case-vis:hover .case-desk { transform: translateY(-6px); } .case-vis:hover .case-phone { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .case-desk, .case-phone { transition: none; } }
.case-words { display: grid; gap: 16px; align-content: center; justify-items: start; padding: 4px 8px 10px; }
@media (min-width: 760px) { .case-words { padding: 0 16px 16px; } }
@media (min-width: 1100px) { .case-words { padding: 28px 0; } }
.case-words h2, .case-words .case-h { font-size: var(--h3l); line-height: 1.14; letter-spacing: -0.035em; font-weight: 400; }
.case-words h2 a, .case-words .case-h a { color: inherit; text-decoration: none; }
.case-words h2 a:hover, .case-words .case-h a:hover { color: var(--hover); }
.case-words > p:not(.mono) { font-size: var(--body); line-height: 1.5; color: var(--text); max-width: 560px; }
.case-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.case-chips li { padding: 7px 11px; border-radius: 64px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.2; color: var(--ink); }
.case-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 759px) { .case-ctas { width: 100%; } .case-ctas .pill { flex: 1 1 100%; } }

/* "More of our work": the press-to-load cards keep their own styles (sub-misc.css) */
.wk-more .sec-head { max-width: 1360px; margin: 0 auto; }

/* ── a case study: the head ─────────────────────────────────────────────── */
.chead .phead-in { gap: 26px; }
.chead-grid { display: grid; gap: 28px; width: 100%; }
@media (min-width: 1100px) { .chead-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: end; } }
.chead-words { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.chead h1 { max-width: 900px; }
.cfacts { margin: 0; padding: 6px 22px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px #efedea; }
.cfacts > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cfacts > div:last-child { border-bottom: 0; }
.cfacts dt { font: 400 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(0, 0, 0, .6); }
.cfacts dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.cfacts dd a { color: var(--ink); text-underline-offset: 3px; }
.cfacts dd a:hover { color: var(--hover); }

/* three plain numbers */
.ctiles { max-width: 1360px; margin-inline: auto; display: grid; gap: 12px; }
@media (min-width: 760px) { .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.ctile { padding: 24px 22px; border-radius: 16px; background: var(--cream); display: grid; gap: 10px; align-content: start; }
.ctile:nth-child(2) { background: var(--pale); }
.ctile:nth-child(3) { background: var(--panel); box-shadow: inset 0 0 0 1px #efedea; }
@media (min-width: 760px) { .ctile { padding: 32px 28px; min-height: 200px; align-content: space-between; } }
.ctile b { font-weight: 300; font-size: var(--stat); line-height: 1; letter-spacing: -0.045em; color: var(--ink); }
.ctile b small { font-size: .42em; letter-spacing: -0.02em; }
.ctile span { font-size: 16px; line-height: 1.45; color: var(--text); max-width: 32ch; }

/* ── a case study: pictures ─────────────────────────────────────────────── */
.cfig { max-width: 1360px; margin-inline: auto; }
.cfig-stage { position: relative; padding: clamp(14px, 3.4vw, 56px); border-radius: 18px; background: var(--fig-bg, var(--panel)); overflow: hidden; }
.cfig-stage > .bf, .cfig-stage > .pf { margin: 0 auto; }
.cfig-tone { --fig-bg: var(--case-bg, #1d3b31); }
.cfig figcaption { margin-top: 12px; font: 400 11px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: rgba(0, 0, 0, .62); max-width: 900px; }
.cfig-duo .cfig-stage { display: grid; gap: clamp(14px, 2.4vw, 32px); }
@media (min-width: 900px) { .cfig-duo .cfig-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.cfig-sync .cfig-stage { display: grid; gap: 14px; justify-items: center; }
.cfig-sync .bf { width: 100%; }
@media (min-width: 900px) { .cfig-sync .cfig-stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 22px; align-items: center; } }
.sync-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 64px; background: #fff; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .35); font: 400 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.sync-chip .i { width: 16px; height: 16px; transform: rotate(90deg); }
@media (min-width: 900px) { .sync-chip { flex-direction: column; padding: 14px 12px; border-radius: 14px; text-align: center; white-space: normal; max-width: 112px; } .sync-chip .i { transform: none; } }
.cfig-phones .cfig-stage { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 4vw, 64px); padding-bottom: 0; }
.cfig-phones .pf { width: min(320px, 44%); margin: 0 0 -12%; }
.cfig-phones .pf:nth-child(2) { margin-top: 8%; }

/* ── a case study: the words ────────────────────────────────────────────── */
.crows { max-width: 1360px; margin: 0 auto; border-top: 1px solid var(--line); }
.crows .row { align-items: start; }
.crows .row > h2 { font-weight: 400; }
.crows .row > h2 .mono { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .06em; color: rgba(0, 0, 0, .6); }
.row-body { display: grid; gap: 22px; min-width: 0; }
.ctime { display: grid; border-top: 1px solid var(--line); max-width: 780px; }
.ctime li { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .ctime li { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; } }
.ctime .when { font: 400 12px/1.75 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(0, 0, 0, .6); }
.ctime p { font-size: var(--body); line-height: 1.5; color: var(--text); }
.ccells { max-width: 1360px; margin-inline: auto; }

/* the next case study */
.cnext { max-width: 1360px; margin-inline: auto; }

/* "And more.": the line after the case studies on Our work */
.andmore-in { max-width: 1360px; margin-inline: auto; padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); display: grid; gap: 16px; justify-items: center; text-align: center; }
.andmore h2 { font-weight: 300; font-size: var(--h1); line-height: 1.04; letter-spacing: -0.05em; }
.andmore-in > p { max-width: 560px; font-size: var(--lead); line-height: 1.45; color: var(--text); }
