/* VELVET & ROSE — scrapbook.css
   "A chic vintage scrapbook." Loaded last, after gallery.css.

   1. Walls        full-width limewash and marble, one after the other
   2. The wall     the 12-column board every section hangs its pieces on
   3. Titles       written straight on the wall
   4. Paper        a sheet of paper with a wax seal
   5. Gold frames  eight frames; paper or a photograph inside
   6. Decor        bud vases, perfume bottles, the peony urn, petals, pearls and roses in the empty space
   7. Sections     the pieces inside each Home section
   8. Small screens

   A section opts in with class "sb" plus "sb--lime" or "sb--marble".
   Nothing in this file styles the Home hero (section.hero), the header or the footer. */

/* 1. WALLS --------------------------------------------------------------------- */
main > .sb {
  --color-text: var(--ink);
  --color-muted: #4f3a41;
  --color-line: rgb(38 10 20 / 0.18);
  --color-primary: var(--ochre);
  --color-accent-text: var(--ochre-deep);
  --btn-bg: var(--burgundy); --btn-fg: var(--ivory); --btn-hover: var(--ink);
  --focus: var(--ochre);
  --paper: #f9f4ea;
  --sb-edge: clamp(1.15rem, 5vw, 5rem);          /* wall left at each side of the board */
  --sb-gap: clamp(1rem, 2.2vw, 2.25rem);         /* between columns */
  --sb-row: clamp(2.25rem, 4.2vw, 4rem);         /* between rows */
  --wall-w: min(100% - 2 * var(--sb-edge), 78rem);   /* how wide the board is */
  --wall-l: calc((100% - var(--wall-w)) / 2);        /* where the board starts */
  position: relative; z-index: 31; isolation: isolate;
  margin: 0; border-radius: 0;
  padding-block: clamp(3.75rem, 6.6vw, 6.75rem);
  overflow: visible; overflow-x: clip;
  color: var(--ink); text-align: left;
  background-repeat: repeat-y; background-size: max(100%, 1180px) auto; background-position: 50% 0;
  box-shadow: inset 0 22px 26px -26px rgb(52 18 28 / 0.5);
}
main > .sb::before, main > .sb::after { content: none; }
/* Nothing reaches up into the hero or down into the footer. */
main > .sb.sb-studio { clip-path: inset(0 0 -200rem 0); }
/* ...nor onto the workshop's canvas panel or the closing sheet. */
main > .sb.sb-services, main > .sb.sb-where { clip-path: inset(-200rem 0 0 0); }
main > .sb.sb-quiz { clip-path: inset(0 0 -200rem 0); }

main > .sb.sb--lime   { --color-bg: #d4b6ac; background-color: #d4b6ac; background-image: url("images/scrap/wall-limewash.webp"); }
main > .sb.sb--marble { --color-bg: #f3efe7; background-color: #f3efe7; background-image: url("images/scrap/wall-marble-a.webp"); }
main > .sb.sb--marble:nth-of-type(4n + 1) { background-image: url("images/scrap/wall-marble-b.webp"); }
/* Each wall starts at a different height of the texture, so no two look alike. */
main > .sb:nth-of-type(3n)     { background-position: 50% 38%; }
main > .sb:nth-of-type(3n + 1) { background-position: 50% 71%; }
@media (max-width: 899.98px) {
  main > .sb.sb--lime   { background-image: url("images/scrap/wall-limewash-m.webp"); }
  main > .sb.sb--marble { background-image: url("images/scrap/wall-marble-a-m.webp"); }
  main > .sb.sb--marble:nth-of-type(4n + 1) { background-image: url("images/scrap/wall-marble-b-m.webp"); }
}

/* 2. THE WALL ------------------------------------------------------------------ */
.sb__wall {
  position: relative; z-index: 2;
  width: var(--wall-w); margin-inline: auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sb-gap); row-gap: var(--sb-row);
  align-items: center;
}
.sb__wall > *, .sb-tiers > * { grid-column: var(--c, 1 / -1); grid-row: var(--r, auto); margin-top: var(--dy, 0); min-width: 0; }
.cut { position: relative; }
.cut--over { z-index: 2; }

/* 3. TITLES -------------------------------------------------------------------- */
.sb__head { display: grid; justify-items: start; gap: clamp(0.9rem, 1.5vw, 1.35rem); }
.sb__head--center { justify-items: center; text-align: center; }
.sb__head .chapter { margin: 0; }
main > .sb h2.display { font-size: clamp(2.3rem, 1.35rem + 3.1vw, 4.3rem); line-height: 1; max-width: 13ch; text-wrap: balance; }
main > .sb .sb__head--center h2.display { max-width: 16ch; }
.sb__lede { max-width: 46ch; font-size: 1.0625rem; line-height: 1.62; color: var(--color-text); }
.sb__lede > p + p { margin-top: 0.8em; }
.sb__head--center .sb__lede { max-width: 54ch; }
.sb__go { margin: 0; max-width: none; }
.sb__go--center { justify-self: center; text-align: center; }
.sb__go--wall { justify-self: start; }
.sb__go--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 2rem; }
.sb .link { color: var(--color-text); }

/* 4. PAPER --------------------------------------------------------------------- */
.paper {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2.4rem) clamp(1.35rem, 2.4vw, 2.3rem);
  border-radius: 9px;
  background: var(--paper, #f9f4ea) url("images/scrap/paper.webp") center / cover;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgb(60 24 30 / 0.07), 0 1px 0 rgb(255 255 255 / 0.7) inset,
              0 26px 34px -24px rgb(52 18 28 / 0.6), 0 3px 6px rgb(52 18 28 / 0.14);
}
/* The wax seal. Add wax--sprig for the second stamp, wax--tl / wax--bl / wax--br to move it. */
.wax {
  position: absolute; z-index: 3; top: -1.5rem; right: clamp(1rem, 2vw, 1.9rem);
  width: clamp(3.5rem, 4.6vw, 4.6rem); aspect-ratio: 1;
  background: url("images/scrap/seal-rose.webp") center / contain no-repeat;
  filter: drop-shadow(0 4px 4px rgb(40 6 16 / 0.42));
  rotate: 8deg; pointer-events: none;
}
.wax--sprig { background-image: url("images/scrap/seal-sprig.webp"); rotate: -10deg; }
.wax--tl { right: auto; left: clamp(1rem, 2vw, 1.9rem); }
.wax--br { top: auto; bottom: -2.4rem; right: -0.9rem; }
.wax--bl { top: auto; bottom: -1.5rem; right: auto; left: clamp(1rem, 2vw, 1.9rem); }
.wax--sm { width: 2.9rem; top: -1.2rem; right: 0.8rem; }
.wax--inline { position: static; display: inline-block; flex: none; width: 2.5rem; rotate: -6deg; }

/* 5. GOLD FRAMES --------------------------------------------------------------- *
   <div class="gframe gframe--baroque"><div class="gframe__b"> ... </div></div>
   Add "gframe--photo" when the frame holds a photograph.
   --ar is the frame's own shape; --ft --fr --fb --fl are how wide the gold is on each
   side (in hundredths of the frame's width); --slice cuts the artwork into corners and sides. */
.gframe { position: relative; display: block; container-type: inline-size; }
.gframe__b {
  --lip: 0.26;                                   /* how far the paper tucks under the gold */
  --pad: clamp(0.9rem, 4.2cqw, 2rem);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center;
  aspect-ratio: var(--ar);                       /* the frame keeps its shape, and grows if the words need more room */
  border-style: solid; border-color: transparent;
  border-width: calc(var(--ft) * (1 - var(--lip)) * 1cqw) calc(var(--fr) * (1 - var(--lip)) * 1cqw)
                calc(var(--fb) * (1 - var(--lip)) * 1cqw) calc(var(--fl) * (1 - var(--lip)) * 1cqw);
  padding: calc(var(--ft) * var(--lip) * 1cqw + var(--pad)) calc(var(--fr) * var(--lip) * 1cqw + var(--pad))
           calc(var(--fb) * var(--lip) * 1cqw + var(--pad)) calc(var(--fl) * var(--lip) * 1cqw + var(--pad));
  background: var(--paper, #f9f4ea) url("images/scrap/paper.webp") center / cover padding-box;
  color: var(--ink);
}
.gframe__b::after {
  content: ''; position: absolute; z-index: 3; pointer-events: none;
  inset: calc(var(--ft) * (1 - var(--lip)) * -1cqw) calc(var(--fr) * (1 - var(--lip)) * -1cqw)
         calc(var(--fb) * (1 - var(--lip)) * -1cqw) calc(var(--fl) * (1 - var(--lip)) * -1cqw);
  border-style: solid; border-color: transparent;
  border-width: calc(var(--ft) * 1cqw) calc(var(--fr) * 1cqw) calc(var(--fb) * 1cqw) calc(var(--fl) * 1cqw);
  border-image: var(--frame) var(--slice) / 1 / 0 stretch;
  filter: drop-shadow(0 1.6cqw 1.5cqw rgb(52 18 28 / 0.42)) drop-shadow(0 1px 1px rgb(52 18 28 / 0.3));
}
.gframe--baroque > .gframe__b      { --frame: url("images/scrap/frame-baroque.webp");      --ar: 1.354; --ft: 10.69; --fr: 13.15; --fb: 10.85; --fl: 13.46; --slice: 14.48% 13.15% 14.69% 13.46%; }
.gframe--baroque-tall > .gframe__b { --frame: url("images/scrap/frame-baroque-tall.webp"); --ar: 0.79;  --ft: 21.2;  --fr: 20.99; --fb: 21.73; --fl: 21.1;  --slice: 16.75% 20.99% 17.17% 21.1%; }
.gframe--rococo > .gframe__b       { --frame: url("images/scrap/frame-rococo.webp");       --ar: 1.259; --ft: 15.75; --fr: 17;    --fb: 15.17; --fl: 17.17; --slice: 19.83% 17% 19.1% 17.17%; }
.gframe--classic > .gframe__b      { --frame: url("images/scrap/frame-classic.webp");      --ar: 1.512; --ft: 11.69; --fr: 12.77; --fb: 12.08; --fl: 12.85; --slice: 17.67% 12.77% 18.26% 12.85%; }
.gframe--slim > .gframe__b         { --frame: url("images/scrap/frame-slim.webp");         --ar: 1.27;  --ft: 8.75;  --fr: 8.58;  --fb: 8.58;  --fl: 8.58;  --slice: 11.11% 8.58% 10.9% 8.58%; }
/* A frame that holds words turns upright when it gets narrow ("gframe--stay" keeps it lying down, for a short title). */
@container (max-width: 27rem) {
  .gframe--baroque:not(.gframe--photo):not(.gframe--stay) > .gframe__b { --frame: url("images/scrap/frame-baroque-p.webp"); --ar: 0.738; --ft: 17.82; --fr: 14.69; --fb: 18.24; --fl: 14.48; --slice: 13.15% 14.69% 13.46% 14.48%; }
  .gframe--classic:not(.gframe--photo):not(.gframe--stay) > .gframe__b { --frame: url("images/scrap/frame-classic-p.webp"); --ar: 0.662; --ft: 19.28; --fr: 18.26; --fb: 19.4;  --fl: 17.67; --slice: 12.77% 18.26% 12.85% 17.67%; }
  .gframe--slim:not(.gframe--photo):not(.gframe--stay) > .gframe__b    { --frame: url("images/scrap/frame-slim-p.webp");    --ar: 0.788; --ft: 10.89; --fr: 10.9;  --fb: 10.89; --fl: 11.11; --slice: 8.58% 10.9% 8.58% 11.11%; }
  .gframe--rococo:not(.gframe--photo):not(.gframe--stay) > .gframe__b  { --frame: url("images/scrap/frame-rococo-p.webp");  --ar: 0.794; --ft: 21.4;  --fr: 19.1;  --fb: 21.61; --fl: 19.83; --slice: 17% 19.1% 17.17% 19.83%; }
}
/* "gframe--wide" keeps a slim frame lying down a little longer, for a few short lines. */
@container (min-width: 19rem) and (max-width: 27rem) {
  .gframe--slim.gframe--wide:not(.gframe--photo) > .gframe__b    { --frame: url("images/scrap/frame-slim.webp");    --ar: 1.27;  --ft: 8.75;  --fr: 8.58;  --fb: 8.58;  --fl: 8.58;  --slice: 11.11% 8.58% 10.9% 8.58%; }
  .gframe--classic.gframe--wide:not(.gframe--photo) > .gframe__b { --frame: url("images/scrap/frame-classic.webp"); --ar: 1.512; --ft: 11.69; --fr: 12.77; --fb: 12.08; --fl: 12.85; --slice: 17.67% 12.77% 18.26% 12.85%; --pad: 0.7rem; }
}
/* Photographs fill the opening. */
.gframe--photo > .gframe__b { padding: 0; background: #2a0f18 padding-box; }
.gframe--photo > .gframe__b > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gframe--photo > .gframe__b::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(30 8 14 / 0.35), inset 0 1.2cqw 2.4cqw rgb(30 8 14 / 0.4);
}
/* Ovals and the arch: one fixed shape, the artwork laid over the top. */
.gframe--oval > .gframe__b, .gframe--oval-tall > .gframe__b, .gframe--arch > .gframe__b {
  border: 0; background: none; padding: 0;
  display: grid; place-content: center; justify-items: center; text-align: center;
}
.gframe--oval > .gframe__b      { --frame: url("images/scrap/frame-oval.webp");      --ar: 1.402; --ot: 14.95%; --or: 11.92%; --ob: 16.36%; --ol: 11.75%; --round: 50%; padding: 23cqw 24cqw; }
.gframe--oval-tall > .gframe__b { --frame: url("images/scrap/frame-oval-tall.webp"); --ar: 0.76;  --ot: 13.91%; --or: 15.91%; --ob: 13.27%; --ol: 16.03%; --round: 50%; padding: 34cqw 26cqw; }
.gframe--arch > .gframe__b      { --frame: url("images/scrap/frame-arch.webp");      --ar: 0.7;   --ot: 15.64%; --or: 11.17%; --ob: 7%;     --ol: 11.17%; --round: 50% 50% 0 0 / 35.1% 35.1% 0 0; padding: 40cqw 17cqw 16cqw; }
/* An oval that holds words stands upright when it gets narrow: "gframe--turn" early, "gframe--turn-late" on small phones only. */
@container (max-width: 24rem) {
  .gframe--oval.gframe--turn > .gframe__b { --frame: url("images/scrap/frame-oval-tall.webp"); --ar: 0.76; --ot: 13.91%; --or: 15.91%; --ob: 13.27%; --ol: 16.03%; padding: 34cqw 25cqw; }
}
@container (max-width: 20rem) {
  .gframe--oval.gframe--turn-late > .gframe__b { --frame: url("images/scrap/frame-oval-tall.webp"); --ar: 0.76; --ot: 13.91%; --or: 15.91%; --ob: 13.27%; --ol: 16.03%; padding: 34cqw 25cqw; }
  .gframe--turn-late .sb-figs { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
}
:is(.gframe--oval, .gframe--oval-tall, .gframe--arch) > .gframe__b::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  inset: calc(var(--ot) - 1.2%) calc(var(--or) - 1.2%) calc(var(--ob) - 1.2%) calc(var(--ol) - 1.2%);
  border-radius: var(--round);
  background: var(--paper, #f9f4ea) url("images/scrap/paper.webp") center / cover;
}
:is(.gframe--oval, .gframe--oval-tall, .gframe--arch) > .gframe__b::after {
  inset: 0; border: 0; border-image: none;
  background: var(--frame) center / 100% 100% no-repeat;
}
:is(.gframe--oval, .gframe--oval-tall, .gframe--arch) > .gframe__b > * { position: relative; z-index: 1; }
:is(.gframe--oval, .gframe--oval-tall, .gframe--arch).gframe--photo > .gframe__b { padding: 0; }
:is(.gframe--oval, .gframe--oval-tall, .gframe--arch).gframe--photo > .gframe__b > img {
  position: absolute; inset: calc(var(--ot) - 1.2%) calc(var(--or) - 1.2%) calc(var(--ob) - 1.2%) calc(var(--ol) - 1.2%);
  width: auto; height: auto; min-width: 0;
  width: calc(100% - var(--ol) - var(--or) + 2.4%); height: calc(100% - var(--ot) - var(--ob) + 2.4%);
  object-fit: cover; border-radius: var(--round);
}
:is(.gframe--oval, .gframe--oval-tall, .gframe--arch).gframe--photo > .gframe__b::before { background: #2a0f18; box-shadow: none; z-index: 0; }
/* A small typed card that overlaps the corner of a frame. */
.gframe__tag {
  position: relative; z-index: 4; display: block; width: fit-content; max-width: 86%;
  margin: -1.9rem -0.6rem 0 auto; padding: 0.7rem 0.95rem 0.75rem;
  border-radius: 6px; background: var(--paper, #f9f4ea) url("images/scrap/paper.webp") center / cover;
  box-shadow: 0 0 0 1px rgb(60 24 30 / 0.07), 0 16px 22px -16px rgb(52 18 28 / 0.6), 0 2px 4px rgb(52 18 28 / 0.14);
  font-family: var(--font-type); font-size: 0.78rem; letter-spacing: 0.04em; line-height: 1.5; color: var(--ink);
}

/* 5a. PHOTOGRAPHS ON PAPER --------------------------------------------------------- *
   <figure class="cut paper pphoto pphoto--tall"><span class="wax wax--sm"></span><img ...></figure>
   Shapes: pphoto--tall, --wide, --arch, --oval, --oval-tall. */
.pphoto { display: block; padding: clamp(0.5rem, 0.9vw, 0.8rem); border-radius: 6px; }
.pphoto > img { width: 100%; height: auto; aspect-ratio: var(--par, 0.8); object-fit: cover; border-radius: var(--pr, 2px); box-shadow: inset 0 0 0 1px rgb(38 10 20 / 0.1); }
.pphoto--tall { --par: 0.78; rotate: -1.1deg; }
.pphoto--wide { --par: 1.32; rotate: 0.8deg; }
.pphoto--arch { --par: 0.72; --pr: 999px 999px 3px 3px; border-radius: 999px 999px 7px 7px; padding-top: clamp(0.7rem, 1.2vw, 1rem); rotate: 1deg; }
.pphoto--oval, .pphoto--oval-tall { --pr: 50%; border-radius: 50%; padding: clamp(0.6rem, 1.1vw, 0.95rem); }
.pphoto--oval { --par: 1.36; rotate: -2deg; }
.pphoto--oval-tall { --par: 0.76; rotate: 1.5deg; }
.pphoto--oval > .wax, .pphoto--oval-tall > .wax, .pphoto--arch > .wax { top: -0.6rem; right: 14%; }
.pphoto > .gframe__tag { margin-top: -1.6rem; }

/* 5b. PAINT CARDS ---------------------------------------------------------------- *
   <article class="pcard pcard--rose"> a strip of swatches on white card, taped to the wall.
   Each swatch is a ".pcard__sw": the first is the name, the rest hold the words.
   Colours: pcard--rose (magenta to blush), pcard--nude (sand to cream), pcard--claret (burgundy to red). */
.sb-pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; width: min(100%, 66rem); margin-inline: auto; }
.pcard {
  font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; min-height: 0; border: 0; border-radius: 3px; color: var(--ink); transition: none;
  --gapc: 7px; position: relative; display: grid; gap: var(--gapc); padding: var(--gapc);
  background: #fbf8f2; border-radius: 3px;
  box-shadow: 0 0 0 1px rgb(60 24 30 / 0.06), 0 24px 30px -22px rgb(52 18 28 / 0.55), 0 3px 6px rgb(52 18 28 / 0.12);
}
.sb-pcards > .pcard:nth-child(1) { rotate: -1.4deg; margin-top: 1.5rem; }
.sb-pcards > .pcard:nth-child(2) { rotate: 0.9deg; }
.sb-pcards > .pcard:nth-child(3) { rotate: -0.7deg; margin-top: 2.6rem; }
.pcard__sw { position: relative; background: var(--sw); color: var(--on); padding: clamp(1rem, 1.5vw, 1.4rem) clamp(1rem, 1.5vw, 1.35rem); min-height: 7.25rem; }
.pcard__sw::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url("images/scrap/paper.webp") center / 220% auto; mix-blend-mode: multiply; opacity: 0.16; }
.pcard__name { display: grid; align-content: end; min-height: 8rem; padding-top: 2.6rem; }
.pcard__no { font-family: var(--font-type); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-2); }
.pcard__name h3 { margin-top: 0.3rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 1rem + 1vw, 1.95rem); line-height: 1.05; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on); }
.pcard__els { display: grid; gap: var(--gapc); margin: 0; }
.pcard__els dt { font-family: var(--font-type); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-2); }
.pcard__els dd { margin: 0.35rem 0 0; font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--on); }
/* Swatches run deepest at the top, palest at the bottom, like a real paint card. */
.pcard--rose   > .pcard__name { --sw: #8b1a42; --on: #fff8f4; --on-2: #f6d9e0; }
.pcard--rose   .pcard__els > .pcard__sw:nth-child(1) { --sw: #a5335a; --on: #fff8f4; --on-2: #f8e0e6; }
.pcard--rose   .pcard__els > .pcard__sw:nth-child(2) { --sw: #cf7590; --on: #2a0712; --on-2: #330a17; }
.pcard--rose   .pcard__els > .pcard__sw:nth-child(3) { --sw: #e3a4b2; --on: var(--ink); --on-2: #5a2033; }
.pcard--nude   > .pcard__name { --sw: #c9a27c; --on: #2a120c; --on-2: #4a2a1c; }
.pcard--nude   .pcard__els > .pcard__sw:nth-child(1) { --sw: #dfc19f; --on: #2a120c; --on-2: #573523; }
.pcard--nude   .pcard__els > .pcard__sw:nth-child(2) { --sw: #ecd8bf; --on: #2a120c; --on-2: #5f3e2c; }
.pcard--claret > .pcard__name { --sw: #5a0d1c; --on: #fff8f4; --on-2: #efcfd4; }
.pcard--claret .pcard__els > .pcard__sw:nth-child(1) { --sw: #861823; --on: #fff8f4; --on-2: #f4d6d8; }
.pcard--claret .pcard__els > .pcard__sw:nth-child(2) { --sw: #a92d2e; --on: #fff8f4; --on-2: #fbe1df; }
/* Torn tape holding each card to the wall. */
.pcard__tape { position: absolute; z-index: 4; top: -2.3rem; left: 50%; width: 7.4rem; height: auto; max-width: none; translate: -50% 0; rotate: 7deg; pointer-events: none; user-select: none; filter: drop-shadow(0 2px 2px rgb(52 18 28 / 0.18)); }
.sb-pcards > .pcard:nth-child(2) .pcard__tape { rotate: -5deg; left: 46%; }
.sb-pcards > .pcard:nth-child(3) .pcard__tape { rotate: 9deg; left: 54%; }

/* 6. DECOR --------------------------------------------------------------------- *
   <img class="deco deco--back"> sits behind the cut-outs, "deco--front" in front of them.
   Place one with --dt --dr --db --dl (top, right, bottom, left), --dw (width) and --rot (turn).
   To pin a piece to the board instead of the screen edge, measure from the board:
   --dl: calc(var(--wall-l) + 0.2 * var(--wall-w)) is one fifth of the way across it.
   On a phone only the pieces marked "deco--m" stay, placed with --mt --mr --mb --ml and --mw. */
.deco {
  position: absolute; z-index: 1; pointer-events: none; user-select: none; max-width: none; height: auto;
  top: var(--dt, auto); right: var(--dr, auto); bottom: var(--db, auto); left: var(--dl, auto);
  width: var(--dw, 12vw); rotate: var(--rot, 0deg);
  filter: drop-shadow(0 0.9rem 0.8rem rgb(52 18 28 / 0.3));
}
.deco--front { z-index: 3; }
@media (min-width: 1500px) { .deco { scale: 0.94; } }
/* On very wide screens the pieces stop growing with the window. */
.deco { scale: min(1, tan(atan2(1560px, 100vw))); }
@media (min-width: 1921px) {                     /* ...and stay near the board instead of drifting to the far edges */
  .deco { translate: calc(var(--side, 1) * (50vw - 960px)) 0; }
  .deco[style*="--dr:"]:not([style*="--dl:"]) { --side: -1; }
  .deco[style*="--wall-l"] { --side: 0; }
}

/* 7. SECTIONS ------------------------------------------------------------------ */
.sb-no { display: block; font-family: var(--font-type); font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--ochre); }
.sb :is(.paper, .gframe__b) :is(h3, h4) { font-family: var(--font-display); font-weight: 400; color: var(--ink); letter-spacing: 0; }
.sb :is(.paper, .gframe__b) .label { color: var(--ochre-deep); }

/* 01 The Studio */
.sb-quad { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 3.4cqw, 1.6rem) clamp(1rem, 4cqw, 2rem); }
.sb-quad h3 { margin-top: 0.3rem; font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); line-height: 1.1; }
.sb-quad p { margin-top: 0.3rem; font-size: 0.9rem; line-height: 1.5; color: var(--color-muted); max-width: none; }
.sb-stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.25rem; }
.sb-stats li { display: grid; gap: 0.35rem; padding-top: 0.9rem; border-top: 1px solid var(--color-line); }
.sb-stats b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); line-height: 0.95; color: var(--ochre); }
.sb-stats span { font-family: var(--font-type); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.45; color: var(--ink); }

/* The Lineage */
.sb-figs { list-style: none; display: grid; grid-template-columns: repeat(3, auto); gap: 0.4rem clamp(0.7rem, 4cqw, 1.5rem); justify-content: center; }
.sb-figs li { display: grid; gap: 0.3rem; justify-items: center; }
.sb-figs b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 8.6cqw, 3.1rem); line-height: 1; color: var(--ochre); }
.sb-figs span { font-family: var(--font-type); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.paper--note { padding-block: clamp(1.5rem, 2.4vw, 2.1rem) clamp(1.1rem, 1.8vw, 1.5rem); }
.sb-sister { display: grid; justify-items: start; gap: 0.5rem; max-width: none; }
.sb-sister__mark { width: clamp(6.5rem, 9vw, 8.5rem); height: auto; }

/* Every section title and its introduction sit in a gold frame ("sb-hframe"). */
.sb-hframe { align-self: center; }
.sb-hframe > .gframe__b { --pad: clamp(0.9rem, 3.6cqw, 1.9rem); }
.sb-hframe .sb__head { gap: clamp(0.6rem, 1.1vw, 1rem); }
main > .sb .sb-hframe h2.display { font-size: clamp(2rem, 1.1rem + 2.4vw, 3.4rem); max-width: 14ch; }
main > .sb .sb-hframe .sb__head--center h2.display { max-width: 17ch; }
.sb-hframe .sb__lede { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.sb-hframe .sb__lede > p + p { margin-top: 0.65em; }
.sb-hframe .chapter__line { background: var(--ochre-deep); opacity: 0.5; }
@container (max-width: 27rem) {
  main > .sb .sb-hframe h2.display { font-size: clamp(1.8rem, 9.5cqw, 2.5rem); }
  .sb-hframe .sb__lede { font-size: 0.9375rem; }
}

/* 01 The Studio: four sheets, each with its own seal, set slightly askew. */
.sb-quadcuts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.6rem, 2.6vw, 2.4rem) clamp(1rem, 1.8vw, 1.6rem); margin: 0; padding: 0; align-items: start; }
.paper--q { padding: clamp(1.25rem, 1.9vw, 1.7rem) clamp(1.05rem, 1.6vw, 1.45rem); }
.paper--q h3 { margin-top: 0.3rem; font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); line-height: 1.1; }
.paper--q p { margin-top: 0.35rem; font-size: 0.9rem; line-height: 1.5; color: var(--color-muted); max-width: none; }
.sb-quadcuts > li:nth-child(1) { rotate: -1.2deg; }
.sb-quadcuts > li:nth-child(2) { rotate: 1deg; margin-top: clamp(1.5rem, 3vw, 3rem); }
.sb-quadcuts > li:nth-child(3) { rotate: 0.6deg; margin-top: clamp(-1.5rem, -1.5vw, -0.5rem); }
.sb-quadcuts > li:nth-child(4) { rotate: -0.8deg; margin-top: clamp(0.5rem, 1.5vw, 1.5rem); }
@media (prefers-reduced-motion: no-preference) { .sb-quadcuts > li { transition: rotate 0.4s ease; } }

/* The Lineage figures, on a sheet. */
.paper--figs { container-type: inline-size; padding-block: clamp(1.9rem, 2.8vw, 2.5rem) clamp(1.4rem, 2.2vw, 1.9rem); }
.paper--figs .sb-figs b { font-size: clamp(1.5rem, 10cqw, 2.9rem); }
@container (max-width: 17rem) { .paper--figs .sb-figs { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; } }

/* 02 How we design: the three acts as paint cards taped to the wall. */
.sb-acts__frame { justify-self: center; width: min(100%, 40rem); }
.sb-acts .sb__wall { row-gap: clamp(2.25rem, 3.6vw, 3.25rem); }

/* 03 Portfolio */
.sb-feature__title { margin: 0.5rem 0 0.2rem; font-size: clamp(2rem, 1.5rem + 1.7vw, 3rem); line-height: 1; }
.sb-feature__line { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.3; color: var(--color-muted); }
.sb-feature__acts { list-style: none; margin: 1.1rem 0 1.4rem; display: grid; }
.sb-feature__acts li { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 0.2rem 0.9rem; padding: 0.6rem 0; border-top: 1px solid var(--color-line); }
.sb-feature__acts li:last-child { border-bottom: 1px solid var(--color-line); }
.sb-feature__acts b { padding-top: 0.14rem; font-family: var(--font-type); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre-deep); }
.sb-feature__acts span { font-size: 0.9375rem; line-height: 1.5; }
.sb-feature__go { margin: 0; }
.paper--label { padding: clamp(1.4rem, 2.1vw, 1.9rem) clamp(1.2rem, 1.9vw, 1.7rem) clamp(1rem, 1.5vw, 1.35rem); }
.sb-label { margin-top: 0.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.sb-label > div { padding: 0.5rem 0; border-top: 1px solid var(--color-line); }
.sb-label dt { font-family: var(--font-type); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre-deep); }
.sb-label dd { font-size: 0.9rem; line-height: 1.4; }
.sb-also { display: grid; gap: 0.9rem; justify-items: center; text-align: center; }
.sb-also > .label { color: var(--color-text); }
.sb-also__list { list-style: none; width: 100%; display: grid; grid-template-columns: 0.82fr 1.25fr 0.8fr; gap: clamp(0.75rem, 1.6vw, 1.5rem); align-items: end; }
.sb-also__list a { display: grid; gap: 0.7rem; justify-items: center; transition: translate 0.6s var(--ease); }
.sb-also__list a:hover { translate: 0 -4px; }
.sb-also__list .pphoto { width: 100%; padding: 0.4rem; }
.sb-also__list .pphoto--oval-tall, .sb-also__list .pphoto--oval { padding: 0.5rem; }
.sb-also__name { font-family: var(--font-type); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }

/* 04 Services: the swatch book lies on one large sheet. */
.paper--book { container-type: inline-size; padding: clamp(1.6rem, 2.6vw, 2.5rem) clamp(1rem, 2vw, 1.9rem) clamp(1.1rem, 1.8vw, 1.6rem); }
/* The fabric name on each swatch shows only while the sheet is wide enough for it. */
@container (max-width: 50rem) { .sb .index.index--swatch li:nth-child(n) .index__fab { display: none; } }
.sb .index.index--swatch { margin: 0; }
.sb .index.index--swatch li:nth-child(n) .index__name { font-size: clamp(1.2rem, 0.9rem + 0.8vw, 1.5rem); }
.sb-colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1.5rem; margin-top: 1.1rem; max-width: none;
  font-family: var(--font-type); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre-deep); }

/* Made in our workshop: three framed photographs, each with a typed card on its corner. */
.sb-trio { list-style: none; display: grid; grid-template-columns: 1fr 1.06fr 1.12fr; gap: clamp(1rem, 2.4vw, 2.5rem); align-items: start; }
.sb-trio li:nth-child(2) { margin-top: clamp(1.5rem, 4vw, 4rem); }
.sb-trio li:nth-child(3) { margin-top: clamp(0.5rem, 1.4vw, 1.25rem); }
.paper--tag {
  z-index: 4; width: 80%; max-width: none; margin: -2.4rem -0.4rem 0 auto; padding: 1rem 1.1rem 1.05rem;
  border-radius: 7px; font-size: 0.9rem; line-height: 1.5; color: var(--ink);
}
.sb-trio li:nth-child(2) .paper--tag { margin: -2.4rem auto 0 -0.4rem; }
.paper--tag b { display: block; margin-bottom: 0.25rem; font-family: var(--font-type); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-deep); }

/* Vintage or modern? */
main > .sb.sb-quiz { padding-block: clamp(3rem, 5vw, 5rem); }
.sb-quiz .sb__wall { row-gap: 1.25rem; }
.sb-quizcard .gframe__b { gap: 0.55rem; }
.sb-quizcard__kicker { font-family: var(--font-type); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre-deep); max-width: 24ch; }
.sb-quizcard__title { font-size: clamp(1.9rem, 8.4cqw, 3.1rem); line-height: 0.95; color: var(--ink); }
.sb-quizcard__title em { display: block; font-family: var(--font-script); font-style: normal; font-size: 1.22em; line-height: 0.86; color: var(--ochre); }
.sb-quizcard__go { margin-top: 0.4rem; }
.sb-quizcard .btn { white-space: nowrap; }
@container (max-width: 24rem) {
  .sb-quizcard .btn { padding-inline: 1.1rem; font-size: 0.75rem; letter-spacing: 0.1em; }
  .sb-quizcard__title { font-size: clamp(1.7rem, 9.4cqw, 2.3rem); }
}
@container (max-width: 18.5rem) { .sb-quizcard .btn { padding-inline: 0.85rem; letter-spacing: 0.06em; } }
.sb-quizcard__sub { justify-self: center; text-align: center; max-width: 44ch; font-size: 0.9375rem; color: var(--color-text); }

/* 05 Collections */
.sb .sb-tiers { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sb-row) var(--sb-gap); align-items: center; border: 0; }
.sb-tier.paper, .sb-tier > .gframe__b {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(1rem, 2.2vw, 2rem); align-content: center;
  grid-template-areas: "top price" "name price" "desc avg" "go avg";
}
.sb-tier__top { grid-area: top; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; max-width: none; }
.sb-tier__no { font-family: var(--font-type); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); }
.sb-tier__pips { display: inline-flex; gap: 0.3rem; }
.sb-tier__pips i { width: 0.45rem; height: 0.45rem; border-radius: 50%; border: 1px solid var(--ochre); }
.sb-tier__pips i.on { background: var(--ochre); }
.sb-tier__seal { display: inline-flex; align-items: center; gap: 0.5rem; }
.sb-tier h3 { grid-area: name; margin-top: 0.3rem; font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); line-height: 1.05; }
.sb-tier__desc { grid-area: desc; margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.5; color: var(--color-muted); }
.sb-tier__price, .sb-tier__avg { max-width: none; font-family: var(--font-type); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.45; color: var(--ink); }
.sb-tier__price { grid-area: price; align-self: end; }
.sb-tier__avg { grid-area: avg; align-self: start; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--color-line); }
.sb-tier__price b, .sb-tier__avg b { display: block; margin-top: 0.15rem; font-family: var(--font-display); font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.05; }
.sb-tier__price b { font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.7rem); color: var(--ochre); }
.sb-tier__avg b { font-size: 1.25rem; color: var(--ink); }
.sb-tier > .link, .sb-tier > .gframe__b > .link { grid-area: go; justify-self: start; margin-top: 0.3rem; }
.sb-tier > .wax { top: -2.2rem; right: -0.9rem; }
.sb-tier { transition: translate 0.7s var(--ease); }
.sb-tiers.is-hot .sb-tier.is-on { translate: 0 -5px; }

/* From inquiry to installation: one long paint card, lightest step to deepest. */
.sb-steps__go { margin: 0.3rem 0 0; }
.sb-steps__card { --gapc: 7px; position: relative; align-self: center; padding: var(--gapc); rotate: -0.6deg; }
.sb-steps__card { background: #fbf8f2; border-radius: 3px; box-shadow: 0 0 0 1px rgb(60 24 30 / 0.06), 0 24px 30px -22px rgb(52 18 28 / 0.55), 0 3px 6px rgb(52 18 28 / 0.12); }
.sb-steps__list { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gapc); margin: 0; padding: 0; }
.sb-steps__list > li { counter-increment: step; position: relative; padding: clamp(1.1rem, 1.6vw, 1.6rem) clamp(0.95rem, 1.3vw, 1.35rem) clamp(1.4rem, 2vw, 2rem); min-height: clamp(15rem, 19vw, 18rem); }
.sb-steps__list > li:nth-child(1) { --sw: #efd2d0; --on: var(--ink); --on-2: #5a2a36; }
.sb-steps__list > li:nth-child(2) { --sw: #d98fa0; --on: #2a0712; --on-2: #3e0f1d; }
.sb-steps__list > li:nth-child(3) { --sw: #a3355c; --on: #fff8f4; --on-2: #f8e3e6; }
.sb-steps__list > li:nth-child(4) { --sw: #5e0f22; --on: #fff8f4; --on-2: #efd6da; }
/* The numbers sit in rings joined by a dotted line, step to step. */
.sb-steps__list > li::before {
  content: counter(step); display: grid; place-items: center; width: 2.3rem; aspect-ratio: 1; margin-bottom: 1rem;
  border: 1px solid currentColor; border-radius: 50%; color: var(--on); background: var(--sw); position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 1.05rem; font-style: italic;
}
.sb-steps__list > li::after { content: none; }
.sb-steps__list > li:not(:last-child)::after {
  content: ''; position: absolute; z-index: 2; bottom: auto; background: none; mix-blend-mode: normal; top: calc(clamp(1.1rem, 1.6vw, 1.6rem) + 1.15rem); left: calc(clamp(0.95rem, 1.3vw, 1.35rem) + 2.3rem + 0.4rem); right: calc(-1 * var(--gapc) - clamp(0.95rem, 1.3vw, 1.35rem) + 0.4rem);
  border-top: 1px dashed var(--on); opacity: 0.55;
}
.sb-steps__list h4 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.05rem, 0.85rem + 0.55vw, 1.4rem); line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on); text-wrap: balance; }
.sb-steps__list p { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.5; color: var(--on-2); max-width: none; }
.sb-steps__card .pcard__tape--l { top: -1.5rem; left: -2.2rem; width: 6.4rem; rotate: -38deg; translate: 0 0; }
.sb-steps__card .pcard__tape--r { top: auto; bottom: -1.5rem; left: auto; right: -2.2rem; width: 6.4rem; rotate: -36deg; translate: 0 0; }
@media (min-width: 900px) and (max-width: 1199.98px) {
  .sb-steps .sb__wall > .sb-hframe { grid-column: 4 / 10; grid-row: 1; justify-self: center; width: min(100%, 26rem); }
  .sb-steps .sb__wall > .sb-steps__card { grid-column: 1 / -1; grid-row: 2; }
}
  .sb-steps__list > li:nth-child(n) { margin-top: 0; }
  .sb-steps__list > li.gframe--oval-tall { width: min(100%, 17rem); justify-self: center; }
}

/* 06 Socials */
/* The phone keeps its own proportions and is scaled as one piece to sit on its sheet. */
.sb-phone.paper { container-type: inline-size; display: grid; justify-items: center; padding: clamp(2rem, 3vw, 2.6rem) 1rem clamp(1.2rem, 2vw, 1.6rem); rotate: 1deg; }
.sb-phone .phone {
  --s: min(1.1, tan(atan2(86cqw, 16.25rem)));
  width: 16.25rem; justify-self: center; margin: 0 0 calc(33.6rem * (var(--s) - 1));
  scale: var(--s); transform-origin: 50% 0;
}
.sb-socials .socials__list { margin: 0; max-width: none; border-top: 0; grid-template-columns: minmax(0, 1fr); }
.sb-socials .socials__list li:last-child > * { border-bottom: 0; }

/* 07 Where we work */
.sb-where .studio-card.studio-card--print.paper {
  margin: 0; border: 0; border-radius: 9px; animation: none;
  background: var(--paper) url("images/scrap/paper.webp") center / cover;
  box-shadow: 0 0 0 1px rgb(60 24 30 / 0.07), 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 26px 34px -24px rgb(52 18 28 / 0.6), 0 3px 6px rgb(52 18 28 / 0.14);
}
.sb-where .studio-card dl { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.sb-map.paper { padding: clamp(0.6rem, 1vw, 0.85rem); rotate: -0.6deg; }
.sb-map__in { position: relative; aspect-ratio: 1.27; overflow: hidden; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(38 10 20 / 0.12); }
.sb-map .map { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; margin: 0; outline: 0; border-radius: 0; }
.paper--areas { padding-top: clamp(1.9rem, 2.8vw, 2.6rem); }
.sb-areas { list-style: none; display: grid; grid-template-columns: 1fr 0.8fr 1fr 1.7fr; gap: 1rem clamp(1rem, 2vw, 1.9rem); }
.sb-areas li { display: grid; align-content: start; gap: 0.3rem; padding-top: 0.8rem; border-top: 1px solid var(--color-line); }
.sb-areas b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.sb-areas span { font-size: 0.9rem; line-height: 1.5; color: var(--color-muted); }
.sb-areas__go { margin: 0.6rem 0 0; max-width: none; }

/* Closing: one plain sheet of paper across the page, set like a footer. No frames, seals or decor.
   The inquiry on the left; where to go next, with a few questions under it, on the right. */
main > .cta.closing.sb-foot {
  --color-text: var(--ink); --color-muted: #4f3a41; --color-line: rgb(38 10 20 / 0.16);
  position: relative; z-index: 6; margin: 0; border-radius: 0; text-align: left; color: var(--ink);
  padding-block: clamp(1.75rem, 2.6vw, 2.4rem);
  background: #f7f1e8 url("images/scrap/paper.webp") center / 900px auto repeat;
  box-shadow: 0 -1px 0 rgb(60 24 30 / 0.08), 0 -18px 30px -24px rgb(52 18 28 / 0.45);
}
main > .cta.closing.sb-foot::before, .cta.closing.sb-foot > .wrap::before { content: none; }
.cta.closing.sb-foot .closing__grid { gap: clamp(1.75rem, 4vw, 4.5rem); align-items: start; }
.cta.closing.sb-foot .closing__talk { position: static; }
.cta.closing.sb-foot .label { color: var(--ochre-deep); }
.cta.closing.sb-foot h2.display { font-family: var(--font-display); font-weight: 400; text-transform: none; letter-spacing: -0.012em; line-height: 1; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); max-width: none; margin: 0.55rem 0 0.7rem; color: var(--ink); }
.cta.closing.sb-foot h2.display em { display: block; font-size: 1.15em; font-weight: 400; color: var(--ochre); line-height: 0.9; }
.cta.closing.sb-foot .cta__copy { margin: 0 0 1rem; max-width: 44ch; font-size: 0.975rem; color: var(--ink); }
.cta.closing.sb-foot .btn-row { justify-content: flex-start; }
.cta.closing.sb-foot .closing__more { gap: 0.55rem; }
.cta.closing.sb-foot .nextup__main { min-height: 0; padding-block: 0.55rem; }
.cta.closing.sb-foot .nextup__list a { min-height: 2.5rem; }
.cta.closing.sb-foot .nextup__list { color: var(--ink); }
.cta.closing.sb-foot .nextup:not(.nextup--wide) .nextup__list a { background: none; border-color: var(--color-line); color: var(--ink); }
.cta.closing.sb-foot .nextup:not(.nextup--wide) .nextup__list a:hover { background: rgb(38 10 20 / 0.04); border-color: var(--ink); }
.cta.closing.sb-foot .closing__faq { margin-top: 0.6rem; position: relative; }
.cta.closing.sb-foot .closing__faq .acc__btn { padding: 0.35rem 0; min-height: 2.35rem; font-size: 0.98rem; color: var(--ink); }
.cta.closing.sb-foot .acc__body { color: var(--color-muted); }
.cta.closing.sb-foot .acc__body a { color: var(--ochre-deep); text-decoration: underline; text-underline-offset: 0.2em; }
.cta.closing.sb-foot .closing__all { position: absolute; top: -0.35rem; right: 0; margin: 0; }
.cta.closing.sb-foot .closing__all .btn { min-height: 0; padding: 0.4rem 0.9rem; font-size: 0.68rem; }

/* 8. SMALL SCREENS ------------------------------------------------------------- */
@media (max-width: 899.98px) {
  main > .sb { --sb-row: clamp(1.9rem, 5vw, 2.75rem); padding-block: clamp(3.25rem, 9vw, 4.5rem); }
  .sb__wall { grid-template-columns: minmax(0, 1fr); }
  .sb__wall > *, .sb-tiers > * { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
  .sb__wall > .cut, .sb-tiers > .cut { width: min(100%, 33rem); justify-self: center; }
  .sb__wall > .pphoto, .sb__wall > .gframe--oval { width: min(88%, 27rem); }
  .sb__wall > .sb-phone { width: min(88%, 22rem); }
  .sb__wall > .sb-quizcard { width: min(100%, 27rem); justify-self: center; }
  .sb__wall > .gframe--oval.gframe--turn-late { width: min(76%, 19.5rem); }
  .sb__wall > .cut:nth-child(even) { justify-self: end; }
  .sb__wall > .cut:nth-child(odd) { justify-self: start; }
  .sb__head, .sb__head--center { justify-items: start; text-align: left; }
  main > .sb .sb__head--center h2.display { max-width: 13ch; }
  .sb__go--center, .sb__go--wall { justify-self: start; text-align: left; }
  .sb__go--row { justify-content: flex-start; }
  .deco { display: none; }
  .deco.deco--m { display: block; top: var(--mt, auto); right: var(--mr, auto); bottom: var(--mb, auto); left: var(--ml, auto); width: var(--mw, 6rem); }
  .sb .sb-tiers { grid-template-columns: minmax(0, 1fr); }
  .sb-tiers > .cut:nth-child(even) { justify-self: end; }
  .sb-tiers > .cut:nth-child(odd) { justify-self: start; }
  .sb-trio { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .sb-trio li { width: min(92%, 27rem); }
  .sb-trio li:nth-child(n) { margin-top: 0; }
  .sb-trio li:nth-child(2) { justify-self: end; }
  .sb-pcards { grid-template-columns: minmax(0, 1fr); gap: 3.4rem; }
  .sb-pcards > .pcard { width: min(88%, 24rem); }
  .sb-pcards > .pcard:nth-child(n) { margin-top: 0; }
  .sb-pcards > .pcard:nth-child(even) { justify-self: end; }
  .sb__wall > .sb-hframe { width: 100%; max-width: 34rem; }
  .sb__wall > .sb-hframe.gframe--stay { max-width: 28rem; }
  .sb-quadcuts { gap: 1.9rem 0.9rem; }
  .sb-quadcuts > li:nth-child(n) { margin-top: 0; }
  .sb-quadcuts > li:nth-child(even) { margin-top: 1.4rem; }
  .sb-steps .sb__wall > .sb-steps__card { grid-row: 2; width: min(100%, 26rem); justify-self: center; margin-top: 1.2rem; rotate: 0.8deg; }
  .sb-steps__list { grid-template-columns: minmax(0, 1fr); }
  .sb-steps__list > li { min-height: 0; display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .sb-steps__list > li::before { margin: 0; grid-row: 1 / 3; }
  .sb-steps__list > li:not(:last-child)::after { top: calc(clamp(1.1rem, 1.6vw, 1.6rem) + 2.3rem + 0.4rem); bottom: calc(-1 * var(--gapc) - clamp(1.1rem, 1.6vw, 1.6rem) + 0.4rem); right: auto; left: calc(clamp(0.95rem, 1.3vw, 1.35rem) + 1.15rem); border-top: 0; border-left: 1px dashed var(--on); }
  .sb-steps__list h4 { align-self: center; }
  .sb-steps__card .pcard__tape--l { top: -2.2rem; left: 50%; right: auto; width: 6.6rem; rotate: -6deg; translate: -50% 0; }
  .sb-steps__card .pcard__tape--r { display: none; }
  .sb-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-also__list { gap: 0.6rem; }
  .sb-quizcard__sub { justify-self: start; text-align: left; }
}
@media (max-width: 519.98px) {
  .sb-quadcuts { grid-template-columns: minmax(0, 1fr); gap: 1.9rem; }
  .sb-quadcuts > li { width: 90%; }
  .sb-quadcuts > li:nth-child(n) { margin-top: 0; }
  .sb-quadcuts > li:nth-child(even) { justify-self: end; }
}
@media (max-width: 599.98px) {
  .sb-areas { grid-template-columns: minmax(0, 1fr); }
  .sb-tier.paper, .sb-tier > .gframe__b { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "name" "desc" "price" "avg" "go"; }
  .sb-tier__price { margin-top: 0.8rem; }
  .sb-label { grid-template-columns: minmax(0, 1fr); }
  .sb-services > .sb__wall > .pphoto--oval-tall { display: none; }
}
@container (max-width: 27rem) {
  .sb-quad { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sb-also__list a, .sb-tier { transition: none; }
}
