/* The consultation design, shared by /design-consultation and the /lp/<service>-consultation ad pages
 (front matter: styles: consultation). Moved out of design-consultation.html 11 Oct 2026 so the
 pages can't drift apart. */

/* The scroll story: the heading and the picture stay put on the left; the steps scroll up the right,
   centred in the space under the stuck header */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "aside steps"; gap: 0 clamp(40px, 5vw, 96px); align-items: start; padding-top: 40px; border-top: 1px solid var(--sand); }
.story__aside { grid-area: aside; position: sticky; top: 76px; min-height: calc(100vh - 76px); display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.story__head h2 { margin-top: 16px; max-width: 16em; }
.story__head p { margin-top: 16px; max-width: 36em; color: var(--slate); }
.story__media { margin: 32px 0 0; }
.story__frame { position: relative; aspect-ratio: 1920 / 1072; overflow: hidden; border-radius: var(--r-md); background: var(--indigo); }
.story__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__before { filter: saturate(.8) brightness(.95); transition: filter .8s ease; }
.story__after { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.65, 0, .35, 1); }
.story[data-stage="3"] .story__after { clip-path: inset(0 0 0 0); }
.story[data-stage="2"] .story__before { filter: saturate(.6) brightness(.8); }
.story__notes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.story__notes :is(path, ellipse) { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.65, 0, .35, 1); }
.story__notes .b { stroke: var(--brass); stroke-width: 3; }
.story__notes [data-d="2"] { transition-delay: .3s; } .story__notes [data-d="3"] { transition-delay: .6s; } .story__notes [data-d="4"] { transition-delay: 1.1s; }
.story__notes [data-d="5"] { transition-delay: 1.4s; } .story__notes [data-d="6"] { transition-delay: 1.7s; } .story__notes [data-d="7"] { transition-delay: 2.1s; }
.story[data-stage="2"] .story__notes :is(path, ellipse) { stroke-dashoffset: 0; }
.story__tag { position: absolute; z-index: 2; transform: translate(-50%, -50%); padding: 6px 12px; font-family: var(--font-heading); font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--indigo); background: var(--white); border-radius: 999px; opacity: 0; scale: .8; transition: opacity .4s ease, scale .4s ease; }
.story[data-stage="2"] .story__tag { opacity: 1; scale: 1; transition-delay: var(--t, 0s); }
.story__chip { position: absolute; z-index: 3; left: 20px; top: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--indigo); background: var(--white); border-radius: 8px; opacity: 0; translate: 0 8px; transition: opacity .4s ease, translate .4s ease; }
.story__chip svg { flex: none; color: var(--brass); }
.story[data-stage="1"] .story__chip--1, .story[data-stage="2"] .story__chip--2, .story[data-stage="3"] .story__chip--3 { opacity: 1; translate: 0 0; transition-delay: .3s; }
.story__rail { display: flex; gap: 8px; margin-top: 20px; }
.story__rail span { height: 3px; flex: 1; background: var(--sand); border-radius: 2px; overflow: hidden; }
.story__rail span::after { content: ''; display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .6s ease; }
.story[data-stage="1"] .story__rail span:nth-child(-n+1)::after, .story[data-stage="2"] .story__rail span:nth-child(-n+2)::after, .story[data-stage="3"] .story__rail span::after { transform: scaleX(1); }
.story__steps { grid-area: steps; list-style: none; padding-block: 18vh 22vh; }
.story__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s ease; }
.story__step.is-on { opacity: 1; }
.story__num { font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--brass-text); }
.story__step h3 { margin-top: 12px; }
.story__when { display: inline-flex; width: fit-content; margin-top: 16px; padding: 4px 12px; font-size: 14px; color: var(--indigo); background: var(--stone); border-radius: 999px; }
.story__step > p { margin-top: 16px; max-width: 32em; color: var(--slate); }
.story__get { margin-top: 24px; padding: 16px 20px; max-width: 32em; background: var(--stone); border-left: 3px solid var(--brass); border-radius: 0 8px 8px 0; }
.story__get strong { display: block; font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--brass-text); }
.story__get span { display: block; margin-top: 4px; color: var(--ink); }
/* Phones and tablets: heading first, then the picture sticks under the header and the steps pass under it */
@media (max-width: 1000px) {
  .story { display: block; }
  .story__aside { display: contents; }
  .story__media { position: sticky; top: 64px; z-index: 2; margin-top: 24px; padding-block: 12px; background: var(--white); }
  .story__rail { margin-top: 12px; }
  .story__chip { left: 10px; top: 10px; padding: 7px 12px; font-size: 13px; }
  .story__tag { padding: 4px 9px; font-size: 12px; }
  .story__steps { padding-block: 0 8vh; }
  .story__step { min-height: 56vh; justify-content: flex-start; padding-top: 24px; opacity: 0; }
  .story__step.is-on { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .story *, .story *::after { transition: none !important; }
}

/* What you get: an itemised list that totals £0 */
.stack { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(48px, 6vw, 112px); align-items: start; }
.stack__side .lead { margin-top: 24px; color: var(--slate); max-width: 28em; }
/* Three pages of a real proposal, fanned like a pile on a table; hovering one lifts it out */
.fan { position: relative; margin: 40px 0 0; }
.fan__pile { position: relative; aspect-ratio: 10 / 6.5; }
.fan__page { position: absolute; bottom: 0; width: 42%; aspect-ratio: 640 / 906; border-radius: 4px; overflow: hidden; background: var(--white); box-shadow: 0 20px 40px -24px rgba(15, 4, 32, .55), 0 2px 6px rgba(15, 4, 32, .12); transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease; }
.fan__page img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fan__page:nth-child(1) { left: 8%; z-index: 3; transform: rotate(-7deg); }
.fan__page:nth-child(2) { left: 29%; z-index: 2; transform: translateY(-4%) rotate(-1deg); }
.fan__page:nth-child(3) { left: 50%; z-index: 1; transform: rotate(6deg); }
.fan__page:hover { box-shadow: 0 32px 56px -24px rgba(15, 4, 32, .6), 0 2px 6px rgba(15, 4, 32, .12); }
.fan__page:nth-child(1):hover { transform: translateY(-9%) rotate(-5deg); }
.fan__page:nth-child(2):hover { transform: translateY(-12%) rotate(-1deg); }
.fan__page:nth-child(3):hover { transform: translateY(-10%) rotate(4deg); }
.fan figcaption { margin-top: 36px; font-size: 15px; color: var(--slate); }
@media (prefers-reduced-motion: reduce) { .fan__page { transition: none; } }
.bill { background: var(--white); border-radius: var(--r-md); padding: clamp(24px, 2.6vw, 40px); box-shadow: 0 24px 60px -36px rgba(15, 4, 32, .35); }
.bill__head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--indigo); font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); }
.bill__list { list-style: none; counter-reset: bill; }
.bill__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--sand); counter-increment: bill; }
.bill__list li::before { content: counter(bill, decimal-leading-zero); font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--brass-text); }
.bill__list strong { font-family: var(--font-heading); font-weight: 600; color: var(--indigo); }
.bill__list span { grid-column: 2; font-size: 15px; line-height: 1.4; color: var(--slate); }
.bill__inc em { font-style: normal; }
.bill__list .bill__inc { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--indigo); white-space: nowrap; }
.bill__list .bill__inc svg { color: var(--brass); }
.bill__total { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 18px; }
.bill__total p:first-child { font-family: var(--font-heading); font-weight: 600; color: var(--indigo); }
.bill__total p:first-child span { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--slate); }
.bill__sum { font-family: var(--font-heading); font-size: clamp(44px, 4.4vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--indigo); }
.bill .btn { margin-top: 20px; width: 100%; justify-content: center; }
.bill.is-armed .bill__list li { opacity: 0; translate: -12px 0; }
.bill.is-armed .bill__sum { opacity: 0; scale: 1.4; }
.bill.is-in .bill__list li { opacity: 1; translate: 0 0; transition: opacity .5s ease, translate .5s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 140ms); }
.bill.is-in .bill__sum { opacity: 1; scale: 1; transition: opacity .4s ease 1.1s, scale .5s cubic-bezier(.3, 1.6, .5, 1) 1.1s; }
@media (max-width: 1000px) { .stack { grid-template-columns: minmax(0, 1fr); } .fan { max-width: 440px; margin-top: 32px; } }
@media (max-width: 600px) { .bill__list li { grid-template-columns: 28px minmax(0, 1fr) auto; } .bill__inc em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Bigger projects: the design package */
.package { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(48px, 6vw, 112px); align-items: center; }
.package .panel__lead { margin-top: 24px; }
.package__list { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.package__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding-block: 16px; border-bottom: 1px solid rgba(255, 255, 255, .18); color: var(--white); }
.package__list li::before { content: ''; width: 14px; height: 2px; margin-top: 11px; background: var(--brass); }
.package__list span { display: block; margin-top: 2px; font-size: 15px; color: var(--sand); }
.package .link-light { margin-top: 28px; }
@media (max-width: 900px) { .package { grid-template-columns: minmax(0, 1fr); } }

/* Ad landing pages (/lp/<service>-consultation): the playbook's first phone screen (390 x 700) must
   hold the headline, the photo, the proof line and the form's first answers (rule 2). The points
   would push the answers below it, so phones skip them (the questions below repeat the guarantee),
   and the photo band under the words is shorter. */
@media (max-width: 700px) {
  .frame-hero--lp .hero-points { display: none; }
  /* The subheading stays on phones, under the headline (Chris, 11 Oct 2026: headline, subheading and
     photo are what stop the bounce, so all three are read first). It is also one of the three things
     that differ between the patio, driveway and garden pages. site.css hides it on other form heroes. */
  .frame-hero--lp .frame-hero__lead { display: block; margin-top: 10px; }
  /* Tightened 6 Nov 2026 so the postcode field and "Check my area" clear the cookie banner on the first
     screen. The card now laps the photo straight under the proof line, so the shade is one flat tone: the
     old fade-out would have left the proof line on bare pale paving. */
  .frame-hero--lp .frame-hero__body > div:first-child { padding-top: 88px; padding-bottom: 60px; }
  .frame-hero--lp .eyebrow { margin-bottom: 10px; }
  .frame-hero--lp .rating { margin-top: 10px; }
  .frame-hero--lp .frame-hero__shade { background: rgba(15, 4, 32, .66); }
}
/* Short phone screens (a real phone with its browser bars showing, or a small Android): the eyebrow goes
   (the headline says the same thing) and the card packs tighter. The button stays above 44px. */
@media (max-width: 700px) and (max-height: 760px) {
  .frame-hero--lp .eyebrow { display: none; }
  .frame-hero--lp .frame-hero__body > div:first-child { padding-top: 80px; }
  .frame-hero--lp .cc__form { row-gap: 8px; padding-top: 10px; }
  .frame-hero--lp .cc__btn { min-height: 48px; }
}
