/* B.W. Painting: homepage */

/* ---------------- hero: the roller clip, full bleed ---------------- */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1200px; background: var(--ink); color: var(--white); overflow: clip; }
.hero__media { position: absolute; inset: 0; }
.hs__still, .hs__still img, .hs__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs__still img { object-fit: cover; object-position: 50% 50%; }
/* the canvas paints each photo on with brush strokes; it covers the still until the first stroke lands */
.hs__canvas { display: block; background: var(--ink); }
.rm .hs__canvas, .no-js .hs__canvas, .no-motion .hs__canvas { display: none; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%),
  linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 66%); pointer-events: none; }
.hero__inner { position: absolute; left: 0; right: 0; bottom: 0; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding-bottom: clamp(64px, 9vh, 120px); z-index: 2; }
.hero__h { display: flow-root; font-size: clamp(3rem, min(7.2vw, 11.5vh), 6.8rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: clamp(18px, 2.4vh, 28px); }
.hero__h em { font-style: italic; }
.hero__lede { font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.6; color: #efefec; margin-bottom: 28px; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-top: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; font-size: .98rem; font-weight: 500; color: #e4e4e0; }
.hs-ui { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta btns" "bar btns"; gap: 8px 18px; align-items: center; width: min(470px, 100%); }
.hs-ui__meta { grid-area: meta; margin: 0; display: flex; gap: 12px; align-items: baseline; font-size: .95rem; color: #e4e4e0; white-space: nowrap; overflow: hidden; }
.hs-ui__count { font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.hs-ui__cap { font-family: var(--serif); font-style: italic; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; }
.hs-ui__bar { grid-area: bar; position: relative; height: 5px; background: rgba(255,255,255,.22); -webkit-mask: url("../img/edge.svg") 0 0 / 100% 100%; mask: url("../img/edge.svg") 0 0 / 100% 100%; }
.hs-ui__bar span { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }
.hs-ui__btns { grid-area: btns; display: flex; gap: 6px; }
.hs-ui__btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(0,0,0,.25); color: var(--white); cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.hs-ui__btn:hover, .hs-ui__btn:focus-visible { background: var(--white); color: var(--ink); border-color: var(--white); }
.hs-ui__btn svg { width: 18px; height: 12px; }
.hs-ui__btn .i-pause, .hs-ui__btn .i-play { width: 12px; height: 12px; }
.hs-ui__btn .i-play, .hs-ui__btn[aria-pressed="true"] .i-pause { display: none; }
.hs-ui__btn[aria-pressed="true"] .i-play { display: block; }
.no-js .hs-ui__btns, .no-js .hs-ui__bar { display: none; }
.hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero__facts li::before { content: ""; width: 18px; height: 6px; background: var(--white); -webkit-mask: url("../img/edge.svg") 0 0 / 100% 100%; mask: url("../img/edge.svg") 0 0 / 100% 100%; }
.js:not(.rm):not(.no-motion) .hero__h { visibility: hidden; }
.no-motion .hero__h { visibility: visible !important; }
@media (max-width: 640px) {
  .hero { min-height: 600px; }
  .hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 20%), linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.1) 80%); }
  .hero__h { font-size: clamp(2.6rem, 11.5vw, 3.4rem); }
  .hero__lede { font-size: 1.05rem; margin-bottom: 22px; }
  .hero__foot { margin-top: 20px; gap: 16px; }
  .hero__facts { gap: 8px 18px; font-size: .92rem; }
  .hs-ui { width: 100%; grid-template-areas: "meta meta" "bar btns"; row-gap: 10px; }
  .hs-ui__meta { white-space: normal; }
  .hero .btns .btn { flex: 1 1 100%; justify-content: space-between; }
}

/* ---------------- services ---------------- */
.svc { padding-block: clamp(64px, 7vw, 110px); overflow: clip; }
.svc__head { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(28px, 3.4vw, 48px); }
.svc__head .lede { margin: 0; color: var(--graphite); }
.svc__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.svc-card { position: relative; display: block; text-decoration: none; color: var(--white); background: var(--ink); overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.svc-card__img { display: block; aspect-ratio: 4 / 5; max-height: min(58vh, 560px); width: 100%; overflow: hidden; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover .svc-card__img img, .svc-card:focus-visible .svc-card__img img { transform: scale(1.06); }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.35) 42%, rgba(0,0,0,0) 62%); pointer-events: none; }
.svc-card__sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.28), rgba(255,255,255,0) 42%); opacity: 0; transition: opacity .5s var(--ease); mix-blend-mode: soft-light; }
.svc-card:hover .svc-card__sheen { opacity: 1; }
.svc-card__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: clamp(16px, 1.6vw, 26px); }
.svc-card__name { display: block; font-family: var(--serif); font-size: clamp(1.35rem, 1.7vw, 1.9rem); line-height: 1.15; margin-bottom: 8px; }
.svc-card__line { display: block; font-size: .98rem; line-height: 1.5; color: #e6e6e2; margin-bottom: 14px; }
.svc-card__go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.svc-card__go .i-arrow { width: 18px; height: 11px; transition: transform .45s var(--ease); }
.svc-card:hover .svc-card__go .i-arrow { transform: translateX(4px); }
@media (max-width: 1100px) { .svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-card__img { aspect-ratio: 4 / 3; } }
@media (max-width: 800px) { .svc__head { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .svc__grid { grid-template-columns: 1fr; } .svc-card__img { aspect-ratio: 4 / 3; max-height: none; } }

/* ---------------- signature: the room painted by scroll ---------------- */
.coat { position: relative; background: var(--ink); color: var(--white); }
.coat__pin { min-height: calc(100svh - 76px); display: flex; align-items: center; padding-block: clamp(40px, 5vh, 72px); }
.coat__inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.42fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.coat__copy .h2 { margin-bottom: clamp(20px, 3vh, 36px); }
.coat__steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: clamp(12px, 2vh, 22px); }
.coat__step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; transition: opacity .5s var(--ease); }
.coat__num { width: 44px; height: 44px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease); }
.coat__step h3 { font-size: clamp(1.25rem, 1.5vw, 1.6rem); line-height: 1.2; margin: 6px 0 6px; }
.coat__step p { margin: 0; color: #d6d6d1; font-size: 1rem; line-height: 1.6; }
.coat__step.is-on .coat__num { background: var(--white); color: var(--ink); border-color: var(--white); }
.js:not(.rm):not(.no-motion) .coat.is-live .coat__step:not(.is-on) { opacity: .42; }
.coat__bar { height: 2px; background: rgba(255,255,255,.18); position: relative; }
.coat__bar span { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(var(--p, 0)); }
.coat__stage { margin: 0; justify-self: end; width: min(100%, calc((100svh - 76px - 150px) * 16 / 9)); }
.coat__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--coal); }
.coat__layer { position: absolute; inset: 0; }
.coat__layer img { width: 100%; height: 100%; object-fit: cover; }
.coat__roller { position: absolute; top: 0; bottom: 0; left: 0; width: 0; z-index: 3; pointer-events: none; opacity: 0; }
.coat__roller-line { position: absolute; top: 0; bottom: 0; left: -6px; width: 12px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.95) 45%, rgba(255,255,255,.55) 60%, rgba(255,255,255,0)); box-shadow: 0 0 30px rgba(255,255,255,.4); }
.coat__roller-head { position: absolute; top: 50%; left: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.coat__roller-icon { width: 28px; height: 28px; }
.coat__tag { position: absolute; left: 16px; top: 16px; z-index: 4; background: var(--white); color: var(--ink); font-weight: 600; font-size: .92rem; padding: 7px 12px; }
.coat__cap { margin-top: 12px; font-size: .92rem; color: var(--ash); }
/* static version (no JS, reduced motion): the three states side by side */
.no-js .coat__frame, .rm .coat__frame, .no-motion .coat__frame { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: none; }
.no-js .coat__layer, .rm .coat__layer, .no-motion .coat__layer { position: relative; aspect-ratio: 16 / 9; }
.no-js .coat__layer--old, .rm .coat__layer--old, .no-motion .coat__layer--old { order: 1; }
.no-js .coat__layer--prep, .rm .coat__layer--prep, .no-motion .coat__layer--prep { order: 2; }
.no-js .coat__layer--new, .rm .coat__layer--new, .no-motion .coat__layer--new { order: 3; }
.no-js .coat__roller, .rm .coat__roller, .no-motion .coat__roller, .no-js .coat__tag, .rm .coat__tag, .no-motion .coat__tag { display: none; }

@media (max-width: 900px) {
  .coat__pin { min-height: calc(100svh - 70px); padding-block: 28px; align-items: flex-start; }
  .coat__inner { grid-template-columns: 1fr; gap: 18px; }
  .coat__copy { display: contents; }
  .coat__copy .h2 { order: 1; margin-bottom: 0; }
  .coat__stage { order: 2; width: 100%; justify-self: stretch; }
  .coat__steps { order: 3; margin: 0; gap: 10px; }
  .coat__bar { order: 4; }
  .coat__step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .coat__num { width: 36px; height: 36px; font-size: 1rem; }
  .coat__step h3 { font-size: 1.15rem; margin-top: 5px; }
  .js:not(.rm):not(.no-motion) .coat.is-live .coat__step:not(.is-on) p { display: none; }
  .coat__roller-head { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .coat__roller-icon { width: 22px; height: 22px; }
  .coat__cap { margin-top: 8px; font-size: .88rem; }
  .no-js .coat__frame, .rm .coat__frame, .no-motion .coat__frame { grid-template-columns: 1fr; }
}

/* ---------------- a clean job ---------------- */
.clean { overflow: clip; }
.clean__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.clean__pic .frame { height: min(62vh, 620px); aspect-ratio: 4 / 5; }
.clean__copy .h2 { margin-bottom: 18px; }
.clean__copy .lede { color: var(--graphite); margin-bottom: 26px; }
.clean__list { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--rule); }
.clean__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.08rem; font-weight: 500; }
.tick { width: 32px; height: 24px; }
.tick path { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.js:not(.rm):not(.no-motion) .clean__list .tick path { stroke-dashoffset: 40; }
.js:not(.rm):not(.no-motion) .clean__list li span { opacity: 0; }
.no-motion .clean__list .tick path { stroke-dashoffset: 0 !important; }
.no-motion .clean__list li span { opacity: 1 !important; }
@media (max-width: 900px) {
  .clean__grid { grid-template-columns: 1fr; }
  .clean__pic .frame { height: auto; width: 100%; aspect-ratio: 4 / 3; }
}

/* ---------------- paint calculator teaser ---------------- */
.calc-teaser { overflow: visible; }
.ct__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.ct__copy .h2 { margin-bottom: 16px; }
.ct__copy .lede { color: var(--graphite); margin-bottom: 24px; }
.ct__tool { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(18px, 2vw, 28px); box-shadow: 10px 10px 0 var(--ink); }
.ct__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ct__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.ct__out p { margin: 0; font-size: 1rem; color: var(--graphite); }
.ct__num { display: block; font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ct__out .ct__tins { grid-column: 1 / -1; color: var(--ink); font-weight: 600; }
.ct__note { margin: 0; font-size: .95rem; color: var(--graphite); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.ct__note .tlink { color: var(--ink); }
.ct__frame { aspect-ratio: 3 / 2; max-height: var(--media-cap); }
@media (max-width: 900px) { .ct__grid { grid-template-columns: 1fr; } .ct__pic { order: -1; } }
@media (max-width: 480px) { .ct__fields { grid-template-columns: 1fr 1fr; } .ct__fields .field:last-child { grid-column: 1 / -1; } .ct__tool { box-shadow: 6px 6px 0 var(--ink); } }

/* ---------------- Bristol ---------------- */
.city { position: relative; min-height: min(calc(100svh - 76px), 860px); display: flex; flex-direction: column; justify-content: space-between; overflow: clip; background: var(--ink); color: var(--white); }
.city__bg { position: absolute; inset: -8% 0; }
.city__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.city__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.3) 70%, rgba(0,0,0,.78) 100%); }
.city__inner { position: relative; z-index: 2; padding-top: clamp(72px, 9vw, 130px); }
.city__inner .h2 { margin-bottom: 18px; }
.city__inner .lede { color: #efefec; margin-bottom: 28px; }
.city__marquee { position: relative; z-index: 2; overflow: hidden; padding: 26px 0 34px; border-top: 1px solid rgba(255,255,255,.22); }
.city__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.city__track span { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3.6rem); line-height: 1.2; white-space: nowrap; padding-right: .9em; display: inline-flex; align-items: center; gap: .9em; }
.city__track span:nth-child(even) { font-style: italic; color: #d9d9d4; }
.city__track span::after { content: ""; width: .5em; height: .16em; background: currentColor; -webkit-mask: url("../img/edge.svg") 0 0 / 100% 100%; mask: url("../img/edge.svg") 0 0 / 100% 100%; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .city__track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------------- how a free quote works ---------------- */
.quote { overflow: clip; }
.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 110px); align-items: center; }
.quote__copy .h2 { margin-bottom: clamp(20px, 3vh, 34px); }
.quote__steps { list-style: none; margin: 0 0 32px; padding: 0; position: relative; display: grid; gap: clamp(16px, 2.6vh, 28px); }
.quote__steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1.5px; background: var(--ink); transform-origin: top; transform: scaleY(var(--line, 1)); }
.quote__steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: start; }
.quote__n { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; }
.quote__steps h3 { font-size: clamp(1.3rem, 1.6vw, 1.65rem); line-height: 1.2; margin: 6px 0 6px; }
.quote__steps p { margin: 0; color: var(--graphite); }
.quote__pic .frame { height: min(62vh, 620px); aspect-ratio: 3 / 4; }
.js:not(.rm):not(.no-motion) .quote__steps { --line: 0; }
.no-motion .quote__steps { --line: 1 !important; }
@media (max-width: 900px) {
  .quote__grid { grid-template-columns: 1fr; }
  .quote__pic .frame { height: auto; width: 100%; aspect-ratio: 4 / 3; }
  .quote__pic { order: -1; }
}
