/* Miniature still lifes for the three housekeeping services. */
.card-art.still-life {
  --object-scale: .96;
  width: 154px;
  height: 106px;
  position: relative;
  isolation: isolate;
  pointer-events: none;
}
.still-stage {
  position: absolute;
  inset: 0 auto auto 0;
  width: 154px;
  height: 106px;
  transform: scale(var(--object-scale));
  transform-origin: 0 0;
}
.still-stage::before {
  content: "";
  position: absolute;
  width: 124px;
  height: 23px;
  bottom: 2px;
  left: 10px;
  background: radial-gradient(ellipse, #263d2c40 7%, #263d2c1e 43%, transparent 71%);
  transform: rotate(5deg);
}
.still-object, .linen-layer, .linen-face, .calendar-front, .calendar-back, .parcel-piece {
  position: absolute;
}
.still-object {
  inset: 0;
  transform-origin: 50% 87%;
}
.still-life + h3 { margin-top: 12px; }

/* Three folded cloths, with the same woven border continuing around the hem. */
.linen-layer {
  --weave: repeating-linear-gradient(0deg, #ffffff10 0 .6px, transparent .8px 2px),
           repeating-linear-gradient(90deg, #163f3214 0 .55px, transparent .75px 2.3px);
  --border: linear-gradient(90deg, transparent 0 12%, var(--thread) 12.3% 14.5%, transparent 14.8% 17%,
             var(--thread) 17.2% 18.2%, transparent 18.6%);
  width: 96px;
  height: 14px;
  --depth: 46px;
}
.linen-bottom { left: 11px; top: 75px; --light: #7b9b87; --mid: #426d61; --dark: #31574e; --thread: #adbd9c; }
.linen-middle { left: 15px; top: 62px; --light: #f8efda; --mid: #d8c9aa; --dark: #b9ac8d; --thread: #9c745b; width: 91px; --depth: 45px; }
.linen-top { left: 12px; top: 49px; --light: #dfedd0; --mid: #b5cba8; --dark: #8aa68d; --thread: #688e74; width: 94px; --depth: 48px; }
.linen-face {
  display: block;
  transform-origin: 0 0;
  box-sizing: border-box;
}
.linen-surface {
  left: 0; top: 1px; width: 100%; height: var(--depth);
  transform: matrix(1,.14,.63,-.5,0,0);
  border-radius: 6px 7px 6px 5px;
  background: var(--weave), var(--border), linear-gradient(120deg, var(--light) 7%, var(--mid) 112%);
  box-shadow: inset 0 1px 2px #fff8, inset 0 -1px 1px #fff6;
}
.linen-hem {
  left: 0; top: -1px; width: 100%; height: 15px;
  transform: matrix(1,.14,0,1,0,0);
  border-radius: 4px 2px 5px 6px;
  background: var(--weave), var(--border), linear-gradient(var(--light), var(--mid) 39%, var(--dark) 100%);
  box-shadow: inset 0 1px 1px #fff5, inset 0 -1px 1px #27413250;
}
.linen-hem::after {
  content: "";
  position: absolute;
  width: 39%; height: 3px;
  left: 51%; bottom: 3px;
  border-bottom: 1px solid #314c3a48;
  border-radius: 50%;
}
.linen-fold {
  left: calc(100% - 1px); top: calc(100% - 1px); width: var(--depth); height: 14px;
  transform: matrix(.63,-.5,0,1,0,0);
  border-radius: 8px 5px 5px 6px;
  background: var(--weave), linear-gradient(180deg, var(--mid), var(--dark) 37%, var(--mid) 73%, var(--dark));
}
.linen-fold::after {
  content: "";
  position: absolute;
  inset: 3px 4px 3px 6px;
  border: 1.5px solid color-mix(in srgb, var(--dark) 78%, #23382e);
  border-left: 0;
  border-radius: 22% 45% 43% 32%;
  box-shadow: 0 1px 0 #ffffff32;
}

/* A ring-bound tent calendar. Its leg is exposed to the right of the page. */
.still-calendar .still-stage::before { left: 11px; bottom: 0; width: 126px; }
.calendar-back {
  inset: 0;
  background: linear-gradient(110deg, #944f3c, #733e32 58%, #522f29);
  clip-path: polygon(51% 17%, 72% 20%, 91% 77%, 71% 87%, 62% 68%);
}
.calendar-back::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(148deg, #ae7558, #b57c5c);
  clip-path: polygon(71% 24%, 88% 76%, 72% 84%);
}
.calendar-front {
  left: 23px; top: 15px; width: 83px; height: 74px;
  transform-origin: 50% 100%;
  transform: matrix(1,.14,-.13,1,0,0);
  background: #faf1da;
  border-radius: 3px 3px 2px 2px;
  box-shadow: 0 1px #e6d8b9, 0 2px #bfaa90, 0 3px #f1dfbc, 0 4px #986552,
              -2px 5px #814d3e, inset 1px 0 1px #fff;
}
.calendar-front::before {
  content: "";
  position: absolute; inset: 0 0 auto;
  height: 25px; border-radius: 3px 3px 0 0;
  background: linear-gradient(140deg, #c87956, #ae5f45 65%, #98503e);
  box-shadow: inset 0 1px 0 #da9970, 0 1px #b26a4a33;
}
.calendar-front::after {
  content: "";
  position: absolute; left: 12px; top: 15px; width: 23px; height: 3px;
  background: #f4ddbc; border-radius: 1px;
}
.calendar-binding {
  position: absolute; left: 11px; right: 10px; top: -7px;
  display: flex; justify-content: space-between;
}
.calendar-binding i {
  position: relative; width: 6px; height: 12px;
  border-radius: 65% 70% 48% 52%;
  border: 1.7px solid #4e5046;
  border-left-color: #ddd4b9;
  box-shadow: 1px .5px .7px #59382f85;
}
.calendar-binding i::after {
  content: "";
  position: absolute; z-index: -1;
  bottom: -2.6px; left: -.8px; width: 5.8px; height: 4.5px;
  background: #844830; border-radius: 100%;
}
.calendar-days {
  position: absolute; inset: 33px 10px 10px 12px;
  display: grid; grid-template-columns: repeat(7,1fr); grid-template-rows: repeat(4,1fr);
  align-items: center; justify-items: center;
}
.calendar-days i {
  width: 4px; height: 2px; background: #a6a58d; border-radius: .5px;
}
.calendar-days i:nth-child(7n+1), .calendar-days i:nth-child(7n) { background: #cba88c; }
.calendar-days i:nth-child(-n+2), .calendar-days i:nth-last-child(-n+2) { opacity: .3; }
.calendar-days i:nth-child(17) {
  width: 9px; height: 8px; border-radius: 50%;
  border: 1.4px solid #a85d43; background: radial-gradient(ellipse 2px 1px, #846852 65%, transparent 74%);
  transform: rotate(-10deg);
}

/* Kraft carton made from scored board, open flaps, and a strip of packing tape. */
.still-parcel {
  --board-grain: repeating-linear-gradient(83deg, #57371b09 0 .5px, transparent .7px 3.4px),
                repeating-linear-gradient(-13deg, #fff5d50c 0 .45px, transparent .8px 2.1px);
}
.still-parcel .still-stage::before { left: 16px; bottom: 0; }
.parcel-piece { inset: 0; }
.parcel-back-left { clip-path: polygon(17% 46%, 52% 32%, 47% 17%, 14% 30%); background: var(--board-grain), linear-gradient(150deg,#ebcfa1 12%, #b98f5f 62%); }
.parcel-back-right { clip-path: polygon(52% 32%, 80% 47%, 87% 30%, 58% 16%); background: var(--board-grain), linear-gradient(155deg,#f2daae 18%,#c79c67 76%); }
.parcel-inside { clip-path: polygon(17% 46%,52% 32%,80% 47%,50% 66%); background: conic-gradient(from 180deg at 52% 33%, #795537 0deg 109deg, #8d6343 109deg 180deg, #9f714a 180deg); }
.parcel-front { clip-path: polygon(17% 45.5%,50.3% 63%,50.3% 96%,18% 77%); background: var(--board-grain), linear-gradient(158deg,#c89a66 9%,#dbb882 40%,#bb8b55 90%); }
.parcel-front::after {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(31% 51%,36% 54%,36% 70%,34.5% 68%,33% 69%,31% 66%);
  background: #a97c4b; opacity: .78;
}
.parcel-side { clip-path: polygon(50% 63%,80% 46%,79% 78%,50% 96%); background: var(--board-grain), linear-gradient(158deg,#98663f 25%,#ad7a4f 61%,#976b43 91%); }
.parcel-label {
  position: absolute; left: 91px; top: 77px; width: 14px; height: 9px;
  transform: skewY(-22deg) rotate(1deg);
  border-radius: 1px;
  background: repeating-linear-gradient(90deg, #5a6556 0 1px, transparent 1px 2.5px) 3px 3px/8px 3px no-repeat, #e9dcc0;
}
.parcel-flap-left { clip-path: polygon(17% 45%,50.2% 63.2%,42% 73%,7% 54%); background: var(--board-grain), linear-gradient(154deg,#f0d7aa 17%,#c39a64 70%); }
.parcel-flap-right { clip-path: polygon(50% 63.1%,79.9% 46.2%,91% 57%,61% 76.5%); background: var(--board-grain), linear-gradient(161deg,#ddba81 30%,#f1d7ad 70%); }
/* The underside of each flap casts a narrow shadow across the board below. */
.parcel-front::before, .parcel-side::before, .parcel-back-left::before, .parcel-back-right::before {
  content: ""; position: absolute; inset: 0;
}
.parcel-front::before {
  background: #6f492d37;
  clip-path: polygon(17% 45%,50% 63%,44% 75.5%,16% 60%);
}
.parcel-side::before {
  background: #5d3c2940;
  clip-path: polygon(50% 62%,80% 46%,81% 65%,61% 80%);
}
.parcel-back-left::before {
  background: #f9deb0;
  clip-path: polygon(14% 30%,47% 17%,47.2% 18%,14.2% 31%);
}
.parcel-back-right::before {
  background: #ffe6c1;
  clip-path: polygon(58% 16%,87% 30%,86.7% 31%,57.8% 17%);
}
.parcel-flap-left::after, .parcel-flap-right::after {
  content: ""; position: absolute; inset: 0;
  background: #fff3d3; opacity: .8;
}
.parcel-flap-left::after { clip-path: polygon(7% 53.1%,42% 72%,42.3% 73%,7% 54%); }
.parcel-flap-right::after { clip-path: polygon(61% 75.4%,91% 56%,91% 57%,61% 76.5%); }

@media (min-width: 761px) and (max-width: 960px) {
  .card-art.still-life { --object-scale: .85; height: 90px; }
}
@media (max-width: 760px) {
  .services .card { grid-template-columns: 66px 1fr; column-gap: 11px; padding-left: 8px; }
  .card-art.still-life { --object-scale: .45; width: 66px; height: 50px; }
  .still-life + h3 { margin-top: 0; }
}
@media (max-width: 365px) {
  .services .card { grid-template-columns: 54px 1fr; column-gap: 7px; }
  .card-art.still-life { --object-scale: .38; width: 54px; height: 43px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .linen-layer, .calendar-front, .parcel-flap-right, .parcel-flap-left {
    transition: transform 300ms cubic-bezier(.2,.7,.25,1);
  }
  .card:is(:hover,:focus-visible) .linen-top { transform: translate(-1px,-3px) rotate(-1.5deg); }
  .card:is(:hover,:focus-visible) .linen-middle { transform: translateY(-1px); }
  .card:is(:hover,:focus-visible) .calendar-front { transform: matrix(1,.12,-.17,1,0,-1); }
  .parcel-flap-left { transform-origin: 33.5% 54%; }
  .parcel-flap-right { transform-origin: 65% 54%; }
  .card:is(:hover,:focus-visible) .parcel-flap-left { transform: skewY(-2deg) translateY(-.7px); }
  .card:is(:hover,:focus-visible) .parcel-flap-right { transform: skewY(3deg) translateY(-1px); }
}
