/* Work section · E and F finalists. Self-contained and scoped to .wq, so the same file serves the bake-off and the website
   previews. Brand System v1.1: Instrument Sans and Martian Mono, Cold Room Navy, Ice, Oxblood.
   The heading sits in the page above the pinned screen, so the whole screen belongs to the work. The cards and panels are
   drawn by gl.js; light is DOM layers with 2D transforms only, so every edge is anti-aliased. */
.wq{
 --wq-bg:#0A1017;--fg:#EEEBE5;--fg2:#AFBCCA;--fg3:#8395A8;--acc:#B4D3F0;--rule:rgba(180,211,240,.16);
 --ox:125,28,48;--oxd:74,15,28;
 --wq-sans:'Instrument Sans',ui-sans-serif,system-ui,sans-serif;--wq-mono:'Martian Mono',ui-monospace,Menlo,monospace;
 --wq-ease:cubic-bezier(.2,.7,.2,1);
 --wq-top:0px;   /* the top of the screen kept clear of the work (a host page's floating chrome) */
 position:relative;color:var(--fg);font-family:var(--wq-sans)}
.wq *{box-sizing:border-box}
.wq .vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.wq :focus-visible{outline:2px solid var(--acc);outline-offset:3px}
.wq .xg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.4;flex:none}

/* heading, in the page. Horizontal margins come from the host page's own .wrap container (the site's content column),
   never from gutters of the section's own, so the heading and details line up with every other section */
.wq-hd{position:relative;padding:clamp(72px,10vh,112px) 0 clamp(28px,4vh,44px)}
.wq-hd h2{margin:0;font-size:clamp(34px,3.6vw,56px);line-height:.96;letter-spacing:-.038em;font-weight:600;text-wrap:balance}
.wq-lead{margin:14px 0 0;font-size:17px;line-height:1.55;color:var(--fg2);max-width:62ch;text-wrap:pretty}

/* the screen: pinned on desktop while the page scrolls through the projects */
.wq-track{position:relative}
.wq-screen{position:relative;overflow:hidden}
.wq.pinned .wq-screen{position:sticky;top:var(--bar,0px);height:calc(100svh - var(--bar,0px));min-height:600px}
.wq-stage{position:absolute;inset:0;z-index:0;isolation:isolate;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;-webkit-tap-highlight-color:transparent}
.wq-stage.dragging{cursor:grabbing}
.wq-stage.rm-swap{animation:wqSwap .26s ease}
@keyframes wqSwap{from{opacity:.25}}
.wq-gl{position:absolute;left:0;top:0;display:block}
.wq-fb{position:absolute;background:center/100% 100% no-repeat}

/* the room light: a pool of Oxblood under the work. It reaches nothing at every edge of its box, and the box ends inside
   the screen, so the light fades out on its own instead of being cut where the screen meets the page */
.wq-floor{position:absolute;left:0;right:0;bottom:0;pointer-events:none;
 background:radial-gradient(64% 50% at 50% 50%,rgba(var(--ox),.5),rgba(var(--oxd),.24) 52%,rgba(var(--oxd),0) 100%);will-change:opacity}
/* seam: the Oxblood is the site's material beside the seam, not light, so the glow is off wherever the seam stands (from
   1024 px); below that the site's field stays Navy, and the glow returns */
@media (min-width:1024px){.wq[data-light="seam"] .wq-floor,.wq[data-light="seam"] .f-halo{display:none}}

/* details and index: one block at the foot of the screen */
.wq-foot{position:absolute;z-index:5;left:0;right:0;bottom:34px;pointer-events:none}
.wq-fw{position:relative}
.wq-foot a,.wq-foot button{pointer-events:auto}
.wq-ix{position:absolute;top:-10px;right:0;display:flex}
.wq-tab{position:relative;display:inline-flex;align-items:center;justify-content:flex-end;min-width:42px;min-height:44px;padding:0;border:0;background:none;cursor:pointer;
 color:var(--fg3);font:inherit;font-family:var(--wq-mono);font-variation-settings:'wdth' 87.5;font-size:11px;letter-spacing:.06em;transition:color .25s ease}
.wq-tab .t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wq-tab:hover,.wq-tab[aria-selected="true"]{color:var(--fg)}
/* every number sits at the right of its 42 px target: even spacing, and the last ends exactly on the container's edge */
.wq-tab .n{position:relative}
.wq-tab .n::after{content:"";position:absolute;left:0;right:.06em;bottom:-7px;height:1px;background:var(--acc);transform:scaleX(0);transform-origin:left;transition:transform .45s var(--wq-ease)}
.wq-tab[aria-selected="true"] .n::after{transform:none}
.wq-det{outline:none}
.wq .d-in{display:grid;grid-template-columns:minmax(0,24rem) minmax(0,40rem);grid-template-areas:"k k" "t p" "t f";column-gap:clamp(32px,5vw,88px);row-gap:8px;align-items:start}
.wq .d-in.in{animation:wqIn .5s var(--wq-ease)}
.wq .d-in.in-rm{animation:wqInRm .2s ease}
@keyframes wqIn{from{opacity:0;transform:translateY(8px)}}
@keyframes wqInRm{from{opacity:0}}
.wq .d-k{grid-area:k;margin:0 0 4px;min-height:24px;display:flex;align-items:center;gap:12px;font-family:var(--wq-mono);font-variation-settings:'wdth' 87.5;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--fg3)}
.wq .d-n{display:none}   /* the index beside it already marks the number */
.wq .d-lb{padding:5px 8px 4px;box-shadow:inset 0 0 0 1px var(--rule);color:var(--fg2);letter-spacing:.08em}
.wq .d-t{grid-area:t;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:clamp(22px,2.1vw,30px);line-height:1.08;letter-spacing:-.025em;font-weight:600}
.wq .by,.wq .xl{position:relative;display:inline-flex;align-items:center;gap:6px;margin:0;padding:0;box-shadow:none;font-family:var(--wq-mono);font-variation-settings:'wdth' 87.5;font-size:12px;line-height:1.3;letter-spacing:.02em;font-weight:400;color:var(--fg2);text-decoration:none;transition:color .2s ease}
.wq .by:hover,.wq .xl:hover{color:var(--acc)}
/* credits: each company's logo silhouette cast in the material of the site's primary button ("Talk to the founders"):
   the same Ice gradient, the same frost grain in soft light, a lit top edge and a shaded lower edge that follow the
   letterforms (the shape minus itself moved a pixel), and the button's cool lift beneath. Hover lightens it as the button
   does, focus adds the site's ring, and a press sets it down a pixel; no movement or easing under reduced motion */
.wq .by.by-l{padding:6px 0;transition:transform .15s ease}
.wq .by-lg{position:relative;display:block;height:22px;aspect-ratio:var(--ar);
 filter:drop-shadow(0 5px 9px rgba(180,211,240,.2));transition:filter .15s ease}
.wq .by-gtm .by-lg{height:17px;margin:2.5px 0}   /* the reverse wordmark keeps the footprint of the logo it replaced */
.wq .by-lg>span{position:absolute;inset:0;-webkit-mask:var(--m) 0 0/100% 100% no-repeat;mask:var(--m) 0 0/100% 100% no-repeat}
.wq .m-b{isolation:isolate;background:linear-gradient(180deg,#C6E0F6,#B4D3F0 55%,#A9CBEA);transition:background .15s ease}
.wq .m-b::before{content:"";position:absolute;inset:0;background:var(--wq-frost) center/220px;mix-blend-mode:soft-light;opacity:.55}
.wq .by-lg>.m-hi{background:rgba(255,255,255,.7);-webkit-mask:var(--m) 0 0/100% 100% no-repeat,var(--m) 0 .6px/100% 100% no-repeat;mask:var(--m) 0 0/100% 100% no-repeat,var(--m) 0 .6px/100% 100% no-repeat;-webkit-mask-composite:source-out;mask-composite:subtract}
.wq .by-lg>.m-lo{background:rgba(45,90,132,.38);-webkit-mask:var(--m) 0 0/100% 100% no-repeat,var(--m) 0 -.6px/100% 100% no-repeat;mask:var(--m) 0 0/100% 100% no-repeat,var(--m) 0 -.6px/100% 100% no-repeat;-webkit-mask-composite:source-out;mask-composite:subtract}
.wq .by-l:hover .m-b,.wq .by-l:focus-visible .m-b{background:linear-gradient(180deg,#D3E7F8,#C2DCF3 55%,#B6D3EE)}
.wq .by-l:hover .by-lg,.wq .by-l:focus-visible .by-lg{filter:drop-shadow(0 5px 11px rgba(180,211,240,.38))}
.wq .by-l:focus-visible{outline-offset:6px;border-radius:2px}
.wq .by-l:active{transform:translateY(1px)}
.wq-rm .wq .by-l,.wq-rm .wq .by-lg,.wq-rm .wq .m-b{transition:none}
.wq-rm .wq .by-l:active{transform:none}
@media (prefers-reduced-motion:reduce){.wq .by-l,.wq .by-lg,.wq .m-b{transition:none}.wq .by-l:active{transform:none}}
.wq .d-p{grid-area:p;margin:0;font-size:16.5px;line-height:1.55;color:var(--fg2);max-width:52ch;text-wrap:pretty}
.wq .d-f{grid-area:f;margin:2px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}

/* F · Panel · card · panel: Oxblood light at the turn, a shadow under the card */
.f-halo{position:absolute;left:0;top:0;pointer-events:none;will-change:opacity}
.f-shadow{position:absolute;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.6),transparent);pointer-events:none;will-change:transform}

/* phones: the heading, stage, index and details stack in the page; the stage keeps its own height and is swiped */
@media (max-width:759px){
 .wq-hd{padding:28px 0 18px}
 .wq-hd h2{font-size:clamp(34px,10vw,44px)}
 .wq-lead{font-size:16px}
 .wq-screen{display:flex;flex-direction:column}
 .wq-stage{position:relative;height:var(--stH,90vw);flex:none}
 .wq-foot{position:relative;inset:auto;padding:14px 0 30px;min-height:250px}
 .wq-ix{top:-10px}
 .wq-tab{min-width:38px;padding:0}
 .wq .d-in{grid-template-columns:1fr;grid-template-areas:"k" "t" "p" "f";row-gap:10px}
 .wq .d-t{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
 .wq .d-p{font-size:16px}
}
