/* pages.css - Trademarc Plastering & Rendering, the pages after the homepage. Built on base.css and never overriding it
   outside a page's own scope: each page's pieces live under .page-<slug> (or their own rd- names).
   Motion follows base.css: each piece reads --p; CSS scroll timelines set it inside @supports, pages.js sets it where
   those are missing; all of it behind html.hero-anim.sd (never under reduced motion, never with JS off). */

/* ================================================================== /rendering/ */

/* ------------------------------------------------------------------ R1 opening: the house, words at the foot */
.page-rendering .rd-hero {
  position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: var(--white);
  min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr));
}
.rd-hero__media { position: absolute; left: 0; right: 0; top: 0; height: 66vh; height: 66svh; z-index: -1; overflow: clip; }
.rd-hero__media picture { display: block; width: 100%; height: 100%; }
.rd-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 0%; transform-origin: 30% 0; }
.rd-hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,20,20,.42) 0, rgba(20,20,20,.1) 16%, rgba(20,20,20,.12) 34%, rgba(20,20,20,.74) 54%, rgba(20,20,20,.93) 72%, #141414 100%);
}
.rd-hero__body { position: relative; padding-top: 33vh; padding-top: 33svh; padding-bottom: 30px; }
.rd-hero__eyebrow {
  display: inline-block; padding: 4px 10px 4px 0; font-family: var(--f-head); font-weight: 700; font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.35; color: #E4E5E3;
}
.rd-hero__biz { color: var(--white); }
.rd-hero__dot { color: var(--orange); }
.rd-hero__h1 { margin-top: 6px; font-size: clamp(42px, 12.4vw, 66px); font-weight: 900; line-height: .98; letter-spacing: -0.02em; text-wrap: initial; }
.rd-hero__w { display: inline-block; }
.rd-hero__p { margin-top: 14px; font-size: 16px; line-height: 1.5; color: #E4E5E3; max-width: 54ch; }
.rd-hero__ask { display: grid; gap: 10px; margin-top: 20px; }
.rd-hero__ask .btn { width: 100%; }
.rd-hero__chips { margin-top: 12px; }
.page-rendering .rd-hero .chip, .page-rendering .rd-close .chip {
  color: var(--white); background: rgba(20,20,20,.62); border-color: rgba(249,124,10,.75); font-size: 13px;
}
.rd-hero__cap { margin-top: 16px; font-size: 12.5px; line-height: 1.45; color: var(--mute-d); max-width: 46ch; }
@media (min-width: 600px) {
  .rd-hero__ask { grid-template-columns: auto auto; justify-content: start; }
  .rd-hero__ask .btn { width: auto; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .rd-hero__media { height: 70vh; height: 70svh; }
  .rd-hero__img { object-position: 30% 0%; }
  .rd-hero__body { padding-top: 42vh; padding-top: 42svh; }
  .rd-hero__p { font-size: 17px; }
}
/* a desktop: his house in a frame that bleeds off the top, right and foot, its left edge fading into the ink the words
   stand on, so the render, the brick quoins and the taped windows stay clear of the headline (P61, the phone hero's
   own house: P57 is the homepage's rendering card, so it is not shown here as well) */
@media (min-width: 1024px) {
  .page-rendering .rd-hero { display: flex; align-items: stretch; min-height: clamp(620px, calc(100svh - var(--hdr)), 900px); }
  .rd-hero__media { left: 40%; height: 100%; }
  .rd-hero__img { object-position: 50% 30%; transform-origin: 50% 40%; }
  .rd-hero__media::after {
    background: linear-gradient(90deg, #141414 0, rgba(20,20,20,.78) 16%, rgba(20,20,20,.06) 44%, rgba(20,20,20,.06) 100%);
  }
  .rd-hero__body {
    display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); grid-template-rows: 1fr repeat(5, auto) 1fr;
    column-gap: 48px; padding-top: 56px; padding-bottom: 44px;
  }
  .rd-hero__body > * { grid-column: 1; }
  .rd-hero__eyebrow { grid-row: 2; justify-self: start; padding: 0; font-size: 13px; }
  .rd-hero__h1 { grid-row: 3; margin-top: 14px; font-size: clamp(56px, 5.4vw, 92px); }
  .rd-hero__chips { grid-row: 4; margin-top: 20px; }
  .rd-hero__p { grid-row: 5; margin-top: 18px; font-size: 18px; max-width: 46ch; }
  .rd-hero__ask { grid-row: 6; margin-top: 26px; }
  .rd-hero__cap {
    grid-column: 2; grid-row: 1 / -1; align-self: end; justify-self: end; max-width: 30ch; margin: 0; padding: 8px 12px;
    background: rgba(20,20,20,.86); color: #E4E5E3; font-size: 13px;
  }
}

/* ------------------------------------------------------------------ R2 the walls we render: four plate pairs */
.page-rendering .rd-walls { overflow: clip; }
.rd-walls__h2 { font-size: var(--t-h2); max-width: 21ch; }
.rd-walls__lede { margin-top: 14px; max-width: 54ch; color: #2f302e; }
.rd-index { margin-top: 20px; }
.rd-index ol { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-index a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); color: var(--ink);
  font-family: var(--f-head); font-weight: 800; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s;
}
.rd-index a:hover, .rd-index a[aria-current="true"] { background: var(--ink); color: var(--white); }
.rd-index a:focus-visible { outline: 3px solid var(--orange-sm); outline-offset: 2px; }
.rd-plates {
  display: flex; gap: 16px; margin-top: 20px; padding: 0 var(--pad) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); overscroll-behavior-x: contain; scrollbar-width: none;
}
.rd-plates::-webkit-scrollbar { display: none; }
.rd-plates:focus-visible { outline-offset: -3px; }
.rd-plate { flex: 0 0 86%; max-width: 470px; scroll-snap-align: start; scroll-snap-stop: always; scroll-margin-top: 16px; }
.rd-pair__pics { position: relative; padding-bottom: 15%; }
.rd-pair__a { width: 74%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--render-2); }
.rd-pair__b {
  position: absolute; right: 0; bottom: 0; width: 47%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--render-2);
  border-left: 6px solid var(--render); border-top: 6px solid var(--render);
}
.rd-pair__caps { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--mute-l); }
.rd-pair__cap::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--orange); }
.rd-pair__cap--b::before { background: transparent; border: 2px solid var(--ink); }
.rd-plate__h { margin-top: 16px; font-size: var(--t-h3); line-height: 1.12; }
.rd-plate__p { margin-top: 8px; color: #2f302e; }
.rd-plate__say { margin: 0; padding: 2px 0 2px 14px; border-left: 4px solid var(--orange); max-width: 46ch; }
.rd-plate__say blockquote { margin: 0; }
.rd-plate__say p { font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.3; }
.rd-plate__say figcaption { margin-top: 6px; font-size: 13.5px; color: var(--mute-l); }
@media (min-width: 600px) and (max-width: 1023px) {
  .rd-plate { flex-basis: 58%; }
}
@media (min-width: 1024px) {
  .rd-walls__top { display: grid; grid-template-columns: 7fr 5fr; column-gap: 56px; align-items: end; }
  .rd-walls__top > .tag, .rd-walls__h2 { grid-column: 1; }
  .rd-walls__lede { grid-column: 2; grid-row: 2; margin: 0 0 6px; }
  .rd-index { grid-column: 1 / -1; margin-top: 28px; }
  .rd-plates {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(40px, 4.4vw, 72px);
    max-width: calc(var(--max) + 2 * var(--pad)); margin: 40px auto 0; overflow: visible; scroll-snap-type: none;
  }
  .rd-plate { max-width: none; scroll-margin-top: 24px; }
  .rd-plate:nth-child(even) { margin-top: 80px; }
  .rd-pair__pics { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: end; padding: 0; }
  .rd-pair__a { width: 100%; }
  .rd-pair__b { position: static; width: 100%; border: 0; }
}

/* ------------------------------------------------------------------ R3 a re-render, stage by stage */
.rd-run__h2 { font-size: var(--t-h2); max-width: 15ch; }
.rd-run__lede { margin-top: 14px; color: #E4E5E3; max-width: 52ch; }
.rd-run__body { margin-top: 30px; }
.rd-run__stage { display: none; }
.rd-run__list { position: relative; padding-left: 32px; }
.rd-run__track { position: absolute; left: 7px; top: 10px; bottom: 0; width: 3px; background: var(--ink-3); }
.rd-run__fill { position: absolute; inset: 0; background: var(--orange); transform-origin: 50% 0; }
.rd-run__steps { display: grid; gap: 34px; counter-reset: st; }
.rd-st { position: relative; counter-increment: st; }
.rd-st::before { content: ""; position: absolute; left: -32px; top: 2px; width: 17px; height: 17px; background: var(--ink); border: 3px solid var(--orange); }
.rd-st__h { font-size: var(--t-h3); line-height: 1.12; }
.rd-st__h::before { content: counter(st, decimal-leading-zero); display: block; margin-bottom: 6px; font-size: 14px; letter-spacing: .14em; color: var(--orange); }
.rd-st__p { margin-top: 8px; color: #E4E5E3; max-width: 52ch; }
.rd-st__fig { margin-top: 12px; }
.rd-st__pics { position: relative; }
.rd-st__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink-3); }
.rd-st--1 .rd-st__main { object-position: 50% 26%; }
.rd-st--2 .rd-st__main { object-position: 50% 34%; }
.rd-st--3 .rd-st__main { object-position: 50% 42%; }
.rd-st--4 .rd-st__main { object-position: 50% 50%; }
.rd-st__caps { display: grid; gap: 4px; margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--mute-d); }
.rd-st__cap::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--orange); }
@media (min-width: 600px) and (max-width: 759px) {
  .rd-run__list { max-width: 640px; }
}
/* a tablet: each step's words beside its photo */
@media (min-width: 760px) and (max-width: 1023px) {
  .rd-st { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr; column-gap: 28px; }
  .rd-st__h { grid-column: 1; grid-row: 1; }
  .rd-st__p { grid-column: 1; grid-row: 2; align-self: start; }
  .rd-st__fig { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
@media (min-width: 1024px) {
  .rd-run__top { display: grid; grid-template-columns: 6fr 5fr; column-gap: clamp(40px, 5vw, 80px); align-items: end; }
  .rd-run__top > .tag, .rd-run__h2 { grid-column: 1; }
  .rd-run__lede { grid-column: 2; grid-row: 2; margin: 0 0 6px; }
  .js .rd-run__body { display: grid; grid-template-columns: 5fr 6fr; column-gap: clamp(40px, 5vw, 80px); align-items: start; margin-top: 44px; }
  .js .rd-run__stage { --stage-h: min(74vh, 640px); display: block; position: sticky; top: calc(var(--hdr) + (100vh - var(--hdr) - var(--stage-h)) / 2); grid-column: 2; grid-row: 1; }
  .js .rd-run__list { grid-column: 1; grid-row: 1; }
  .rd-run__frame { position: relative; height: var(--stage-h); overflow: clip; background: var(--ink-3); }
  .rd-run__ph { position: absolute; inset: 0; }
  .rd-run__ph img { width: 100%; height: 100%; object-fit: cover; }
  .js .rd-run__frame::after {
    content: "0" attr(data-on); position: absolute; right: 0; bottom: 0; z-index: 3; min-width: 64px; padding: 10px 14px 9px;
    background: var(--ink); color: var(--orange); font-family: var(--f-head); font-weight: 800; font-size: 22px; letter-spacing: .12em;
  }
  .rd-run__ph--1 img { object-position: 50% 22%; }
  .rd-run__ph--2 img { object-position: 50% 32%; }
  .rd-run__ph--3 img { object-position: 50% 40%; }
  .rd-run__ph--4 img { object-position: 50% 52%; }
  .js .rd-run__steps { gap: 0; }
  .js .rd-st { min-height: 44vh; padding-bottom: 28px; }
  .js .rd-st__main { display: none; }
  .js .rd-st__caps { margin-top: 0; }
  .js .rd-st__pics::after { display: none; }
  html:not(.js) .rd-run__list { max-width: 720px; }
}
/* JS on but no motion asked for: the stage changes photo as each step is reached, without a wipe */
.js:not(.hero-anim) .rd-run__ph { visibility: hidden; }
.js:not(.hero-anim) .rd-run__frame[data-on="1"] .rd-run__ph--1,
.js:not(.hero-anim) .rd-run__frame[data-on="2"] .rd-run__ph--2,
.js:not(.hero-anim) .rd-run__frame[data-on="3"] .rd-run__ph--3,
.js:not(.hero-anim) .rd-run__frame[data-on="4"] .rd-run__ph--4 { visibility: visible; }

/* ------------------------------------------------------------------ the slim ask after the stages */
.page-rendering .rd-call { position: relative; background: var(--ink-2); color: var(--white); padding: 28px 0 32px; }
.rd-call__line { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--orange); transform-origin: 0 50%; }
.rd-call__p { font-family: var(--f-head); font-weight: 800; font-size: clamp(20px, 1.3vw + 15px, 30px); line-height: 1.2; max-width: 32ch; }
.rd-call__btns { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 600px) {
  .rd-call__btns { grid-template-columns: auto auto; justify-content: start; }
}
@media (min-width: 1024px) {
  .page-rendering .rd-call { padding: 36px 0 40px; }
  .rd-call__in { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
  .rd-call__btns { flex: none; margin-top: 0; }
}

/* ------------------------------------------------------------------ R4 render repairs: the same spot, before and after */
.rd-fix__h2 { position: relative; padding-bottom: 16px; font-size: var(--t-h2); max-width: 17ch; }
.rd-fix__h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 88px; height: 6px; background: var(--orange); transform-origin: 0 50%; }
.rd-fix__p { margin-top: 14px; color: #2f302e; max-width: 56ch; }
.page-rendering .rd-fix__ba { margin-top: 26px; position: relative; top: auto; grid-column: auto; }
/* a tablet: the words and the ask beside the slider */
@media (min-width: 760px) and (max-width: 1023px) {
  .rd-fix__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 36px; }
  .rd-fix__words { grid-column: 1; grid-row: 2; }
  .page-rendering .rd-fix__ba { margin-top: 0; grid-column: 2; grid-row: 1 / -1; align-self: center; }
  .page-rendering .rd-fix__ask { grid-column: 1; grid-row: 3; grid-template-columns: max-content; justify-content: start; }
}
.rd-fix__ask { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 600px) {
  .rd-fix__ask { grid-template-columns: auto auto; justify-content: start; }
}
@media (min-width: 1024px) {
  .rd-fix__in { display: grid; grid-template-columns: 6fr 5fr; grid-template-rows: 1fr auto auto 1fr; column-gap: clamp(40px, 5vw, 80px); }
  .rd-fix__words { grid-column: 1; grid-row: 2; }
  .page-rendering .rd-fix__ba { margin-top: 0; grid-column: 2; grid-row: 1 / -1; align-self: center; }
  .rd-fix__ask { grid-column: 1; grid-row: 3; margin-top: 28px; }
  .rd-fix__p { font-size: 17.5px; }
}

/* ------------------------------------------------------------------ R5 before you book a render */
.page-rendering .rd-faq { position: relative; background: var(--white); color: var(--ink); padding: var(--sec) 0; border-top: 1px solid var(--rule-l); }
.rd-faq .tag { color: var(--orange-sm); }
.rd-faq__h2 { font-size: var(--t-h2); max-width: 15ch; }
.rd-faq__say { margin-top: 20px; }
.rd-faq__qs { position: relative; margin-top: 22px; border-bottom: 1px solid var(--rule-l); }
.rd-faq__lev { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--orange); transform-origin: 0 50%; pointer-events: none; }
.rd-faq :focus-visible { outline-color: var(--ink); }
.rd-faq__ring {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 20px; color: var(--ink);
  font-family: var(--f-head); font-weight: 800; font-size: 18px;
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.rd-faq__ring .tel-ico { fill: var(--orange-sm); }
.rd-faq__ring:hover { color: var(--orange-sm); }
@media (min-width: 1024px) {
  .rd-faq__in { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; column-gap: clamp(40px, 5vw, 80px); align-items: start; }
  .rd-faq__words { grid-column: 1; grid-row: 1; }
  .rd-faq__qs { grid-column: 2; grid-row: 1 / span 2; margin-top: 6px; }
  .rd-faq__ring { grid-column: 1; grid-row: 2; justify-self: start; margin-top: 26px; }
}

/* ------------------------------------------------------------------ R6 close: one render review and the ask */
.page-rendering .rd-close { padding-top: 0; }
.rd-close__h2 { font-size: var(--t-h2); max-width: 15ch; }
.rd-close__p { margin-top: 14px; color: #E4E5E3; max-width: 52ch; }
.rd-close__words > .btn { margin-top: 18px; }
.rd-say { margin-top: 30px; padding: 16px 18px 18px; background: var(--ink-2); border-left: 4px solid var(--orange); }
.rd-say__stars { display: flex; align-items: center; gap: 10px; }
.rd-say__five svg { display: block; width: 92px; height: 18px; fill: var(--orange); }
.rd-say__out { font-size: 12.5px; color: var(--mute-d); }
.rd-say__q { margin: 10px 0 0; padding: 0; }
.rd-say__q p { font-size: 16px; line-height: 1.5; }
.rd-say__who { margin-top: 12px; font-size: 14.5px; color: var(--mute-d); }
.rd-say__who b { color: var(--white); font-family: var(--f-head); font-size: 16px; }
.rd-say__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; }
.rd-say__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px 0; background: var(--orange); vertical-align: middle; }
.rd-close__g { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 14px; }
.rd-close__g .chips { margin-top: 0; }
.rd-close__link {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-head); font-weight: 700; font-size: 16px; color: var(--white);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.rd-close__link:hover { color: var(--orange); }
.rd-close__slot { margin-top: 30px; scroll-margin-top: 12px; }
.page-rendering .rd-close__panel { margin-top: 0; }   /* the anchor: the panel inside it lifts in, the slot never moves */
@media (max-width: 1023px) {
  .rd-close__in { display: flex; flex-direction: column; align-items: stretch; }
  .rd-close__words { display: contents; }
  /* the review stands on the close's first phone screen beside the heading; the line that points to the form and the
     call button then sit straight above the form */
  .rd-close__words > .tag { order: 1; } .rd-close__h2 { order: 2; } .rd-say { order: 3; } .rd-close__g { order: 4; }
  .rd-close__p { order: 5; } .rd-close__words > .btn { order: 6; align-self: flex-start; }
  .rd-close__slot { order: 7; }
  .rd-say { max-width: 600px; }   /* on a tablet the review keeps a reading line, not the band's full width */
}
@media (min-width: 760px) and (max-width: 1023px) {
  .rd-close__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 30px; align-items: start; }
  .rd-close__words > .tag, .rd-close__h2, .rd-close__p, .rd-close__words > .btn { grid-column: 1 / -1; }
  .rd-close__words > .tag { grid-row: 1; } .rd-close__h2 { grid-row: 2; } .rd-close__p { grid-row: 3; }
  .rd-close__words > .btn { grid-row: 4; justify-self: start; }
  .rd-close__slot { grid-column: 1; grid-row: 5 / span 2; }
  .rd-say { grid-column: 2; grid-row: 5; }
  .rd-close__g { grid-column: 2; grid-row: 6; align-self: start; }
}
@media (min-width: 1024px) {
  .rd-close__in { display: grid; grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: start; }
  .rd-close__slot { margin-top: 0; }
}

/* ================================================================== /rendering/ motion (html.hero-anim only) */

/* the headline: two strokes meeting, "Rendering" drawn in from the left and "Caerphilly" from the right, each inside its own line */
.hero-anim .rd-hero__w { overflow: clip; overflow-clip-margin: .12em; vertical-align: top; }
.hero-anim .rd-hero__w > span { display: inline-block; animation: rdFromL .95s cubic-bezier(.2,.75,.2,1) both; }
.hero-anim .rd-hero__w + .rd-hero__w > span { animation-name: rdFromR; animation-delay: .12s; }
@keyframes rdFromL { from { transform: translateX(-104%); } to { transform: none; } }
@keyframes rdFromR { from { transform: translateX(104%); } to { transform: none; } }
.hero-anim .rd-hero__eyebrow, .hero-anim .rd-hero__p, .hero-anim .rd-hero__ask, .hero-anim .rd-hero__chips { animation: rdUp .7s cubic-bezier(.2,.75,.2,1) both; }
.hero-anim .rd-hero__chips { animation-delay: .28s; }
.hero-anim .rd-hero__p { animation-delay: .36s; }
.hero-anim .rd-hero__ask { animation-delay: .44s; }
@keyframes rdUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* three headings arrive their own way, once, as they come on screen (pages.js marks them .is-in): the walls heading
   glides in from the side, the repairs heading wipes on with its strip of orange tape drawn after it, the questions
   heading wipes on. Quick, so the words never wait for the thumb */
.hero-anim.sd [data-rd-in] { transition: transform .7s cubic-bezier(.2,.75,.2,1), opacity .5s ease, clip-path .65s cubic-bezier(.3,.7,.2,1); }
.hero-anim.sd [data-rd-in="side"]:not(.is-in) { transform: translateX(-56px); opacity: 0; }
.hero-anim.sd [data-rd-in="wipe"], .hero-anim.sd [data-rd-in="tape"] { clip-path: inset(-0.3em -0.2em -0.3em 0); }
.hero-anim.sd [data-rd-in="wipe"]:not(.is-in), .hero-anim.sd [data-rd-in="tape"]:not(.is-in) { clip-path: inset(-0.3em 100% -0.3em 0); }
.hero-anim.sd [data-rd-in="tape"]::after { transition: transform .5s cubic-bezier(.2,.75,.2,1) .45s; }
.hero-anim.sd [data-rd-in="tape"]:not(.is-in)::after { transform: scaleX(0); }

/* the formulas each piece reads from --p */
.hero-anim .rd-hero__img { transform: translateY(calc(var(--p) * 10%)) scale(calc(1.02 + var(--p) * .06)); }
.hero-anim .rd-hero__body { transform: translateY(calc(var(--p) * -34px)); }
/* the plate pair: on a phone the small frame slides against the large one as the card is swiped, and the card in front
   stands at full size while its neighbours sit back (both from the card's place in the row); on a desktop it drifts with the page */
@property --rdk { syntax: "<number>"; inherits: true; initial-value: 1; }
@keyframes rdPeak { 0% { --rdk: 0; } 50% { --rdk: 1; } 100% { --rdk: 0; } }
@media (max-width: 1023px) {
  .hero-anim.sd .rd-pair__pics { scale: calc(.93 + var(--rdk) * .07); transform-origin: 50% 100%; }
  .hero-anim.sd .rd-pair__b { transform: translateX(calc((.5 - var(--p)) * 56px)); }
}
@media (min-width: 1024px) {
  .hero-anim.sd .rd-pair__b { transform: translateY(calc((.5 - var(--p)) * 40px)); }
}
.hero-anim.sd .rd-st__main { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.hero-anim.sd .rd-st__pics::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 3px; margin-left: -3px; background: var(--white);
  opacity: calc((1 - var(--p)) * 8); pointer-events: none;
}
.hero-anim.sd .rd-run__fill { transform: scaleY(var(--p)); }
/* each step's square fills with orange as the step is reached */
.hero-anim.sd .rd-st::before { box-shadow: inset 0 0 0 calc(var(--p) * 6px) var(--orange); }
/* each new stage photo settles from a little closer as it wipes in */
.hero-anim.sd .rd-run__ph--2 img, .hero-anim.sd .rd-run__ph--3 img, .hero-anim.sd .rd-run__ph--4 img { transform: scale(calc(1.12 - var(--p) * .12)); }
.hero-anim.sd .rd-run__ph--2, .hero-anim.sd .rd-run__ph--3, .hero-anim.sd .rd-run__ph--4 { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.hero-anim.sd .rd-run__ph--2::after, .hero-anim.sd .rd-run__ph--3::after, .hero-anim.sd .rd-run__ph--4::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 4px; margin-left: -4px; background: var(--white);
  opacity: calc((1 - var(--p)) * 8); pointer-events: none;
}
.hero-anim.sd .rd-call__line { transform: scaleX(var(--p)); }
.hero-anim.sd .rd-faq__qs .q { transform: translateY(calc((1 - var(--p)) * 18px)); }
/* the line under the questions runs out towards the number as the answers go by */
.hero-anim.sd .rd-faq__lev { transform: scaleX(var(--p)); }
/* the repair photos drift up inside their frame together as the wall goes by (vertical only, so the cut between them
   stays under the bar) */
.hero-anim.sd .rd-fix__ba .ba__img { top: -6%; height: 112%; transform: translateY(calc((.5 - var(--p)) * 9%)); }
.hero-anim.sd .rd-say { transform: translateY(calc((1 - var(--p)) * 30px)); }
@media (max-width: 1023px) {
  .hero-anim.sd .rd-plates { transform: translateX(calc((1 - var(--p)) * 22%)); }
}
@media (min-width: 1024px) {
  .hero-anim.sd .rd-plate:nth-child(odd) { transform: translateX(calc((1 - var(--p)) * -56px)); }
  .hero-anim.sd .rd-plate:nth-child(even) { transform: translateX(calc((1 - var(--p)) * 56px)); }
}

@supports (animation-timeline: view()) {
  .hero-anim .rd-hero__img, .hero-anim .rd-hero__body { animation: p linear both; animation-timeline: scroll(root); animation-range: 0px 85vh; }
  .hero-anim.sd .rd-st__pics { animation: p linear both; animation-timeline: view(); animation-range: entry 5% entry 95%; }
  .hero-anim.sd .rd-st { animation: p linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
  .hero-anim.sd .rd-run__fill { animation: p linear both; animation-timeline: view(); animation-range: cover 15% cover 75%; }
  .rd-run { timeline-scope: --rst2, --rst3, --rst4; }
  .rd-st--2 { view-timeline: --rst2 block; } .rd-st--3 { view-timeline: --rst3 block; } .rd-st--4 { view-timeline: --rst4 block; }
  .hero-anim.sd .rd-run__ph--2 { animation: p linear both; animation-timeline: --rst2; animation-range: cover 14% cover 35%; }
  .hero-anim.sd .rd-run__ph--3 { animation: p linear both; animation-timeline: --rst3; animation-range: cover 14% cover 35%; }
  .hero-anim.sd .rd-run__ph--4 { animation: p linear both; animation-timeline: --rst4; animation-range: cover 14% cover 35%; }
  .hero-anim.sd .rd-call__line { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 70%; }
  .hero-anim.sd .rd-say { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  .hero-anim.sd .rd-faq__lev { animation: p linear both; animation-timeline: view(); animation-range: cover 20% cover 70%; }
  .hero-anim.sd .rd-fix__ba .ba__frame { animation: p linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @media (max-width: 1023px) {
    .hero-anim.sd .rd-plates { animation: p linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .hero-anim.sd .rd-plate { animation: p linear both, rdPeak linear both; animation-timeline: view(inline), view(inline); }
  }
  @media (min-width: 1024px) {
    .hero-anim.sd .rd-plate { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .hero-anim.sd .rd-pair__b { animation: p linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}

/* ================================================================== /internal-plastering/ */
.page-internal-plastering blockquote { margin: 0; }

/* ------------------------------------------------------------------ P1 opening: his freshly skimmed stairwell full bleed behind the words */
/* phone and tablet: the homepage's dark opening - the stairwell behind the whole hero, his black at about .74-.8 behind
   the words and clear (about .06) below them, where the walls run down to the door; Beth's card sits on the photo's foot.
   desktop (1024+): the homepage's light split - render grey behind the words, the stairwell open on the right */
.page-internal-plastering .ip-hero { position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: var(--white); }
.page-internal-plastering .ip-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange); z-index: 3; }
.ip-hero__media { position: absolute; left: 0; right: 0; top: 0; bottom: -260px; z-index: -2; overflow: clip; background: var(--ink-3); }
.ip-hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(20,20,20,.06); }
.ip-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.ip-hero__in { padding-top: 24px; }
.ip-hero__words { position: relative; }
.ip-hero__words::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -24px; bottom: -120px; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad));
  background: linear-gradient(180deg, rgba(20,20,20,.82) 0, rgba(20,20,20,.76) calc(100% - 120px), rgba(20,20,20,.06) 100%);
}
.ip-hero__eyebrow {
  display: flex; flex-wrap: wrap; column-gap: 8px;
  font-family: var(--f-head); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; color: #E4E5E3;
}
.ip-hero__biz { color: var(--white); }
.ip-hero__dot { color: var(--orange); }
.ip-hero__h1 { margin-top: 10px; font-size: var(--t-h1); font-weight: 900; line-height: 1.02; letter-spacing: -0.018em; text-wrap: initial; }
.ip-hero__skim { position: relative; display: inline-block; }
.ip-hero__p { margin-top: 16px; font-size: 15.5px; line-height: 1.5; color: #E4E5E3; max-width: 54ch; }
.ip-hero__ask { display: grid; gap: 10px; margin-top: 18px; }
.ip-hero__ask .btn { width: 100%; }
.page-internal-plastering .ip-hero .btn--dark-line { border-color: var(--white); color: var(--white); background: rgba(20,20,20,.4); }
.page-internal-plastering .ip-hero .btn--dark-line:hover { background: var(--white); color: var(--ink); }
.page-internal-plastering .ip-hero .chip { font-size: 13px; background: rgba(20,20,20,.7); }
.ip-hero__chips { margin-top: 16px; }
/* the side is left unpositioned so the stairwell inside it runs behind the whole opening */
.ip-hero__side { margin: clamp(240px, 34svh, 330px) calc(-1 * var(--pad)) 0; }
.ip-hero__say {
  position: relative; z-index: 2; margin: 0 var(--pad); padding: 16px 18px;
  background: var(--ink); color: var(--white); border-top: 4px solid var(--orange);
}
.ip-hero__q p { font-family: var(--f-head); font-weight: 700; font-size: 18px; line-height: 1.3; }
.ip-hero__who { margin-top: 10px; font-size: 13px; color: var(--mute-d); }
.ip-hero__who b { color: var(--white); }
.ip-hero__cap { padding: 10px var(--pad) 26px; background: var(--ink); font-size: 12.5px; line-height: 1.45; color: var(--mute-d); }
@media (min-width: 600px) {
  .ip-hero__ask { grid-template-columns: auto auto; justify-content: start; }
  .ip-hero__ask .btn { width: auto; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .ip-hero__in { padding-top: 34px; }
  .ip-hero__words::before { top: -34px; }
  .ip-hero__words > * { max-width: 620px; }
  .ip-hero__p { font-size: 17px; }
  .ip-hero__side { margin-top: clamp(280px, 34svh, 400px); }
  .ip-hero__media { bottom: -120px; }
  .ip-hero__say { max-width: 480px; }
  .ip-hero__cap { padding-top: 12px; }
}
@media (min-width: 1024px) {
  .page-internal-plastering .ip-hero { background: var(--render); color: var(--ink); }
  .ip-hero__media { left: 22%; bottom: 0; }
  .ip-hero__media::after {
    background:
      linear-gradient(90deg, #E7E8E6 0, rgba(231,232,230,.92) 20%, rgba(231,232,230,.76) 31%, rgba(231,232,230,.06) 52%, rgba(231,232,230,.06) 100%),
      linear-gradient(0deg, rgba(20,20,20,.28) 0, rgba(20,20,20,0) 26%);
  }
  .ip-hero__img { object-position: 50% 52%; }
  .ip-hero__words::before { display: none; }
  .ip-hero__in {
    display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: 48px; align-items: center;
    min-height: clamp(620px, calc(100svh - var(--hdr)), 900px); padding-top: 48px; padding-bottom: 48px;
  }
  .ip-hero__eyebrow { color: var(--ink); }
  .ip-hero__biz, .ip-hero__dot { color: var(--orange-sm); }
  .ip-hero__h1 { margin-top: 14px; }
  .ip-hero__p { margin-top: 22px; font-size: 17px; color: #262726; }
  .ip-hero__ask { margin-top: 24px; }
  .ip-hero__chips { margin-top: 20px; }
  .page-internal-plastering .ip-hero .btn--dark-line { border-color: var(--ink); color: var(--ink); background: rgba(231,232,230,.6); }
  .page-internal-plastering .ip-hero .btn--dark-line:hover { background: var(--ink); color: var(--white); }
  .page-internal-plastering .ip-hero .chip { font-size: 14px; color: var(--ink); background: rgba(231,232,230,.6); border-color: #8f918d; }
  .ip-hero__side { grid-column: 2; align-self: end; justify-self: end; width: min(380px, 100%); margin: 0; }
  .ip-hero__say { margin: 0; }
  .ip-hero__cap { margin-top: 10px; padding: 7px 12px; background: rgba(20,20,20,.86); color: var(--white); font-size: 13px; }
}

/* ------------------------------------------------------------------ P2 the jobs the reviews name, each beside a photo of that kind of work */
.ip-jobs__head { max-width: 780px; }
.ip-jobs__h2 { font-size: var(--t-h2); max-width: 20ch; }
.ip-nb { white-space: nowrap; }
.ip-jobs__p { margin-top: 14px; color: #E4E5E3; max-width: 58ch; }
.ip-jobs__list { display: grid; gap: 56px; margin-top: 36px; }
.ip-job { display: grid; gap: 18px; }
.ip-job__frame { position: relative; overflow: clip; aspect-ratio: 4 / 5; background: var(--ink-3); }
.ip-job__img { width: 100%; height: 100%; object-fit: cover; }
.ip-job__cap { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--mute-d); max-width: 56ch; }
.ip-job__h3 { font-size: var(--t-h3); }
.ip-job__p { margin-top: 10px; color: #E4E5E3; max-width: 52ch; }
.ip-quote { position: relative; margin-top: 22px; padding: 2px 0 2px 18px; }
.ip-quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--orange); transform-origin: 50% 0; }
.ip-quote__q p { font-family: var(--f-head); font-weight: 700; font-size: clamp(18px, .7vw + 15.5px, 24px); line-height: 1.3; }
.ip-quote__who { margin-top: 10px; font-size: 13.5px; color: var(--mute-d); }
.ip-quote__who b { color: var(--white); }
.ip-quote__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; }
.ip-quote__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px 0; background: var(--orange); vertical-align: middle; }
@media (min-width: 760px) {
  .ip-jobs__list { gap: 72px; margin-top: 48px; }
  .ip-job { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(28px, 5vw, 80px); align-items: center; }
  .ip-job:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .ip-job:nth-child(even) .ip-job__fig { order: 2; }
}
@media (min-width: 1024px) {
  .ip-jobs__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; max-width: none; }
  .ip-jobs__head .tag { grid-column: 1 / -1; justify-self: start; }
  .ip-jobs__p { margin-top: 0; padding-bottom: 6px; }
  .ip-jobs__list { gap: 96px; margin-top: 64px; }
  .ip-job__frame { aspect-ratio: 1 / 1; }
  .ip-job__words { max-width: 560px; }
  .ip-job:nth-child(even) .ip-job__words { justify-self: end; }
}
/* the chooser: with JS on, the three jobs are one deck - the chosen job in front, the other two stacked behind it and a
   tap (or a sideways swipe) away; with JS off the list above stands, one job after another */
.page-internal-plastering .ip-jobs { overflow-x: clip; }
.ip-deck__pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.ip-deck__pick[hidden] { display: none; }
.ip-deck__tab {
  position: relative; min-height: 54px; padding: 8px 10px; border: 1px solid var(--rule-d); border-radius: 0; background: transparent;
  color: var(--mute-d); font-family: var(--f-head); font-weight: 700; font-size: 14.5px; line-height: 1.2; text-align: left; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.ip-deck__tab::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 4px; background: var(--orange);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.2,.75,.2,1);
}
.ip-deck__tab:hover { color: var(--white); }
.ip-deck__tab[aria-pressed="true"] { color: var(--white); border-color: #8d8f8b; background: var(--ink-3); }
.ip-deck__tab[aria-pressed="true"]::after { transform: none; }
.ip-deck__tab:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.ip-job__peek { display: none; }
.ip-deck.is-deck .ip-job__peek {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 30px; margin: -4px 0 -4px; overflow: hidden;
  font-family: var(--f-head); font-size: 14px; line-height: 1.2; color: var(--mute-d);
}
.ip-deck.is-deck .ip-job__peek b { color: var(--white); font-weight: 800; }
.ip-deck.is-deck .ip-job__peek span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px 0; background: var(--orange); vertical-align: middle; }
.ip-deck__foot { margin-top: 28px; }
.ip-deck__ask { width: 100%; }
.ip-deck.is-deck .ip-deck__stack { display: grid; gap: 0; margin-top: 0; padding-top: 84px; touch-action: pan-y; }
.ip-deck.is-deck .ip-job {
  --fan: 1; --o: 0px; --k: 1;
  position: relative; grid-area: 1 / 1; align-self: stretch; align-content: start; gap: 14px;
  padding: 12px 12px 22px; background: var(--ink-2); border-top: 4px solid var(--orange); transform-origin: 50% 0;
  transform: translateX(var(--dx, 0px)) translateY(calc(var(--fan) * var(--o))) scale(calc(1 - var(--fan) * (1 - var(--k))));
  -webkit-user-select: none; user-select: none;
}
.ip-deck.is-deck .ip-job::after {
  content: ""; position: absolute; inset: 40px 0 0; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .45s;
}
.ip-deck.is-deck .ip-job[data-pos="0"] { z-index: 3; }
.ip-deck.is-deck .ip-job[data-pos="1"] { z-index: 2; --o: -40px; --k: .965; cursor: pointer; }
.ip-deck.is-deck .ip-job[data-pos="2"] { z-index: 1; --o: -80px; --k: .93; cursor: pointer; }
.ip-deck.is-deck .ip-job[data-pos="1"]::after { opacity: .5; }
.ip-deck.is-deck .ip-job[data-pos="2"]::after { opacity: .72; }
.ip-deck.is-deck.is-dealing .ip-job { transition: transform .5s cubic-bezier(.2,.75,.2,1); }
.ip-deck.is-deck .ip-job.is-out { animation: ipDealOut .62s cubic-bezier(.45,.05,.25,1) both; }
.ip-deck.is-deck .ip-job.is-in { animation: ipDealIn .62s cubic-bezier(.45,.05,.25,1) both; }
.ip-deck.is-deck .ip-job__frame { aspect-ratio: 4 / 3; }
.ip-deck.is-deck .ip-job:nth-child(even) .ip-job__fig { order: 0; }
.ip-deck.is-deck .ip-job__img { pointer-events: none; -webkit-user-drag: none; }
@keyframes ipDealOut {
  0% { z-index: 4; transform: translateX(var(--dx, 0px)); }
  45% { z-index: 4; transform: translateX(-64%) translateY(12px) rotate(-5deg) scale(.97); }
  55% { z-index: 0; transform: translateX(-62%) translateY(-10px) rotate(-4deg) scale(.93); }
  100% { z-index: 0; transform: translateY(-80px) scale(.93); }
}
@keyframes ipDealIn {
  0% { z-index: 0; transform: translateY(-80px) scale(.93); }
  45% { z-index: 0; transform: translateX(64%) translateY(-10px) rotate(4deg) scale(.95); }
  55% { z-index: 4; transform: translateX(62%) translateY(8px) rotate(3deg) scale(.98); }
  100% { z-index: 4; transform: none; }
}
@media (min-width: 600px) { .ip-deck__ask { width: auto; } }
@media (min-width: 760px) {
  .ip-deck__pick { grid-template-columns: repeat(3, minmax(0, 220px)); gap: 8px; margin-top: 40px; }
  .ip-deck__tab { font-size: 16px; padding: 10px 14px; }
  .ip-deck.is-deck .ip-deck__stack { padding-top: 88px; }
  .ip-deck.is-deck .ip-job__peek { grid-column: 1 / -1; font-size: 15px; }
  .ip-deck.is-deck .ip-job {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(24px, 4vw, 56px); align-items: start; padding: 12px 24px 26px 20px;
  }
  .ip-deck.is-deck .ip-job:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .ip-deck.is-deck .ip-job__frame { aspect-ratio: 1 / 1; }
  .ip-deck.is-deck .ip-job:nth-child(even) .ip-job__words { justify-self: start; }
  .ip-deck.is-deck .ip-job__words { padding-top: 6px; }
}
@media (min-width: 1024px) {
  .ip-deck.is-deck .ip-job { padding: 12px 40px 30px 26px; column-gap: 56px; align-items: center; }
  .ip-deck__foot { margin-top: 32px; }
}

/* ------------------------------------------------------------------ P3 boarded and taped first, floors covered: two photos at two depths */
.ip-prep__in { display: grid; gap: 34px; }
.ip-prep__h2 { font-size: var(--t-h2); max-width: 16ch; }
.ip-prep__p { margin-top: 14px; color: #2b2c2a; max-width: 56ch; }
.ip-prep__list { margin-top: 20px; border-top: 1px solid var(--rule-l); }
.ip-prep__li {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--rule-l);
  font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.25;
}
.ip-prep__mk { position: relative; flex: none; width: 26px; height: 8px; background: var(--rule-l); }
.ip-prep__mk::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: 0 50%; }
.ip-prep__say { margin-top: 24px; padding: 16px 18px; background: var(--white); border-left: 4px solid var(--orange); }
.ip-prep__q p { font-family: var(--f-head); font-weight: 700; font-size: 19px; line-height: 1.3; }
.ip-prep__who { margin-top: 8px; font-size: 13.5px; color: var(--mute-l); }
.ip-prep__who b { color: var(--ink); }
.ip-prep__pics { position: relative; }
.ip-prep__frame { overflow: clip; aspect-ratio: 1 / 1; background: var(--render-2); }
@media (min-width: 600px) and (max-width: 1023px) { .ip-prep__ph--a { max-width: 560px; } }
.ip-prep__frame img { width: 100%; height: 100%; object-fit: cover; }
.ip-prep__cap { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--mute-l); }
@media (max-width: 599px) {
  .ip-prep__pics { margin: 0 calc(-1 * var(--pad)); }
  .ip-prep__cap { padding: 0 var(--pad); }
}
@media (min-width: 1024px) {
  .ip-prep__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 72px; align-items: center; }
  .ip-prep__frame { box-shadow: 18px 18px 0 var(--render-2); }
}

/* ------------------------------------------------------------------ P4 damp walls: a slim dark band, three steps on one line, the mid-page call */
.page-internal-plastering .ip-damp { background: var(--ink); color: var(--white); padding: clamp(38px, 5vw, 76px) 0; }
.ip-damp__in { display: grid; gap: 24px; }
.ip-damp__h2 { font-size: var(--t-h2); max-width: 18ch; }
.ip-damp__p { margin-top: 12px; color: #E4E5E3; max-width: 52ch; }
.ip-damp__steps { position: relative; display: grid; gap: 20px; padding-left: 36px; }
.ip-damp__steps::before, .ip-damp__steps::after { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 2px; background: var(--rule-d); }
.ip-damp__steps::after { left: 9px; width: 4px; background: var(--orange); transform-origin: 50% 0; }
.ip-damp__st { position: relative; font-family: var(--f-head); font-weight: 700; font-size: 17.5px; line-height: 1.3; }
.ip-damp__node { position: absolute; z-index: 1; left: -36px; top: 1px; width: 22px; height: 22px; background: var(--ink); border: 2px solid var(--orange); }
.ip-damp__node::after { content: ""; position: absolute; inset: 3px; background: var(--orange); }
.ip-damp__asks { display: grid; gap: 10px; }
.ip-damp__say { margin: 0; padding: 14px 16px; background: var(--ink-2); border-left: 4px solid var(--orange); max-width: 52ch; }
.ip-damp__q p { font-family: var(--f-head); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--white); }
.ip-damp__who { margin-top: 6px; font-size: 13.5px; color: var(--mute-d); }
.ip-damp__who b { color: var(--white); }
.ip-damp__asks .btn { width: 100%; padding-left: 16px; padding-right: 16px; font-size: 16px; }
@media (min-width: 600px) {
  .ip-damp__asks { display: flex; flex-wrap: wrap; gap: 10px; }
  .ip-damp__asks .btn { width: auto; padding-left: 22px; padding-right: 22px; font-size: 17px; }
}
@media (min-width: 1024px) {
  .ip-damp__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; row-gap: 26px; align-items: center; }
  .ip-damp__words { grid-column: 1; grid-row: 1; }
  .ip-damp__say { grid-column: 1; grid-row: 2; }
  .ip-damp__asks { grid-column: 1; grid-row: 3; }
  .ip-damp__steps { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 44px 0 0; }
  .ip-damp__steps::before, .ip-damp__steps::after { left: 11px; right: calc((100% - 48px) / 3 - 11px); top: 10px; bottom: auto; width: auto; height: 2px; }
  .ip-damp__steps::after { top: 9px; height: 4px; transform-origin: 0 50%; }
  .ip-damp__node { left: 0; top: -44px; }
  .ip-damp__st { font-size: 19px; max-width: 16ch; }
}

/* ------------------------------------------------------------------ P3b media walls: the bar on the same wall, laid over the room it stands in */
.ip-media__title { font-size: var(--t-h2); max-width: 18ch; }
.ip-media__lede { margin-top: 14px; color: #2b2c2a; max-width: 56ch; }
.ip-media__stage { display: grid; gap: 28px; margin-top: 26px; }
.page-internal-plastering .ip-media__slider { margin-top: 0; position: relative; top: auto; }
.page-internal-plastering .ba__frame { aspect-ratio: 4 / 3; }
html:not(.js) .page-internal-plastering .ba__img { aspect-ratio: 4 / 3; }
.ip-media__ask { width: 100%; }
@media (min-width: 600px) { .ip-media__ask { width: auto; justify-self: start; } }
@media (min-width: 1024px) {
  .ip-media__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; }
  .ip-media__top .tag { grid-column: 1 / -1; justify-self: start; }
  .ip-media__lede { margin-top: 0; padding-bottom: 6px; }
  .ip-media__stage { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: 44px; }
  .page-internal-plastering .ip-media__slider { grid-column: 1 / 9; grid-row: 1; position: relative; top: auto; }
  .ip-media__slider .ba__frame { box-shadow: 18px 18px 0 var(--render-2); }
  .ip-media__ask { grid-column: 9 / 13; grid-row: 1; align-self: end; justify-self: start; margin-bottom: 64px; }
}

/* ------------------------------------------------------------------ P5 plastering questions: two columns of the homepage's details */
.page-internal-plastering .ip-qa { background: var(--render-2); color: var(--ink); padding: var(--sec) 0; }
.page-internal-plastering .ip-qa .tag { color: #8A4203; } /* orange-sm a notch darker: 5.2:1 on the darker render-2 ground (orange-sm gives 4.42) */
.ip-qa__h2 { font-size: var(--t-h2); max-width: 20ch; }
.ip-qa__head::after { content: ""; display: block; grid-column: 1 / -1; width: min(100%, 320px); height: 6px; margin-top: 22px; background: var(--orange); transform-origin: 0 50%; }
.ip-qa__grid { margin-top: 24px; border-bottom: 1px solid var(--rule-l); }
.ip-qa__ph { margin: 26px 0 0; }
.ip-qa__frame { overflow: clip; aspect-ratio: 4 / 3; background: var(--render); }
.ip-qa__img { width: 100%; height: 100%; object-fit: cover; }
.ip-qa__cap { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--mute-l); }
@media (min-width: 600px) and (max-width: 1023px) { .ip-qa__ph { max-width: 560px; } }
@media (min-width: 1024px) {
  .ip-qa__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: start; margin-top: 36px; }
  .ip-qa__ph { margin-top: 0; }
  .page-internal-plastering .ip-qa__body .ip-qa__grid { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .page-internal-plastering .ip-qa__body .ip-qa__grid .q:nth-last-child(2) { border-bottom: 0; }
}
.ip-qa__grid .q h3 { font-size: 17.5px; }
.ip-qa__ring {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 18px; padding: 10px 16px; border: 2px solid var(--ink);
  font-family: var(--f-head); font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s;
}
.ip-qa__ring .tel-ico { width: 18px; height: 18px; color: var(--orange-sm); }
.ip-qa__ring:hover { background: var(--ink); color: var(--white); }
.ip-qa__ring:hover .tel-ico { color: var(--orange); }
@media (min-width: 900px) {
  .ip-qa__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; }
  .ip-qa__head .tag { grid-column: 1 / -1; justify-self: start; }
  .ip-qa__ring { margin-top: 0; }
}
@media (min-width: 900px) {
  .ip-qa__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; margin-top: 36px; border-bottom: 0; }
  .ip-qa__grid .q:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule-l); }
}

/* ------------------------------------------------------------------ P6 close: the ask, the skimmed ceiling, the form */
.ip-close__h2 { font-size: var(--t-h2); max-width: 18ch; }
.ip-close__p { margin-top: 14px; color: #E4E5E3; max-width: 52ch; }
.ip-close__words .btn { margin-top: 18px; }
.ip-close__say { margin: 18px 0 0; padding: 14px 16px; background: var(--ink-2); border-left: 4px solid var(--orange); max-width: 52ch; }
.ip-close__q p { font-family: var(--f-head); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--white); }
.ip-close__who { margin-top: 6px; font-size: 13.5px; color: var(--mute-d); }
.ip-close__who b { color: var(--white); }
.ip-close__g { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 14px; }
.ip-close__g .chips { margin-top: 0; }
.ip-close__link {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-head); font-weight: 700; font-size: 16px; color: var(--white);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.ip-close__link:hover { color: var(--orange); }
.ip-close__ask { margin-top: 30px; scroll-margin-top: 14px; }
.page-internal-plastering .ip-close__panel { margin-top: 0; }
/* under 1024 the form follows the words straight away, so an ask lands on the form */
@media (max-width: 1023px) {
  .ip-close__in { display: flex; flex-direction: column; align-items: flex-start; }
  .ip-close__words { display: contents; }
  .ip-close__ask { align-self: stretch; }
}
@media (min-width: 1024px) {
  .ip-close__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .ip-close__ask { margin-top: 0; }
}

/* ================================================================== /internal-plastering/ motion (html.hero-anim only) */

/* the headline goes on in one pass of the trowel: skimmed in from the left behind its orange edge */
.hero-anim .ip-hero__skim { animation: ipSkim 1.05s cubic-bezier(.55,.05,.25,1) .1s both; }
.hero-anim .ip-hero__skim::after {
  content: ""; position: absolute; top: -.02em; bottom: -.06em; left: 0; width: .07em; margin-left: -.07em; background: var(--orange);
  animation: ipTrowel 1.05s cubic-bezier(.55,.05,.25,1) .1s both;
}
@keyframes ipSkim { from { clip-path: inset(-.2em 100% -.2em 0); } to { clip-path: inset(-.2em -.12em -.2em 0); } }
@keyframes ipTrowel { 0% { left: 0; opacity: 1; } 86% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.hero-anim .ip-hero__eyebrow { animation: ipFade .6s ease-out both; }
/* the words follow the trowel quickly; the call never waits: it is there from the first frame and only settles into place */
.hero-anim .ip-hero__p, .hero-anim .ip-hero__chips { animation: ipUp .55s cubic-bezier(.2,.75,.2,1) both; }
.hero-anim .ip-hero__chips { animation-delay: .3s; }
.hero-anim .ip-hero__p { animation-delay: .42s; }
.hero-anim .ip-hero__ask { animation: ipSettle .5s cubic-bezier(.2,.75,.2,1) .05s both; }
@keyframes ipSettle { from { transform: translateY(10px); } to { transform: none; } }
/* the stairwell opens from the floor up, the way a wall is skimmed */
.hero-anim .ip-hero__media { animation: ipOpen 1.1s cubic-bezier(.6,0,.2,1) .2s both; }
/* Beth's card follows the photo up, never floating on the ground before the stairwell is there */
.hero-anim .ip-hero__say, .hero-anim .ip-hero__cap { animation: ipRise .6s cubic-bezier(.2,.75,.2,1) 1s both; }
@keyframes ipRise { from { translate: 0 18px; opacity: 0; } to { translate: none; opacity: 1; } }
@keyframes ipFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ipUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ipOpen { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* the formulas each piece reads from --p */
.hero-anim.sd .ip-hero__img { transform: translateY(calc((var(--p) - .5) * 8%)) scale(calc(1.1 + var(--p) * .1)); transform-origin: 50% 36%; }
.hero-anim.sd .ip-hero__say { transform: translateY(calc(var(--p) * -48px)); }
.hero-anim.sd .ip-job__frame { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.hero-anim.sd .ip-job:nth-child(even) .ip-job__frame { clip-path: inset(0 0 0 calc((1 - var(--p)) * 100%)); }
.hero-anim.sd .ip-job__img { transform: translateY(calc((.5 - var(--p)) * 8%)) scale(1.12); }
.hero-anim.sd .ip-quote::before { transform: scaleY(var(--p)); }
.hero-anim.sd .ip-prep__ph--a { transform: translateY(calc((.5 - var(--p)) * 36px)); }
.hero-anim.sd .ip-prep__mk::after { transform: scaleX(var(--p)); }
/* each board swings in to the wall from its outer edge, the way a sheet is offered up before it is fixed */
.hero-anim.sd .ip-prep__frame { transform: perspective(900px) rotateY(calc((1 - var(--p)) * 18deg)); transform-origin: 0 50%; }
/* the deck stands up out of the page as it arrives, and the two jobs behind fan out from under the front one */
.hero-anim.sd .ip-deck.is-deck .ip-deck__stack { transform: perspective(1400px) rotateX(calc((1 - var(--p)) * 10deg)) translateY(calc((1 - var(--p)) * 40px)); transform-origin: 50% 100%; }
.hero-anim.sd .ip-deck.is-deck .ip-job { --fan: var(--p); }
.hero-anim.sd .ip-deck.is-deck .ip-job__frame { clip-path: none; }
.hero-anim.sd .ip-damp__steps::after { transform: scaleY(var(--p)); }
.hero-anim.sd .ip-qa__head::after { transform: scaleX(var(--p)); }
.hero-anim.sd .ip-qa__ring { transform: translateX(calc((1 - var(--p)) * 28px)); }
.hero-anim.sd .ip-qa__frame { clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0); }
.hero-anim.sd .ip-qa__img { transform: translateY(calc((.5 - var(--p)) * 8%)) scale(1.12); }
.hero-anim.sd .ip-damp__say { transform: translateX(calc((1 - var(--p)) * -24px)); }
.hero-anim.sd .ip-damp__st:nth-child(1) .ip-damp__node::after { opacity: clamp(0, var(--p) * 12, 1); }
.hero-anim.sd .ip-damp__st:nth-child(2) .ip-damp__node::after { opacity: clamp(0, (var(--p) - .48) * 12, 1); }
.hero-anim.sd .ip-damp__st:nth-child(3) .ip-damp__node::after { opacity: clamp(0, (var(--p) - .92) * 12, 1); }
@media (min-width: 1024px) {
  .hero-anim.sd .ip-damp__steps::after { transform: scaleX(var(--p)); }
}

@supports (animation-timeline: view()) {
  .hero-anim.sd .ip-hero__img { animation: p linear both; animation-timeline: scroll(root); animation-range: 0px 85vh; }
  .hero-anim.sd .ip-hero__say { animation: ipRise .6s cubic-bezier(.2,.75,.2,1) 1s both, p linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0px 85vh; }
  .hero-anim.sd .ip-job__frame { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .hero-anim.sd .ip-job__img { animation: p linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .hero-anim.sd .ip-quote { animation: p linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
  .ip-prep__pics { view-timeline: --ippics block; }
  .hero-anim.sd .ip-prep__ph { animation: p linear both; animation-timeline: --ippics; animation-range: cover 0% cover 100%; }
  .hero-anim.sd .ip-prep__li { animation: p linear both; animation-timeline: view(); animation-range: entry 100% cover 45%; }
  .hero-anim.sd .ip-damp__steps { animation: p linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  .hero-anim.sd .ip-prep__frame { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  .hero-anim.sd .ip-deck.is-deck .ip-deck__stack { animation: p linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  .hero-anim.sd .ip-deck.is-deck .ip-job__frame { animation: none; }
  .hero-anim.sd .ip-qa__head { animation: p linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
  .hero-anim.sd .ip-qa__frame { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .hero-anim.sd .ip-qa__img { animation: p linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .hero-anim.sd .ip-damp__say { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
}
@media (prefers-reduced-motion: reduce) {
  .ip-deck.is-deck .ip-job, .ip-deck.is-deck .ip-job::after, .ip-deck__tab, .ip-deck__tab::after { transition: none; }
  .ip-deck.is-deck .ip-job.is-out, .ip-deck.is-deck .ip-job.is-in { animation: none; }
}

/* ================================================================== /roofing/ */
.page-roofing blockquote { margin: 0; }

/* ------------------------------------------------------------------ F1 opening: P76, his roofer setting ridge tiles beside a chimney, full
   bleed with the words over it. The photo is 720x960 and its subject fills it (the man at the ridge on the left, the stack and pots
   on the right), so on a phone and tablet it runs the full width at its own shape and the words start under the man's feet, the
   shade starting there too; at a desktop it bleeds off the top, right and foot from half way, at or under its own size, with
   nothing laid over it. */
.page-roofing .rf-hero { position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: var(--white); }
.rf-hero__ph { position: absolute; z-index: -1; left: 0; right: 0; top: 0; aspect-ratio: 3 / 4; overflow: clip; background: var(--ink-3); }
.rf-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform-origin: 50% 0; }
.rf-hero__ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,20,20,0) 0, rgba(20,20,20,0) 63%, rgba(20,20,20,.62) 67.5%, rgba(20,20,20,.9) 73%, rgba(20,20,20,.95) 86%, #141414 100%);
}
.rf-hero__words { position: relative; padding-top: calc(100vw * .846); padding-bottom: 26px; }
.rf-hero__peak { display: block; width: 52px; height: 16px; overflow: visible; fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; }
.rf-hero__eyebrow {
  display: flex; flex-wrap: wrap; column-gap: 8px; margin-top: 10px; font-family: var(--f-head); font-weight: 700; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; color: #E4E5E3;
}
.rf-hero__biz { color: var(--white); }
.rf-hero__dot { color: var(--orange); }
.rf-hero__h1 { margin-top: 6px; font-weight: 900; letter-spacing: -0.02em; text-wrap: initial; }
.rf-hero__l1 { display: block; font-size: clamp(34px, 9.4vw, 64px); line-height: .98; }
.rf-hero__l2 { display: block; margin-top: 6px; font-size: clamp(19px, 5vw, 30px); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; color: #E4E5E3; }
.rf-hero__w { display: inline-block; }
.rf-hero__p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #E4E5E3; max-width: 56ch; }
.rf-hero__ask { display: grid; gap: 10px; margin-top: 16px; }
.rf-hero__ask .btn { width: 100%; }
.rf-hero__chips { margin-top: 12px; }
.page-roofing .rf-hero .chip { color: var(--white); background: rgba(20,20,20,.62); border-color: rgba(249,124,10,.75); font-size: 13px; }
.page-roofing .rf-close .chip { color: var(--white); background: var(--ink-2); border-color: rgba(249,124,10,.75); font-size: 13px; }
@media (min-width: 600px) {
  .rf-hero__ask { grid-template-columns: auto auto; justify-content: start; }
  .rf-hero__ask .btn { width: auto; }
  .rf-hero__p { font-size: 17px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .rf-hero__words { padding-top: calc(100vw * .83); }
  .rf-hero__l1 { font-size: clamp(48px, 7.4vw, 64px); }
  .rf-hero__l2 { font-size: clamp(24px, 3.4vw, 30px); }
}
@media (min-width: 1024px) {
  .page-roofing .rf-hero { display: flex; align-items: center; min-height: clamp(600px, calc(100svh - var(--hdr)), 900px); }
  .rf-hero__ph { left: auto; bottom: 0; width: min(50%, 760px); aspect-ratio: auto; }
  .rf-hero__ph::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); }
  .rf-hero__ph::after { content: none; }
  .rf-hero__img { object-position: 50% 6%; }
  .rf-hero__words { padding-top: 56px; padding-bottom: 56px; }
  .rf-hero__words > * { max-width: min(560px, calc(50vw - max(var(--pad), (100vw - var(--max)) / 2) - 48px)); }
  .rf-hero__eyebrow { font-size: 13px; margin-top: 14px; }
  .rf-hero__h1 { margin-top: 12px; }
  .rf-hero__l1 { font-size: clamp(54px, 5.4vw, 88px); }
  .rf-hero__l2 { margin-top: 10px; font-size: clamp(26px, 2.2vw, 36px); }
  .rf-hero__p { margin-top: 18px; font-size: 18px; }
  .rf-hero__ask { margin-top: 26px; }
  .rf-hero__chips { margin-top: 18px; }
}

/* ------------------------------------------------------------------ F1b one roof stripped and rebuilt: the lean-to P21 -> P22 -> P24.
   With JS off, under reduced motion or on a short screen: the heading, then the three as a strip, each with its label and caption.
   Pinned: the photos fill the screen between the heading and the labels on a phone or tablet (nothing laid over them); at a desktop
   the heading and the three labels stand as a stepper on his black at the left and the roof bleeds off the right. */
.page-roofing .rf-open { position: relative; background: var(--ink); color: var(--white); padding: var(--sec) 0; }
.rf-open__stage { position: relative; }
.rf-open__h2 { font-size: var(--t-h2); max-width: 20ch; }
.rf-open__fig { padding: 22px var(--pad) 0; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.rf-open__run { display: grid; gap: 24px; }
.rf-st__ph { position: relative; overflow: clip; aspect-ratio: 4 / 3; background: var(--ink-3); }
.rf-st__img { width: 100%; height: 100%; object-fit: cover; }
.rf-st--1 .rf-st__img { object-position: 50% 62%; }
.rf-st--2 .rf-st__img { object-position: 50% 70%; }
.rf-st--3 .rf-st__img { object-position: 50% 92%; }
.rf-st__lab {
  position: relative; display: flex; align-items: center; gap: 10px; margin-top: 10px; font-family: var(--f-head); font-weight: 800;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25;
}
.rf-st__tick { flex: none; width: 22px; height: 4px; background: var(--orange); }
.rf-st__cap { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--mute-d); max-width: 60ch; }
@media (min-width: 600px) {
  .rf-open__run { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .rf-st__ph { aspect-ratio: 3 / 4; }
  .rf-st--2 .rf-st__img { object-position: 50% 50%; }
  .rf-st--3 .rf-st__img { object-position: 50% 88%; }
}
@media (min-width: 1024px) {
  .rf-open__fig { padding-top: 40px; }
  .rf-open__run { gap: 24px; }
}

/* the pin: one screen held while about a screen of page goes by; pages.js sets data-state (1, 2, 3) on the run at 0.28 and 0.70
   of the way through, and the photos wipe on --p from the section's own timeline */
@media (min-height: 740px), (min-width: 1024px) and (min-height: 620px) {
  .hero-anim.sd .rf-open { height: 192vh; height: 192svh; padding: 0; }
  .hero-anim.sd .rf-open__stage {
    --side: max(var(--pad), calc((100% - var(--max)) / 2));
    position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr)); overflow: clip; display: grid;
    grid-template-columns: var(--side) repeat(3, minmax(0, 1fr)) var(--side); grid-template-rows: auto minmax(0, 1fr) auto auto;
  }
  .hero-anim.sd .rf-open__fig, .hero-anim.sd .rf-open__run, .hero-anim.sd .rf-st { display: contents; }
  .hero-anim.sd .rf-open__head { grid-column: 2 / 5; grid-row: 1; width: auto; max-width: none; margin: 0; padding: 20px 0 16px; }
  .hero-anim.sd .rf-open__h2 { font-size: clamp(25px, 2.6vw + 15px, 46px); }
  .hero-anim.sd .rf-st__ph { grid-column: 1 / -1; grid-row: 2; z-index: 0; height: 100%; aspect-ratio: auto; }
  .hero-anim.sd .rf-st__img { object-position: 50% 62%; }
  .hero-anim.sd .rf-st--1 .rf-st__img { object-position: 50% 58%; }
  .hero-anim.sd .rf-st--3 .rf-st__img { object-position: 50% 80%; }
  .hero-anim.sd .rf-st__lab {
    grid-row: 3; z-index: 3; display: block; margin: 0; padding: 14px 10px 6px 0; font-size: 11.5px; color: var(--mute-d); transition: color .35s;
  }
  .hero-anim.sd .rf-st--1 .rf-st__lab { grid-column: 2; }
  .hero-anim.sd .rf-st--2 .rf-st__lab { grid-column: 3; }
  .hero-anim.sd .rf-st--3 .rf-st__lab { grid-column: 4; }
  .hero-anim.sd .rf-st__tick { position: absolute; left: 0; right: 10px; top: 0; width: auto; height: 3px; background: rgba(255,255,255,.28); }
  .hero-anim.sd .rf-st--3 .rf-st__tick { right: 0; }
  .hero-anim.sd .rf-st__tick::after {
    content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .5s cubic-bezier(.2,.75,.2,1);
  }
  .hero-anim.sd .rf-st__cap {
    grid-column: 2 / 5; grid-row: 4; z-index: 3; align-self: start; margin: 0; padding-bottom: 16px; min-height: calc(2.9em + 16px);
    opacity: 0; color: #E4E5E3; transition: opacity .3s;
  }
  .rf-open__run.is-tap .rf-st__lab { cursor: pointer; min-height: 44px; -webkit-tap-highlight-color: transparent; }
  .rf-open__run.is-tap .rf-st__lab:hover { color: #E4E5E3; }
  .rf-open__run.is-tap .rf-st__lab:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
  .rf-open__run[data-state="1"] .rf-st--1 .rf-st__lab, .rf-open__run[data-state="2"] .rf-st--2 .rf-st__lab,
  .rf-open__run[data-state="3"] .rf-st--3 .rf-st__lab { color: var(--white); }
  .rf-open__run[data-state="1"] .rf-st--1 .rf-st__tick::after, .rf-open__run[data-state="2"] .rf-st--1 .rf-st__tick::after,
  .rf-open__run[data-state="2"] .rf-st--2 .rf-st__tick::after, .rf-open__run[data-state="3"] .rf-st__tick::after { transform: scaleX(1); }
  .rf-open__run[data-state="1"] .rf-st--1 .rf-st__cap, .rf-open__run[data-state="2"] .rf-st--2 .rf-st__cap,
  .rf-open__run[data-state="3"] .rf-st--3 .rf-st__cap { opacity: 1; }
  /* the joists go on across the old roof from the left, then the tiles come up from the eaves; an orange edge leads each */
  .hero-anim.sd .rf-st--2 .rf-st__ph { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
  .hero-anim.sd .rf-st--3 .rf-st__ph { clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0); }
  .hero-anim.sd .rf-st--2 .rf-st__img, .hero-anim.sd .rf-st--3 .rf-st__img { transform: scale(calc(1.08 - var(--p) * .08)); }
  .hero-anim.sd .rf-st--2 .rf-st__ph::after, .hero-anim.sd .rf-st--3 .rf-st__ph::after {
    content: ""; position: absolute; background: var(--orange); opacity: calc((1 - var(--p)) * 8); pointer-events: none;
  }
  .hero-anim.sd .rf-st--2 .rf-st__ph::after { top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 5px; margin-left: -5px; }
  .hero-anim.sd .rf-st--3 .rf-st__ph::after { left: 0; right: 0; top: calc((1 - var(--p)) * 100%); height: 5px; }
}
/* under 768 the call rail is up while the roof is rebuilt: the caption keeps clear of it */
@media (max-width: 767px) and (min-height: 740px) {
  .hero-anim.sd .rf-st__cap { padding-bottom: calc(var(--rail) + 14px); min-height: calc(2.9em + var(--rail) + 14px); }
}
@media (min-width: 600px) and (min-height: 740px) {
  .hero-anim.sd .rf-st__lab { font-size: 12.5px; }
  .hero-anim.sd .rf-st__cap { font-size: 13.5px; }
}
/* a desktop: the heading and the three states as a stepper on his black at the left, the roof bleeding off the top, right and foot */
@media (min-width: 1024px) and (min-height: 620px) {
  .hero-anim.sd .rf-open__stage {
    grid-template-columns: var(--side) minmax(0, 4.4fr) clamp(40px, 4vw, 72px) minmax(0, 6.6fr);
    grid-template-rows: minmax(0, 1fr) auto auto auto auto auto minmax(0, 1fr);
  }
  .hero-anim.sd .rf-open__head { grid-column: 2; grid-row: 2; padding: 0 0 26px; }
  .hero-anim.sd .rf-st__ph { grid-column: 4; grid-row: 1 / -1; }
  .hero-anim.sd .rf-st__img { object-position: 50% 55%; }
  .hero-anim.sd .rf-st--1 .rf-st__lab, .hero-anim.sd .rf-st--2 .rf-st__lab, .hero-anim.sd .rf-st--3 .rf-st__lab { grid-column: 2; }
  .hero-anim.sd .rf-st--1 .rf-st__lab { grid-row: 3; }
  .hero-anim.sd .rf-st--2 .rf-st__lab { grid-row: 4; }
  .hero-anim.sd .rf-st--3 .rf-st__lab { grid-row: 5; }
  .hero-anim.sd .rf-st__lab { display: flex; align-items: center; min-height: 50px; padding: 4px 0 4px 22px; font-size: 13.5px; }
  .hero-anim.sd .rf-st__tick, .hero-anim.sd .rf-st--3 .rf-st__tick { left: 0; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .hero-anim.sd .rf-st__tick::after { transform: scaleY(0); transform-origin: 50% 0; }
  .rf-open__run[data-state="1"] .rf-st--1 .rf-st__tick::after, .rf-open__run[data-state="2"] .rf-st--1 .rf-st__tick::after,
  .rf-open__run[data-state="2"] .rf-st--2 .rf-st__tick::after, .rf-open__run[data-state="3"] .rf-st__tick::after { transform: scaleY(1); }
  .hero-anim.sd .rf-st__cap { grid-column: 2; grid-row: 6; padding: 18px 0 0 22px; min-height: calc(4.4em + 18px); font-size: 14.5px; max-width: 40ch; }
}

/* ------------------------------------------------------------------ F2 flat roofs: one roof per swipe */
.page-roofing .rf-flat { overflow: clip; }
.rf-flat__h2 { font-size: var(--t-h2); max-width: 19ch; }
.rf-flat__p { margin-top: 14px; color: #2f302e; max-width: 58ch; }
.rf-flat__body { margin-top: 20px; }
.rf-flat__row {
  --edge: max(var(--pad), calc((100% - var(--max)) / 2));
  display: flex; gap: 14px; padding: 0 var(--edge) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--edge);
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.rf-flat__row::-webkit-scrollbar { display: none; }
.rf-flat__row:focus-visible { outline-offset: -3px; }
.rf-card { flex: 0 0 70%; max-width: 440px; scroll-snap-align: start; scroll-snap-stop: always; }
.rf-card__frame { position: relative; overflow: clip; aspect-ratio: 4 / 5; background: var(--render-2); }
.rf-card__img { width: 100%; height: 100%; object-fit: cover; }
.rf-card__cap { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--mute-l); }
.rf-flat__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.rf-flat__track { position: relative; flex: 1 1 140px; height: 3px; background: var(--rule-l); }
.rf-flat__fill { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(calc(.17 + var(--p) * .83)); }
.rf-flat__hint { flex: none; font-size: 13px; color: var(--mute-l); }
.rf-flat__nav { display: none; gap: 8px; }
.rf-flat__btn {
  width: 50px; height: 50px; display: grid; place-items: center; padding: 0; border: 2px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, opacity .2s;
}
.rf-flat__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.rf-flat__btn:hover { background: var(--ink); color: var(--white); }
.rf-flat__btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--ink); }
@media (min-width: 600px) {
  .rf-card { flex-basis: 44%; }
  .js .rf-flat__nav { display: flex; }
}
@media (min-width: 1024px) {
  .rf-flat__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; }
  .rf-flat__head .tag { grid-column: 1 / -1; justify-self: start; }
  .rf-flat__p { margin-top: 0; padding-bottom: 6px; }
  .rf-flat__body { margin-top: 44px; }
  .rf-flat__row { gap: 24px; }
  /* three roofs: side by side across the full measure, nothing left to swipe, so no bar or dead buttons */
  .rf-card { flex: 1 1 0; max-width: none; }
  .rf-card__frame { aspect-ratio: 1 / 1; }
  .rf-flat__bar { display: none; }
}

/* ------------------------------------------------------------------ F3 roofline (dark): the heading over a drawn gutter line, then the words
   (no photo of its own: the lean-to stages above are its proof) */
.page-roofing .rf-line { overflow: clip; }
.rf-line__in { display: grid; gap: 22px; }
.rf-line__h2 { font-size: var(--t-h2); max-width: 17ch; }
.rf-line__top { position: relative; padding-bottom: 18px; }
.rf-line__top::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(100%, 420px); height: 4px; background: var(--orange); transform-origin: 0 50%; }
.rf-line__p { color: #E4E5E3; max-width: 56ch; }
.rf-line__p + .rf-line__p { margin-top: 14px; }
@media (min-width: 1024px) {
  .rf-line__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "top text"; column-gap: clamp(40px, 5vw, 88px); align-items: end; }
  .rf-line__top { grid-area: top; padding-bottom: 26px; }
  .rf-line__text { grid-area: text; padding-bottom: 4px; }
  .rf-line__p { font-size: 17.5px; }
}

/* ------------------------------------------------------------------ F4 repairs and leaks (light), the smaller end of the same work: the
   heading, his new ridge on a pitched roof (P75), the words, then the call in a dark box */
.rf-leak__in { display: grid; gap: 18px; }
.rf-leak__h2 { font-size: var(--t-h2); max-width: 15ch; }
.rf-leak__fig { margin: 0; }
.rf-leak__ph { position: relative; overflow: clip; aspect-ratio: 16 / 10; background: var(--render-2); }
.rf-leak__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.rf-leak__cap { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--mute-l); max-width: 60ch; }
.rf-leak__p { color: #2f302e; max-width: 54ch; }
.rf-leak__p + .rf-leak__p { margin-top: 14px; }
.rf-leak__ask { padding: 18px 18px 20px; background: var(--ink-2); color: var(--white); border-left: 4px solid var(--orange); }
.rf-leak__ask :focus-visible { outline-color: var(--orange); }
.rf-leak__q { font-family: var(--f-head); font-weight: 800; font-size: clamp(19px, 1vw + 15px, 26px); line-height: 1.25; max-width: 30ch; }
.rf-leak__btn { width: 100%; padding-left: 14px; padding-right: 14px; font-size: 16px; }
.band--light .rf-leak__btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.rf-leak__acts { display: grid; gap: 10px; margin-top: 16px; }
.rf-leak__send { width: 100%; }
@media (min-width: 600px) {
  .rf-leak__btn { width: auto; padding-left: 22px; padding-right: 22px; font-size: 17px; }
  .rf-leak__acts { grid-template-columns: auto auto; justify-content: start; }
  .rf-leak__send { width: auto; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .rf-leak__ph { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .rf-leak__in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "fig top" "fig words" "fig ask";
    grid-template-rows: auto auto 1fr; column-gap: clamp(40px, 5vw, 88px); row-gap: 22px;
  }
  .rf-leak__top { grid-area: top; }
  .rf-leak__fig { grid-area: fig; align-self: start; }
  .rf-leak__ph { aspect-ratio: 4 / 5; }
  .rf-leak__words { grid-area: words; }
  .rf-leak__ask { grid-area: ask; align-self: start; padding: 26px 28px 28px; }
  .rf-leak__p { font-size: 17.5px; }
}

/* ------------------------------------------------------------------ F4 where the roof meets the wall: the case, then two customers' words */
.page-roofing .rf-wall { position: relative; overflow: clip; background: var(--ink-2); color: var(--white); padding: var(--sec) 0; }
.rf-wall__in { display: grid; gap: 14px; }
.rf-wall__h2 { font-size: var(--t-h2); max-width: 18ch; }
.rf-wall__p { color: #E4E5E3; max-width: 56ch; }
.rf-wall__links { display: flex; flex-wrap: wrap; gap: 0 26px; margin-top: 10px; }
.rf-wall__a {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--white);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.rf-wall__a:hover { color: var(--orange); }
.rf-wall__revs { display: grid; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule-d); }
.rf-wall__rev { position: relative; padding-left: 18px; }
.rf-wall__rev::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--orange); transform-origin: 50% 0; }
.rf-wall__q p { font-family: var(--f-head); font-weight: 700; font-size: clamp(18px, .6vw + 15.5px, 23px); line-height: 1.3; max-width: 40ch; }
.rf-wall__who { margin-top: 8px; font-size: 13.5px; color: var(--mute-d); }
.rf-wall__who b { color: var(--white); font-family: var(--f-head); }
.rf-wall__job { display: block; margin-top: 2px; font-size: 12.5px; }
@media (min-width: 600px) {
  .rf-wall__revs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
/* the cream extension's rendered wall, the roof run along its top: his photo under the heading, its caption with an orange tick */
.rf-wall__fig { margin: 8px 0 4px; }
.rf-wall__ph { position: relative; overflow: clip; aspect-ratio: 3 / 2; background: var(--ink-3); }
.rf-wall__img { width: 100%; height: 100%; object-fit: cover; }
.rf-wall__cap { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--mute-d); max-width: 60ch; }
.rf-wall__tick { flex: none; width: 14px; height: 3px; background: var(--orange); transform: translateY(-3px); }
@media (min-width: 1024px) {
  .rf-wall__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "fig head" "fig say" "revs revs"; column-gap: clamp(40px, 5vw, 88px); row-gap: 18px; align-items: end; }
  .rf-wall__head { grid-area: head; }
  .rf-wall__say { grid-area: say; align-self: start; }
  .rf-wall__fig { grid-area: fig; margin: 0; align-self: center; }
  .rf-wall__revs { grid-area: revs; }
  .rf-wall__p { font-size: 17.5px; }
  .rf-wall__revs { margin-top: 48px; column-gap: clamp(40px, 5vw, 88px); }
}

/* ------------------------------------------------------------------ F5 before the ladders go up: one column of the homepage's details, set right */
.page-roofing .rf-ladder { position: relative; background: var(--white); color: var(--ink); padding: var(--sec) 0; }
.page-roofing .rf-ladder .tag { color: var(--orange-sm); }
.rf-ladder :focus-visible { outline-color: var(--ink); }
.rf-ladder__title { font-size: var(--t-h2); max-width: 22ch; }
.rf-ladder__rows { position: relative; margin-top: 20px; padding-left: 20px; border-bottom: 1px solid var(--rule-l); }
.rf-ladder__rafter { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--orange); transform-origin: 50% 0; }
.rf-ladder__aside { margin-top: 18px; padding-left: 20px; }
.rf-ladder__aside .btn { width: 100%; }
@media (min-width: 600px) { .rf-ladder__aside .btn { width: auto; } }
@media (min-width: 1024px) {
  .rf-ladder__rows { max-width: 860px; margin: 44px 0 0 auto; padding-left: 40px; }
  .rf-ladder__aside { max-width: 860px; margin: 26px 0 0 auto; padding-left: 40px; }
}

/* ------------------------------------------------------------------ F6 close: the ask across the top, then the review beside the form */
.rf-close__h2 { font-size: var(--t-h2); max-width: 16ch; }
.rf-close__lead { margin-top: 14px; }
.rf-close__p { color: #E4E5E3; max-width: 52ch; }
.rf-close__lead .btn { margin-top: 18px; }
.rf-close__tel { color: var(--white); font-weight: 700; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rf-close__tel:hover { color: var(--orange); }
.rf-close__proof { margin-top: 28px; }
.rf-rev { padding-top: 16px; border-top: 1px solid var(--rule-d); }
.rf-rev__stars { display: flex; align-items: center; gap: 10px; }
.rf-rev__five svg { display: block; width: 92px; height: 18px; fill: var(--orange); }
.rf-rev__out { font-size: 12.5px; color: var(--mute-d); }
.rf-rev__q { margin-top: 12px; }
.rf-rev__q p { font-family: var(--f-head); font-weight: 800; font-size: clamp(21px, 2vw + 14px, 38px); line-height: 1.16; max-width: 24ch; }
.rf-rev__who { margin-top: 14px; font-size: 14.5px; color: var(--mute-d); }
.rf-rev__who b { color: var(--white); font-family: var(--f-head); font-size: 16px; }
.rf-rev__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; }
.rf-rev__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px 0; background: var(--orange); vertical-align: middle; }
.rf-close__g { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 16px; }
.rf-close__g .chips { margin-top: 0; }
.rf-close__link {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-head); font-weight: 700; font-size: 16px; color: var(--white);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.rf-close__link:hover { color: var(--orange); }
.rf-close__panel { margin-top: 26px; scroll-margin-top: 18px; }
/* under 1024 the customer's words come first, straight after the questions, so no phone screen goes without his work or a review */
@media (max-width: 1023px) {
  .rf-close__in { display: flex; flex-direction: column; }
  .rf-close__proof { order: -1; margin: 0 0 30px; padding-bottom: 26px; border-bottom: 1px solid var(--rule-d); }
}
@media (min-width: 1024px) {
  .rf-close__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .rf-close__head { grid-column: 1 / 8; align-self: end; }
  .rf-close__lead { grid-column: 8 / 13; align-self: end; margin: 0 0 4px; }
  .rf-close__proof { grid-column: 1 / 6; margin-top: 56px; }
  .rf-close__panel { grid-column: 6 / 13; margin-top: 56px; }
}

/* on a phone the headings take the full measure, so none runs a line longer than it needs to */
@media (max-width: 599px) {
  .page-roofing .rf-open__h2, .page-roofing .rf-flat__h2, .page-roofing .rf-leak__h2, .page-roofing .rf-line__h2, .page-roofing .rf-wall__h2,
  .page-roofing .rf-ladder__title, .page-roofing .rf-close__h2 { max-width: none; }
}

/* ================================================================== /roofing/ motion (html.hero-anim only) */

/* the opening: the roof's pitch is drawn, then the two words slide in from the left inside their own lines, the rest sideways after */
.hero-anim .rf-hero__peak path { stroke-dasharray: 1; animation: rfDraw .7s cubic-bezier(.6,0,.2,1) 0s both; }
.hero-anim .rf-hero__w { overflow: clip; overflow-clip-margin: .12em; vertical-align: top; }
.hero-anim .rf-hero__w > span { display: inline-block; animation: rfFromL .7s cubic-bezier(.2,.75,.2,1) .1s both; }
.hero-anim .rf-hero__w + .rf-hero__w > span { animation-delay: .18s; }
.hero-anim .rf-hero__eyebrow, .hero-anim .rf-hero__l2, .hero-anim .rf-hero__p, .hero-anim .rf-hero__ask, .hero-anim .rf-hero__chips { animation: rfSide .45s cubic-bezier(.2,.75,.2,1) both; }
.hero-anim .rf-hero__eyebrow { animation-delay: .05s; }
.hero-anim .rf-hero__l2 { animation-delay: .16s; }
.hero-anim .rf-hero__p { animation-delay: .22s; }
.hero-anim .rf-hero__ask { animation-delay: .28s; }
.hero-anim .rf-hero__chips { animation-delay: .34s; }
/* as the page leaves the hero the roof sinks back at its own depth and the words lift away faster */
.hero-anim .rf-hero__img { transform: translateY(calc(var(--p) * 6%)) scale(calc(1 + var(--p) * .06)); }
.hero-anim .rf-hero__words { transform: translateY(calc(var(--p) * -34px)); }
@keyframes rfDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rfFromL { from { transform: translateX(-104%); } to { transform: none; } }
@keyframes rfSide { from { transform: translateX(-18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* the formulas each piece reads from --p */
.hero-anim.sd .rf-card__img { transform: translateY(calc((.5 - var(--p)) * 8%)) scale(1.1); }
.hero-anim.sd .rf-ladder__rafter { transform: scaleY(var(--p)); }
.hero-anim.sd .rf-wall__rev { transform: translateX(calc((1 - var(--p)) * -36px)); opacity: calc(.3 + var(--p) * .7); }
.hero-anim.sd .rf-wall__rev::before { transform: scaleY(var(--p)); }
.hero-anim.sd .rf-rev { transform: translateX(calc((1 - var(--p)) * -32px)); }
/* the close: the review's column drifts at its own depth beside the form, which holds still where it is filled in */
.hero-anim.sd .rf-close__proof { transform: translateY(calc((.5 - var(--p)) * 40px)); }
/* the stars fill left to right as the review comes in, the count reached before the words are read */
.hero-anim.sd .rf-rev__five svg { clip-path: inset(0 calc((1 - min(1, var(--p) * 1.4)) * 100%) 0 0); }
/* the stripped roof is pushed in on as the new joists come across it */
.hero-anim.sd .rf-st--1 .rf-st__img { transform: scale(calc(1 + var(--p) * .07)); }
/* flat roofs: each roof lifts into place as the thumb brings it in from the right, the next one waiting behind */
.hero-anim.sd .rf-card__frame { transform-origin: 50% 100%; transform: scale(calc(.9 + var(--p) * .1)); opacity: calc(.55 + var(--p) * .45); }
/* repairs: the new ridge is uncovered from the top down, the way it runs, and drifts inside its frame */
.hero-anim.sd .rf-leak__ph { clip-path: inset(0 0 calc((1 - var(--p)) * 40%) 0); }
.hero-anim.sd .rf-leak__img { transform: translateY(calc((.5 - var(--p)) * 6%)) scale(1.1); }
/* leaks: the box's orange edge drawn down as it slides in */
.hero-anim.sd .rf-leak__ask { position: relative; border-left-color: transparent; transform: translateX(calc((1 - var(--p)) * -28px)); }
.hero-anim.sd .rf-leak__ask::before { content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 4px; background: var(--orange); transform-origin: 50% 0; transform: scaleY(var(--p)); }
/* the roofline: a gutter line runs along under the heading as the thumb brings it up, the words riding at their own depth */
.hero-anim.sd .rf-line__top::after { transform: scaleX(var(--p)); }
.hero-anim.sd .rf-line__text { transform: translateY(calc((.5 - var(--p)) * 36px)); }
/* the wall: the case rides at its own depth while the two reviews slide in beside it */
.hero-anim.sd .rf-wall__head { transform: translateY(calc((.5 - var(--p)) * 30px)); }
/* the extension opens out of a slot, the wall easing back to its size, then sliding past at its own depth */
.hero-anim.sd .rf-wall__ph { clip-path: inset(calc((1 - var(--p)) * 20%) 0); }
.hero-anim.sd .rf-wall__img { transform: translateY(calc((.5 - var(--p)) * 6%)) scale(1.14); }
.hero-anim.sd .rf-wall__tick { transform: translateY(-3px) scaleX(var(--p)); transform-origin: 0 50%; }

@supports (animation-timeline: view()) {
  .hero-anim .rf-hero__img, .hero-anim .rf-hero__words { animation: p linear both; animation-timeline: scroll(root); animation-range: 0px 85vh; }
  .rf-open { view-timeline: --rfrun block; }
  @media (min-height: 740px), (min-width: 1024px) and (min-height: 620px) {
    .hero-anim.sd .rf-st--2 .rf-st__ph { animation: p linear both; animation-timeline: --rfrun; animation-range: contain 12% contain 40%; }
    .hero-anim.sd .rf-st--3 .rf-st__ph { animation: p linear both; animation-timeline: --rfrun; animation-range: contain 54% contain 84%; }
    .hero-anim.sd .rf-st--1 .rf-st__ph { animation: p linear both; animation-timeline: --rfrun; animation-range: contain 0% contain 40%; }
  }
  .hero-anim.sd .rf-leak__ph { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  .hero-anim.sd .rf-leak__img { animation: p linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .rf-flat { timeline-scope: --rfx; }
  .rf-flat__row { scroll-timeline: --rfx inline; view-timeline: --rfrow block; }
  .hero-anim .rf-flat__fill { animation: p linear both; animation-timeline: --rfx; }
  .hero-anim.sd .rf-card__img { animation: p linear both; animation-timeline: --rfrow; animation-range: cover 0% cover 100%; }
  .hero-anim.sd .rf-card { animation: p linear both; animation-timeline: view(inline); animation-range: entry 0% entry 100%; }
  .hero-anim.sd .rf-leak__ask { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .hero-anim.sd .rf-line__top { animation: p linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
  .hero-anim.sd .rf-line__text { animation: p linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .hero-anim.sd .rf-wall__head { animation: p linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .hero-anim.sd .rf-wall__img { animation: p linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .hero-anim.sd .rf-wall__ph { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  .hero-anim.sd .rf-wall__tick { animation: p linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .rf-ladder__rows { view-timeline: --rfqa block; }
  .hero-anim.sd .rf-ladder__rafter { animation: p linear both; animation-timeline: --rfqa; animation-range: entry 5% entry 100%; }
  .hero-anim.sd .rf-rev { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  .hero-anim.sd .rf-wall__rev { animation: p linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .hero-anim.sd .rf-close__proof { animation: p linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
}

/* ================================================================== /contact/ */
.page-contact blockquote { margin: 0; }

/* ------------------------------------------------------------------ C1 opening: his number the largest thing on the screen, over his own
   render. Phone: the wall in a band at the top, the words on ink below it. 600-1023: the wall full height, the words at its foot.
   1024 up: the wall runs edge to edge under the words, scrimmed dark behind them and clear over the outrigger and the sky
   (Jordon: a full-bleed photo with the heading over the top). The number is big but never a billboard (Jordon: slightly too big). */
.page-contact .ct-open { position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: var(--white); }
.ct-open__fig { position: absolute; inset: 0; z-index: 0; }
.ct-open__media { position: absolute; left: 0; right: 0; top: 0; height: 56vh; height: 56svh; overflow: clip; background: var(--ink-3); }
.ct-open__media picture { display: block; width: 100%; height: 100%; }
.ct-open__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 20%; }
.ct-open__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,20,20,.06) 0, rgba(20,20,20,.06) 30%, rgba(20,20,20,.45) 52%, rgba(20,20,20,.86) 68%, rgba(20,20,20,.95) 80%, #141414 100%);
}
/* the straight edge the wall is ruled in with on load: one line of his orange, gone once the coat is on (no JS: never shown) */
.ct-open__edge { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; z-index: 2; border-left: 4px solid var(--orange); opacity: 0; pointer-events: none; }
.ct-open__cap { position: absolute; left: var(--pad); right: var(--pad); bottom: 18px; font-size: 12.5px; line-height: 1.45; color: var(--mute-d); max-width: 46ch; }
.ct-open__in { position: relative; z-index: 1; padding-top: 40vh; padding-top: 40svh; padding-bottom: 80px; }
.ct-open__eyebrow { font-family: var(--f-head); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; color: #E4E5E3; }
.ct-open__biz { color: var(--white); }
.ct-open__dot { color: var(--orange); }
.ct-open__h1 { margin-top: 8px; font-size: clamp(27px, 2.2vw + 14px, 46px); font-weight: 900; line-height: 1.02; letter-spacing: -0.015em; text-wrap: initial; }
.ct-open__l { display: block; }
.ct-open__p { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: #E4E5E3; max-width: 52ch; }
.ct-open__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 16px; }
.ct-num {
  position: relative; display: inline-block; padding-bottom: 8px; font-family: var(--f-head); font-weight: 900;
  font-size: clamp(34px, 2.3vw + 25px, 58px); line-height: 1; letter-spacing: -0.01em; color: var(--white); text-decoration: none; white-space: nowrap;
}
.ct-num::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--orange); transform-origin: 0 50%; }
.ct-num:hover { color: var(--orange); }
.ct-open__call { width: 100%; }
.ct-open__chips { margin-top: 14px; }
.page-contact .ct-open .chip { color: var(--white); background: rgba(20,20,20,.62); border-color: rgba(249,124,10,.75); font-size: 13px; }
@media (min-width: 600px) {
  .ct-open__call { width: auto; }
  .ct-open__p { font-size: 17px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .page-contact .ct-open { display: flex; align-items: flex-end; min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr)); }
  .ct-open__media { height: 100%; }
  .ct-open__img { object-position: 46% 50%; }
  .ct-open__media::after {
    background: linear-gradient(0deg, rgba(20,20,20,.97) 0, rgba(20,20,20,.9) 46%, rgba(20,20,20,.5) 60%, rgba(20,20,20,.06) 78%);
  }
  .ct-open__in { padding-top: 34vh; padding-top: 34svh; padding-bottom: 78px; }
  .ct-open__words { max-width: 640px; }
}
@media (min-width: 1024px) {
  .page-contact .ct-open { display: flex; align-items: center; min-height: clamp(620px, calc(100svh - var(--hdr)), 900px); }
  .ct-open__media { left: 0; height: 100%; }
  .ct-open__img { object-position: 50% 50%; }
  .ct-open__media::after {
    background: linear-gradient(90deg, rgba(20,20,20,.9) 0, rgba(20,20,20,.8) 44%, rgba(20,20,20,.5) 57%, rgba(20,20,20,.06) 74%),
                linear-gradient(0deg, rgba(20,20,20,.5) 0, rgba(20,20,20,0) 24%);
  }
  .ct-open__cap {
    left: auto; right: var(--pad); bottom: 26px; max-width: 32ch; padding: 8px 12px; background: rgba(20,20,20,.86); color: #E4E5E3; font-size: 13px;
  }
  .ct-open__in { padding-top: 56px; padding-bottom: 72px; }
  .ct-open__words { max-width: min(640px, calc(50vw - var(--pad))); }
  .ct-open__eyebrow { font-size: 13px; }
  .ct-open__h1 { margin-top: 12px; }
  .ct-open__p { margin-top: 16px; font-size: 18px; max-width: 46ch; }
  .ct-open__ask { margin-top: 26px; }
  .ct-open__chips { margin-top: 20px; }
}
@media (min-width: 1280px) {
  .ct-open__media::after {
    background: linear-gradient(90deg, rgba(20,20,20,.9) 0, rgba(20,20,20,.8) 42%, rgba(20,20,20,.5) 54%, rgba(20,20,20,.06) 70%),
                linear-gradient(0deg, rgba(20,20,20,.5) 0, rgba(20,20,20,0) 24%);
  }
}

/* ------------------------------------------------------------------ C2 the enquiry: the homepage's form, the four things it asks
   beside it, marked off as each is answered (pages.js reads the form's own step count). #ct-ask is where every ask on the page lands. */
.ct-form__h2 { font-size: var(--t-h2); max-width: 20ch; }
.ct-form__p { margin-top: 14px; color: #2f302e; max-width: 54ch; }
.ct-say { position: relative; margin-top: 16px; padding-left: 16px; }
.ct-say::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; background: var(--orange); transform-origin: 50% 0; }
.ct-say__q p { font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); max-width: 34ch; }
.ct-say__who { margin-top: 4px; font-size: 13.5px; color: var(--mute-l); }
.ct-say__who b { color: var(--ink); font-family: var(--f-head); }
.ct-need { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 20px; counter-reset: need; }
.ct-need__v { display: block; margin-top: 3px; font-size: 13px; letter-spacing: .04em; color: var(--orange-sm); }
.ct-need__v:empty { display: none; }
.js .ct-need__li.has-v .ct-need__box::after { transform: none; }
.ct-need__li {
  position: relative; padding-top: 13px; counter-increment: need;
  font-family: var(--f-head); font-weight: 800; font-size: 15px; line-height: 1.2; color: var(--ink); transition: color .3s;
}
.ct-need__li::before { content: counter(need, decimal-leading-zero); display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .12em; color: var(--orange-sm); }
.ct-need__box { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--rule-l); transition: background-color .3s; }
.ct-need__box::after {
  content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s cubic-bezier(.2,.75,.2,1);
}
.js .ct-need__li.is-on .ct-need__box { background: var(--ink); }
.js .ct-need__li.is-done .ct-need__box::after { transform: none; }
.js .ct-need__li.is-done { color: var(--mute-l); }
.ct-form__panel { margin-top: 22px; color: var(--white); }
.ct-form__panel :focus-visible { outline-color: var(--orange); }
.page-contact .ct-form__panel .btn--solid:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
/* on a phone the four fold into one line of tape above the panel's own step bar: four bars, the current one named, the carried
   postcode at the right (with JS off all four stay named, two by two) */
@media (max-width: 599px) {
  .js .ct-need { position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 6px; margin-top: 18px; padding-bottom: 28px; }
  .js .ct-need__li { position: static; padding-top: 0; }
  .js .ct-need__box { position: relative; display: block; height: 4px; }
  .js .ct-need__li::before { position: absolute; left: 0; top: 14px; margin: 0; line-height: 18px; }
  .js .ct-need__li.is-on .ct-need__t { position: absolute; left: 30px; top: 14px; line-height: 18px; white-space: nowrap; }
  .js .ct-need__li:not(.is-on)::before { display: none; }
  .js .ct-need__li:not(.is-on) .ct-need__t {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .js .ct-need__v { position: absolute; right: 0; top: 14px; margin: 0; line-height: 18px; font-family: var(--f-head); font-weight: 800; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .ct-need { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ct-form__panel { margin-top: 28px; }
}
@media (min-width: 1024px) {
  .ct-form__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .ct-form__head { grid-column: 1 / 9; align-self: end; }
  .ct-form__side { display: contents; }
  .ct-form__p { grid-column: 9 / 13; grid-row: 1; align-self: end; margin: 0 0 6px; font-size: 17px; }
  .ct-form__panel { grid-column: 1 / 9; grid-row: 2; margin-top: 44px; }
  .ct-form__rail { position: sticky; top: calc(var(--hdr) + 24px); grid-column: 9 / 13; grid-row: 2; margin-top: 44px; }
  .ct-say { margin-top: 0; padding-left: 20px; }
  .ct-say__q p { font-size: 20px; line-height: 1.28; }
  .ct-say__who { font-size: 14px; }
  .ct-need { grid-template-columns: 1fr; gap: 0; margin-top: 30px; }
  .ct-need__li { padding: 16px 0 18px 28px; font-size: 18px; }
  .ct-need__box { right: auto; bottom: 0; width: 4px; height: auto; }
  .ct-need__box::after { transform: scaleY(0); transform-origin: 50% 0; }
}

/* ------------------------------------------------------------------ C3 where we work: the area said plainly, the postcode carried up into
   the form, and his flat roof above the sloping street - the frame starts on the roof and pulls back to the street and the hills
   as it comes up the screen (the page's signature). Phone: the photo full bleed and tall. 700-1023: the words side by side, the photo
   across under them. 1024 up: the words at the left, the photo square at the right. */
.page-contact .ct-area { position: relative; overflow: clip; background: var(--ink); color: var(--white); padding: var(--sec) 0; }
.ct-area__in { position: relative; padding-top: 34px; }
.ct-area__tape { position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 8px; background: var(--orange); transform-origin: 0 50%; transform: rotate(-.5deg); }
.ct-area__h2 { font-size: clamp(30px, 3.4vw + 17px, 66px); font-weight: 900; line-height: 1; letter-spacing: -0.015em; max-width: 17ch; }
.ct-area__say { margin-top: 22px; }
.ct-area__p { color: #E4E5E3; max-width: 54ch; }
.ct-pc { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 18px; }
.ct-pc__f { display: grid; gap: 6px; flex: 1 1 128px; max-width: 220px; }
.ct-pc__f[hidden] { display: none; }
.ct-pc__l { font-size: 14px; font-weight: 700; color: var(--mute-d); }
.ct-pc__in {
  width: 100%; min-height: 52px; padding: 11px 12px; border: 1px solid #6b6d6b; border-radius: 0; background: var(--ink-2); color: var(--white);
  font-family: var(--f-head); font-size: 17px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.ct-pc__in:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.ct-area__go { flex: none; padding: 12px 18px; }
.ct-pc__check { flex: none; padding: 12px 22px; }
.ct-pc [hidden], .ct-pc__out [hidden] { display: none !important; }
/* the checker's answer, right under the box: the page never moves when Check is pressed */
.ct-pc__out { margin-top: 14px; }
.ct-pc__ans { position: relative; padding: 4px 0 2px 18px; }
.ct-pc__ans::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); transform-origin: 50% 0; }
.ct-pc__ans[data-ans="bad"]::before { background: var(--mute-d); }
.ct-pc__say { display: grid; gap: 4px; margin: 0; }
.ct-pc__code { font-family: var(--f-head); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d); }
.ct-pc__code:empty { display: none; }
.ct-pc__line { font-family: var(--f-head); font-size: clamp(19px, .6vw + 16px, 24px); font-weight: 800; line-height: 1.2; color: var(--white); max-width: 30ch; }
.ct-pc__ans[data-ans="no"] .ct-pc__line, .ct-pc__ans[data-ans="bad"] .ct-pc__line { font-family: var(--f-body); font-size: var(--t-body); font-weight: 600; line-height: 1.5; color: #E4E5E3; max-width: 46ch; }
.ct-pc__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ct-pc__acts .btn { flex: 1 1 auto; padding: 12px 18px; }
@media (min-width: 700px) { .ct-pc__acts .btn { flex: 0 1 auto; } }
@media (min-width: 700px) {
  .ct-area__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; padding-top: 44px; }
  .ct-area__head { grid-column: 1 / 8; }
  .ct-area__say { grid-column: 8 / 13; margin: 0 0 8px; }
}
@media (min-width: 1024px) {
  .ct-area__in { padding-top: 52px; }
  .ct-area__p { font-size: 17.5px; }
}

/* ------------------------------------------------------------------ C4 after you get in touch: three steps down one line, each lit as it
   is reached, a review beside them */
.page-contact .ct-next { overflow: clip; }
.ct-next__h2 { font-size: var(--t-h2); max-width: 18ch; }
.ct-steps { position: relative; margin-top: 28px; padding-left: 40px; }
.ct-steps__line { position: absolute; left: 9px; top: 10px; bottom: 10px; width: 3px; background: var(--rule-l); }
.ct-steps__fill { position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0; }
.ct-steps__ol { display: grid; gap: 34px; }
.ct-step { position: relative; }
.ct-step__mark { position: absolute; left: -40px; top: 1px; width: 21px; height: 21px; background: var(--render); border: 3px solid var(--ink); }
.ct-step__mark::after { content: ""; position: absolute; inset: 3px; background: var(--orange); }
.ct-step__h { font-size: var(--t-h3); line-height: 1.12; }
.ct-step__p { margin-top: 8px; color: #2f302e; max-width: 50ch; }
.ct-step__go {
  padding: 12px 0; color: var(--ink); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--orange-sm); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.ct-step__go:hover { color: var(--orange-sm); }
/* P62, the gable from the scaffold, beside the steps: the page's signature pull-back (phone: full bleed and tall, straight under the
   heading; 700-1023: beside the steps; 1024 up: the right half, the steps and the review down the left) */
.ct-next__fig { margin: 26px calc(-1 * var(--pad)) 0; }
.ct-next__frame { position: relative; overflow: clip; aspect-ratio: 4 / 5; background: var(--render-2); }
.ct-next__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 38% 52%; }
.ct-next__cap { margin: 10px var(--pad) 0; font-size: 12.5px; line-height: 1.45; color: var(--mute-l); max-width: 46ch; }
.ct-next__cap::before { content: ""; display: inline-block; width: 22px; height: 3px; margin: 0 10px 4px 0; background: var(--orange); vertical-align: middle; }
.ct-rev { margin-top: 38px; padding: 22px 20px 18px; background: var(--ink); color: var(--white); border-top: 4px solid var(--orange); }
.ct-rev :focus-visible { outline-color: var(--orange); }
.ct-rev__stars { display: flex; align-items: center; gap: 10px; }
.ct-rev__five svg { display: block; width: 92px; height: 18px; fill: var(--orange); }
.ct-rev__out { font-size: 12.5px; color: var(--mute-d); }
.ct-rev__q { margin-top: 12px; }
.ct-rev__q p { font-family: var(--f-head); font-weight: 800; font-size: clamp(24px, 1.2vw + 19px, 34px); line-height: 1.16; max-width: 22ch; }
.ct-rev__who { margin-top: 14px; font-size: 14.5px; color: var(--mute-d); }
.ct-rev__who b { color: var(--white); font-family: var(--f-head); font-size: 16px; }
.ct-rev__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; }
.ct-rev__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px 0; background: var(--orange); vertical-align: middle; }
.ct-rev__g { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule-d); }
.ct-rev__g .chips { margin-top: 0; }
.ct-rev__link {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-head); font-weight: 700; font-size: 16px; color: var(--white);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.ct-rev__link:hover { color: var(--orange); }
/* on a phone the gable leads the section, so the short area band above it is never a screen without his work */
@media (max-width: 599px) {
  .ct-next__in { display: flex; flex-direction: column; }
  .ct-next__fig { order: -1; margin: calc(-1 * var(--sec)) calc(-1 * var(--pad)) 30px; }
}
@media (min-width: 600px) and (max-width: 699px) {
  .ct-next__fig { margin: 28px 0 0; max-width: 480px; }
  .ct-next__cap { margin: 10px 0 0; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .ct-next__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .ct-next__head { grid-column: 1 / 13; }
  .ct-steps { grid-column: 1 / 8; grid-row: 2; }
  .ct-next__fig { grid-column: 8 / 13; grid-row: 2; margin: 28px 0 0; }
  .ct-next__cap { margin: 10px 0 0; }
  .ct-rev { grid-column: 1 / 13; grid-row: 3; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .ct-steps { max-width: 600px; }
  .ct-rev { max-width: 560px; margin-left: auto; padding: 26px 26px 20px; }
}
@media (min-width: 1024px) {
  .ct-next__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .ct-next__head { grid-column: 1 / 7; grid-row: 1; }
  .ct-next__fig { grid-column: 8 / 13; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .ct-next__cap { margin: 12px 0 0; font-size: 13.5px; }
  .ct-steps { grid-column: 1 / 7; grid-row: 2; margin-top: 44px; padding-left: 56px; }
  .ct-steps__line { left: 10px; }
  .ct-step__mark { left: -56px; width: 23px; height: 23px; }
  .ct-steps__ol { gap: 48px; }
  .ct-step__p { font-size: 17px; }
  .ct-rev { grid-column: 1 / 7; grid-row: 3; margin: 52px 0 0; padding: 30px 30px 22px; }
}

/* ------------------------------------------------------------------ C5 our three trades: an index of rows, never the homepage's columns -
   a small photo, the trade, its line, the way to its page and an ask that carries its jobs up into the form; the fencing line
   carries Fencing */
.page-contact .ct-trades { position: relative; overflow: clip; background: var(--ink-2); color: var(--white); padding: var(--sec) 0; }
.ct-trades__h2 { font-size: var(--t-h2); max-width: 19ch; }
.ct-trades__row { margin-top: 24px; border-top: 1px solid var(--rule-d); }
.ct-trade {
  position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start;
  padding: 18px 0 12px; border-bottom: 1px solid var(--rule-d);
}
.ct-trade__ph { position: relative; overflow: clip; aspect-ratio: 1; margin-top: 4px; background: var(--ink-3); }
.ct-trade__img { width: 100%; height: 100%; object-fit: cover; }
.ct-trade__h { font-size: var(--t-h3); line-height: 1.12; }
.ct-trade__p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: #E4E5E3; }
.ct-trade__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin-top: 4px; }
.ct-trade__go {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-head); font-weight: 700; font-size: 16px; color: var(--white);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.ct-trade__go::after { content: ""; position: absolute; inset: 0; }
.ct-trade__go:focus-visible { outline: none; }
.ct-trade__go:focus-visible::after { outline: 3px solid var(--orange); outline-offset: 3px; }
.ct-trade:hover .ct-trade__go { color: var(--orange); }
.ct-trade__ask {
  position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #6b6d6b;
  font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--white); text-decoration: none; background: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.ct-trade__ask:hover { border-color: var(--orange); color: var(--orange); }
.ct-trade__ask:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.ct-trades__fence { margin-top: 24px; padding: 3px 0 3px 14px; border-left: 5px solid var(--orange); color: #E4E5E3; max-width: 56ch; }
.ct-trades__fgo {
  padding: 12px 0; color: var(--white); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.ct-trades__fgo:hover { color: var(--orange); }
@media (min-width: 600px) {
  .ct-trade { grid-template-columns: 210px minmax(0, 1fr); column-gap: 26px; padding: 22px 0 16px; }
  .ct-trade__ph { aspect-ratio: 4 / 3; margin-top: 0; }
  .ct-trade__p { font-size: 15.5px; max-width: 52ch; }
}
@media (min-width: 900px) {
  .ct-trades__row { margin-top: 40px; }
  .ct-trade { grid-template-columns: 220px minmax(0, 1fr); column-gap: clamp(28px, 3vw, 48px); align-items: center; padding: 24px 0; }
  .ct-trade__words { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(24px, 3vw, 48px); align-items: start; }
  .ct-trade__h { grid-column: 1; grid-row: 1; font-size: clamp(26px, 1vw + 17px, 34px); line-height: 1.05; }
  .ct-trade__acts { grid-column: 1; grid-row: 2; margin-top: 8px; }
  .ct-trade__p { grid-column: 2; grid-row: 1 / span 2; margin-top: 2px; }
  .ct-trades__fence { margin-top: 32px; }
}
@media (min-width: 1024px) {
  .ct-trades__h2 { max-width: 24ch; }
  .ct-trade__p { font-size: 16.5px; }
}

/* ================================================================== /contact/ motion (html.hero-anim only) */

/* the opening: his wall ruled in from the right behind a straight edge of orange, the two lines slide in from the left inside their
   own lines, the rest steps in after them, and a strip of tape is laid under his number */
.hero-anim .ct-open__media { animation: ctUncover 1.1s cubic-bezier(.6,0,.2,1) .05s both; }
.hero-anim .ct-open__edge { animation: ctEdge 1.1s cubic-bezier(.6,0,.2,1) .05s both, ctEdgeOut .45s ease 1.15s both; }
.hero-anim .ct-open__l { overflow: clip; overflow-clip-margin: .14em; }
.hero-anim .ct-open__l > span { display: inline-block; animation: ctFromL .9s cubic-bezier(.2,.75,.2,1) .3s both; }
.hero-anim .ct-open__l + .ct-open__l > span { animation-delay: .42s; }
.hero-anim .ct-open__eyebrow, .hero-anim .ct-open__p, .hero-anim .ct-open__ask, .hero-anim .ct-open__chips, .hero-anim .ct-open__cap {
  animation: ctSide .7s cubic-bezier(.2,.75,.2,1) both;
}
.hero-anim .ct-open__eyebrow { animation-delay: .15s; }
.hero-anim .ct-open__p { animation-delay: .55s; }
.hero-anim .ct-open__ask { animation-delay: .66s; }
.hero-anim .ct-open__chips { animation-delay: .78s; }
.hero-anim .ct-open__cap { animation-delay: 1s; }
.hero-anim .ct-num::after { animation: ctLay .9s cubic-bezier(.3,.7,.2,1) .95s both; }
@keyframes ctUncover { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes ctEdge { from { transform: translateX(100%); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes ctEdgeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes ctFromL { from { transform: translateX(-104%); } to { transform: none; } }
@keyframes ctSide { from { transform: translateX(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ctLay { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* an ask that lands on the form: the panel answers with one ring of his orange, so the eye finds where the choice went */
.hero-anim .ct-form__panel.is-called { animation: ctCalled 1.1s cubic-bezier(.2,.75,.2,1) both; }
@keyframes ctCalled { 0% { box-shadow: 0 0 0 0 rgba(249,124,10,0); } 18% { box-shadow: 0 0 0 6px var(--orange); } 100% { box-shadow: 0 0 0 0 rgba(249,124,10,0); } }

/* the formulas each piece reads from --p */
/* the opening at two depths as the page leaves it: the wall sinks and closes in, the words lift away faster */
.hero-anim.sd .ct-open__img { transform: translateY(calc(var(--p) * 9%)) scale(calc(1.02 + var(--p) * .08)); }
.hero-anim.sd .ct-open__words { transform: translateY(calc(var(--p) * -56px)); }
/* the four things the form asks step up one after another, the last from furthest down */
.hero-anim.sd .ct-need__li { --k: 0; transform: translateY(calc((1 - var(--p)) * (18px + var(--k) * 16px))); }
.hero-anim.sd .ct-need__li:nth-child(2) { --k: 1; }
.hero-anim.sd .ct-need__li:nth-child(3) { --k: 2; }
.hero-anim.sd .ct-need__li:nth-child(4) { --k: 3; }
/* folded into one line on a phone, the four bars are laid one after another instead, like tape */
@media (max-width: 599px) {
  .hero-anim.sd .ct-need__li { transform: none; }
  .hero-anim.sd .ct-need__box { transform-origin: 0 50%; transform: scaleX(clamp(0, var(--p) * 1.8 - var(--k) * .26, 1)); }
}
/* the review line beside the form: its bar of orange drawn down, the words in from the left a beat behind */
.hero-anim.sd .ct-say::before { transform: scaleY(var(--p)); }
.hero-anim.sd .ct-say__q, .hero-anim.sd .ct-say__who { transform: translateX(calc((1 - var(--p)) * -18px)); }
/* the area: the tape laid across, the heading and its lines drifting apart at two depths */
.hero-anim.sd .ct-area__tape { transform: rotate(-.5deg) scaleX(var(--p)); }
.hero-anim.sd .ct-area__head { transform: translateY(calc((.5 - var(--p)) * 44px)); }
.hero-anim.sd .ct-area__say { transform: translateY(calc((.5 - var(--p)) * 16px)); }
/* side by side (700-1023) the two drift in opposite directions; stacked they drift the same way at two speeds, so they never meet */
@media (min-width: 700px) { .hero-anim.sd .ct-area__say { transform: translateY(calc((.5 - var(--p)) * -18px)); } }
/* the signature, beside the next steps: the frame opens from a framed picture to its full size while the photo pulls back from
   the grey render close up to the whole gable seen off the scaffold boards - the finish first, then the job it belongs to */
.hero-anim.sd .ct-next__frame { clip-path: inset(calc((1 - var(--p)) * 8%) calc((1 - var(--p)) * 11%)); }
.hero-anim.sd .ct-next__img { transform: scale(calc(2 - var(--p))); }
/* the steps: the line drawn down them, each step in from the left, its heading lit and its square filled as it is reached */
.hero-anim.sd .ct-steps__fill { transform: scaleY(var(--p)); }
/* only the words come in; the square stays on the line */
.hero-anim.sd .ct-step__h, .hero-anim.sd .ct-step__p { transform: translateX(calc((1 - var(--p)) * -16px)); }
.hero-anim.sd .ct-step__h { color: color-mix(in srgb, var(--ink) calc(var(--p) * 100%), #5f615e); }
.hero-anim.sd .ct-step__mark::after { transform: scale(clamp(0, (var(--p) - .55) * 2.4, 1)); }
/* the review slides in from the right, its five stars filling left to right as it settles */
.hero-anim.sd .ct-rev { transform: translateX(calc((1 - var(--p)) * 44px)); }
.hero-anim.sd .ct-rev__five svg { clip-path: inset(0 calc((1 - clamp(0, (var(--p) - .25) / .65, 1)) * 100%) 0 0); }
/* the trades: each row rises as it comes on, its photo opening from the foot (on the wide index, from the left) and drifting in
   its frame */
.hero-anim.sd .ct-trade { transform: translateY(calc((1 - var(--p)) * 34px)); }
.hero-anim.sd .ct-trade__ph { clip-path: inset(calc((1 - var(--p)) * 40%) 0 0 0); }
@media (min-width: 900px) {
  .hero-anim.sd .ct-trade__ph { clip-path: inset(0 calc((1 - var(--p)) * 46%) 0 0); }
  .hero-anim.sd .ct-trade__words { transform: translateX(calc((1 - var(--p)) * 36px)); }
}
.hero-anim.sd .ct-trade__img { transform: translateY(calc((.5 - var(--p)) * 10%)) scale(1.14); }

@supports (animation-timeline: view()) {
  .hero-anim.sd .ct-open__img, .hero-anim.sd .ct-open__words { animation: p linear both; animation-timeline: scroll(root); animation-range: 0px 85vh; }
  .ct-need { view-timeline: --ctneed block; }
  .hero-anim.sd .ct-need__li { animation: p linear both; animation-timeline: --ctneed; animation-range: entry 0% cover 40%; }
  .hero-anim.sd .ct-say { animation: p linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
  .ct-area { view-timeline: --ctarea block; }
  .hero-anim.sd .ct-area__tape { animation: p linear both; animation-timeline: --ctarea; animation-range: entry 20% cover 45%; }
  .hero-anim.sd .ct-area__head, .hero-anim.sd .ct-area__say { animation: p linear both; animation-timeline: --ctarea; animation-range: cover 0% cover 100%; }
  .hero-anim.sd .ct-next__frame { animation: p linear both; animation-timeline: view(); animation-range: entry 25% cover 55%; }
  .ct-steps { view-timeline: --ctsteps block; }
  .hero-anim.sd .ct-steps__fill { animation: p linear both; animation-timeline: --ctsteps; animation-range: entry 40% cover 60%; }
  .hero-anim.sd .ct-step { animation: p linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
  .hero-anim.sd .ct-rev { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  .hero-anim.sd .ct-trade { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  .hero-anim.sd .ct-trade__img { animation: p linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-need__li, .ct-need__box, .ct-need__box::after, .ct-trade__ask { transition: none; }
}
@media (max-width: 759px) {
  .page-rendering .rd-say { margin-top: 20px; }
  .page-rendering .rd-close__p { margin-top: 20px; }
}

/* the checker's answer arrives in place: its bar is laid down, the line slides in sideways, the buttons step in after it */
@keyframes ct-pc-bar { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ct-pc-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.hero-anim .ct-pc__ans.is-new::before { animation: ct-pc-bar .35s cubic-bezier(.2,.7,.2,1) both; }
.hero-anim .ct-pc__ans.is-new .ct-pc__say { animation: ct-pc-in .4s .08s cubic-bezier(.2,.7,.2,1) both; }
.hero-anim .ct-pc__ans.is-new .ct-pc__acts .btn { animation: ct-pc-in .4s cubic-bezier(.2,.7,.2,1) both; }
.hero-anim .ct-pc__ans.is-new .ct-pc__acts .btn:nth-child(1) { animation-delay: .18s; }
.hero-anim .ct-pc__ans.is-new .ct-pc__acts .btn:nth-child(2) { animation-delay: .26s; }
