/* PostScout for painting contractors (ported from the approved design canvas, Nov 2026). Shared styles: site.css. */

/* the paint color the page is wearing: follows the chip that was picked */
.pg { --paint: #2C4368; }
.p-navy { --paint: #2C4368; }
.p-sage { --paint: #A9B8A2; }
.p-charcoal { --paint: #4A4E54; }
.p-white { --paint: #F4F2EC; }
.p-greige { --paint: #B8AD9E; }

/* headline brush mark */
.brush { position: relative; z-index: 0; display: inline-block; white-space: nowrap; }
.brush svg { position: absolute; z-index: -1; left: -3%; bottom: -.1em; width: 106%; height: .3em; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(26, 26, 26, .16)); }
.brush path { fill: var(--paint); transition: fill 1s ease .35s; }

/* hero stage: the house, a block of the chosen paint behind it, chips on top */
.hero-stage { position: relative; }
.stage-wrap { position: relative; padding: 0 28px 28px 0; }
.stage-wrap::before { content: ""; position: absolute; inset: 28px 0 0 28px; border-radius: 18px; background: var(--paint); box-shadow: inset 0 0 0 1px rgba(26, 26, 26, .1); transition: background-color 1s ease .35s; }
.stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #FFFFFF; box-shadow: 0 30px 60px -34px rgba(26, 26, 26, .4); }
.coat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: 0; z-index: 0; }
.coat.is-prev { opacity: 1; z-index: 1; }
.coat.is-on { opacity: 1; z-index: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip { display: flex; flex-direction: column; flex: none; width: 88px; padding: 5px 5px 0; border: 0; border-radius: 6px; background: #FFFFFF; color: #1A1A1A; font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; text-align: left; cursor: pointer; box-shadow: 0 1px 0 rgba(26, 26, 26, .06), 0 12px 24px -12px rgba(26, 26, 26, .5); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease; }
.chip:nth-child(odd) { transform: rotate(-2.2deg); }
.chip:nth-child(even) { transform: rotate(1.6deg); }
.chip:hover { transform: translateY(-5px) rotate(0deg); }
.chip.is-on { transform: translateY(-8px) rotate(0deg); box-shadow: 0 0 0 2px #1A1A1A, 0 18px 30px -14px rgba(26, 26, 26, .6); }
.chip-c { display: block; height: 60px; border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(26, 26, 26, .12); }
.chip-n { display: flex; align-items: center; height: 44px; padding: 0 2px; font-size: 11.5px; font-weight: 600; line-height: 1.2; }
@media (min-width: 1240px) {
  .chips { position: absolute; z-index: 4; top: 14px; right: 48px; flex-wrap: nowrap; margin-top: 0; }
}
@media (max-width: 700px) {
  .stage-wrap { padding: 0 12px 12px 0; }
  .stage-wrap::before { inset: 12px 0 0 12px; border-radius: 14px; }
  .stage { aspect-ratio: 3 / 2; border-radius: 14px; }
  .coat { object-position: 50% 50%; }
}

/* one chip against the real thing */
.bigchip { display: flex; flex-direction: column; width: 108px; padding: 6px 6px 0; border: 0; border-radius: 7px; background: #FFFFFF; color: #1A1A1A; font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; text-align: left; cursor: pointer; transform: rotate(-5deg); box-shadow: 0 0 0 1px rgba(26, 26, 26, .06), 0 24px 38px -18px rgba(26, 26, 26, .5); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.bigchip:hover { transform: rotate(0deg) translateY(-6px); }
.bigchip-c { display: block; height: 96px; border-radius: 4px; background: var(--paint); box-shadow: inset 0 0 0 1px rgba(26, 26, 26, .12); transition: background-color .6s ease; }
.bigchip-n { display: flex; align-items: center; height: 46px; padding: 0 2px; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.fade-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.fade-img.is-on { opacity: 1; }

/* postcard with numbered parts (dots and list styles are in site.css) */
.tilt { transform: rotate(-2deg); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tilt:hover { transform: rotate(0deg) translateY(-6px); }

/* palette dots and step bars */
.pd { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(26, 26, 26, .18); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.pd.is-on { transform: scale(1.7); }
.coatbar { height: 10px; border-radius: 5px; background: var(--paint); box-shadow: inset 0 0 0 1px rgba(26, 26, 26, .1); transform-origin: 0 50%; transition: background-color .6s ease; }

/* motion */
@keyframes swipe { from { clip-path: inset(-40% 100% -40% 0); } to { clip-path: inset(-40% -4% -40% 0); } }
/* the roller: five passes, down then up, each a fifth of the house wide */
@keyframes roll {
  0% { -webkit-mask-size: 20.4% 0%, 20.4% 0%, 20.4% 0%, 20.4% 0%, 20.4% 0%; mask-size: 20.4% 0%, 20.4% 0%, 20.4% 0%, 20.4% 0%, 20.4% 0%; }
  16.5% { -webkit-mask-size: 20.4% 54.4%, 20.4% 0%, 20.4% 0%, 20.4% 0%, 20.4% 0%; mask-size: 20.4% 54.4%, 20.4% 0%, 20.4% 0%, 20.4% 0%, 20.4% 0%; }
  33% { -webkit-mask-size: 20.4% 108.7%, 20.4% 54.4%, 20.4% 0%, 20.4% 0%, 20.4% 0%; mask-size: 20.4% 108.7%, 20.4% 54.4%, 20.4% 0%, 20.4% 0%, 20.4% 0%; }
  34% { -webkit-mask-size: 20.4% 112%, 20.4% 57.6%, 20.4% 3.3%, 20.4% 0%, 20.4% 0%; mask-size: 20.4% 112%, 20.4% 57.6%, 20.4% 3.3%, 20.4% 0%, 20.4% 0%; }
  49.5% { -webkit-mask-size: 20.4% 112%, 20.4% 108.7%, 20.4% 54.4%, 20.4% 0%, 20.4% 0%; mask-size: 20.4% 112%, 20.4% 108.7%, 20.4% 54.4%, 20.4% 0%, 20.4% 0%; }
  50.5% { -webkit-mask-size: 20.4% 112%, 20.4% 112%, 20.4% 57.6%, 20.4% 3.3%, 20.4% 0%; mask-size: 20.4% 112%, 20.4% 112%, 20.4% 57.6%, 20.4% 3.3%, 20.4% 0%; }
  66% { -webkit-mask-size: 20.4% 112%, 20.4% 112%, 20.4% 108.7%, 20.4% 54.4%, 20.4% 0%; mask-size: 20.4% 112%, 20.4% 112%, 20.4% 108.7%, 20.4% 54.4%, 20.4% 0%; }
  67% { -webkit-mask-size: 20.4% 112%, 20.4% 112%, 20.4% 112%, 20.4% 57.6%, 20.4% 3.3%; mask-size: 20.4% 112%, 20.4% 112%, 20.4% 112%, 20.4% 57.6%, 20.4% 3.3%; }
  83.5% { -webkit-mask-size: 20.4% 112%, 20.4% 112%, 20.4% 112%, 20.4% 112%, 20.4% 57.6%; mask-size: 20.4% 112%, 20.4% 112%, 20.4% 112%, 20.4% 112%, 20.4% 57.6%; }
  100% { -webkit-mask-size: 20.4% 112%, 20.4% 112%, 20.4% 112%, 20.4% 112%, 20.4% 112%; mask-size: 20.4% 112%, 20.4% 112%, 20.4% 112%, 20.4% 112%, 20.4% 112%; }
}
@media (prefers-reduced-motion: no-preference) {
  .brush svg { animation: swipe .9s cubic-bezier(.6, .1, .2, 1) .3s both; }
  .coat.is-on {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent), linear-gradient(to top, #000 calc(100% - 30px), transparent), linear-gradient(to bottom, #000 calc(100% - 30px), transparent), linear-gradient(to top, #000 calc(100% - 30px), transparent), linear-gradient(to bottom, #000 calc(100% - 30px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent), linear-gradient(to top, #000 calc(100% - 30px), transparent), linear-gradient(to bottom, #000 calc(100% - 30px), transparent), linear-gradient(to top, #000 calc(100% - 30px), transparent), linear-gradient(to bottom, #000 calc(100% - 30px), transparent);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: 0% 0%, 25% 100%, 50% 0%, 75% 100%, 100% 0%; mask-position: 0% 0%, 25% 100%, 50% 0%, 75% 100%, 100% 0%;
    -webkit-mask-size: 20.4% 112%; mask-size: 20.4% 112%;
    animation: roll 1.4s linear both;
  }
  .coat.is-on.is-first { animation-delay: 1.1s; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .coatbar { animation: grow 1ms linear both; animation-timeline: view(); animation-range: entry 30% cover 46%; }
  }
}
