/* "Told as they scroll" (scrollstory.js): the brochure's own scroll story. story.css does the mechanics;
   this is the house's colours at each stage, the tools, and how it sits in the brochure. Screen only. */
.sx { --ss-top: 26px; --ss-top-small: 10px; --ss-bg: var(--bg); --ss-accent: var(--accent); margin-top: 8px; }
.sx .ss-frame { border: 1px solid var(--line); box-shadow: 0 30px 60px -34px rgba(11, 19, 36, .45); }
.sx .ss-step h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .45rem; font-weight: 600; }
.sx .ss-step p { margin: 0; color: var(--ink-2); max-width: 30em; }
.sx .ss-step::before { font-family: var(--mono); }
.sx-note { margin-top: 10px; text-align: center; }
.sx-rules { list-style: none; margin: clamp(18px, 3vw, 30px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.sx-rules li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.sx-rules svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }
.sx-rules b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .sx-rules { grid-template-columns: 1fr; } .sx .ss-stage { margin-inline: -4px; padding-inline: 4px; } }

/* The finished house (the drawing's own colours). */
.house .sky { fill: #cfe0e6; } .house .hill { fill: #a9bfa4; } .house .ground { fill: #93ad86; }
.house .wall { fill: #f1efe7; } .house .board { stroke: #d9d6cb; } .house .trim { fill: #3f5b4a; } .house .trim-s { stroke: #3f5b4a; }
.house .roof { fill: #50585c; } .house .roof-rib { stroke: #3d4447; } .house .glass { fill: #bcd3db; } .house .door { fill: #a8471f; }
.house .stump { fill: #6d6a63; } .house .lattice { stroke: #3f5b4a; } .house .shade { fill: rgb(0 0 0 / .08); } .house .wear { display: none; }
.house .tree { fill: #6f8f62; } .house .trunk { fill: #8a7a66; }
/* Stage 1: tired and peeling. */
.st-old .house .sky { fill: #bfc7c6; } .st-old .house .hill { fill: #9fae9a; } .st-old .house .ground { fill: #8a9d7f; }
.st-old .house .wall { fill: #b9ae96; } .st-old .house .board { stroke: #a1967e; } .st-old .house .trim { fill: #8f8a7e; }
.st-old .house .trim-s, .st-old .house .lattice { stroke: #8f8a7e; } .st-old .house .roof { fill: #8c6c55; } .st-old .house .roof-rib { stroke: #74584a; }
.st-old .house .door { fill: #7c6b5c; } .st-old .house .glass { fill: #9fb0b3; } .st-old .house .wear { display: inline; }
/* Stage 2: washed back. */
.st-washed .house .sky { fill: #c9d4d5; } .st-washed .house .hill { fill: #a2b39d; } .st-washed .house .ground { fill: #8da382; }
.st-washed .house .wall { fill: #d8d1c1; } .st-washed .house .board { stroke: #c2baa7; } .st-washed .house .trim { fill: #a39e92; }
.st-washed .house .trim-s, .st-washed .house .lattice { stroke: #a39e92; } .st-washed .house .roof { fill: #987863; } .st-washed .house .roof-rib { stroke: #7d6252; }
.st-washed .house .door { fill: #8b7969; } .st-washed .house .glass { fill: #aec2c7; }
/* Stage 3: filled and primed. */
.st-primed .house .sky { fill: #ccd9dc; } .st-primed .house .hill { fill: #a5b9a0; } .st-primed .house .ground { fill: #90a884; }
.st-primed .house .wall { fill: #f5f3ee; } .st-primed .house .board { stroke: #e3e0d8; } .st-primed .house .trim { fill: #e7e4dc; }
.st-primed .house .trim-s, .st-primed .house .lattice { stroke: #dcd8ce; } .st-primed .house .roof { fill: #987863; } .st-primed .house .roof-rib { stroke: #7d6252; }
.st-primed .house .door { fill: #e2ddd3; } .st-primed .house .glass { fill: #b5cbd2; }
/* Stage 4: two top coats on walls and roof; trim and door still in undercoat. */
.st-walls .house .trim { fill: #e7e4dc; } .st-walls .house .trim-s, .st-walls .house .lattice { stroke: #dcd8ce; } .st-walls .house .door { fill: #e2ddd3; }

/* What does the work, on each wipe's edge. */
.st-wand::before { content: ""; position: absolute; top: 6%; bottom: 16%; left: -22px; width: 44px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .9) 45%, rgb(214 232 238 / .8) 55%, transparent); filter: blur(3px); }
.st-wand::after { content: ""; position: absolute; top: 36%; height: 20%; left: 8px; width: 4px; border-radius: 2px; background: var(--ink); transform: rotate(16deg); transform-origin: top; }
.st-roller::before { content: ""; position: absolute; top: 33%; height: 25%; left: -9px; width: 18px; border-radius: 9px; background: #f1efe7; box-shadow: 0 0 0 2px var(--ink), 0 6px 14px rgb(10 15 28 / .25); }
.st-roller::after { content: ""; position: absolute; top: 58%; height: 11%; left: -2px; width: 4px; border-radius: 2px; background: var(--ink); }
.st-brush::before { content: ""; position: absolute; left: 17%; right: 17%; top: -6px; height: 12px; border-radius: 6px; background: #f5f3ee; box-shadow: 0 0 0 2px var(--ink), 0 6px 14px rgb(10 15 28 / .22); }
.st-done { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #3f5b4a; color: #fff; font-weight: 600; font-size: .85rem; line-height: 1; }
.st-done svg { width: 15px; height: 15px; }
.st-caption span { padding: 7px 13px; border-radius: 999px; background: rgb(10 15 28 / .82); color: #fff; font-weight: 600; font-size: .8rem; line-height: 1; }

/* Shorter here than on a client site (Jack, 18 Nov 2026): in the brochure it is one stop among many, so each step
   takes well under a screen of scrolling. The whole story is about two screens on a desktop, one and a half on a phone. */
.sx.ss-on .ss-step { min-height: 42vh; }
.sx.ss-on .ss-step:last-child { min-height: 36vh; }
@media (max-width: 860px) {
  .sx.ss-on .ss-step { min-height: 30vh; padding-top: .8rem; }
  .sx.ss-on .ss-step:last-child { min-height: 26vh; }
}
