
/* production page: one scroll, one header. --u is one design pixel. */
:root{--u:calc(100vw/1440)}
html.mb{--u:calc(100vw/390)}
html,body{margin:0;padding:0!important;height:100%;overflow:hidden;background:#EDEAE2}
body>header.top,body>main{display:none!important}
#app{position:fixed;inset:0;overflow:hidden}
#app>.cv{position:absolute;left:0;top:0;width:100vw!important;height:100vh!important;height:100dvh!important;transform:none!important}
/* AM plate: toner dropouts printed over the logo and its outline (static, no live filter) */
#app .amplate::after{content:"";position:absolute;inset:0;pointer-events:none;-webkit-mask-image:var(--toner-i);mask-image:var(--toner-i);-webkit-mask-size:150px 150px;mask-size:150px 150px;clip-path:inset(1px round calc(var(--u)*10))}
#app .flipam svg{animation-play-state:paused}#app .flipam.run svg{animation-play-state:running}
/* Safari: no live filter on the header (its labels move on scroll), crosshairs without blending */
html.saf #app .nf{filter:none}
html.saf #app .xh2{mix-blend-mode:normal;opacity:.85}
html.saf #app .xh2::before,html.saf #app .xh2::after{box-shadow:0 0 0 .5px rgba(27,28,31,.45)}
#app .gx .eyeb{flex-direction:column;align-items:flex-end;text-align:right;gap:calc(var(--u)*4)}
#app .msheet .ml{will-change:transform;-webkit-mask-image:var(--toner);mask-image:var(--toner);-webkit-mask-size:200px 200px;mask-size:200px 200px;padding:.3em .2em .1em;margin-left:-.2em;margin-top:-.3em}
html.saf #app .msheet{-webkit-backdrop-filter:blur(calc(var(--u)*5));backdrop-filter:blur(calc(var(--u)*5))}
#app .gx.wd .grid{padding-right:calc(var(--u)*64)}
/* gallery close: the case studies run straight into the contact plate */
#app .gx .endcap{margin:calc(var(--u)*90) 0 0;padding:0;border:0;height:0;display:block}
/* AM flip: ink copy under the photo, paper copy inside it, same geometry so they line up */
#app .flipam{mix-blend-mode:normal;color:var(--am-ink)}
#app .flipam.ink{z-index:94}
#app .flipam.pap{color:#EDEAE2;z-index:3}
/* mobile H1: the same Roc variable cut and weight as desktop */
.mb h1.hx{--h1w:700;font-family:"roc-grotesk-variable",var(--display);font-variation-settings:"wght" var(--h1w),"wdth" 125}
/* mobile tiles: no desktop offsets, so nothing runs past the frame */
#app .mb .gx .wt{margin-left:0}
#app .mb .gx .wt.r{margin-left:auto}
/* mobile filter dock: floats at the bottom while the case studies are on screen (sticky inside the gallery, so it leaves with it) */
#app .mb .gx .svcL{--dkh:calc(var(--u)*64);position:sticky;top:calc(var(--scrh,100%) - var(--dkh) - var(--u)*14);height:var(--dkh);margin:0 0 calc(var(--dkh) * -1);padding:0 calc(var(--u)*5);display:flex;align-items:center;gap:0;background:rgba(237,234,226,.97);border:1.5px solid var(--am-ink);border-radius:calc(var(--u)*20);box-shadow:0 calc(var(--u)*12) calc(var(--u)*26) calc(var(--u)*-12) rgba(40,43,48,.55);-webkit-backdrop-filter:none;backdrop-filter:none;z-index:110;pointer-events:auto}
#app .mb .gx .svcL .ttl{display:none}
#app .mb .gx .svcL .indc{position:static;flex:0 0 calc(var(--u)*60);height:calc(var(--u)*52);display:flex;align-items:center;justify-content:center;border-right:1px solid var(--hair);margin-right:calc(var(--u)*3)}
#app .mb .gx .svcL .indc .tl{display:none}
#app .mb .gx .svcL .indc .pill{position:relative;width:calc(var(--u)*52);height:calc(var(--u)*52);margin:0;border:0;border-radius:calc(var(--u)*14);background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--u)*4);color:var(--am-ink);transition:background .25s}
#app .mb .gx .svcL .indc .pill svg{width:calc(var(--u)*24);height:calc(var(--u)*24);fill:currentColor;filter:var(--rough-s)}
#app .mb .gx .svcL .indc .pill .dots{display:none}
#app .mb .gx .svcL .indc .pill .vt{display:block;position:static;writing-mode:horizontal-tb;transform:none;opacity:1;font:400 calc(var(--u)*7)/1 var(--mono);letter-spacing:.06em;text-transform:uppercase}
#app .mb .gx .svcL .indc.has .pill{background:var(--acc)}
#app .mb .gx .svcL .indc.open .pill{background:var(--am-ink);color:var(--am-surface)}
#app .mb .gx .svb{flex:1;height:calc(var(--u)*52);padding:0;margin:0 calc(var(--u)*1);border:0;border-radius:calc(var(--u)*14);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--u)*5);transition:background .25s}
#app .mb .gx .svb .gly{width:calc(var(--u)*24);height:calc(var(--u)*24)}
#app .mb .gx .svb .nm{opacity:1;margin:0;font-size:calc(var(--u)*7);letter-spacing:.05em}
#app .mb .gx .svb .ring{display:none}
#app .mb .gx .svb[aria-pressed="true"]{background:var(--acc);box-shadow:inset 0 0 0 1px var(--am-ink)}
@media (hover:none){#app .mb .gx .svb:hover{background:transparent;border-color:transparent}#app .mb .gx .svb[aria-pressed="true"]:hover{background:var(--acc)}}
/* the industry list opens as a sheet above the dock */
#app .mb .gx .svcL .indl{position:absolute;left:0;right:0;top:auto;bottom:calc(100% + var(--u)*10);width:auto;max-height:min(62vh,calc(var(--u)*460));overflow-y:auto;overscroll-behavior:contain;background:rgba(237,234,226,.99);border:1.5px solid var(--am-ink);border-radius:calc(var(--u)*18);box-shadow:0 calc(var(--u)*16) calc(var(--u)*40) calc(var(--u)*-16) rgba(40,43,48,.6);clip-path:inset(100% 0 0 0 round calc(var(--u)*18));transition:clip-path .55s var(--ease-expo)!important}
#app .mb .gx .svcL .indc.open .indl{clip-path:inset(0 0 0 0 round calc(var(--u)*18))}
#app .mb .gx .svcL .indl .ih{border-radius:calc(var(--u)*16) calc(var(--u)*16) 0 0;height:calc(var(--u)*46)}
#app .mb .gx .svcL .indl .ich{padding-top:calc(var(--u)*13);padding-bottom:calc(var(--u)*13)}
/* status chips sit above the dock; the scroll cue steps aside */
#app .mb .fbox{bottom:calc(var(--u)*92)}
#app .mb.indopen .fbox{opacity:0;pointer-events:none}
#app .mb .sdw{display:none}
/* ---------- hero round 8 ---------- */
/* wide hero: its own 1920 x 991 composition, scaled to the width or the height, whichever is tighter, and centred */
#app .dk .page.hw{--u:min(calc(100vw / 1920),calc(100dvh / 991));width:calc(var(--u)*1920);margin-left:calc((100vw - var(--u)*1920) / 2);height:calc(var(--u)*991)}
#app .dk .page.hw .cs{font-size:calc(var(--u)*14)}
#app:has(.page.hw){--uh:min(calc(100vw / 1920),calc(100dvh / 991));--oxh:calc((100vw - var(--uh)*1920) / 2)}
#app:has(.page.hw) .dk .whead{margin-left:calc(var(--oxh) + var(--uh)*203 - var(--px));margin-right:calc(var(--oxh) + var(--uh)*97 - var(--px))}
/* script initials a little larger in the hero headline */
#app .page:not(.gal) h1.hx .s{--s-size:2.2em}
/* nav clock box: one step smaller */
#app .dk .nf .rd{font-size:calc(var(--u)*7);padding:calc(var(--u)*2) calc(var(--u)*5);margin-top:calc(var(--u)*3)}
#app .nf .rd{color:rgba(var(--ink-rgb),.45);border-color:rgba(var(--ink-rgb),.28)}
#app .mb .nf .rd{font-size:calc(var(--u)*6.5);padding:calc(var(--u)*1.5) calc(var(--u)*4)}
/* video tile: the canvas covers the dithered poster once the first frame is drawn */
#app .ph.vfx .vfc{position:absolute;inset:0;width:100%;height:100%;display:block;image-rendering:pixelated}
#app .ph.vfx.vlive .fxl{display:none}
#app .ph.vfx.vlive .pi{background-image:none!important}
#app .ph.vfx.vdom .pi,#app .ph.vfx.vdom .fxl{background-image:none!important}
#app .ph.vfx .vfv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
#app .ph.vfx .vfv.g{filter:grayscale(1) contrast(1.4) brightness(.92)}
/* scroll mark: half strength, and it writes itself again every few seconds (text, then the loop, then the arrow) */
#app .page:not(.gal) .sd{opacity:.5;cursor:pointer;pointer-events:auto}
#app .ct-n .hand,#app .hand{font-style:normal}
/* gallery tiles: the parallax moves .t-float with translate, which makes it its own layer; lift that layer over the
   tracing paper (z 90) so the work always prints on top of the texture */
#app .gx .wt .t-float{z-index:95}
.t-par video.tvid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.6s var(--ease-expo)}
.gx.armed .wt .t-par video.tvid{transform:scale(1.2)}
.gx.armed .wt.seen .t-par video.tvid{transform:scale(1);transition-delay:var(--rd,0ms)}
#app .page:not(.gal) .sd .hand{display:inline-block}
#app .cv.settled .page:not(.gal) .sd .hand{animation:sdW 6.5s infinite}
#app .cv.settled .page:not(.gal) .sd .ov svg path{animation:sdO 6.5s infinite}
#app .cv.settled .page:not(.gal) .sd>svg path{animation:sdA 6.5s infinite}
@keyframes sdW{0%,55%{clip-path:inset(-30% -5% -30% 0);opacity:1}61%{clip-path:inset(-30% -5% -30% 0);opacity:0}62%{clip-path:inset(-30% 100% -30% 0);opacity:1;animation-timing-function:cubic-bezier(.45,.15,.55,.9)}80%,100%{clip-path:inset(-30% -5% -30% 0);opacity:1}}
@keyframes sdO{0%,55%{stroke-dashoffset:0;opacity:1}61%{stroke-dashoffset:0;opacity:0}62%,78%{stroke-dashoffset:1;opacity:1;animation-timing-function:cubic-bezier(.5,0,.3,1)}90%,100%{stroke-dashoffset:0;opacity:1}}
@keyframes sdA{0%,55%{stroke-dashoffset:0;opacity:1}61%{stroke-dashoffset:0;opacity:0}62%,88%{stroke-dashoffset:1;opacity:1;animation-timing-function:cubic-bezier(.5,0,.3,1)}96%,100%{stroke-dashoffset:0;opacity:1}}
@media (prefers-reduced-motion:reduce){#app .page:not(.gal) .sd .hand,#app .page:not(.gal) .sd path{animation:none!important;clip-path:none;opacity:1}}

/* section H2s one weight lighter: the ExtraWide cut drawn from Roc variable at 700 */
#app h2.hx,#app .hx.ct-h{font-family:"roc-grotesk-variable",var(--display);font-weight:675;font-stretch:normal;font-variation-settings:"wght" 675,"wdth" 150}
#app h2.hx .s,#app .hx.ct-h .s{font-variation-settings:normal}
/* script initials: a little more air before the next letter (all H1s and H2s) */
#app .hx .s{letter-spacing:calc(var(--s-gap) + .06em)}
/* shared: progressive loading */
/* every section shows nothing of its entrance until it is reached; then it plays once. Before this, the page-level
   .play ran every heading on load and the section replayed it on scroll, so content flashed in, out and in again */
#app :is(.gx,.ct,.ah,.vp,.sg):not(.play) :is(.hx .Li,.hx .lead,.ldc,.ldi,.ldp,.ldk){opacity:0;animation:none!important}
/* shared: Safari paper on the scroller */
/* Safari keeps the page paper under its own scroller, so blends inside the scroller had nothing to blend with.
   macOS Safari composites the scrolled content as its own layer and a blend only sees what is painted inside it, so the
   paper is a real element inside the scroller: .sheet, the full height of the page (set by script), tiled with the
   pre-blended paper (img/paper-saf.jpg, mirrored so it repeats with no seam). One sheet, no section paints its own. */
html.saf #app .scr{background:#EDEAE2}
html.saf #app .scr>.sheet{position:absolute;left:0;top:0;width:100%;z-index:-1;pointer-events:none;background:url(../../img/paper-saf.jpg) 0 0/100% auto repeat-y}
html.saf #app .cv>.paper:not(.ptop){display:none}
/* shared: nav marks in difference */
/* no paper chips behind the nav: the AM plate and the burger print in difference, so they read as ink on paper
   and flip to paper over photos and dark plates (#C5BFB2 is paper minus ink) */
#app .nf .stick,#app .nf .lk{background:none}
#app .nf .cell.lkc.on .lk{background:var(--acc)}
#app .cv .amplate,#app .cv .burger{mix-blend-mode:difference}
#app .amplate .ol{fill:none;stroke:#C5BFB2}
#app .amplate .lg{fill:#C5BFB2}
#app .amplate::after{background:#000}
#app .cv .burger{color:#C5BFB2}
/* shared: section dividers at 60% */
/* every mono section divider prints at 60% ink. Colour, not opacity, so the entrances (which animate opacity) end where they should */
#app :is(.gx .eyeb,.mf .lb,.sg-e,.ct-e,.ch-eb,.nx-e,.cm-n,.vp-e,.w12-e),#app :is(.gx .eyeb,.mf .lb,.sg-e,.ct-e,.ch-eb,.nx-e,.cm-n,.vp-e,.w12-e) *{color:rgba(var(--ink-rgb),.4)!important}
#app .vp-e,#app .vp-e *{color:rgba(197,191,178,.6)!important}
/* contact: the eyebrow sits clear of the script S, and the page runs into the plate without a dead band */
#app .ct.k2 p.ct-e{top:calc(var(--u)*24)}
#app .gx .endcap{padding-bottom:calc(var(--u)*40)}
#app .mb .gx .endcap{padding-bottom:calc(var(--u)*40)}
/* the sticky service icons stop with the case studies instead of floating over the closing line */
#app .gx .stage2{overflow-y:clip}
/* Safari: ART sprays in as its own mask */
/* the flipbook laid a flat paper card over ART; Safari's paper is textured and sits under the page, so the card showed as a
   patch. In Safari ART is revealed by the same spray run as its own mask. The padding gives the mask room for the glyphs. */
html.saf #app .hx .gw.spm{padding:.45em;margin:-.45em calc(.02em - .45em)}
/* shared: contact plate */
/* the headline sits on the paper; the plate cuts through its second line, and inside the plate the same words print in paper */
#app .ct.k2{display:block;background:transparent;color:var(--am-ink);min-height:0;height:calc(var(--u)*1010);padding:0;overflow:hidden}
#app .ct.k2::before{display:none}
#app .ct.k2 .ct-e{position:absolute;left:calc(var(--u)*96);right:calc(var(--u)*96);top:calc(var(--u)*84);margin:0;z-index:102}
#app .ct.k2 .ct-e .mono,#app .ct.k2 .ct-e{color:var(--am-ink)}#app .ct.k2 .ct-e .dim{color:var(--am-mute)}
#app .ct.k2 .ct-h{position:absolute;left:calc(var(--u)*96);top:calc(var(--u)*124);margin:0;z-index:99;color:var(--am-ink);font-size:calc(var(--u)*104)}
#app .ct.k2 .ct-h .s{color:inherit}
#app .ct.k2 .ctk{position:absolute;left:calc(var(--u)*212);right:0;top:calc(var(--u)*268);bottom:0;overflow:hidden;z-index:100;background:#232529;color:#EDEAE2}
#app .ct.k2 .ctk>.im{position:absolute;inset:0;background:url(../../img/dark-wedge.jpg) center/cover no-repeat}
#app .ct.k2 .ctk .ct-h.inv{left:calc(var(--u)*-116);top:calc(var(--u)*-144);color:#EDEAE2;z-index:1}
#app .ct.k2 .ctk>:not(.im):not(.inv){position:absolute;z-index:2;margin:0}
#app .ct.k2 .ct-c{left:calc(var(--u)*780);top:calc(var(--u)*120);width:calc(var(--u)*340);max-width:none}
#app .ct.k2 .ct-c,#app .ct.k2 .ct-c p{color:#EDEAE2}
#app .ct.k2 .ct-b{left:calc(var(--u)*100);top:calc(var(--u)*296)}
#app .ct.k2 .ct-n{left:calc(var(--u)*452);top:calc(var(--u)*300)}
#app .ct.k2 .ct-l{left:calc(var(--u)*620);top:calc(var(--u)*346);width:calc(var(--u)*520);border-top:1px solid rgba(237,234,226,.3)}
#app .ct.k2 .ct-l>div{border-bottom:1px solid rgba(237,234,226,.22)}
#app .ct.k2 .ct-l dt{color:rgba(237,234,226,.62)}
#app .ct.k2 .ct-l dd,#app .ct.k2 .ct-l a,#app .ct.k2 .ct-l .mono{color:#EDEAE2}
#app .ct.k2 .ctk-l{left:auto;right:calc(var(--u)*24);top:calc(var(--u)*20);color:rgba(237,234,226,.55)}
#app .ct.k2 .ft{left:calc(var(--u)*100);right:calc(var(--u)*100);bottom:0;margin:0;border-top:1px solid rgba(237,234,226,.22)}
#app .ct.k2 .ctk .ldi,#app .ct.k2 .ldi{animation:none}
#app .ct.k2.play .ctk{animation:imgIn 1s var(--ease-expo) backwards;animation-delay:calc(var(--t-h1) + 200ms)}
#app .ct.k2.play:not(.settled) .ctk .ct-h.inv .Li{filter:none}
html.saf #app .ct.k2 h2.ct-h{margin:-1.1em -.5em -.5em}
html.saf #app .ct.k2 .ct-h.inv{-webkit-mask-image:var(--toner);mask-image:var(--toner);-webkit-mask-size:130px 130px;mask-size:130px 130px;padding:1.1em .5em .5em;margin:-1.1em -.5em -.5em}
/* mobile: the plate becomes a column under the headline */
#app .mb .ct.k2{height:auto;padding:0 0 0}
#app .mb .ct.k2 .ct-e{position:relative;left:auto;right:auto;top:auto;padding:calc(var(--u)*64) calc(var(--u)*20) 0;flex-direction:column}
#app .mb .ct.k2 .ct-h{position:relative;left:auto;top:auto;font-size:calc(var(--u)*46);margin:calc(var(--u)*48) 0 0 calc(var(--u)*20)}
html.saf #app .mb .ct.k2 h2.ct-h{margin:calc(var(--u)*48 - 1.1em) -.5em -.5em calc(var(--u)*20 - .5em)}
#app .mb .ct.k2 .ctk{position:relative;left:auto;right:auto;top:auto;bottom:auto;margin:calc(var(--u)*-44) 0 0 calc(var(--u)*36);padding:calc(var(--u)*96) calc(var(--u)*20) calc(var(--u)*20)}
#app .mb .ct.k2 .ctk .ct-h.inv{position:absolute;left:calc(var(--u)*-16);top:calc(var(--u)*-74)}
#app .mb .ct.k2 .ctk>:not(.im):not(.inv){position:relative;left:auto;top:auto;right:auto;bottom:auto;width:auto}
#app .mb .ct.k2 .ctk-l{position:absolute!important;left:auto!important;right:calc(var(--u)*14)!important;top:calc(var(--u)*66)!important}
#app .mb .ct.k2 .ct-c{margin:0 0 calc(var(--u)*26)}
#app .mb .ct.k2 .ct-b{margin:0 0 calc(var(--u)*30)}
#app .mb .ct.k2 .ct-n{display:none}
#app .mb .ct.k2 .ct-l{margin:0 0 calc(var(--u)*40)}
#app .mb .ct.k2 .ft{margin:0}
/* mobile (Nov 18): more room in the plate, and the email wraps above its Copy button instead of running off the edge */
#app .mb .ct.k2 .ctk{margin-top:calc(var(--u)*-62);padding-bottom:calc(var(--u)*56)}
#app .mb .ct.k2 .ct-l dd{display:flex;flex-wrap:wrap;align-items:center;gap:calc(var(--u)*6) calc(var(--u)*10);min-width:0;font-size:calc(var(--u)*12.5)}
#app .mb .ct.k2 .ct-l dd a{overflow-wrap:anywhere}
#app .mb .ct.k2 .ft{row-gap:calc(var(--u)*14);padding-top:calc(var(--u)*18)}
/* shared: open to work bar */
#app .otw{position:relative;height:calc(var(--u)*150);margin:calc(var(--u)*40) 0 calc(var(--u)*10);overflow:clip;overflow-clip-margin:0;pointer-events:none;z-index:3}
#app .otw-b{position:absolute;left:-6%;right:-6%;top:50%;height:calc(var(--u)*62);transform:translateY(-50%) rotate(-2.4deg)}
/* the sheet: ink black, photocopy edge, paper grain printed through it */
#app .otw-s{position:absolute;inset:0;background:#1E2023;filter:var(--rough)}
#app .otw-s::after{content:"";position:absolute;inset:0;background:url(../../img/paper-saf.jpg) 0 0/calc(var(--u)*900) auto;filter:invert(1);mix-blend-mode:screen;opacity:.42}
html.saf #app .otw-s{-webkit-mask-image:var(--toner);mask-image:var(--toner);-webkit-mask-size:130px 130px;mask-size:130px 130px}
#app .otw-v{position:absolute;inset:0;display:flex;align-items:center;overflow:hidden}
#app .otw-t{flex:none;display:flex;align-items:center;white-space:nowrap;animation:otwRun 60s linear infinite;will-change:transform}
#app .otw-t span{font:800 calc(var(--u)*26)/1 var(--wide);font-stretch:125%;letter-spacing:.02em;text-transform:uppercase;color:#EFFFBC}
#app .otw-t i{font-style:normal;font-size:calc(var(--u)*20);color:#EFFFBC;margin:0 calc(var(--u)*22)}
@keyframes otwRun{to{transform:translateX(-100%)}}
#app .mb .otw{height:calc(var(--u)*110);margin:calc(var(--u)*24) 0 0}
#app .mb .otw-b{height:calc(var(--u)*44);transform:translateY(-50%) rotate(-3.2deg)}
#app .mb .otw-t span{font-size:calc(var(--u)*17)}
#app .mb .otw-t i{font-size:calc(var(--u)*13);margin:0 calc(var(--u)*14)}
@media (prefers-reduced-motion:reduce){#app .otw-t{animation:none}}

/* section eyebrows ([02] DESIGN WORK, [R.27] THE RULE, [02] PROOF, [04] CONTACT, [CS 04/27] ...): one type style
   everywhere, the [R.27] THE RULE look. Positions stay with each section; the ink ellipses keep their pencil colour. */
#app .sec-eb,#app .sec-eb :not(.ink12):not(svg):not(path):not(.mk){font-family:var(--mono)!important;font-style:normal!important;font-weight:400!important;font-size:calc(var(--u)*10.5)!important;line-height:1.35;letter-spacing:.08em!important;text-transform:uppercase!important;color:rgba(var(--ink-rgb),.4)!important;mix-blend-mode:normal!important}

/* ---------- nav AM plate and burger: light liquid glass once the page scrolls (Nov 25) ----------
   At the top of the page the logo and burger keep their print look (difference blend, no glass). Once the page
   scrolls, a clear frosted layer fades in behind each one: a light, see-through tint, blur and a little extra
   saturation of what passes under it, a bright top edge and rim. The plate's glass is cut to its own outline; the
   burger's is a rounded pill a little larger than its brackets. On the glass the marks print in ink. Only the
   backdrop is filtered; the boil on the marks is unchanged. */
#app .amplate::before,#app .cv .burger::before{content:"";position:absolute;z-index:-1;pointer-events:none;opacity:0;transition:opacity .2s linear;
  background:linear-gradient(180deg,rgba(255,255,255,.34) 0%,rgba(255,255,255,.05) 46%,rgba(255,255,255,.12) 100%),rgba(246,244,239,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -1px 0 rgba(255,255,255,.35),inset 0 0 0 1px rgba(255,255,255,.45)}
#app .amplate::before{inset:0;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 164.81 154.81' preserveAspectRatio='none'%3E%3Cpath d='M116.67,153.31H24.3c-12.59,0-22.8-10.21-22.8-22.81V24.3C1.5,11.71,11.71,1.5,24.3,1.5h116.2c12.6,0,22.81,10.21,22.81,22.8v65.53c0,4.05-1.08,8.03-3.13,11.52l-23.84,40.68C132.25,149.02,124.76,153.31,116.67,153.31Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 164.81 154.81' preserveAspectRatio='none'%3E%3Cpath d='M116.67,153.31H24.3c-12.59,0-22.8-10.21-22.8-22.81V24.3C1.5,11.71,11.71,1.5,24.3,1.5h116.2c12.6,0,22.81,10.21,22.81,22.8v65.53c0,4.05-1.08,8.03-3.13,11.52l-23.84,40.68C132.25,149.02,124.76,153.31,116.67,153.31Z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
/* burger: the plate's glass and speckle, filling its corner brackets edge to edge */
#app .cv .burger::before,#app .cv .burger::after{left:calc(var(--u)*-9);right:calc(var(--u)*-9);top:calc(var(--u)*-17);bottom:calc(var(--u)*-18);border-radius:calc(var(--u)*3)}
#app .mb .cv .burger::before,#app .mb .cv .burger::after,#app .cv.mb .burger::before,#app .cv.mb .burger::after{left:calc(var(--u)*-9);right:calc(var(--u)*-9);top:calc(var(--u)*-13);bottom:calc(var(--u)*-14)}
#app .cv .burger::after{content:"";position:absolute;z-index:-1;pointer-events:none;background:#000;opacity:0;transition:opacity .2s linear;
  -webkit-mask-image:var(--toner-i);mask-image:var(--toner-i);-webkit-mask-size:150px 150px;mask-size:150px 150px}
#app .cv.scrolled .burger::after{opacity:.25;transition:opacity .45s var(--am-ease-out)}
/* the blur exists only while the glass shows: Chrome keeps computing a backdrop filter even at opacity 0 */
#app .cv.scrolled .amplate::before,#app .cv.scrolled .burger::before{opacity:1;transition:opacity .45s var(--am-ease-out);-webkit-backdrop-filter:blur(9px) saturate(1.5);backdrop-filter:blur(9px) saturate(1.5)}
#app .cv.scrolled .amplate,#app .cv.scrolled .burger{mix-blend-mode:normal}
#app .cv.scrolled .amplate .ol{fill:none;stroke:var(--am-ink);stroke-opacity:.85}
#app .cv.scrolled .amplate .lg{fill:var(--am-ink)}
#app .cv.scrolled .amplate::after{background:#000;opacity:.25}
#app .cv.scrolled .burger{color:var(--am-ink)}
/* the four corner brackets print on top of the burger glass: the burger sits just under the header, and the bracket cell lets clicks through */
#app .cv .burger{z-index:119}
#app .nf .stick{pointer-events:none}
#app .nf{pointer-events:none}
#app .nf .lkc,#app .nf a,#app .nf button{pointer-events:auto}
#app .cv.scrolled .nf .hs{pointer-events:none}

/* ---------- menu: a tilted sheet of vellum that folds down onto the page (Nov 26) ----------
   The sheet tips in from its top edge (a little rotation in depth and on the page), lands about a degree off
   square and casts a soft shadow; the links settle in after it. Only transform and opacity animate, so Safari
   and phones never repaint the blur during the fold (the old clip-path wipe did). The blur is light on
   desktop and off on mobile, where a denser vellum stands in for it. */
#app .msheet{clip-path:none!important;transition:none;border:0;
  background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(250,248,243,.52));
  -webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:0 calc(var(--u)*2) 0 rgba(255,255,255,.6) inset,0 0 0 1px rgba(40,43,48,.10),0 calc(var(--u)*28) calc(var(--u)*60) rgba(40,43,48,.18),0 calc(var(--u)*6) calc(var(--u)*14) rgba(40,43,48,.10);
  transform-origin:50% 0;transform:perspective(1800px) translateY(calc(var(--u)*-24)) rotateX(-16deg) rotate(-3deg) scale(.985);
  opacity:0;visibility:hidden;will-change:transform,opacity;
  transition:transform .5s cubic-bezier(.4,0,.6,1),opacity .3s linear,visibility 0s linear .5s}
/* the frosted blur switches on once the sheet has landed (and off at once on close): Chrome and Safari would
   otherwise recompute it on every frame of the fold */
#app .cv.nav-open .msheet{transform:perspective(1800px) translateY(0) rotateX(0) rotate(-1deg) scale(1);opacity:1;visibility:visible;
  -webkit-backdrop-filter:blur(calc(var(--u)*10)) saturate(1.05);backdrop-filter:blur(calc(var(--u)*10)) saturate(1.05);
  transition:transform .75s cubic-bezier(.16,1,.3,1),opacity .35s linear,visibility 0s,-webkit-backdrop-filter 0s linear .72s,backdrop-filter 0s linear .72s}
#app .msheet::before{opacity:.28}
#app .mb .msheet,#app .cv.mb .msheet{-webkit-backdrop-filter:none;backdrop-filter:none;background:linear-gradient(180deg,rgba(252,251,248,.94),rgba(246,244,239,.90))}
#app .cv.mb.nav-open .msheet{transform:perspective(1200px) rotate(-.8deg)}
/* the links settle in after the sheet */
#app .msheet .in>*{opacity:0;transform:translateY(calc(var(--u)*14));transition:opacity .2s linear,transform .2s ease-in}
#app .cv.nav-open .msheet .in>*{opacity:1;transform:none;transition:opacity .45s linear,transform .6s cubic-bezier(.16,1,.3,1)}
#app .cv.nav-open .msheet .in>:nth-child(2){transition-delay:.12s}
#app .cv.nav-open .msheet .in>:nth-child(3){transition-delay:.17s}
#app .cv.nav-open .msheet .in>:nth-child(4){transition-delay:.22s}
#app .cv.nav-open .msheet .in>:nth-child(5){transition-delay:.27s}
#app .cv.nav-open .msheet .in>:nth-child(6){transition-delay:.32s}
@media (prefers-reduced-motion:reduce){#app .msheet,#app .cv.nav-open .msheet{transform:rotate(-1deg);transition:opacity .2s linear,visibility 0s}#app .msheet .in>*{transform:none}}
#app .cv.mb.nav-open .msheet{-webkit-backdrop-filter:none;backdrop-filter:none}
/* Safari: same as everywhere, no blur during the fold, then a frosted blur once the sheet lands */
html.saf #app .msheet{-webkit-backdrop-filter:none;backdrop-filter:none}
html.saf #app .cv.nav-open .msheet{-webkit-backdrop-filter:blur(calc(var(--u)*8));backdrop-filter:blur(calc(var(--u)*8))}
html.saf #app .cv.mb.nav-open .msheet{-webkit-backdrop-filter:none;backdrop-filter:none}
/* mobile menu: the links stop before the vertical name column */
#app .mb .msheet .in{padding-right:calc(var(--u)*72)}
#app .mb .msheet .ml{font-size:calc(var(--u)*28)}

/* menu open: no paper strip across the header (the sheet is the only paper); the logo and burger keep their glass */
#app .cv.nav-open>.paper.ptop{display:none}
/* menu spec card: scaled to fit the tilted sheet; MAKE IT LAND set large in place of the figure note */
#app .dk .msheet .spec{transform:scale(.84);transform-origin:100% 0}
#app .msheet .spec .vm.mil{font-family:var(--display);font-stretch:125%;font-weight:700;font-size:calc(var(--u)*17);letter-spacing:.04em;line-height:1;color:var(--am-ink)}
/* mobile menu: the same frosted blur as desktop, switched on once the sheet lands, with the lighter vellum (Nov 26) */
#app .mb .msheet,#app .cv.mb .msheet{background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(250,248,243,.52))}
#app .cv.mb.nav-open .msheet,html.saf #app .cv.mb.nav-open .msheet{-webkit-backdrop-filter:blur(calc(var(--u)*10)) saturate(1.05);backdrop-filter:blur(calc(var(--u)*10)) saturate(1.05)}
/* mobile contact: more room between the line and the button */
#app .mb .ct.k2 .ct-c{margin-bottom:calc(var(--u)*44)}
#app .mb .ct.k2 .ct-b{margin-top:0}

/* ================= round 16 (Nov 30) ================= */
/* logo plate and burger: the menu's tracing paper (vellum tint, light blur, paper grain) in place of the glass */
#app .amplate::before,#app .cv .burger::before{background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(250,248,243,.52));box-shadow:inset 0 calc(var(--u)*2) 0 rgba(255,255,255,.6),inset 0 0 0 1px rgba(40,43,48,.10)}
#app .cv.scrolled .amplate::before,#app .cv.scrolled .burger::before{-webkit-backdrop-filter:blur(calc(var(--u)*10)) saturate(1.05);backdrop-filter:blur(calc(var(--u)*10)) saturate(1.05)}
#app .cv.scrolled .burger::after{background:url(../../img/paper.jpg) center/cover;-webkit-mask-image:none;mask-image:none;mix-blend-mode:multiply;opacity:.28}
#app .cv.scrolled .amplate::after{background:url(../../img/paper.jpg) center/cover;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 164.81 154.81' preserveAspectRatio='none'%3E%3Cpath d='M116.67,153.31H24.3c-12.59,0-22.8-10.21-22.8-22.81V24.3C1.5,11.71,11.71,1.5,24.3,1.5h116.2c12.6,0,22.81,10.21,22.81,22.8v65.53c0,4.05-1.08,8.03-3.13,11.52l-23.84,40.68C132.25,149.02,124.76,153.31,116.67,153.31Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 164.81 154.81' preserveAspectRatio='none'%3E%3Cpath d='M116.67,153.31H24.3c-12.59,0-22.8-10.21-22.8-22.81V24.3C1.5,11.71,11.71,1.5,24.3,1.5h116.2c12.6,0,22.81,10.21,22.81,22.8v65.53c0,4.05-1.08,8.03-3.13,11.52l-23.84,40.68C132.25,149.02,124.76,153.31,116.67,153.31Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;clip-path:none;mix-blend-mode:multiply;opacity:.28}
/* burger: the four brackets turn their corners like a squircle, and the paper follows them */
#app .nf .cell.stick::before,#app .nf .cell.stick::after,#app .nf .cell.stick i.c1,#app .nf .cell.stick i.c2{width:calc(var(--u)*12);height:calc(var(--u)*12)}
#app .nf .cell.stick::before{border-top-left-radius:calc(var(--u)*9)}
#app .nf .cell.stick i.c1{border-top-right-radius:calc(var(--u)*9)}
#app .nf .cell.stick::after{border-bottom-right-radius:calc(var(--u)*9)}
#app .nf .cell.stick i.c2{border-bottom-left-radius:calc(var(--u)*9)}
#app .cv .burger::before,#app .cv .burger::after{border-radius:calc(var(--u)*9)}
/* H2s: bolder and less wide */
#app h2.hx,#app .hx.ct-h{font-weight:775;font-variation-settings:"wght" 775,"wdth" 125}
#app .w12 h2.hx.sg-q{font-weight:775!important;font-variation-settings:"wght" 775,"wdth" 125!important}
/* contact: Start a project in full white */
#app .ct .am-echo-btn.inv{--am-echo-face-bg:#FFFFFF}
#app .ct .am-echo-btn.inv .am-echo-btn__face{background:#FFFFFF}

/* ================= menu, round 18 (Dec 1) ================= */
/* the sheet slides up from below the screen at a tilt and lands a little crooked, like a page dropped on the desk
   (the Virgil Abloh letter). Transform and opacity only; the blur switches on once it has landed. */
#app .cv .msheet,#app .cv.mb .msheet{transform-origin:50% 100%;transform:translate3d(0,110vh,0) rotate(-9deg);opacity:1;
  transition:transform .5s cubic-bezier(.5,0,.9,.4),visibility 0s linear .5s}
#app .cv.nav-open .msheet{transform:translate3d(0,0,0) rotate(-1deg);visibility:visible;
  transition:transform .85s cubic-bezier(.2,1,.32,1.06),visibility 0s,-webkit-backdrop-filter 0s linear .8s,backdrop-filter 0s linear .8s}
#app .cv.mb.nav-open .msheet{transform:translate3d(0,0,0) rotate(-.8deg)}
/* the links and labels rise in once the sheet is down */
#app .cv.nav-open .msheet .in>*{transition-delay:.38s}
#app .cv.nav-open .msheet .in>:nth-child(2){transition-delay:.44s}
#app .cv.nav-open .msheet .in>:nth-child(3){transition-delay:.5s}
#app .cv.nav-open .msheet .in>:nth-child(4){transition-delay:.56s}
#app .cv.nav-open .msheet .in>:nth-child(5){transition-delay:.62s}
#app .cv.nav-open .msheet .in>:nth-child(6){transition-delay:.68s}
/* menu links: clean ink, no photocopy edge or toner */
#app .msheet .ml{filter:none!important;-webkit-mask-image:none!important;mask-image:none!important;will-change:auto}
@media (prefers-reduced-motion:reduce){#app .cv .msheet,#app .cv.nav-open .msheet{transform:rotate(-1deg);transition:opacity .2s linear,visibility 0s}#app .cv .msheet{opacity:0}#app .cv.nav-open .msheet{opacity:1}}
/* Open to work bar (Dec 1): equal space above and below, a little more room before Contact */
#app .otw{margin:calc(var(--u)*86) 0 calc(var(--u)*62)}
#app .mb .otw{margin:calc(var(--u)*35) 0 calc(var(--u)*35)}

/* ---------- Round 23 (Dec 1): menu sheet, theme toggles ---------- */

/* menu: the index line, the theme row and the contact line in a lighter grey */
#app .msheet .mhd,#app .msheet .mft,#app .msheet .mthm{color:var(--am-faint,#A9A69E)}

/* menu links: the label carries a lime marker. Desktop: it sweeps in once the hover glitch has settled and stays
   while the pointer rests on that link. Keyboard focus gets the same marker. */
#app .msheet .ml .mlt{-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:.04em .12em 0 .06em;margin:0 -.12em 0 -.06em;
  background:url(../../img/highlighter.svg) 0 55%/0% 100% no-repeat;transition:background-size .18s ease-in}
#app .dk .msheet .ml:hover .mlt,#app .msheet .ml:focus-visible .mlt{background-size:100% 100%;transition:background-size .55s cubic-bezier(.6,0,.2,1) .42s}
@media (hover:none){#app .dk .msheet .ml:hover .mlt{background-size:0% 100%}}
@media (prefers-reduced-motion:reduce){#app .msheet .ml .mlt,#app .dk .msheet .ml:hover .mlt{transition:none}}

/* five links now, plus the theme row: keep the staggered landing going */
#app .cv.nav-open .msheet .in>:nth-child(7){transition-delay:.74s}
#app .cv.nav-open .msheet .in>:nth-child(8){transition-delay:.8s}
#app .dk .msheet .ml{font-size:calc(var(--u)*64)}

/* menu theme row: [ Theme ]  Light / Dark, the active side on a lime pill */
#app .msheet .mthm{display:flex;align-items:center;gap:calc(var(--u)*14);margin:calc(var(--u)*22) 0 0}
#app .thm-m{display:inline-flex;gap:0;padding:0;border:1px solid currentColor;border-radius:999px;background:none;cursor:pointer;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit}
#app .thm-m .o{padding:calc(var(--u)*4) calc(var(--u)*10);border-radius:999px;transition:background-color .25s,color .25s}
#app .thm-m .o.l,html.dark #app .thm-m .o.d{background:var(--acc);color:#282B30}
html.dark #app .thm-m .o.l{background:none;color:inherit}
#app .thm-m:focus-visible{outline:2px solid var(--am-ink);outline-offset:3px}

/* top bar toggle: the crosshair, half inked. The inked half turns over in dark mode. */
#app .nf .thm-t{position:absolute;padding:0;border:0;background:none;cursor:pointer;color:var(--am-ink)}
#app .nf .thm-t svg{display:block;width:100%;height:100%;overflow:visible}
#app .nf .thm-t .thm-f{fill:currentColor;transform-origin:13px 13px;transition:transform .5s cubic-bezier(.6,0,.2,1)}
html.dark #app .nf .thm-t .thm-f{transform:rotate(180deg)}
#app .nf .thm-t:hover .thm-f{transform:rotate(-30deg)}
html.dark #app .nf .thm-t:hover .thm-f{transform:rotate(150deg)}
#app .nf .thm-t:focus-visible{outline:2px solid var(--am-ink);outline-offset:3px;border-radius:50%}

/* global paper texture: centred on mid grey (img/paper-cloud-n.jpg) and laid in overlay, so it adds grain without
   lifting the sheet. Safari keeps its pre-blended sheet (img/paper-saf.jpg / -dark). */
#app .cv>.paper{background:url(../../img/paper-grain.jpg) 0 0/480px 270px repeat,url(../../img/paper-cloud-n.jpg) center/cover;background-blend-mode:overlay;mix-blend-mode:overlay}
/* the manifesto panel's pre-blended paper, centred on the sheet colour so it shows no edge */
.mf::before{background-image:url(../../img/paper-mf-n.jpg)}

/* ================= Dark mode (Round 23, Dec 1) =================
   Same system, inverted: AM dark grey #282B30 is the sheet, AM cream #EDEAE2 is the ink (type, rules, marks).
   Lime stays. The red note warms toward a softer clay orange. Photos stay as shot.
   Most of the site already draws with the tokens below, so flipping them flips the page. What follows the tokens
   covers the places that print in a blend or carry a baked colour. Light is the default; html.dark is set by the
   head script (saved choice) or the toggles (shared/theme.js). */

html.dark{color-scheme:dark;
  --ink-rgb:237,234,226;--am-ink:#EDEAE2;--am-surface:#282B30;--am-mute:#9C998F;--rule-strong:#77756F;
  --hair:rgba(237,234,226,.24);--lead:rgba(237,234,226,.16);--red:#D97757;--tone1:#9C998F;--am-faint:#77756F;
  /* difference ink: over the dark sheet these come out as cream, and still flip over photos */
  --dif:#FFFFFF;--dif-mute:#C4C4BF}
html.dark,html.dark body{background:#282B30}

/* ---------- the sheet and its paper ---------- */
html.dark.saf #app .scr{background:#282B30}
html.dark.saf #app .scr>.sheet{background-image:url(../../img/paper-saf-dark.jpg)}
/* the texture is centred on mid grey and laid in overlay: grain only, the sheet keeps its value */
html.dark #app .cv>.paper{opacity:.55}
html.dark #amld .amld-pp{background:#282B30 url(../../img/paper-saf-dark.jpg) 0 0/100% auto repeat-y}
html.dark #amld.pp .amld-ln i{background:#EDEAE2}

/* ---------- prints in a difference blend: cream over the dark sheet ---------- */
html.dark .bl,html.dark #app .vp .vp-g{--am-ink:var(--dif);--am-mute:var(--dif-mute);--lead:var(--dif);color:var(--dif)}
html.dark .bl .fig,html.dark .bl h2.hx.vh{color:var(--dif)}
html.dark #app .vp .vp-g{--lgi:var(--dif);--lgm:var(--dif-mute)}
html.dark #app .ah.r27 .r27h,html.dark #app .ah.r27.r12 .r27h .hl5{color:var(--dif)}
html.dark #app .ah.r12 .hcrown svg{fill:var(--dif)}
html.dark #app .amplate .ol{stroke:var(--dif)}
html.dark #app .amplate .lg{fill:var(--dif)}
html.dark #app .cv .burger{color:var(--dif)}
/* Proof: the stats greys and the rules, worked out for the dark sheet */
html.dark #app .vp{--vg:#9FA09F;--vp-lead:#70757E;--vp-rule:#74787F}

/* ---------- buttons: the dark ink button turns over to a cream button ---------- */
html.dark{--btn-bg:#EDEAE2;--btn-ink:#282B30;--btn-line:#C9C6BE}
html.dark #app .ct .am-echo-btn.inv .am-echo-btn__face{color:#282B30}

/* ---------- on lime the type stays AM dark grey ---------- */
html.dark :is(.svb:hover,.svb:focus-visible,.xchip,.indc.has .pill,.ich[aria-pressed="true"],.t-meta .tg.f,.cz .tg.f,.cp-b.ok,.sx .fl,.s2 .t1,.s3 .gb,.lg:hover,.lg:focus-visible,.lg[aria-pressed="true"],.pl.f,.ph.ac,.nf .cell.lkc.on .lk),
html.dark #app .mb .gx :is(.svcL .indc.has .pill,.svb[aria-pressed="true"]){--am-ink:#282B30;color:#282B30}
/* highlighter strokes: type on top in dark grey, the stroke laid under it */
html.dark .hx .hlw{position:relative;isolation:isolate;color:#282B30;--am-ink:#282B30}
html.dark .hx .hlw::after{mix-blend-mode:normal;z-index:-1}
html.dark .mf .hlw,html.dark #app .msheet .ml:is(:hover,:focus-visible) .mlt{color:#282B30}
html.dark #app .ah.r27 .mf .hlw,html.dark #app .ah.r27 .mf .hlseg+*{color:#282B30}

/* ---------- tracing paper (vellum) turns to smoked glass ---------- */
html.dark #app .amplate::before,html.dark #app .cv .burger::before,html.dark #app .fbox,html.dark #app .msheet,html.dark #app .mb .msheet,html.dark #app .cv.mb .msheet{
  background:linear-gradient(180deg,rgba(58,60,66,.72),rgba(40,43,48,.66))}
html.dark #app .amplate::before,html.dark #app .cv .burger::before{box-shadow:inset 0 calc(var(--u)*2) 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(237,234,226,.12)}
html.dark #app .msheet{box-shadow:0 calc(var(--u)*2) 0 rgba(255,255,255,.06) inset,0 0 0 1px rgba(237,234,226,.10),0 calc(var(--u)*28) calc(var(--u)*60) rgba(0,0,0,.4)}
html.dark #app .msheet::before,html.dark #app .fbox .fpp,html.dark #app .cv.scrolled .burger::after,html.dark #app .cv.scrolled .amplate::after{opacity:.12}
html.dark #app .msheet .ml{color:#EDEAE2}
html.dark .nf .stick{background:rgba(40,43,48,.94)}
html.dark .amplate .ol{fill:rgba(40,43,48,.94)}
html.dark .indl,html.dark .mb .svcL,html.dark #app .mb .gx .svcL .indl{background:rgba(40,43,48,.94)}
html.dark .vlab{background:rgba(40,43,48,.42)!important;-webkit-backdrop-filter:blur(1.4px) saturate(.75) brightness(.85)!important;backdrop-filter:blur(1.4px) saturate(.75) brightness(.85)!important}
html.dark .ppr{background:url(../../img/paper.jpg) center/calc(var(--u)*900) auto,rgba(40,43,48,.97)}

/* ---------- panels that paint their own paper ---------- */
html.dark .mf::before{background-image:url(../../img/paper-mf-dark.jpg)}
html.dark #app .ah.r27{background:#282B30}
html.dark.saf #app .ah.r27{background:#282B30 url(../../img/paper-saf-dark.jpg) 0 0/100% auto repeat-y}
html.dark #app .cz.nx3{background:#282B30}
html.dark #app .lbx{--lgi:#EDEAE2;--lgp:#282B30;--lgm:#9C998F}
html.dark #app .lbx .strip{background:#303237;box-shadow:0 calc(var(--u)*2) calc(var(--u)*6) rgba(0,0,0,.3)}
html.dark #app .lbx-tag span{color:#EDEAE2}

/* ---------- Made to Land: the metal wall at night ---------- */
html.dark #app .sv18 .pl-wl{background-color:#6A6C70}
html.dark #app .sv18.pv1 .sv-in{color:#EDEAE2}
html.dark #app .sv18.plt .sv-close{color:rgba(237,234,226,.62)}
/* phone: the filter dock and its list */
html.dark #app .mb .gx .svcL,html.dark #app .mb .gx .svcL .indl{background:rgba(40,43,48,.97)}
html.dark #app .mb .fbox,html.dark #app .cv.mb .fbox{background:linear-gradient(180deg,rgba(58,60,66,.9),rgba(40,43,48,.88))}
/* contact: the plate is dark in both themes, so its type stays paper */
html.dark #app .ct{color:#EDEAE2}

/* ---------- the ART tag (homepage hero), matched to Alain's white files (a/r/t-white.svg):
   the halo goes full black #000 (Alain, for contrast on the grey), the letter cream #EBEBDF, the shine drops out ---------- */
html.dark .hx .gw{color:#EBEBDF}
html.dark .hx .gw .g::before{color:#000;filter:none}
html.dark .hx .gw .g::after{color:transparent}

/* ---------- Round 24 (Dec 1): artwork over the paper, menu paper roll, dark mode edits ---------- */

/* case studies: each figure moves with the parallax (translate), which made it its own layer at level 0, under the
   tracing paper (z 90). Lift the figures and the next case card over it, so the work always prints on top. */
#app .cz .cf,#app .cz.nx3{z-index:95}

/* ================= menu: the sheet unrolls from under the top bar =================
   .msheet stays still and clips. .mrl (the window) slides down while .mpg (the page) slides up by the same amount,
   so the paper itself holds still and only its edge travels, with the roll (.mroll) riding that edge.
   Transforms only, no backdrop blur, so the page behind never repaints while the sheet moves or the links glitch. */
#app .cv .msheet,#app .cv.mb .msheet,html.dark #app .cv .msheet,html.dark #app .cv.mb .msheet,html.saf #app .cv .msheet,html.saf #app .cv.nav-open .msheet,html.saf #app .cv.mb.nav-open .msheet,#app .cv.mb.nav-open .msheet{
  background:none;border:0;-webkit-backdrop-filter:none;backdrop-filter:none;clip-path:none;overflow:hidden;opacity:1;will-change:auto;transform-origin:50% 0}
#app .cv .msheet,html.dark #app .cv .msheet{box-shadow:0 0 0 rgba(40,43,48,0);transform:rotate(-1deg);visibility:hidden;transition:visibility 0s linear .6s,box-shadow 0s}
#app .cv.mb .msheet,html.dark #app .cv.mb .msheet{transform:rotate(-.6deg)}
#app .cv.nav-open .msheet{transform:rotate(-1deg)}
#app .cv.mb.nav-open .msheet,html.saf #app .cv.mb.nav-open .msheet{transform:rotate(-.6deg)}
#app .cv.nav-open .msheet,html.dark #app .cv.nav-open .msheet{visibility:visible;
  box-shadow:0 0 0 1px rgba(40,43,48,.10),0 calc(var(--u)*28) calc(var(--u)*60) rgba(40,43,48,.18),0 calc(var(--u)*6) calc(var(--u)*14) rgba(40,43,48,.10);
  transition:visibility 0s,box-shadow .35s linear .85s}
html.dark #app .cv.nav-open .msheet{box-shadow:0 0 0 1px rgba(237,234,226,.10),0 calc(var(--u)*28) calc(var(--u)*60) rgba(0,0,0,.4)}
#app .msheet::before{display:none}
#app .msheet .mrl{position:absolute;inset:0;overflow:hidden;translate:0 -100%;transition:translate .55s cubic-bezier(.55,0,.75,.3)}
#app .msheet .mpg{position:absolute;inset:0;translate:0 100%;transition:translate .55s cubic-bezier(.55,0,.75,.3);
  background:linear-gradient(180deg,rgba(251,250,246,.97),rgba(245,243,237,.965))}
#app .msheet .mpg::before{content:"";position:absolute;inset:0;background:url(../../img/paper.jpg) center/cover;mix-blend-mode:multiply;opacity:.28;pointer-events:none}
#app .cv.nav-open .msheet .mrl,#app .cv.nav-open .msheet .mpg{translate:0 0;transition:translate .9s cubic-bezier(.22,.8,.26,1)}
/* the roll: a paper cylinder on the travelling edge. It fades once the sheet is down, and is back at once to roll up. */
#app .msheet .mroll{position:absolute;left:0;right:0;top:0;height:100%;translate:0 -100%;pointer-events:none;opacity:1;
  transition:translate .55s cubic-bezier(.55,0,.75,.3),opacity 0s}
#app .msheet .mroll::before{content:"";position:absolute;left:-2%;right:-2%;bottom:calc(var(--u)*-8);height:calc(var(--u)*30);border-radius:calc(var(--u)*15);
  background:linear-gradient(180deg,#D6D2C8 0%,#FBFAF6 26%,#F1EEE7 52%,#C2BDB2 82%,#9E998E 100%);
  box-shadow:0 calc(var(--u)*12) calc(var(--u)*20) rgba(40,43,48,.26),0 calc(var(--u)*2) calc(var(--u)*3) rgba(40,43,48,.2)}
#app .msheet .mroll::after{content:"";position:absolute;left:-2%;right:-2%;bottom:calc(var(--u)*-8);height:calc(var(--u)*30);border-radius:calc(var(--u)*15);
  background:url(../../img/paper-grain.jpg) 0 0/calc(var(--u)*240) auto;mix-blend-mode:multiply;opacity:.35}
#app .cv.nav-open .msheet .mroll{translate:0 0;opacity:0;transition:translate .9s cubic-bezier(.22,.8,.26,1),opacity .3s linear .78s}
html.dark #app .msheet .mpg{background:linear-gradient(180deg,rgba(50,53,59,.985),rgba(40,43,48,.98))}
html.dark #app .msheet .mpg::before{opacity:.12}
html.dark #app .msheet .mroll::before{background:linear-gradient(180deg,#2A2C30 0%,#5A5D63 26%,#45484E 52%,#25272B 82%,#141517 100%);
  box-shadow:0 calc(var(--u)*12) calc(var(--u)*20) rgba(0,0,0,.45),0 calc(var(--u)*2) calc(var(--u)*3) rgba(0,0,0,.35)}
html.dark #app .msheet .mroll::after{mix-blend-mode:overlay;opacity:.25}
/* the links rise in as the paper uncovers them */
#app .cv.nav-open .msheet .in>*{transition-delay:.3s}
#app .cv.nav-open .msheet .in>:nth-child(2){transition-delay:.36s}
#app .cv.nav-open .msheet .in>:nth-child(3){transition-delay:.42s}
#app .cv.nav-open .msheet .in>:nth-child(4){transition-delay:.48s}
#app .cv.nav-open .msheet .in>:nth-child(5){transition-delay:.54s}
#app .cv.nav-open .msheet .in>:nth-child(6){transition-delay:.6s}
#app .cv.nav-open .msheet .in>:nth-child(7){transition-delay:.66s}
#app .cv.nav-open .msheet .in>:nth-child(8){transition-delay:.72s}
/* hover: a short glitch on a few letters (AMGlitch), then the lime marker. Each link lays out on its own. */
#app .msheet .ml{contain:layout style}
#app .dk .msheet .ml:hover .mlt,#app .msheet .ml:focus-visible .mlt{transition:background-size .5s cubic-bezier(.6,0,.2,1) .22s}
@media (prefers-reduced-motion:reduce){
  #app .msheet .mrl,#app .msheet .mpg,#app .cv.nav-open .msheet .mrl,#app .cv.nav-open .msheet .mpg{translate:none;transition:none}
  #app .msheet .mroll{display:none}}

/* ================= dark mode edits ================= */
/* the page frame: side rails and their labels at 70% */
html.dark #app .frame{opacity:.7}
/* buttons: white face, ink type, the arrow turned to ink (like Start a project) */
html.dark{--btn-bg:#FFFFFF;--btn-ink:#282B30;--btn-line:#D9D6CF}
html.dark #app .am-echo-btn:not(.inv) .am-echo-btn__face img{filter:invert(1)}
/* logo bar: ink type on the lime stamp, every logo in cream */
html.dark #app .lbx-tag span{color:#282B30}
html.dark #app .lbx{--lgm:#EDEAE2}
html.dark #app .lbx .lv svg{fill:#EDEAE2}
/* contact: no figure legend on the concrete */
html.dark #app .ctk-l{display:none}
/* About tag: multiply, the dark twin of the light page's color dodge. Faint on the sheet, orange where it crosses the type. */
html.dark #app .ah.r27 .tagw{mix-blend-mode:multiply}
/* Open to work band: lime band, ink type */
html.dark #app .otw-s{background:var(--acc,#EFFFBC)}
html.dark #app .otw-s::after{filter:none;mix-blend-mode:multiply;opacity:.3}
html.dark #app .otw-t span,html.dark #app .otw-t i{color:#282B30}
/* phone: the Fig. 01 / Boston from above legend a step smaller (9px to 8px) */
#app .mb .ah.r27 .p-bos figcaption{font-size:calc(var(--u)*8)}

/* dark mode: everything you can click reads in pure white, a step above the cream type, so links stand out.
   Labels on lime or on a white face keep their ink. */
html.dark #app{--link:#FFFFFF}
html.dark #app :is(.nf .lk,.msheet .mlt,.wt a b,.wt a .ul,.nx3-t,.nx3-cta .tx,a.em,.ct .ft a,.svb .nm,.ich .ixt,.pill .vt,.ix-x,.lg .lgn,.cp-b,.sd .hand,.sd .up){color:var(--link)}
html.dark #app .thm-m .o.l{color:var(--link)}
html.dark #app .sv18 :is(.pl-a,.sv-ls) .sv-li.on .sv-nm,html.dark #app .sv18 :is(.pl-a,.sv-ls) .sv-it .sv-ar,html.dark #app .mb .sv18 .sv-it .sv-nm{color:var(--link)}
html.dark #app .sv18 :is(.pl-a,.sv-ls) .sv-it .sv-nm{color:rgba(255,255,255,.4)}
html.dark #app .ct a:not(.am-echo-btn),html.dark #app .ct.k2 .ct-l .cp-b,html.dark #app button.cp-b{color:var(--link)}
html.dark #app .ct.k2 .ct-l .cp-b:is(:hover,:focus-visible){color:var(--acc)}
html.dark #app .ct.k2 .ct-l .cp-b.ok{color:#282B30}

/* ---------- Round 25 (Dec 2): services wall and plate, Proof, quieter greys in dark, menu scribble, glass ---------- */

/* page frame: side rails and their labels at 70% in both themes */
#app .frame{opacity:.7}

/* ================= About: Made to Land ================= */
/* the wall: Alain's light corrugated sheet, printed as shot (dark mode keeps its multiply into grey) */
#app .sv18 .pl-wl{background:#EDEBE6 url(../../img/metal-wall-l.jpg) 50% 50%/cover no-repeat;background-blend-mode:normal}
#app .mb .sv18 .pl-wl{background-image:url(../../img/metal-wall-lm.jpg);background-size:calc(var(--u)*640) auto;background-repeat:repeat;background-position:50% 0}
html.dark #app .sv18 .pl-wl{background-color:#6A6C70;background-blend-mode:multiply}
/* the whole section prints over the tracing paper */
#app .sg.sv18{z-index:95}
/* the intro now sits on the dark plate, beside the title */
#app .dk .sv18.pv1 .sv-in{left:calc(var(--u)*612);right:auto;top:calc(var(--u)*116);width:calc(var(--u)*330);color:rgba(237,234,226,.86)}
html.dark #app .sv18.pv1 .sv-in{color:rgba(237,234,226,.86)}
/* the icons draw with their own roughness filter, wide enough for the outline at the sides */
html:not(.saf) #app .sv18 .w12-g use{filter:url(#rough-ic)!important}
#app .sv18 .sv-d .sv-ic{overflow:visible}

/* motion: the plate rises in as one card, then the title lines, the rules and names, the tag, the micro labels */
#app .sv18 .pl-a.rk{opacity:0;transform:translateY(calc(var(--u)*48));transition:opacity .7s var(--am-ease-out) var(--rd,0ms),transform 1.1s var(--ease-expo) var(--rd,0ms)}
#app .sv18 .pl-a.rk.seen{opacity:1;transform:none}
@keyframes svUp{from{opacity:0;translate:0 .4em}}
@keyframes svIn{from{opacity:0;translate:calc(var(--u)*-30) 0}}
@keyframes svRule{from{transform:scaleX(0)}}
@keyframes svTag{from{opacity:0;translate:0 calc(var(--u)*36);rotate:2deg}}
@keyframes svFade{from{opacity:0}}
#app .sv18 .pl-a.rk:not(.seen) :is(.sg-q .L,.sv-it,.sv-d,.pl-mt,.pl-ft,.pl-tg,.sv-in){opacity:0}
#app .sv18 .pl-a.rk.seen .sg-q .L{animation:svUp .9s var(--ease-expo) backwards;animation-delay:calc(var(--rd,0ms) + 300ms + var(--li,0) * 120ms)}
#app .sv18 .pl-a.rk.seen .sv-ls::before,#app .sv18 .pl-a.rk.seen .sv-li::after{transform-origin:0 50%;animation:svRule .9s var(--ease-expo) backwards;animation-delay:calc(var(--rd,0ms) + 520ms + var(--n,0) * 90ms)}
#app .sv18 .pl-a.rk.seen .sv-it{animation:svIn .9s var(--ease-expo) backwards;animation-delay:calc(var(--rd,0ms) + 600ms + var(--n,0) * 90ms)}
#app .sv18 .sv-li:nth-child(2){--n:1}#app .sv18 .sv-li:nth-child(3){--n:2}#app .sv18 .sv-li:nth-child(4){--n:3}
#app .sv18 .pl-a.rk.seen .sv-d{animation:svTag 1s var(--ease-expo) backwards;animation-delay:calc(var(--rd,0ms) + 1000ms)}
#app .sv18 .pl-a.rk.seen :is(.pl-mt,.pl-ft,.pl-tg){animation:svFade .8s var(--am-ease-out) backwards;animation-delay:calc(var(--rd,0ms) + 450ms)}
@media (prefers-reduced-motion:reduce){#app .sv18 .pl-a.rk,#app .sv18 .pl-a.rk *{opacity:1!important;transform:none!important;animation:none!important}}

/* ================= About: Proof ================= */
/* "with" set as the DomLovesMary Addons ligature glyph; the word stays for screen readers */
#app .vh .dlw{font-family:"domlovesmary-addons","domlovesmary-pro",cursive;font-weight:400;font-style:normal;font-variation-settings:normal;font-stretch:100%;
  text-transform:none;letter-spacing:0;font-size:1.5em;line-height:0;position:relative;top:.12em;margin:0 0 0 -.17em}
#app .vh .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* logos: three to a row, a rule between every cell */
#app .dk .vp .lgs .lg:nth-child(n){border-right:1px solid rgba(var(--ink-rgb),.16);border-bottom:1px solid rgba(var(--ink-rgb),.16)}
#app .dk .vp .lgs .lg:nth-child(3n){border-right:0}
#app .dk .vp .lgs .lg:nth-last-child(-n+3){border-bottom:0}
#app .vp .lg-s{cursor:default}
/* the label reads from the left edge */
#app .vp .vp-gh{text-align:left!important}
/* Make the first move: centred on the logo grid, not dropped to the bottom */
#app .dk .vp .vp-cta{align-self:stretch!important;align-items:center;margin-bottom:0!important;padding-top:var(--lgt,calc(var(--u)*160))}

/* ================= dark mode: support greys sit back ================= */
html.dark{--am-mute:#7E7C76;--am-faint:#5F5E5A;--tone1:#7E7C76;--rule-strong:#66645F;--hair:rgba(237,234,226,.17);--dif-mute:#8C8B86}
html.dark #app .vp{--vg:#86878A}

/* ================= homepage hero, dark: the script capital in a highlight ================= */
/* ink where it sits on the lime, paper where it leaves it (box measured by r25.js), like the split Contact header */
html.dark #app h1.hx .hlw .s.hs2{background:linear-gradient(#282B30,#282B30) var(--hx,0) var(--hy,0)/var(--hw,100%) var(--hh,100%) no-repeat,#EDEAE2;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* ================= menu: the hover is a lime scribble struck through the label ================= */
#app .msheet .ml .mlt,#app .dk .msheet .ml:hover .mlt,#app .msheet .ml:focus-visible .mlt{background:none;position:relative}
#app .msheet .ml .mlt::after{content:"";position:absolute;left:-.1em;right:-.12em;top:18%;height:64%;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M3 23C34 17 66 25 101 19S165 14 197 17C170 23 121 27 82 25S31 22 9 28C55 22 126 13 192 13' fill='none' stroke='%23EFFFBC' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
  mix-blend-mode:multiply;clip-path:inset(0 100% 0 0);transition:clip-path .18s ease-in}
#app .dk .msheet .ml:hover .mlt::after,#app .msheet .ml:focus-visible .mlt::after{clip-path:inset(-20% -5% -20% 0);transition:clip-path .42s cubic-bezier(.6,0,.2,1)}
html.dark #app .msheet .ml .mlt::after{mix-blend-mode:difference}
html.dark #app .msheet .ml:is(:hover,:focus-visible) .mlt{color:var(--link,#FFFFFF)}
@media (hover:none){#app .dk .msheet .ml:hover .mlt::after{clip-path:inset(0 100% 0 0)}}
@media (prefers-reduced-motion:reduce){#app .msheet .ml .mlt::after{transition:none}}

/* ================= glass: the AM plate and burger after scroll, and the menu once it lands =================
   The am-glass recipe: blur plus a saturation boost, a low tint lit from the top, a white hairline and a specular
   top edge, then the paper grain on top. Only static things carry it: the sheet turns to glass after its roll. */
#app .cv.scrolled .amplate::before,#app .cv.scrolled .burger::before{
  background:linear-gradient(180deg,rgba(255,255,255,.5) 0%,rgba(255,255,255,.16) 45%,rgba(250,248,243,.26) 100%);
  -webkit-backdrop-filter:blur(14px) saturate(1.75) brightness(1.05);backdrop-filter:blur(14px) saturate(1.75) brightness(1.05);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),inset 0 -1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.4),inset 0 0 calc(var(--u)*14) rgba(255,255,255,.18)}
html.dark #app .cv.scrolled .amplate::before,html.dark #app .cv.scrolled .burger::before{
  background:linear-gradient(180deg,rgba(80,84,92,.5) 0%,rgba(40,43,48,.3) 45%,rgba(34,36,40,.42) 100%);
  -webkit-backdrop-filter:blur(14px) saturate(1.6) brightness(.85);backdrop-filter:blur(14px) saturate(1.6) brightness(.85);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(255,255,255,.06),inset 0 0 0 1px rgba(255,255,255,.12)}

/* the menu sheet: paper while it rolls, glass once it is down. The blur switches on at .9s and off at once on close. */
#app .cv .msheet{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html #app .cv.nav-open.nav-open .msheet{-webkit-backdrop-filter:blur(18px) saturate(1.6) brightness(1.04)!important;backdrop-filter:blur(18px) saturate(1.6) brightness(1.04)!important;
  transition:visibility 0s,box-shadow .35s linear .85s,-webkit-backdrop-filter 0s linear .9s,backdrop-filter 0s linear .9s}
#app .msheet .mpg{isolation:isolate;background:linear-gradient(180deg,rgba(255,255,255,.62) 0%,rgba(250,248,243,.46) 40%,rgba(246,244,239,.54) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 0 0 1px rgba(255,255,255,.35)}
#app .msheet .mpg::before{z-index:-1}
#app .msheet .mpg::after{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:linear-gradient(180deg,rgba(251,250,246,.97),rgba(245,243,237,.965));opacity:1;transition:opacity 0s}
#app .cv.nav-open .msheet .mpg::after{opacity:0;transition:opacity .5s var(--am-ease-out) .9s}
html.dark #app .msheet .mpg{background:linear-gradient(180deg,rgba(66,70,77,.6) 0%,rgba(40,43,48,.56) 40%,rgba(34,36,40,.62) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(255,255,255,.08)}
html.dark #app .msheet .mpg::after{background:linear-gradient(180deg,rgba(50,53,59,.985),rgba(40,43,48,.98))}
@media (prefers-reduced-transparency:reduce){#app .cv.nav-open .msheet .mpg::after{opacity:1}}

/* ---------- Round 26 (Dec 2): dark mode labels on light faces, the menu barcode ---------- */
/* the active top bar label sits on its lime pill: ink type in both themes */
html.dark #app .nf .cell.lkc.on .lk{color:#282B30}
/* Strategy and process: the outcome numbers [ 01 ] [ 02 ] [ 03 ] sit on lime, so they stay ink */
html.dark #app .w12 .ocn b{color:#282B30}
/* menu spec card: the barcode prints in the card's type colour (a mask filled with the ink, not the black file) */
html.dark #app .msheet .bc{background:var(--am-ink);-webkit-mask:url(../../img/barcode.svg) center/100% 100% no-repeat;mask:url(../../img/barcode.svg) center/100% 100% no-repeat}
