/* =========================================================================
 * /work/ — "The Bench". Live client sites inside device frames.
 * Markup: templates/work.php · Behaviour: assets/js/work.js
 * ========================================================================= */

@property --wk-accent  { syntax: '<color>'; inherits: true; initial-value: #0b8fe8; }
@property --wk-accent2 { syntax: '<color>'; inherits: true; initial-value: #66e0ff; }

.wk {
	--wk-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
	/* No z-index here: it would trap the phone focus overlay under the site topbar. */
	position: relative;
	max-width: 1320px; margin: 0 auto; padding: 104px 28px 80px;
	color: var(--c-text); font-family: var(--font-sans);
	transition: --wk-accent .9s ease, --wk-accent2 .9s ease;
}
.wk kbd { font-family: var(--wk-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--c-line); background: rgba(255,255,255,.04); color: var(--c-text-3); }

/* ---- Intro ------------------------------------------------------------- */
.wk-intro { max-width: 760px; margin: 0 0 34px; }
.wk-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-3); }
.wk-livedot { width: 8px; height: 8px; border-radius: 50%; background: #2bd97f; box-shadow: 0 0 0 0 rgba(43,217,127,.6); animation: wk-pulse 2s infinite; }
.wk-title { margin: 0 0 18px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.02em; }
.wk-title em { font-style: italic; background: linear-gradient(100deg, color-mix(in srgb, var(--wk-accent) 85%, #fff), color-mix(in srgb, var(--wk-accent2) 45%, #fff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wk-lede { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--c-text-2); }

/* ---- Bench layout ------------------------------------------------------ */
.wk-bench { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: center; }

/* The list scrolls on its own once it outgrows the stage, so adding projects
   never pushes the bench around. Soft fades hint there is more above/below. */
.wk-rail { display: flex; flex-direction: column; gap: 4px; max-height: min(640px, calc(100vh - 200px)); overflow-y: auto; overscroll-behavior: contain; padding: 6px 6px 6px 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent;
	-webkit-mask: linear-gradient(transparent, #000 18px, #000 calc(100% - 18px), transparent); mask: linear-gradient(transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.wk-rail::-webkit-scrollbar { width: 6px; }
.wk-rail::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(255,255,255,.14); }
.wk-rail__item { --c: var(--c-blue); position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--c-text-3); font: inherit; text-align: left; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.wk-rail__item:hover { color: var(--c-text-2); background: rgba(255,255,255,.03); }
.wk-rail__item.is-on { color: var(--c-text); background: rgba(255,255,255,.045); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.wk-rail__item.is-on::before { content: ""; position: absolute; left: -1px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.wk-rail__num { font-family: var(--wk-mono); font-size: 12px; opacity: .55; }
.wk-rail__item.is-on .wk-rail__num { color: var(--c); opacity: 1; }
.wk-rail__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wk-rail__text strong { font-size: 14.5px; font-weight: 600; }
.wk-rail__text small { font-size: 12px; color: var(--c-text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-rail__hint { flex: 0 0 auto; margin: 8px 0 4px 14px; font-size: 11.5px; color: var(--c-text-4); }

.wk-stagewrap { position: relative; min-width: 0; }
.wk-tabs { display: none; }

/* ---- Stage ------------------------------------------------------------- */
.wk-stage {
	/* Width is capped by the viewport height so the whole bench fits on screen
	   while keeping its proportions (device positions are % of the stage). */
	position: relative; aspect-ratio: 1000 / 640; width: min(100%, calc((100vh - 190px) * 1000 / 640)); margin: 0 auto;
	border-radius: 28px; overflow: visible;
	--rx: 0deg; --ry: 0deg;
}
.wk-glow { position: absolute; inset: -6% -4%; pointer-events: none; border-radius: 50%;
	background:
		radial-gradient(45% 50% at 50% 42%, color-mix(in srgb, var(--wk-accent) 30%, transparent), transparent 70%),
		radial-gradient(30% 40% at 78% 70%, color-mix(in srgb, var(--wk-accent2) 22%, transparent), transparent 70%),
		radial-gradient(30% 40% at 20% 72%, color-mix(in srgb, var(--wk-accent2) 16%, transparent), transparent 70%);
	filter: blur(30px); opacity: .9; }
.wk-floor { position: absolute; left: 6%; right: 6%; bottom: -2%; height: 12%; pointer-events: none; border-radius: 50%;
	background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.55), transparent 70%); filter: blur(8px); }
.wk-scene { position: absolute; inset: 0; perspective: 2200px; transform-style: preserve-3d; }

/* ---- Devices ----------------------------------------------------------- */
.wk-dev { position: absolute; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.75,.2,1), opacity .5s ease, filter .5s ease; will-change: transform; z-index: 1; }
.wk-dev__body { position: relative; display: flex; flex-direction: column; background: linear-gradient(160deg, #1b1e26, #0b0d12); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.6) inset, 0 1px 0 rgba(255,255,255,.08) inset; }
.wk-view { position: relative; flex: 1; overflow: hidden; background: #07080b; isolation: isolate; }
.wk-view iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.wk-dev.is-live .wk-view iframe { opacity: 1; }

.wk-dev--desktop { left: 50%; top: 4%; width: 60%; transform: translateX(-50%) rotateX(var(--rx)) rotateY(var(--ry)); z-index: 1; }
.wk-dev--desktop .wk-dev__body { padding: 0 8px 8px; border-radius: 14px 14px 6px 6px; }
.wk-dev--desktop .wk-view { aspect-ratio: 1440 / 900; border-radius: 3px; }
.wk-dev__base { position: relative; left: -9%; width: 118%; height: 14px; border-radius: 0 0 18px 18px; background: linear-gradient(#2a2e38, #12141a 60%, #0a0b0f); box-shadow: 0 18px 30px rgba(0,0,0,.5); }
.wk-dev__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #0b0c10; }
.wk-chrome { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 4px; }
.wk-chrome__dots { display: flex; gap: 5px; }
.wk-chrome__dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.wk-chrome__dots i:nth-child(2) { background: #febc2e; }
.wk-chrome__dots i:nth-child(3) { background: #28c840; }
.wk-chrome__url { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 18px; max-width: 46%; margin: 0 auto; padding: 0 10px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--c-text-3); font-family: var(--wk-mono); font-size: 10.5px; white-space: nowrap; overflow: hidden; }
.wk-chrome__live { display: inline-flex; align-items: center; gap: 5px; font-family: var(--wk-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--c-text-4); transition: color .3s; }
.wk-chrome__live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wk-dev.is-live .wk-chrome__live { color: #2bd97f; }
.wk-dev.is-live .wk-chrome__live i { animation: wk-pulse 2s infinite; }

.wk-dev--tablet { left: 3%; bottom: 7%; width: 24%; transform: rotateX(var(--rx)) rotateY(calc(16deg + var(--ry))) translateZ(40px); z-index: 2; }
.wk-dev--tablet .wk-dev__body { padding: 10px; border-radius: 22px; }
.wk-dev--tablet .wk-view { aspect-ratio: 834 / 1194; border-radius: 10px; }

.wk-dev--phone { right: 7%; bottom: 5%; width: 13.5%; transform: rotateX(var(--rx)) rotateY(calc(-16deg + var(--ry))) translateZ(60px); z-index: 3; }
.wk-dev--phone .wk-dev__body { padding: 7px; border-radius: 30px; }
.wk-dev--phone .wk-view { aspect-ratio: 390 / 800; border-radius: 0 0 24px 24px; }
/* iPhone status bar above the page, so the camera cutout never sits on the site's logo. */
.wk-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 0; padding-bottom: 11.5%; border-radius: 24px 24px 0 0; background: #000; color: #fff; }
.wk-status > * { position: absolute; top: 50%; }
.wk-status__time { left: 9%; transform: translateY(5%); font-family: var(--font-sans); font-size: clamp(6px, .62vw, 12px); font-weight: 600; letter-spacing: .01em; }
.wk-status__icons { right: 8%; display: flex; gap: 3px; transform: translateY(5%); }
.wk-status__icons svg { width: auto; height: clamp(5px, .5vw, 9px); }
.wk-island { left: 50%; width: 32%; height: 62%; transform: translate(-50%, 40%); border-radius: 20px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.wk-status > .wk-island { top: 0; }

/* Readouts under each device */
.wk-readout { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); white-space: nowrap; font-family: var(--wk-mono); font-size: 10.5px; color: var(--c-text-4); transition: opacity .3s; }
.wk-dev--desktop .wk-readout { top: calc(100% + 16px); }
.wk-readout b { font-weight: 600; color: var(--c-text-3); letter-spacing: .08em; text-transform: uppercase; }
.wk-readout em { font-style: normal; }
.wk-dev.is-live .wk-readout em { color: #2bd97f; }

/* Boot overlay */
.wk-boot { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 8%; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--wk-accent) 14%, #07080b), #07080b 70%); transition: opacity .6s ease, visibility 0s linear .6s; }
.wk-boot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 0, rgba(255,255,255,.04) 50%, transparent 100%); background-size: 100% 6px; opacity: .35; pointer-events: none; }
.wk-boot__lines { font-family: var(--wk-mono); font-size: clamp(7px, .75vw, 11px); line-height: 1.7; color: color-mix(in srgb, var(--wk-accent2) 70%, #fff); }
.wk-boot__lines div { opacity: 0; transform: translateY(4px); animation: wk-line .3s ease forwards; white-space: nowrap; }
.wk-boot__lines .ok { color: #2bd97f; }
.wk-dev.is-live .wk-boot { opacity: 0; visibility: hidden; }
.wk-dev--phone .wk-boot__lines, .wk-dev--tablet .wk-boot__lines { font-size: clamp(6px, .6vw, 10px); }

/* Power-off between projects */
.wk-stage.is-switching .wk-view::after { content: ""; position: absolute; inset: 0; z-index: 4; background: #000; animation: wk-off .35s ease forwards; }

/* Take-control overlay */
.wk-touch { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6%; border: 0; background: transparent; cursor: zoom-in; }
.wk-touch span { padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(10,11,15,.78); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.wk-dev:hover .wk-touch span, .wk-touch:focus-visible span { opacity: 1; transform: none; }
.wk-dev:not(.is-live) .wk-touch { cursor: progress; }

/* Focus mode: one device front and centre, interactive */
.wk-stage.is-focus .wk-dev { opacity: .08; filter: blur(3px); pointer-events: none; }
.wk-stage.is-focus .wk-dev.is-focused { opacity: 1; filter: none; pointer-events: auto; z-index: 10; }
.wk-stage.is-focus .wk-dev.is-focused .wk-touch { display: none; }
.wk-stage.is-focus .wk-dev.is-focused iframe { pointer-events: auto; }
.wk-stage.is-focus .wk-readout { opacity: 0; }
.wk-exit { position: absolute; z-index: 20; top: 0; left: 50%; transform: translate(-50%, -130%); display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--c-line); background: rgba(10,11,15,.85); color: var(--c-text); font: inherit; font-size: 13px; cursor: pointer; backdrop-filter: blur(8px); }
.wk-exit:hover { border-color: rgba(255,255,255,.25); }

/* ---- Detail ------------------------------------------------------------ */
.wk-detail { margin: 72px 0 0; padding: 36px; border-radius: 22px; border: 1px solid var(--c-line); background: linear-gradient(160deg, color-mix(in srgb, var(--wk-accent) 7%, rgba(255,255,255,.02)), rgba(255,255,255,.015)); transition: opacity .3s; }
.wk-detail.is-swapping { opacity: 0; }
.wk-detail__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 26px; }
.wk-detail__meta { flex-basis: 100%; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wk-accent); }
.wk-detail__name { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.wk-detail__visit { margin-left: auto; font-family: var(--wk-mono); font-size: 13px; color: var(--c-text-2); text-decoration: none; border-bottom: 1px solid var(--c-line); padding-bottom: 2px; }
.wk-detail__visit:hover { color: var(--c-text); border-color: var(--wk-accent); }
.wk-detail__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
.wk-detail h3 { margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-4); }
.wk-built { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wk-built li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--c-text-2); }
.wk-built li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 2px; border-radius: 2px; background: var(--wk-accent); }
.wk-palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wk-palette span { display: flex; flex-direction: column; gap: 8px; }
.wk-palette i { display: block; aspect-ratio: 1; border-radius: 12px; background: var(--c); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.wk-palette code { font-family: var(--wk-mono); font-size: 10.5px; color: var(--c-text-3); }

/* ---- Stretch test ------------------------------------------------------ */
.wk-stretch { margin: 96px 0 0; }
.wk-stretch__head { max-width: 640px; margin-bottom: 28px; }
.wk-stretch__head h2 { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.wk-stretch__head p:not(.wk-eyebrow) { margin: 0; color: var(--c-text-2); font-size: 16px; line-height: 1.6; }
.wk-ruler { position: relative; height: 26px; margin-bottom: 6px; border-bottom: 1px dashed var(--c-line); }
.wk-ruler span { position: absolute; bottom: 4px; left: calc(var(--at) / 1440 * 100%); transform: translateX(-100%); padding-right: 6px; font-family: var(--wk-mono); font-size: 10.5px; color: var(--c-text-4); white-space: nowrap; }
.wk-ruler span::after { content: ""; position: absolute; right: 0; bottom: -9px; width: 1px; height: 12px; background: var(--c-text-4); }
.wk-stretch__track { position: relative; }
.wk-stretch__ghost { position: absolute; inset: 0; border: 1px dashed rgba(255,255,255,.12); border-radius: 14px; pointer-events: none; }
.wk-stretch__ghost span { position: absolute; right: 14px; top: 9px; font-family: var(--wk-mono); font-size: 11px; color: var(--c-text-4); }
.wk-stretch__frame { position: relative; width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: #0b0d12; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 60px color-mix(in srgb, var(--wk-accent) 18%, transparent); }
.wk-stretch__bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.06); font-family: var(--wk-mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.wk-stretch__w { color: var(--c-text); font-weight: 600; }
.wk-stretch__class { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--wk-accent) 22%, transparent); color: var(--c-text); }
.wk-stretch__scale { margin-left: auto; color: var(--c-text-4); }
.wk-stretch__view { position: relative; height: min(64vh, 620px); overflow: hidden; border-radius: 0 0 13px 13px; background: #fff; }
.wk-stretch__view iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.wk-stretch__view::after { content: ""; position: absolute; inset: 0; } /* keeps drags from falling into the site */
.wk-stretch__handle { position: absolute; top: 50%; right: -14px; transform: translateY(-50%); width: 28px; height: 64px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: linear-gradient(var(--wk-accent), color-mix(in srgb, var(--wk-accent) 60%, #000)); box-shadow: 0 6px 20px rgba(0,0,0,.5), 0 0 20px color-mix(in srgb, var(--wk-accent) 50%, transparent); cursor: ew-resize; touch-action: none; }
.wk-stretch__handle i { width: 2px; height: 22px; border-radius: 2px; background: rgba(255,255,255,.85); }
.wk-stretch__handle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wk-stretch.is-dragging, .wk-stretch.is-dragging * { cursor: ew-resize !important; user-select: none; }
.wk-stretch__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.wk-stretch__presets button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line); background: rgba(255,255,255,.03); color: var(--c-text-2); font: inherit; font-size: 13px; cursor: pointer; }
.wk-stretch__presets button:hover, .wk-stretch__presets button.is-on { color: var(--c-text); border-color: color-mix(in srgb, var(--wk-accent) 55%, transparent); background: color-mix(in srgb, var(--wk-accent) 12%, transparent); }
.wk-stretch__replay { margin-left: auto; }

/* ---- CTA --------------------------------------------------------------- */
.wk-cta { margin: 110px 0 0; padding: 64px 28px; text-align: center; border-radius: 26px; border: 1px solid var(--c-line); background: radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--wk-accent) 16%, transparent), transparent 70%); }
.wk-cta h2 { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 54px); }
.wk-cta p { margin: 0 0 26px; color: var(--c-text-2); font-size: 16px; }
.wk-cta__btn { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; color: #fff; text-decoration: none; background: linear-gradient(90deg, var(--c-blue), var(--c-cyan)); box-shadow: 0 10px 30px rgba(11,143,232,.35); transition: transform .2s, filter .2s; }
.wk-cta__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.wk-empty { max-width: 640px; margin: 160px auto; text-align: center; color: var(--c-text-2); }

/* ---- Motion ------------------------------------------------------------ */
@keyframes wk-pulse { 0% { box-shadow: 0 0 0 0 rgba(43,217,127,.55); } 70% { box-shadow: 0 0 0 7px rgba(43,217,127,0); } 100% { box-shadow: 0 0 0 0 rgba(43,217,127,0); } }
@keyframes wk-line { to { opacity: 1; transform: none; } }
@keyframes wk-off { 0% { opacity: 0; clip-path: inset(0 0 0 0); } 60% { opacity: 1; clip-path: inset(49% 0 49% 0); } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---- Phones & small tablets: one device at a time ---------------------- */
@media (max-width: 960px) {
	.wk { padding: 96px 16px 64px; }
	.wk-intro { margin-bottom: 26px; }
	.wk-lede { font-size: 15.5px; }
	.wk-bench { grid-template-columns: 1fr; gap: 16px; }
	.wk-rail { flex-direction: row; gap: 8px; max-height: none; overflow-x: auto; overflow-y: visible; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; -webkit-mask: none; mask: none; }
	.wk-rail::-webkit-scrollbar { display: none; }
	.wk-rail__item { flex: 0 0 auto; width: auto; padding: 10px 14px; border-color: var(--c-line); }
	.wk-rail__item.is-on::before { left: 14px; right: 14px; top: auto; bottom: -1px; width: auto; height: 2px; }
	.wk-rail__text small, .wk-rail__hint { display: none; }
	.wk-tabs { display: flex; justify-content: center; gap: 4px; margin: 0 auto 14px; padding: 4px; width: max-content; border-radius: 999px; border: 1px solid var(--c-line); background: rgba(255,255,255,.03); }
	.wk-tab { height: 32px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--c-text-3); font: inherit; font-size: 13px; cursor: pointer; }
	.wk-tab.is-on { color: #fff; background: color-mix(in srgb, var(--wk-accent) 38%, rgba(255,255,255,.06)); }
	.wk-stage { aspect-ratio: auto; max-height: none; width: 100%; height: auto; display: flex; justify-content: center; padding-bottom: 40px; }
	.wk-scene { position: relative; inset: auto; width: 100%; perspective: none; display: flex; justify-content: center; }
	.wk-dev { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; transform: none !important; display: none; }
	.wk-dev.is-tab { display: block; }
	.wk-dev--phone { width: min(72%, 300px); }
	.wk-dev--tablet { width: min(88%, 460px); }
	.wk-dev--desktop { width: 100%; }
	.wk-dev--desktop .wk-dev__base { left: -3%; width: 106%; }
	.wk-glow { inset: 0 -10%; }
	.wk-touch span { opacity: 1; transform: none; }
	.wk-stage.is-focus { position: fixed; inset: 0; z-index: 2147483000; padding: calc(64px + env(safe-area-inset-top)) 12px 20px; background: rgba(5,6,9,.96); align-items: center; }
	.wk-stage.is-focus .wk-dev.is-focused { width: auto; height: calc(100dvh - 100px); }
	.wk-stage.is-focus .wk-dev--phone.is-focused .wk-view { height: calc(100dvh - 118px); width: auto; }
	.wk-stage.is-focus .wk-dev--tablet.is-focused .wk-view { height: calc(100dvh - 124px); width: auto; }
	.wk-stage.is-focus .wk-dev--desktop.is-focused { width: 100%; height: auto; }
	.wk-exit { top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); }
	.wk-detail { margin-top: 36px; padding: 22px; }
	.wk-detail__body { grid-template-columns: 1fr; gap: 26px; }
	.wk-detail__visit { margin-left: 0; }
	.wk-stretch { display: none; }
	.wk-cta { margin-top: 64px; padding: 44px 20px; }
}

/* While a device is in phone focus mode the site topbar is hidden so nothing sits over the exit. */
html.wk-locked .troia-topbar { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	.wk, .wk-dev, .wk-view iframe, .wk-boot, .wk-detail { transition: none !important; }
	.wk-livedot, .wk-chrome__live i { animation: none !important; }
	.wk-stage.is-switching .wk-view::after { animation: none; }
}

/* ---- Websites / Software switch ---------------------------------------- */
.wk-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 30px; padding: 5px; border-radius: 999px; border: 1px solid var(--c-line); background: rgba(255,255,255,.03); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.wk-switch__tab { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--c-text-3); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .3s; }
.wk-switch__tab:hover { color: var(--c-text-2); }
.wk-switch__tab.is-on { color: #fff; }
.wk-switch__tab:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.wk-switch__n { min-width: 22px; padding: 1px 7px; border-radius: 999px; font-family: var(--wk-mono); font-size: 11px; font-weight: 600; color: var(--c-text-3); background: rgba(255,255,255,.07); transition: background .3s, color .3s; }
.wk-switch__tab.is-on .wk-switch__n { color: #fff; background: color-mix(in srgb, var(--wk-accent) 55%, transparent); }
/* The light that slides under the active tab, tinted by the current project. */
.wk-switch__ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
	background: linear-gradient(120deg, color-mix(in srgb, var(--wk-accent) 30%, rgba(255,255,255,.04)), color-mix(in srgb, var(--wk-accent2) 18%, rgba(255,255,255,.03)));
	border: 1px solid color-mix(in srgb, var(--wk-accent) 45%, transparent);
	box-shadow: 0 0 24px color-mix(in srgb, var(--wk-accent) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.12);
	transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.wk-switch[data-on="software"] .wk-switch__ink { transform: translateX(100%); }
.wk-pane[hidden] { display: none !important; }
.wk-pane.is-on { animation: wk-pane-in .5s cubic-bezier(.2,.8,.2,1); }
.wk-pane__intro { margin: -12px 0 22px; color: var(--c-text-3); font-size: 14.5px; }
@keyframes wk-pane-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Capture mode (products that cannot be framed) --------------------- */
.wk-cap { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: #07080b; }
.wk-cap[hidden] { display: none; }
.wk-cap img { display: block; width: 100%; height: auto; will-change: transform; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.wk-stage.is-focus .wk-dev.is-focused .wk-cap { cursor: grab; touch-action: none; }
.wk-stage.is-focus .wk-dev.is-focused .wk-cap:active { cursor: grabbing; }
.wk-dev.is-capture.is-live .wk-chrome__live { color: #f0b429; }
.wk-dev.is-capture.is-live .wk-readout em { color: #f0b429; }
.wk-dev.is-capture .wk-chrome__live b { font-weight: inherit; }
.wk-detail__note { margin: -8px 0 24px; padding: 12px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, #f0b429 45%, transparent); background: rgba(240,180,41,.06); color: var(--c-text-2); font-size: 13.5px; line-height: 1.55; }
.wk-detail__note[hidden] { display: none; }

@media (max-width: 960px) {
	.wk-switch { display: grid; width: 100%; margin-bottom: 20px; }
	.wk-switch__tab { height: 40px; padding: 0 12px; font-size: 13.5px; }
	.wk-pane__intro { margin: -6px 0 14px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.wk-switch__ink, .wk-pane.is-on { transition: none; animation: none; }
}

/* ---- Demo mode (interactive product demos hosted on troia.app) ---- */
.wk-dev.is-demo.is-live .wk-chrome__live { color: #5ad8ff; }
.wk-dev.is-demo.is-live .wk-readout em { color: #5ad8ff; }
.wk-detail__demo { margin-left: auto; color: #5ad8ff; border-color: rgba(90,216,255,.35); }
.wk-detail__demo + .wk-detail__visit { margin-left: 18px; }
.wk-detail__demo[hidden] { display: none; }
.wk-detail__demo[hidden] + .wk-detail__visit { margin-left: auto; }
@media (max-width: 960px) { .wk-detail__demo { margin-left: 0; } .wk-detail__demo + .wk-detail__visit { margin-left: 0; } }
