/* Gondan Media T1: Work page, the newer portfolio presentations (fixed design; content comes from the CMS).
   Catalogues & brochures: the 3D book on the desk. Flyers & print: the lit cutting mat. Mobile apps: the app stage.
   Same palette, type and rhythm as work.css. */

.wk-cat, .wk-print, .wk-apps { scroll-margin-top: calc(var(--header) + var(--rail)); }

/* =================================================================== CATALOGUES: the book on the desk */
.wk-cat { padding: clamp(64px, 7vw, 108px) 0 var(--sec); background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); overflow: hidden; }
.wk-cat .wk-sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.wk-cat__desk { position: relative; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(18px, 3vw, 40px); border-radius: var(--r-lg);
  background: radial-gradient(70% 90% at 28% 0%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, #EAF1F7 0%, #DCE6EF 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -30px 60px -40px rgba(11,26,51,.18), 0 30px 60px -40px rgba(11,26,51,.35); }
.wk-cat__stage { position: relative; height: clamp(360px, 46vw, 620px); perspective: 2600px; perspective-origin: 50% 30%; }
.wk-cat__still { position: absolute; left: 50%; top: 50%; width: min(42%, 340px); transform: translate(-50%, -50%) rotateX(16deg) rotateZ(-3deg); transform-style: preserve-3d; border-radius: 3px 8px 8px 3px; overflow: hidden; background: #fff;
  box-shadow: -4px 0 0 -1px rgba(11,26,51,.12), 0 40px 50px -26px rgba(11,26,51,.55), 0 4px 10px rgba(11,26,51,.12); transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.wk-cat__still img { display: block; width: 100%; height: auto; }
.wk-cat__still:hover { transform: translate(-50%, -53%) rotateX(10deg) rotateZ(-1.5deg); }
.wk-cat__nocover { display: grid; place-items: center; aspect-ratio: .71; padding: 24px; text-align: center; font-weight: 500; color: #fff; background: var(--navy); }
.wk-cat.is-ready .wk-cat__still { opacity: 0; pointer-events: none; }
/* the cover picture's corner lifts with the hint while the book is being prepared (work-catalogue.js) */
.wk-cat__still::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; pointer-events: none;
  background: linear-gradient(315deg, rgba(11,26,51,0) 50%, rgba(11,26,51,.08) 51%, #F1F3F6 58%, #fff 70%); box-shadow: -3px -3px 8px -4px rgba(11,26,51,.35); border-top-left-radius: 2px; }
.wk-cat__still.is-peek::after { animation: wk-still-curl 1.7s var(--ease) forwards; }
@keyframes wk-still-curl { 0%, 22% { width: 0; height: 0; } 55% { width: 54px; height: 54px; } 62% { width: 58px; height: 58px; } 100% { width: 0; height: 0; } }
.wk-cat__book { position: absolute; inset: 0; transform-style: preserve-3d; }
.wk-cat__loading { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--glacier-d); }

/* the book: two pages wide, the spine down the middle; leaves turn about the spine */
.bk { position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * 2); height: var(--ph); transform-style: preserve-3d;
  transform: translate(-50%, -50%) translateX(var(--shift, 0px)) rotateX(var(--tilt, 14deg)) rotateZ(var(--roll, -2deg)); transition: transform 1s var(--ease); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bk.is-open { --tilt: 7deg; --roll: 0deg; }
.bk.is-dragging { cursor: grabbing; }
.bk__floor { position: absolute; top: 4%; bottom: -7%; width: 50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(11,26,51,.32), rgba(11,26,51,0)); filter: blur(8px); transform: translateZ(-2px); transition: opacity .6s var(--ease); pointer-events: none; }
.bk__floor--l { left: 0; opacity: var(--fl, 0); }
.bk__floor--r { right: 0; opacity: var(--fr, 1); }
.bk__stack { position: absolute; top: 3px; bottom: 3px; width: var(--d, 0px); transform: translateZ(-1px); background: repeating-linear-gradient(90deg, #FDFDFC 0 1px, #DDE3EA 1px 2px); box-shadow: 0 2px 4px rgba(11,26,51,.12); pointer-events: none; }
/* the edges of the pages still to read (right) and already read (left) */
.bk__stack--l { right: 100%; width: var(--dl, 0px); border-radius: 3px 0 0 3px; }
.bk__stack--r { left: 100%; width: var(--dr, 0px); border-radius: 0 3px 3px 0; }
.bk__leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.bk__face { position: absolute; inset: 0; overflow: hidden; background: #FBFBFA; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.bk__face--front { border-radius: 0 3px 3px 0; }
.bk__face--back { transform: rotateY(180deg); border-radius: 3px 0 0 3px; }
.bk__face canvas, .bk__face img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; }
.bk__face.is-blank { background: #F7F6F2; }
/* the gutter: pages darken toward the spine */
.bk__face::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bk__face--front::before { background: linear-gradient(90deg, rgba(11,26,51,.22) 0%, rgba(11,26,51,.06) 4%, rgba(11,26,51,0) 12%), linear-gradient(270deg, rgba(255,255,255,.4), rgba(255,255,255,0) 3%); }
.bk__face--back::before { background: linear-gradient(270deg, rgba(11,26,51,.22) 0%, rgba(11,26,51,.06) 4%, rgba(11,26,51,0) 12%), linear-gradient(90deg, rgba(255,255,255,.4), rgba(255,255,255,0) 3%); }
.bk__face.is-cover::before { background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.18) 1.2%, rgba(0,0,0,.1) 2.4%, rgba(0,0,0,0) 5%); }
/* light on a turning page: shading as it lifts, and a sheen that travels across it */
.bk__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
.bk__face--front .bk__shade { background: linear-gradient(90deg, rgba(11,26,51,.05), rgba(11,26,51,.42)); }
.bk__face--back .bk__shade { background: linear-gradient(270deg, rgba(11,26,51,.05), rgba(11,26,51,.32)); }
.bk__sheen { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: linear-gradient(100deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.55) 48%, rgba(255,255,255,0) 62%); background-size: 260% 100%; }
/* the soft shadow a lifting page throws on the page underneath */
.bk__cast { position: absolute; top: 0; bottom: 0; z-index: 1; width: 0; pointer-events: none; opacity: 0; transform: translateZ(.5px); }
.bk__cast--r { background: linear-gradient(90deg, rgba(11,26,51,.32), rgba(11,26,51,0)); }
.bk__cast--l { background: linear-gradient(270deg, rgba(11,26,51,.32), rgba(11,26,51,0)); }
/* a page corner that lifts a little, to invite a turn */
.bk__curl { position: absolute; right: 0; bottom: 0; z-index: 4; width: 0; height: 0; pointer-events: none; transition: width .35s var(--ease), height .35s var(--ease);
  background: linear-gradient(315deg, rgba(11,26,51,0) 50%, rgba(11,26,51,.08) 51%, #F1F3F6 58%, #fff 70%); box-shadow: -3px -3px 8px -4px rgba(11,26,51,.35); border-top-left-radius: 2px; }
.bk.is-open .bk__leaf.is-next .bk__face--front .bk__curl { width: 26px; height: 26px; }
.bk.is-hover-r .bk__leaf.is-next .bk__face--front .bk__curl { width: 46px; height: 46px; }
.bk__curl--l { right: auto; left: 0; background: linear-gradient(45deg, rgba(11,26,51,0) 50%, rgba(11,26,51,.08) 51%, #F1F3F6 58%, #fff 70%); box-shadow: 3px -3px 8px -4px rgba(11,26,51,.35); border-top-left-radius: 0; border-top-right-radius: 2px; }
.bk.is-hover-l .bk__leaf.is-prev .bk__face--back .bk__curl--l { width: 46px; height: 46px; }
.bk.is-open { cursor: pointer; }
.bk.is-dragging .bk__curl { width: 0 !important; height: 0 !important; }

.wk-cat__panel { min-width: 0; }
.wk-cat__n { font-size: .8rem; letter-spacing: .14em; color: var(--soft); font-variant-numeric: tabular-nums; }
.wk-cat__n b { color: var(--glacier-d); font-weight: 600; }
.wk-cat__panel h3 { margin-top: 14px; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.2; color: var(--navy); letter-spacing: -.01em; }
.wk-cat__meta { margin-top: 8px; font-size: .9rem; color: var(--glacier-d); }
.wk-cat__d { margin-top: 14px; color: var(--muted); max-width: 42ch; }
.wk-cat__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wk-cat__acts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wk-cat__max { gap: 10px; }
.wk-cat__min { display: none; }
.wk-cat__desk.is-reading .wk-cat__min { display: inline-grid; }
/* the book closing: every turned page swings back together */
.bk.is-closing .bk__leaf { transition: transform .9s var(--ease); }

/* the hint: a fingertip presses the page's corner and sweeps across it as the page lifts */
.wk-cat__ghost { position: absolute; left: 0; top: 0; z-index: 5; width: 46px; height: 46px; margin: -23px 0 0 -23px; pointer-events: none; opacity: 0; }
.wk-cat__ghost i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.95), rgba(234,242,248,.8));
  box-shadow: 0 0 0 1px rgba(11,26,51,.08), 0 10px 24px -6px rgba(11,26,51,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.wk-cat__ghost::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(79,134,198,.55); opacity: 0; }
.wk-cat__ghost::after { content: ""; position: absolute; top: 50%; left: 50%; z-index: -1; height: 3px; width: 0; margin-top: -1.5px; border-radius: 3px; background: linear-gradient(90deg, rgba(79,134,198,.55), rgba(79,134,198,0)); }
.wk-cat__ghost.is-on { animation: wk-ghost 1.7s var(--ease) forwards; }
.wk-cat__ghost.is-on::before { animation: wk-ghost-ring 1.7s var(--ease) forwards; }
.wk-cat__ghost.is-on::after { animation: wk-ghost-trail 1.7s var(--ease) forwards; }
@keyframes wk-ghost {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  14% { opacity: 1; transform: translate(0, 0) scale(1); }
  22% { transform: translate(0, 0) scale(.86); }
  62% { opacity: 1; transform: translate(var(--sweep), -6px) scale(.86); }
  82%, 100% { opacity: 0; transform: translate(var(--sweep), -6px) scale(1); }
}
@keyframes wk-ghost-ring { 0%, 18% { opacity: 0; transform: scale(.7); } 26% { opacity: 1; transform: scale(1); } 46%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes wk-ghost-trail { 0%, 24% { width: 0; opacity: 0; } 62% { width: 70px; opacity: 1; } 82%, 100% { width: 70px; opacity: 0; } }
.wk-cat__pager { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
.wk-cat__pager[hidden] { display: none; }
.wk-cat__pager p { min-width: 9.5em; text-align: center; font-size: .9rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.wk-cat__pager .round-btn[disabled] { opacity: .35; pointer-events: none; }

.wk-cat__shelf { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.wk-cat__pick { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--line-2); text-align: left; color: var(--navy); cursor: pointer; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.wk-cat__pick:hover { background: #fff; transform: translateY(-2px); }
.wk-cat__pick.is-on { background: #fff; border-color: rgba(47,101,166,.45); box-shadow: 0 10px 24px -14px rgba(11,26,51,.4); }
.wk-cat__mini { flex: none; width: 46px; aspect-ratio: .71; border-radius: 2px 5px 5px 2px; overflow: hidden; background: var(--frost); box-shadow: -2px 0 0 rgba(11,26,51,.12), 0 6px 12px -6px rgba(11,26,51,.5); transform: perspective(300px) rotateY(-14deg); }
.wk-cat__mini img { width: 100%; height: 100%; object-fit: cover; }
.wk-cat__label { display: flex; flex-direction: column; min-width: 0; }
.wk-cat__label b { font-weight: 500; font-size: .92rem; white-space: nowrap; }
.wk-cat__label small { font-size: .78rem; color: var(--soft); white-space: nowrap; }

/* full-screen reading */
.wk-cat__desk.is-reading { position: fixed; inset: 0; z-index: 130; margin: 0; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 0; padding: 20px clamp(16px, 3vw, 40px);
  background: radial-gradient(60% 70% at 50% 20%, #1E3A63 0%, var(--navy) 70%); box-shadow: none; }
.wk-cat__desk.is-reading .wk-cat__stage { height: calc(100vh - 100px); height: calc(100dvh - 100px); }
.wk-cat__desk.is-reading .wk-cat__panel { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 0 4px; }
.wk-cat__desk.is-reading .wk-cat__n, .wk-cat__desk.is-reading .wk-cat__meta, .wk-cat__desk.is-reading .wk-cat__d, .wk-cat__desk.is-reading .wk-cat__acts { display: none; }
.wk-cat__desk.is-reading h3 { margin: 0; font-size: 1rem; color: #fff; }
.wk-cat__desk.is-reading .wk-cat__pager { margin: 0; }
.wk-cat__desk.is-reading .wk-cat__pager p { color: #C9D6E6; }
.wk-cat__desk.is-reading .round-btn { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }

/* =================================================================== FLYERS & PRINT: the lit cutting mat */
.wk-print { padding: clamp(64px, 7vw, 108px) 0 var(--sec); background: #fff; }
.wk-print .wk-sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.wk-mat { position: relative; border-radius: var(--r-lg); padding: clamp(44px, 5vw, 72px) clamp(20px, 4vw, 64px) clamp(36px, 4vw, 56px); overflow: hidden;
  background-color: #E1EAF2;
  background-image:
    radial-gradient(70% 70% at 18% 0%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(rgba(11,26,51,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(11,26,51,.075) 1px, transparent 1px),
    linear-gradient(rgba(11,26,51,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,26,51,.035) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  box-shadow: inset 0 0 0 1px rgba(11,26,51,.06), inset 0 30px 60px -40px rgba(255,255,255,.9), 0 30px 60px -44px rgba(11,26,51,.4); }
.wk-mat__ruler { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: repeating-linear-gradient(90deg, rgba(11,26,51,.28) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(11,26,51,.16) 0 1px, transparent 1px 6px); background-size: 100% 12px, 100% 6px; background-repeat: no-repeat; background-position: 0 0, 0 0; border-bottom: 1px solid rgba(11,26,51,.08); opacity: .7; }
.wk-mat__sheets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(170px, 20vw, 250px), 1fr)); gap: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 52px); align-items: end; }
.wk-sheet { transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); transition: transform .6s var(--ease); }
.wk-sheet__paper { position: relative; display: block; background: #fff; border-radius: 1px;
  box-shadow: 0 1px 1px rgba(11,26,51,.14), 0 6px 10px -5px rgba(11,26,51,.2), 0 24px 34px -22px rgba(11,26,51,.45); transition: box-shadow .6s var(--ease); }
.wk-sheet__paper img, .wk-sheet__paper canvas { display: block; width: 100%; height: auto; }
.wk-sheet__paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 38%), linear-gradient(0deg, rgba(11,26,51,.05), rgba(11,26,51,0) 30%); }
.wk-sheet__corner { position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; z-index: 1; background: linear-gradient(315deg, #E1EAF2 0 50%, #EEF2F6 50%, #fff 100%); box-shadow: -3px -3px 6px -3px rgba(11,26,51,.35); transition: width .4s var(--ease), height .4s var(--ease); }
.wk-sheet:hover, .wk-sheet:focus-within { transform: translateY(-14px) rotate(0deg); z-index: 2; }
.wk-sheet:hover .wk-sheet__paper, .wk-sheet:focus-within .wk-sheet__paper { box-shadow: 0 2px 2px rgba(11,26,51,.1), 0 16px 24px -10px rgba(11,26,51,.22), 0 46px 60px -30px rgba(11,26,51,.5); }
.wk-sheet:hover .wk-sheet__corner { width: 46px; height: 46px; }
.wk-sheet__tag { margin-top: 18px; display: flex; flex-direction: column; gap: 3px; }
.wk-sheet__tag b { font-weight: 500; color: var(--navy); font-size: .95rem; }
.wk-sheet__tag span { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wk-sheet__tag i { font-style: normal; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--glacier-d); border: 1px solid rgba(79,134,198,.45); border-radius: 99px; padding: 2px 8px; }

/* the sheet, up close, in the shared viewer */
.work-lb[data-kind="print"] .work-lb__panel { width: min(980px, 100%); }
.work-lb[data-kind="print"] .work-lb__body { flex-direction: column; align-items: center; background: #E1EAF2; background-image: linear-gradient(rgba(11,26,51,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11,26,51,.05) 1px, transparent 1px); background-size: 24px 24px; overflow: auto; }
.wk-proof { padding: clamp(20px, 3vw, 36px) 20px 8px; perspective: 2200px; display: grid; place-items: center; }
.wk-proof__card { position: relative; height: min(64vh, 640px); aspect-ratio: var(--ar, .707); max-width: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease); cursor: grab; touch-action: pan-y; }
.wk-proof__card.is-dragging { transition: none; cursor: grabbing; }
.wk-proof__face { position: absolute; inset: 0; background: #fff; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 2px 3px rgba(11,26,51,.12), 0 40px 60px -30px rgba(11,26,51,.55); overflow: hidden; }
.wk-proof__face img, .wk-proof__face canvas { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.wk-proof__face--back { transform: rotateY(180deg); display: grid; place-items: center; color: var(--soft); font-size: .85rem; }
.wk-proof__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.25), rgba(255,255,255,0) 40%); }
.wk-proof__foot { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 16px 24px 20px; background: #fff; border-top: 1px solid var(--line-2); }
.wk-proof__foot p { color: var(--muted); font-size: .92rem; max-width: 60ch; }
.wk-proof__foot b { display: block; color: var(--navy); font-weight: 500; }
.wk-proof__foot .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* =================================================================== MOBILE APPS: the app stage */
.wk-apps { position: relative; padding: var(--sec) 0; overflow: hidden; color: #fff; background: radial-gradient(90% 70% at 70% 0%, #1B355F 0%, var(--navy-2) 34%, var(--navy) 72%); }
.wk-apps .wk-sec-head { margin-bottom: clamp(28px, 3vw, 44px); }
.wk-appx__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); }
.wk-appx__tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 99px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #C9D6E6; font-size: .9rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.wk-appx__tabs button img { width: 28px; height: 28px; border-radius: 8px; }
.wk-appx__tabs button[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.wk-appx__app { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .55fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.wk-appx__app[hidden] { display: none; }
.wk-appx__icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.1); }
.wk-appx__copy h3 { margin-top: 22px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; }
.wk-appx__sector { margin-top: 8px; color: #9EC3EC; font-size: .92rem; }
.wk-appx__d { margin-top: 16px; color: #C9D6E6; max-width: 40ch; }
.wk-appx__plat { list-style: none; display: flex; gap: 8px; padding: 0; margin: 20px 0 0; }
.wk-appx__plat li { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #C9D6E6; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: 4px 11px; }
.wk-appx__stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wk-store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.22); transition: transform .3s var(--ease), border-color .3s; }
.wk-store:hover { color: #fff; transform: translateY(-2px); border-color: rgba(255,255,255,.5); }
.wk-store svg { width: 22px; height: 22px; fill: currentColor; }
.wk-store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 500; font-size: 1rem; }
.wk-store small { font-size: .66rem; font-weight: 400; opacity: .8; }

.wk-appx__stage { position: relative; display: grid; place-items: center; perspective: 1400px; padding: 20px 0; }
.wk-appx__glow { position: absolute; width: 150%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow, rgba(79,134,198,.55)), rgba(79,134,198,0)); opacity: .55; filter: blur(10px); pointer-events: none; transition: background 1s; }
.wk-phone { position: relative; width: clamp(220px, 21vw, 292px); aspect-ratio: 9 / 19.4; padding: 11px; border-radius: 48px; background: linear-gradient(145deg, #3A4352, #12161E 40%, #0A0D13);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 6px #07090D, 0 60px 90px -36px rgba(0,0,0,.85), 0 18px 40px -20px rgba(0,0,0,.6);
  transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d; transition: transform .9s var(--ease); }
.wk-phone__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #555E6C, #22272F); }
.wk-phone__btn--a { left: -2px; top: 19%; height: 7%; }
.wk-phone__btn--b { left: -2px; top: 29%; height: 11%; }
.wk-phone__btn--c { right: -2px; top: 25%; height: 15%; }
.wk-phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #000; isolation: isolate; }
.wk-phone__track { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wk-phone__track::-webkit-scrollbar { display: none; }
.wk-phone__track li { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.wk-phone__track img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.wk-phone__island { position: absolute; top: 2.4%; left: 50%; width: 32%; height: 3.6%; transform: translateX(-50%); border-radius: 99px; background: #000; z-index: 2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.wk-phone__glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: linear-gradient(120deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 100%); }

.wk-appx__shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 12px; max-width: 280px; justify-self: end; }
.wk-appx__shots button { position: relative; display: block; width: 100%; aspect-ratio: 9 / 19.4; border-radius: 12px; overflow: hidden; padding: 0; border: 1px solid rgba(255,255,255,.14); background: #000; cursor: pointer; opacity: .55; transition: opacity .3s, transform .3s var(--ease), border-color .3s; }
.wk-appx__shots button:hover { opacity: .85; transform: translateY(-2px); }
.wk-appx__shots button[aria-current="true"] { opacity: 1; border-color: #9EC3EC; }
.wk-appx__shots img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wk-appx__shots i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #9EC3EC; transform: scaleX(0); transform-origin: left; }
.wk-appx__shots button[aria-current="true"] i { transform: scaleX(var(--prog, 0)); }

/* =================================================================== smaller screens */
@media (max-width: 1100px) {
  .wk-appx__app { grid-template-columns: minmax(0, 1fr) auto; }
  .wk-appx__shots { grid-column: 1 / -1; justify-self: stretch; max-width: none; grid-template-columns: repeat(auto-fill, minmax(54px, 64px)); }
}
@media (max-width: 899px) {
  .wk-cat__desk { grid-template-columns: 1fr; }
  .wk-cat__stage { height: clamp(380px, 112vw, 560px); }
  .wk-cat__still { width: min(62%, 300px); }
  .wk-appx__app { grid-template-columns: 1fr; text-align: left; }
  .wk-appx__stage { order: -1; }
  .wk-phone { width: min(62vw, 260px); }
}
@media (max-width: 600px) {
  .wk-mat { padding: 40px 18px 28px; }
  .wk-mat__sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .wk-sheet__tag b { font-size: .86rem; }
  .wk-cat__pager p { min-width: 7.5em; font-size: .84rem; }
}
/* the page count's progress line, and the full-screen toggle's two faces */
.wk-cat__prog { position: relative; flex: none; width: 84px; height: 3px; border-radius: 3px; background: rgba(11,26,51,.1); overflow: hidden; }
.wk-cat__prog i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--glacier), var(--glacier-d)); transform: scaleX(var(--prog, 0)); transform-origin: left; transition: transform .6s var(--ease); }
.wk-cat__desk.is-reading .wk-cat__prog { background: rgba(255,255,255,.16); }
.wk-cat__desk.is-reading .wk-cat__prog i { background: linear-gradient(90deg, #9DBDE0, #fff); }
.wk-cat__shrink, .wk-cat__desk.is-reading .wk-cat__grow { display: none; }
.wk-cat__desk.is-reading .wk-cat__shrink { display: block; }

/* =================================================================== the catalogue on a phone (work-catalogue.js adds .is-phone)
   The desk runs edge to edge, the book takes the width, and its page count and progress sit right under it. */
@media (max-width: 899px) {
  .wk-cat__desk.is-phone { margin-inline: calc(-1 * var(--pad)); padding: 8px 12px 26px; border-radius: 0; gap: 0; }
  .wk-cat__desk.is-phone .wk-cat__panel { padding: 22px 8px 0; }
  .wk-cat__desk.is-phone .wk-cat__pager { margin: 2px 8px 0; gap: 12px; }
  /* shown under the closed book too (the cover and how many pages it has), so nothing jumps when it opens */
  .wk-cat__desk.is-phone .wk-cat__pager[hidden] { display: flex; }
  .wk-cat__desk.is-phone .round-btn[hidden] { display: none; }
  .wk-cat__desk.is-phone .wk-cat__pager p { min-width: 0; text-align: left; white-space: nowrap; }
  .wk-cat__desk.is-phone .wk-cat__prog { flex: 1; width: auto; }
  .wk-cat__desk.is-phone .wk-cat__min { display: inline-grid; }
  .wk-cat__desk.is-phone .round-btn { width: 44px; height: 44px; flex: none; background: rgba(255,255,255,.75); }
  .wk-cat__desk.is-phone .wk-cat__acts { display: none; }
}
@media (max-width: 600px) {
  /* the shelf: each catalogue a little narrower than the screen, so the next one peeks in to be swiped to */
  .wk-cat__shelf { scroll-snap-type: x mandatory; scroll-padding-inline: 2px; }
  .wk-cat__shelf li { flex: none; max-width: 78%; scroll-snap-align: start; }
  .wk-cat__pick { width: 100%; }
  .wk-cat__label b, .wk-cat__label small { overflow: hidden; text-overflow: ellipsis; }
  /* before the book is ready, the stage is already about the height it will take */
  .wk-cat__stage { height: auto; aspect-ratio: .66; }
  .wk-cat__still { width: min(78%, 320px); }
  /* full screen on a phone: the page as large as fits, and one quiet row of controls under it */
  .wk-cat__desk.is-reading { padding: 12px 10px calc(10px + env(safe-area-inset-bottom)); }
  .wk-cat__desk.is-reading .wk-cat__stage { height: calc(100vh - 84px); height: calc(100dvh - 84px); aspect-ratio: auto; }
  .wk-cat__desk.is-reading h3 { display: none; }
  .wk-cat__desk.is-reading .wk-cat__panel { padding: 6px 4px 0; }
  .wk-cat__desk.is-reading .wk-cat__pager { width: 100%; gap: 12px; }
  .wk-cat__desk.is-reading .wk-cat__pager p { min-width: 0; text-align: left; white-space: nowrap; }
  .wk-cat__desk.is-reading .wk-cat__prog { flex: 1; width: auto; }
}
/* touch screens: the corner of the next page lifts and settles now and then, to show it can be turned */
@media (hover: none) {
  .bk .bk__leaf.is-next .bk__face--front .bk__curl { animation: bk-curl 3.2s var(--ease) 1.2s infinite; }
}
@keyframes bk-curl { 0%, 55%, 100% { width: 18px; height: 18px; } 70% { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .bk, .wk-cat__still, .wk-sheet, .wk-sheet__paper, .wk-proof__card, .wk-phone { transition: none !important; }
  .wk-cat__ghost { display: none; }
  .bk .bk__leaf.is-next .bk__face--front .bk__curl { animation: none; }
}
