/* projects: one consistent layout per product. words left, screenshots beside, the practical info under the words */
.strip .cur{position:relative;display:inline-block;padding:4px 14px;margin:0 -14px}
.strip .cur .ring{left:-8px;top:-9px}
.ptop{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-top:calc(var(--gap) * .6)}
.ph{font:900 clamp(56px,8vw,128px)/.8 var(--display);font-stretch:62%;text-transform:uppercase;letter-spacing:-.01em}
.gh,.cta a{display:inline-flex;align-items:center;gap:9px;font:400 15px/1.2 var(--text);text-decoration:none}
.gh:hover,.cta a:hover{text-decoration:underline;text-underline-offset:3px}
.ico{width:18px;height:18px;flex:none;overflow:visible}
.ico path{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.products{display:flex;flex-direction:column;gap:calc(var(--gap) * 2.6);margin-top:calc(var(--gap) * 1.6)}
.prod{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,3.4vw,56px);align-items:start}
.ptxt h2{font:900 clamp(40px,4.6vw,68px)/.85 var(--display);font-stretch:68%;text-transform:uppercase}
.blurb{margin-top:16px;font:400 16px/1.5 var(--text);max-width:34em}
.info{margin-top:20px;padding-top:16px;border-top:2px solid var(--wine)}
.ask{font:800 12px/1.2 var(--display);font-stretch:118%;text-transform:uppercase;letter-spacing:.1em}
.cta{margin-top:12px;display:flex;flex-direction:column;gap:9px}

/* the screenshots: washed into the two inks, on the graph paper until they arrive */
.shots{margin:0;display:flex;flex-direction:column;gap:var(--gap)}
.slot{aspect-ratio:16/10;box-shadow:inset 0 0 0 2px var(--wine);
  background-image:linear-gradient(var(--wine) 1.5px,transparent 1.5px),linear-gradient(90deg,var(--wine) 1.5px,transparent 1.5px);
  background-size:28px 28px;background-position:-1px -1px}
.shots img{display:block;width:100%;height:auto;filter:url(#duo) contrast(1.12) brightness(1.04);box-shadow:0 0 0 2px var(--wine)}
@media (max-width:820px){.prod{grid-template-columns:1fr}}
/* contents: the four names, each jumps to its product */
.toc{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:calc(var(--gap) * .8);
  font:800 12px/1 var(--display);font-stretch:118%;text-transform:uppercase;letter-spacing:.1em}
.toc a{text-decoration:none}.toc a:hover{text-decoration:underline;text-underline-offset:4px}
.prod{scroll-margin-top:24px}
.shots.phones{flex-direction:row;gap:var(--gap);align-items:flex-start}
.shots.phones img{width:calc(50% - var(--gap) / 2)}
/* screenshots: small, all one size; more than one becomes a carousel */
.prod{grid-template-columns:minmax(0,1fr) auto;align-items:start}
.shots{width:clamp(220px,22vw,320px)}
.shots .slot,.shots .track{width:100%;aspect-ratio:4/3}
.shots img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;object-position:top center}
.shots .track img[hidden]{display:none}
.ctl{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
.ctl button{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px}
.ctl button:focus-visible{outline:2px solid var(--wine);outline-offset:2px}
.ctl svg{width:9px;height:14px;overflow:visible}
.ctl path{fill:none;stroke:var(--wine);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.count{font:italic 400 17px/1 "DM Serif Display",Georgia,serif}
@media (max-width:820px){.prod{grid-template-columns:1fr}}
.shots img{box-shadow:none}

/* one slab per project, words and screenshots half and half */
.prod{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,3vw,48px);align-items:start;
  background:var(--wine);color:var(--blue);padding:clamp(22px,2.6vw,40px)}
.products{gap:var(--gap)}
.shots{width:100%}
.info{border-top-color:var(--blue)}
.ctl path{stroke:var(--blue)}
.ctl button:focus-visible{outline-color:var(--blue)}
.shots .slot{box-shadow:inset 0 0 0 2px var(--blue);
  background-image:linear-gradient(var(--blue) 1.5px,transparent 1.5px),linear-gradient(90deg,var(--blue) 1.5px,transparent 1.5px)}
@media (max-width:820px){.prod{grid-template-columns:1fr}}
.shots img{object-fit:contain;object-position:center}
/* the hand-drawn underline in place of the rule */
.info{border-top:0;padding-top:22px;position:relative}
.info::before{content:"";position:absolute;left:0;top:0;width:min(100%,420px);height:12px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7C40 4 90 9 140 6S190 4 198 5' fill='none' stroke='%23a9c3e3' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left center / 100% 100% no-repeat}
.tagline{margin-top:12px;font:italic 400 clamp(20px,1.7vw,26px)/1.2 "DM Serif Display",Georgia,serif}
.blurb+.blurb{margin-top:10px}
.facts{margin-top:10px;font:400 15px/1.45 var(--text)}
/* DEMMANND's four parts, numbered like the strengths */
.parts{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.parts li{display:grid;grid-template-columns:2.2em minmax(0,1fr);column-gap:10px;align-items:baseline}
.parts .n{grid-row:1 / span 2;font:italic 400 26px/1 "DM Serif Display",Georgia,serif}
.parts b{font:800 12px/1.2 var(--display);font-stretch:118%;text-transform:uppercase;letter-spacing:.1em}
.parts .d{font:400 15px/1.4 var(--text)}
.parts{gap:14px;margin-top:22px}
.parts li{grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:center}
.parts .n{font-size:clamp(44px,4.6vw,76px);line-height:.8;min-width:1.15em}
.parts b{align-self:end;margin-bottom:4px}
.parts .d{align-self:start}
/* the window pane: graph paper behind each screenshot, offset so the image layers over it */
.shots{position:relative}
.shots .track,.shots > img{position:relative;z-index:1}
.shots::before{content:"";position:absolute;z-index:0;pointer-events:none;
  top:calc(-1 * clamp(14px,1.6vw,24px));right:calc(-1 * clamp(14px,1.6vw,24px));width:72%;
  aspect-ratio:4/3;
  background-image:linear-gradient(var(--blue) 1.5px,transparent 1.5px),linear-gradient(90deg,var(--blue) 1.5px,transparent 1.5px);
  background-size:24px 24px;background-position:-1px -1px;box-shadow:inset 0 0 0 1.5px var(--blue);opacity:.9}
.prod{overflow:hidden}

/* the window pane, placed differently on each project */
.prod{position:relative;overflow:visible}
.shots::before{display:none}
.prod::after{content:"";position:absolute;pointer-events:none;background-size:24px 24px;background-position:-1px -1px}
/* DEMMANND: backing the image */
#demmannd .shots::before{display:block}
#demmannd::after{display:none}
/* Docket: behind the slab, in wine on the page, breaking out of the top right corner */
#docket::after{z-index:-1;top:calc(-1 * clamp(28px,3vw,48px));right:calc(-1 * clamp(28px,3vw,48px));width:34%;height:62%;
  background-image:linear-gradient(var(--wine) 1.5px,transparent 1.5px),linear-gradient(90deg,var(--wine) 1.5px,transparent 1.5px);
  box-shadow:inset 0 0 0 1.5px var(--wine)}
/* Folio: across the dead space under the words, on the slab */
#folio::after{z-index:0;left:clamp(22px,2.6vw,40px);bottom:clamp(22px,2.6vw,40px);width:30%;height:34%;
  background-image:linear-gradient(var(--blue) 1.5px,transparent 1.5px),linear-gradient(90deg,var(--blue) 1.5px,transparent 1.5px);
  box-shadow:inset 0 0 0 1.5px var(--blue);opacity:.55}
#folio .ptxt{position:relative;z-index:1}
/* Kindling: behind the slab, breaking out of the bottom left corner */
#kindling::after{z-index:-1;left:calc(-1 * clamp(28px,3vw,48px));bottom:calc(-1 * clamp(28px,3vw,48px));width:28%;height:58%;
  background-image:linear-gradient(var(--wine) 1.5px,transparent 1.5px),linear-gradient(90deg,var(--wine) 1.5px,transparent 1.5px);
  box-shadow:inset 0 0 0 1.5px var(--wine)}
.products{gap:calc(var(--gap) * 2.4)}
#folio::after{height:15%;width:34%;opacity:.6}

/* panes sized in whole squares (24px), each a different shape, never under words */
#demmannd .shots::before{top:-48px;right:-48px;width:calc(100% - 72px + 48px);aspect-ratio:auto;height:calc(100% - 48px)}
#docket::after{top:-48px;right:-48px;width:192px;height:168px}
#folio::after{left:clamp(22px,2.6vw,40px);bottom:clamp(22px,2.6vw,40px);width:336px;height:72px;opacity:.6}
#kindling::after{left:-48px;bottom:-48px;width:120px;height:360px}

/* connectors: each pane runs behind one slab, across the gap, into the next, and out past their edge */
.products{--pg:calc(var(--gap) * 2.4);gap:var(--pg)}
.prod::after{display:block;z-index:-1;top:auto;left:auto;right:auto;bottom:auto;opacity:1;
  background-image:linear-gradient(var(--wine) 1.5px,transparent 1.5px),linear-gradient(90deg,var(--wine) 1.5px,transparent 1.5px);
  background-size:24px 24px;background-position:-1px -1px;box-shadow:inset 0 0 0 1.5px var(--wine)}
/* DEMMANND into Docket: right side, tall and wide */
#demmannd::after{right:-48px;top:calc(100% - 144px);width:264px;height:calc(144px + var(--pg) + 120px)}
/* Docket into Folio: left side, narrow */
#docket::after{left:-48px;right:auto;top:calc(100% - 96px);width:168px;height:calc(96px + var(--pg) + 192px)}
/* Folio into Kindling: right side, wide and short */
#folio::after{left:auto;right:-48px;bottom:auto;top:calc(100% - 72px);width:360px;height:calc(72px + var(--pg) + 72px);opacity:1}
/* Kindling: no connector below it */
#kindling::after{display:none}
#demmannd::after,#docket::after,#folio::after{display:block;z-index:-1;opacity:1;
  background-image:linear-gradient(var(--wine) 1.5px,transparent 1.5px),linear-gradient(90deg,var(--wine) 1.5px,transparent 1.5px);
  box-shadow:inset 0 0 0 1.5px var(--wine)}
/* Kindling: from behind its bottom left corner down toward the footer */
#kindling::after{display:block;z-index:-1;opacity:1;left:-48px;right:auto;bottom:auto;top:calc(100% - 120px);width:216px;height:192px;
  background-image:linear-gradient(var(--wine) 1.5px,transparent 1.5px),linear-gradient(90deg,var(--wine) 1.5px,transparent 1.5px);
  box-shadow:inset 0 0 0 1.5px var(--wine)}

/* images break out of their slabs a little, each in its own direction */
.shots .track{position:relative;z-index:2}
#demmannd .track{transform:translate(clamp(24px,3vw,56px),calc(-1 * clamp(40px,4.4vw,72px)))}
#docket .track{transform:translate(clamp(16px,2vw,32px),clamp(28px,3vw,48px))}
#folio .track{transform:translateX(clamp(40px,4.6vw,80px))}
#kindling .track{transform:translateY(calc(-1 * clamp(56px,6vw,96px)))}

/* one rule: every screenshot overhangs the slab's right edge by two squares (48px), the same as the panes; tops align with the name */
#demmannd .track,#docket .track,#folio .track,#kindling .track{transform:none}
.prod{--pad:clamp(22px,2.6vw,40px)}
.shots{margin-right:calc(-1 * (var(--pad) + 48px));width:calc(100% + var(--pad) + 48px)}
.shots .track img{object-position:left top}
.ctl{margin-right:calc(var(--pad) + 48px)}
/* bigger panes, still whole squares: two wide, two kept narrow for contrast */
#demmannd::after{width:576px;height:calc(144px + var(--pg) + 168px)}
#docket::after{width:216px}
#folio::after{width:720px;height:calc(96px + var(--pg) + 96px)}
#kindling::after{width:480px;height:240px}

/* hand-drawn wobble on every drawn mark */
.ico,.dd-btn svg,.ctl svg{filter:url(#rough)}
.ico path,.dd-btn path,.ctl path{stroke-width:1.9}
.dot{filter:url(#lumpy);width:15px;height:15px}

/* the small header under the page name: what these four are, in one line and one paragraph */
.lead{margin-top:calc(var(--gap) * .9);display:flex;flex-direction:column;gap:10px}
.lh{font:900 clamp(26px,2.7vw,40px)/.9 var(--display);font-stretch:68%;text-transform:uppercase}
.lead p{font:400 16px/1.5 var(--text);max-width:46em}
.nw{white-space:nowrap}
/* phones: screenshots stay inside their slab, the graph paper clears the words, nothing scrolls sideways */
@media (max-width:820px){
  body{overflow-x:clip}
  .shots{margin-right:0;width:100%}
  .ctl{margin-right:0}
  #demmannd .shots{margin-top:48px}
  #demmannd .shots::before{right:calc(-1 * var(--pad));width:calc(100% - 72px + var(--pad))}
}
