/* DIGITHRONEX · home page · Act 05 "For clients": the sites we built and the campaigns we ran,
   the Reel for web and marketing. Every slot is empty until DIGITHRONEX sends the work, and all of it
   fills from one list in js/work.js. Shared by designs A, B and C; load after the page's own styles. */

/* the act's opening: a title card, shorter than the others because the work follows straight after */
.work-act .tc-wrap { min-height: 0; display: grid; justify-items: center; text-align: center; padding-block: clamp(112px, 12vw, 176px) clamp(56px, 6vw, 88px); }
#own.work-act .tc-statement { font-size: clamp(56px, 8.6vw, 156px); }
.work-act .eyebrow { margin-bottom: 22px; color: var(--text3); }
.work-act .tc-lead { margin-top: 36px; }

.work { max-width: var(--maxw); margin-inline: auto; padding: 0 var(--margin) clamp(112px, 12vw, 176px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(72px, 8vw, 120px); }
.work-group { min-width: 0; }
.work-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; margin-bottom: clamp(22px, 2.6vw, 36px); border-bottom: 1px solid rgba(11, 12, 14, .12); }
.work-group-head .label { color: var(--text); }
.work-group-head .data { color: var(--text3); text-align: right; }

/* A frame edge of clear glass with the brand cut; the picture inside keeps a slightly smaller cut */
.work-edge {
  --bz: 7px; --c: var(--cut-m, 16px);
  position: relative; isolation: isolate; padding: var(--bz);
  background:
    linear-gradient(to top right, transparent calc(50% - .75px), rgba(1, 88, 207, .8) calc(50% - .75px), rgba(1, 88, 207, .8) calc(50% + .75px), transparent calc(50% + .75px)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .44));
  -webkit-backdrop-filter: blur(16px) saturate(1.3) brightness(1.04); backdrop-filter: blur(16px) saturate(1.3) brightness(1.04);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .95), inset -1px -1px 0 rgba(11, 12, 14, .07), inset 0 0 0 1px rgba(255, 255, 255, .5);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}
.work-in {
  --ci: calc(var(--c) - var(--bz) * .6);
  position: relative; overflow: hidden; background: #0d0f12;
  clip-path: polygon(0 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% 100%, 0 100%);
}
.work-in .slot-slate { font-size: 10.5px; }
.work-in .slot-note { font-size: 10.5px; }

/* ---------- Sites: desktop and phone, each page moving down on its own (work.js sets the distance) ---------- */
.sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 4.4vw, 72px) var(--gutter); }
.site { display: grid; gap: 14px; min-width: 0; }
.site-stage { position: relative; padding: 0 10% 12% 0; }
.site-desk .work-in { aspect-ratio: 16 / 10; }
.site-phone { position: absolute; right: 0; bottom: 0; width: 23%; --c: 10px; --bz: 5px; }
.site-phone .work-in { aspect-ratio: 9 / 19.5; }
.site-phone .slot-slate { font-size: 9.5px; white-space: normal; }
.work-page { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transform: translate3d(0, 0, 0); will-change: transform; }
/* down the page (45% of the loop), a hold, back up a little quicker, a hold at the top; paused only off screen
   (it keeps moving under the pointer, as DIGITHRONEX asked, 19 October 2026) */
.site .work-page { animation: work-pan var(--dur, 30s) ease-in-out var(--lag, 0s) infinite; animation-play-state: paused; }
.site.is-panning .work-page { animation-play-state: running; }
@keyframes work-pan {
  0%, 6% { transform: translate3d(0, 0, 0); }
  51%, 60% { transform: translate3d(0, var(--pan, 0px), 0); }
  94%, 100% { transform: translate3d(0, 0, 0); }
}
/* the pages move under these frames, so no live blur in them (the room behind is plain anyway) */
.site .work-edge {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background:
    linear-gradient(to top right, transparent calc(50% - .75px), rgba(1, 88, 207, .8) calc(50% - .75px), rgba(1, 88, 207, .8) calc(50% + .75px), transparent calc(50% + .75px)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .7));
}
@media (prefers-reduced-motion: reduce) { .site .work-page { animation: none; } }

/* ---------- Campaigns: each ad in its own shape, at one height ---------- */
.campaigns { --h: clamp(240px, 21vw, 320px); display: flex; gap: var(--gutter); align-items: flex-start; }
.campaign { flex: none; display: grid; gap: 12px; }
.campaign .work-edge { --c: var(--cut-s, 10px); --bz: 5px; }
.campaign .work-in { height: var(--h); aspect-ratio: var(--ar, 9 / 16); }
.campaign .work-in > video, .campaign .work-in > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign .work-cap { contain: inline-size; }
.work-result { font-size: 14px; line-height: 1.4; color: var(--text); contain: inline-size; }
/* A client's campaigns as one result card (7 November 2026): the figure Ads Manager reports, on the dark glass, in
   the same frame and at the same height as an ad would be */
.campaign--result .work-in { display: flex; flex-direction: column; justify-content: space-between; padding: 18px 18px 20px; color: #F1F2F4; }
.campaign-board-top { margin: 0; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(241, 242, 244, .56); }
.campaign-board-big { display: grid; gap: 6px; margin: 0; }
.campaign-board-num { font-stretch: 75%; font-weight: 680; font-size: clamp(56px, 5.4vw, 84px); line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.campaign-board-unit { font-size: 14px; line-height: 1.3; color: rgba(241, 242, 244, .82); }
.campaign-board-cost { margin: 0; font-size: 11.5px; line-height: 1.45; color: rgba(241, 242, 244, .72); border-top: 1px solid rgba(241, 242, 244, .14); padding-top: 10px; }
.campaign--result .work-cap { max-width: calc(var(--h) * .8 + 10px); }

/* ---------- The caption line every piece carries ---------- */
.work-cap { display: flex; flex-wrap: wrap; gap: 2px .9em; margin: 0; font-family: var(--font-mono); font-stretch: 87.5%; font-size: 11.5px; line-height: 1.55; letter-spacing: .02em; color: var(--text3); }
.work-cap > span + span::before { content: "·"; margin-right: .9em; opacity: .6; }
.work-cap b { font-weight: 450; color: var(--text); }
.work-link { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--text3); }
.work-link:hover { text-decoration-color: var(--signal, #0158CF); }
.work-link.is-empty { color: var(--text3); text-decoration: none; cursor: default; }

@media (max-width: 900px) {
  #own.work-act .tc-statement { font-size: clamp(44px, 12vw, 72px); }
  #own.work-act .tc-statement .line { white-space: normal; }
  .sites { grid-template-columns: minmax(0, 1fr); }
  .campaigns { --h: 280px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); margin-inline: calc(-1 * var(--margin)); padding: 0 var(--margin) 14px; scrollbar-width: thin; }
  .campaign { scroll-snap-align: start; }
}
