/* The home page's own look: plan.md, Home. Tokens only (design\system.css); shared components in components.css. */

/* ================= hero: full-bleed field footage, the words over a navy shade, a booking per field ================= */
.hero { position: relative; display: grid; align-items: center; min-height: clamp(600px, calc(100svh - 76px), 900px); overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); }
.hero__stage { position: absolute; inset: 0; }
/* the kit's rotate, as kit.md gives it */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }

.hero__slide video, .hero__slide .kit-first { object-position: var(--pos, 50% 50%); }
/* the grade: one still layer over the stage, from the words' side, gone before the subject and the card */
.hero__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, var(--c-shade) 0%, color-mix(in srgb, var(--c-shade) 86%, transparent) 30%, color-mix(in srgb, var(--c-shade) 42%, transparent) 49%, transparent 63%);
}
/* each field's booking card lands on the far side, clear of the faces; its reticle closes in as it arrives */
.booking--hero {
  position: absolute; right: max(var(--gutter), (100% - var(--max-w)) / 2 + var(--space-3)); bottom: 14%;
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 16px));
}
.hero__slide--top .booking--hero { bottom: auto; top: 10%; }
@media (min-width: 900px) {
  .booking--hero { max-width: 430px; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); gap: var(--space-3); }
  .booking--hero .booking__sub { white-space: nowrap; }
}
.booking--hero .reticle--card { --ret-gap: calc(9px + (1 - var(--kit-in, 1)) * 22px); opacity: var(--kit-in, 1); }

.hero__words { position: relative; z-index: 4; padding-block: var(--space-5); }
.hero__copy { display: grid; gap: var(--space-4); }
/* "We grow your" on the first line, the field word on the second: every field fits two lines */
.hero__title { font-size: min(var(--fs-h1), 10.4svh); max-width: 10.9em; min-height: calc(2em * var(--lh-tight)); color: var(--c-on-ink); text-shadow: 0 2px 24px color-mix(in srgb, var(--c-ink) 45%, transparent); }
.hero__say { display: block; }
.hero__word { color: var(--c-leaf-light); opacity: calc(1 - var(--kit-swap, 0)); }
/* Part 2 (Dal's "a little wow"): the field word locked in reticle corners; they open out and fade with the old word,
   then close in on the new one (--kit-swap, 0 to 1 around each change). */
.hero__word { position: relative; }
.hero__word::after {
  content: ""; position: absolute; pointer-events: none; color: inherit;
  --wl-gap: calc(0.1em + var(--kit-swap, 0) * 0.32em); --ret-len: 0.3em; --ret-w: max(2px, 0.035em);
  inset: calc(-0.5 * var(--wl-gap)) calc(-1 * var(--wl-gap));
  background:
    linear-gradient(currentColor, currentColor) left top / var(--ret-len) var(--ret-w),
    linear-gradient(currentColor, currentColor) left top / var(--ret-w) var(--ret-len),
    linear-gradient(currentColor, currentColor) right top / var(--ret-len) var(--ret-w),
    linear-gradient(currentColor, currentColor) right top / var(--ret-w) var(--ret-len),
    linear-gradient(currentColor, currentColor) left bottom / var(--ret-len) var(--ret-w),
    linear-gradient(currentColor, currentColor) left bottom / var(--ret-w) var(--ret-len),
    linear-gradient(currentColor, currentColor) right bottom / var(--ret-len) var(--ret-w),
    linear-gradient(currentColor, currentColor) right bottom / var(--ret-w) var(--ret-len);
  background-repeat: no-repeat;
}
.hero__line { max-width: 34rem; color: color-mix(in srgb, var(--c-on-ink) 90%, transparent); font-size: var(--fs-body); }
.picker--hero { max-width: 470px; }
.stop--hero { top: var(--space-4); right: var(--space-4); }

@media (min-width: 900px) {
  /* the general shot: the handshake pushed out of the words' way */
  .hero__slide--general video, .hero__slide--general .kit-first { transform: scale(1.22); transform-origin: 0% 55%; }
}
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; background: var(--c-paper); color: var(--c-ink); }
  .hero__stage { position: relative; aspect-ratio: 16 / 10; }
  .hero__stage::after { background: none; }
  .booking--hero { right: var(--space-2); bottom: var(--space-3); max-width: min(300px, 100% - 2 * var(--space-4)); padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1); }
  .hero__slide--top .booking--hero { top: auto; bottom: var(--space-3); }
  /* the electrician's face sits low on the right of the phone's crop: his card goes up on the left */
  .hero__slide--electrical .booking--hero { top: var(--space-2); bottom: auto; left: var(--space-2); right: auto; max-width: 60%; }
  /* the lawn crew's mower fills the lower half of the phone's crop: its card goes up on the left, over the trees (the stop icon holds the top right) */
  .hero__slide--landscaping .booking--hero { top: var(--space-2); bottom: auto; left: var(--space-2); right: auto; max-width: 60%; }
  .booking--hero .booking__icon { width: 34px; height: 34px; }
  .booking--hero .booking__title { font-size: var(--fs-small); }
  .booking--hero .booking__sub { font-size: 0.8125rem; }
  .booking--hero .reticle--card { --ret-gap: calc(5px + (1 - var(--kit-in, 1)) * 14px); --ret-len: 11px; }
  .hero__words { padding-block: var(--space-4) var(--space-5); }
  /* sized so every field also fits two lines here (measured from 340 to 899 px), with no blank line kept for a third */
  .hero__title { font-size: min(var(--fs-h1), 8vw); max-width: none; min-height: calc(2em * var(--lh-tight)); color: var(--c-ink); text-shadow: none; }
  .hero__word { color: var(--c-accent-text); }
  .hero__line { color: var(--c-ink-soft); }
  .picker--hero { max-width: none; box-shadow: none; }
  .stop--hero { top: var(--space-2); right: var(--space-2); }
}

/* ================= plan: the free plan tour over a suburb from above ================= */
.tour { display: grid; gap: var(--space-3); }
.tour__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.tour__tab {
  position: relative; display: grid; gap: 4px; align-content: start; padding: var(--space-3) var(--space-3) calc(var(--space-3) + 8px);
  border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); text-align: left; font: inherit; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.tour__tab b { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; }
.tour__tab span { color: var(--c-ink-soft); font-size: var(--fs-small); }
.tour__tab:hover { border-color: color-mix(in srgb, var(--c-brand) 45%, transparent); }
.tour__tab[aria-selected="true"] { border-color: var(--c-brand); box-shadow: var(--shadow-m); }
.tour__fill { position: absolute; left: var(--space-3); right: var(--space-3); bottom: 10px; height: 3px; border-radius: 2px; background: var(--c-line); overflow: hidden; }
.tour__fill::after { content: ""; position: absolute; inset: 0; background: var(--c-leaf); transform-origin: left center; transform: scaleX(0); }
.tour__tab[aria-selected="true"] .tour__fill::after { transform: scaleX(var(--kit-fill, 1)); }
.tour__frame { position: relative; display: grid; height: clamp(460px, 40vw, 530px); border-radius: var(--radius-l); overflow: hidden; isolation: isolate; background: var(--c-ink); }
.tour__clip { position: absolute; inset: -1px; z-index: -2; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.tour__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--c-ink) 26%, transparent); }
.tour__frame .reticle--frame { --ret-gap: -16px; --ret-len: 26px; color: var(--c-on-ink); opacity: 0.85; }
.tour__panel { position: absolute; inset: 0; display: grid; align-items: center; padding: var(--space-5) var(--space-4); }
.tour__panel .scene { width: 100%; }
.tour__stop { top: var(--space-3); right: var(--space-3); }
@media (max-width: 760px) {
  .tour__tabs { grid-template-columns: 1fr; gap: var(--space-1); }
  .tour__tab { padding: var(--space-2) var(--space-3) calc(var(--space-2) + 8px); }
  .tour__tab span { display: none; }
  .tour__frame { height: 500px; }
  .tour__panel { padding: var(--space-5) var(--space-2) var(--space-3); }
}

/* ================= how: the route over a real photo ================= */
.how__frame { position: relative; border-radius: var(--radius-l); overflow: hidden; isolation: isolate; background: var(--c-paper-alt); }
.how__photo { position: absolute; inset: -1px; z-index: -1; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 60%; }
.how__frame .scene { width: 100%; height: 460px; }
.stop--frame { top: var(--space-2); right: var(--space-2); }
@media (max-width: 699px) {
  .how__frame .scene { height: 780px; }
}

/* ================= worth: the calculator, "on target" ================= */
.worth__box {
  --calc-fill: var(--c-leaf); --calc-track: var(--c-line); --calc-thumb: var(--c-paper); --calc-thumb-edge: var(--c-brand);
  --calc-focus: var(--c-leaf); --calc-ink: var(--c-ink); --calc-ink-soft: var(--c-ink-soft);
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: var(--space-5);
  padding: var(--space-5); border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m);
}
.worth__controls { display: grid; align-content: center; }
.worth__controls .calc-sliders { display: grid; gap: var(--space-4); }
.worth__result { position: relative; display: grid; gap: var(--space-3); align-content: start; }
.worth__result .calc-total { font-family: var(--font-display); padding-right: 52px; }
.worth__result .calc-total__value { color: var(--c-ink); font-weight: 700; }
.worth__picture-wrap { position: relative; margin: var(--space-2) 6px 0; padding: var(--space-3) var(--space-3) var(--space-2); border-radius: var(--radius-m); background: var(--c-paper-alt); }
.worth__picture-wrap .reticle--panel { --ret-gap: 6px; --ret-len: 18px; color: var(--c-brand); }
.worth__picture { display: block; }
.worth__months { display: flex; justify-content: space-between; padding: 0 var(--space-1); color: var(--c-ink-soft); font-size: var(--fs-small); }
.worth__result .calc-figures { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.worth__result .calc-figure { padding: var(--space-2) var(--space-3); border-left: 3px solid var(--c-leaf); background: var(--c-paper-alt); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.worth__result .calc-figure__value { font-family: var(--font-display); font-weight: 700; }
.worth__result .calc-note { color: var(--c-ink-soft); font-size: var(--fs-small); }
.stop--worth { top: 0; right: 0; }
/* the picture */
.wp { display: block; width: 100%; height: auto; overflow: visible; }
.wp__grid path { fill: none; stroke: var(--c-line); stroke-width: 1; }
.wp__grid .wp__base { stroke: color-mix(in srgb, var(--c-brand) 45%, transparent); stroke-width: 1.5; }
.wp__area { fill: color-mix(in srgb, var(--c-leaf) 14%, transparent); stroke: none; transition: d 0.5s var(--ease-out); }
.wp__step { fill: none; stroke: var(--c-accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--kit-in, 1) * 100); transition: d 0.5s var(--ease-out); }
.wp__step[data-kit-on] { opacity: 1; }
.wp__target { opacity: 0; transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out); }
.wp.is-whole .wp__target { opacity: 1; }
.wp__mark { fill: var(--c-brand); }
.wp__halo { fill: var(--c-leaf-soft); }
@media (max-width: 900px) {
  .worth__box { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-4) var(--space-3); }
}
@media (max-width: 520px) {
  .worth__result .calc-figures { grid-template-columns: 1fr; gap: var(--space-2); }
}
@media (max-width: 380px) {
  /* the $10,000 mark would meet the scale's $50,000 end */
  .worth__box .calc-scale__mark + .calc-scale__mark { display: none; }
}

/* ================= outcomes: four trade clips, each with its scene clear of faces ================= */
.outcomes__top { position: relative; }
.outcomes__top .head { margin-bottom: 72px; }
.stop--ink { top: -56px; right: 0; }
.outcomes__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.outcome { display: grid; align-content: start; gap: var(--space-3); }
.outcome__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; background: var(--c-brand-dark); }
.outcome__media > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50%) 50%; }
.outcome__media .scene { position: absolute; top: var(--space-4); }
.outcome--found { --pos: 25%; }
.outcome--found .scene { right: 3%; width: 50%; }
.outcome--answer { --pos: 60%; }
.outcome--answer .scene { right: 3%; width: 56%; }
.outcome--reviews { --pos: 40%; }
.outcome--reviews .scene { left: 3%; width: 62%; }
.outcome--work { --pos: 50%; }
.outcome--work .scene { left: 3%; width: 60%; }
.outcome__text { display: grid; gap: var(--space-1); }
.outcome__text h3 { color: var(--c-on-ink); }
.outcome__text p { color: color-mix(in srgb, var(--c-on-ink) 84%, transparent); max-width: 34rem; }
.outcome__link { justify-self: start; margin-top: var(--space-1); color: var(--c-brand-on-ink); font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--c-leaf-light); }
@media (max-width: 860px) {
  .outcomes__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .outcome__media { aspect-ratio: 5 / 7; }
  /* the electrician's face stays out of the phone's crop: his hands and the lights he is hanging stay in it */
  .outcome--found { --pos: 80%; }
  .outcome--answer { --pos: 30%; }
  .outcome--reviews { --pos: 62%; }
  .outcome__media .scene, .outcome--found .scene, .outcome--answer .scene, .outcome--reviews .scene, .outcome--work .scene { top: auto; bottom: var(--space-3); left: var(--space-3); right: var(--space-3); width: auto; }
}

/* ================= compare: the usual agency against this one ================= */
.cmp { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius-l); overflow: hidden; isolation: isolate; background: var(--c-ink); touch-action: pan-y; }
.cmp__side { position: absolute; inset: 0; }
.cmp__side--after { clip-path: inset(0 0 0 calc(var(--kit-v, 0.5) * 100%)); }
.cmp__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.cmp__side--before .cmp__photo { filter: grayscale(1) contrast(0.92) brightness(0.92); }
.cmp__side--before::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--c-ink) 22%, transparent); }
.cmp__side--after .cmp__photo { object-position: 50% 40%; }
.cmp__tag { position: absolute; z-index: 2; top: var(--space-3); padding: 6px 12px; border-radius: var(--radius-s); font-weight: 800; font-size: var(--fs-small); }
.cmp__side--before .cmp__tag { left: var(--space-3); background: var(--c-ink-soft); color: var(--c-on-ink); }
.cmp__tag--us { right: var(--space-3); background: var(--c-leaf); color: var(--c-ink); }
.cmp__cards { position: absolute; z-index: 2; bottom: var(--space-4); display: grid; gap: var(--space-2); width: min(300px, 40%); }
.cmp__side--before .cmp__cards { left: var(--space-4); }
.cmp__side--after .cmp__cards { right: var(--space-4); }
.cmp__card { display: grid; gap: 2px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-m); background: var(--c-glass); color: var(--c-ink); box-shadow: var(--shadow-m); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cmp__card b { font-size: var(--fs-ui); line-height: 1.25; }
.cmp__card span { color: var(--c-ink-soft); font-size: var(--fs-small); line-height: 1.3; }
.cmp__side--before .cmp__card { background: color-mix(in srgb, var(--c-paper-alt) 88%, transparent); }
.cmp__side--before .cmp__card b { color: var(--c-ink-soft); }
.cmp__card--bars .cmp__bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 4px; }
.cmp__bars i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: var(--c-accent); }
.cmp__bars i:last-child { background: var(--c-leaf); }
.cmp__card .cmp__axis { display: flex; justify-content: space-between; font-size: 0.75rem; line-height: 1.2; }
.cmp__card .cmp__axis span { font-size: inherit; }
.cmp__card--booked { border-left: 3px solid var(--c-leaf); }
[data-kit-whole] { transition: opacity 0.2s, visibility 0s; }
[data-kit-under] { opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
.cmp__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: calc(var(--kit-v, 0.5) * 100%); width: 0; pointer-events: none; opacity: clamp(0, calc((min(var(--kit-v, 0.5), 1 - var(--kit-v, 0.5)) - 0.03) * 14), 1); }
.cmp__range:focus-visible + .handle { opacity: 1; }
.handle__line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--c-paper); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-ink) 20%, transparent); }
.handle__knob { position: absolute; top: 24%; left: -24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m); border: 2px solid var(--c-leaf); }
.handle__hint { position: absolute; top: calc(24% + 56px); left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: var(--radius-s); background: var(--c-ink); color: var(--c-on-ink); font-size: var(--fs-small); font-weight: 800; }
.cmp[data-kit-touched] .handle__hint { display: none; }
.cmp__range:focus-visible ~ .handle .handle__knob { outline: 3px solid var(--c-leaf); outline-offset: 2px; }
@media (max-width: 860px) {
  .cmp { aspect-ratio: 3 / 4; }
  .cmp__cards { width: calc(50% - var(--space-4) - 10px); bottom: var(--space-3); gap: var(--space-1); }
  .cmp__side--before .cmp__cards { left: var(--space-2); }
  .cmp__side--after .cmp__cards { right: var(--space-2); }
  .cmp__card { padding: var(--space-1) var(--space-2); }
  .cmp__card b { font-size: var(--fs-small); }
  .cmp__card span { font-size: 0.8125rem; }
  .cmp__side--after .cmp__photo { object-position: 74% 40%; }
  .handle__knob { top: 16%; }
  .handle__hint { top: calc(16% + 56px); }
}

/* ================= trades: a wall of workplaces ================= */
/* round F1: Dal's ten trades in four columns (three on a tablet, two on the phone), then the wide tile for every other
   trade, its list in the flow so its row grows to hold it; every tile of a row stretches to the row's height */
.trades__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.trades__item { display: flex; }
.tile { position: relative; display: block; flex: 1 1 auto; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-m); color: var(--c-on-ink); text-decoration: none; isolation: isolate; background: var(--c-brand-dark); }
.trades__item--remodeling .tile__photo { object-position: 50% 30%; }
.trades__item--exteriors .tile__photo { object-position: 85% 50%; }
.trades__item--other { grid-column: span 2; }
.trades__item--other .tile { display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: auto; }
.trades__item--other .tile__photo { object-position: 50% 0%; }
.trades__item--other .tile__text { position: relative; left: auto; right: auto; bottom: auto; gap: var(--space-1); padding: 64px var(--space-3) var(--space-3); }
.tile__list { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-small); font-weight: 600; line-height: 1.35; }
.tile__list > span:not(.tile__more) { display: inline-flex; align-items: center; gap: 7px; }
.tile__list > span:not(.tile__more)::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 1px; background: var(--c-leaf-light); }
.tile__more { color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); font-weight: 400; }
@media (max-width: 1239px) { .trades__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile__photo { position: absolute; inset: -1px; z-index: -2; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; transform: scale(calc(1 + 0.03 * var(--on))); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--c-shade) 0%, color-mix(in srgb, var(--c-shade) 55%, transparent) 36%, transparent 60%); }
.tile__text { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); display: grid; gap: 2px; }
.tile__name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; }
.tile__jobs { color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); font-size: var(--fs-small); line-height: 1.35; }
/* Part 2: the tile's lock. The scene trade-lock sets --lock (0 to 1) as the system walks the wall; hover and focus set
   --hov, eased; the chip, the tile's corners and the photo follow the larger of the two. */
@property --hov { syntax: '<number>'; inherits: true; initial-value: 0; }
.tile { --lock: 0; --hov: 0; --on: max(var(--lock), var(--hov)); transition: --hov var(--dur-med) var(--ease-out); }
.tile:hover, .tile:focus-visible { --hov: 1; }
.tile__chip { position: absolute; top: var(--space-3); right: var(--space-3); padding: 6px 12px; border-radius: var(--radius-s); background: var(--c-leaf); color: var(--c-ink); font-weight: 800; font-size: var(--fs-small); white-space: nowrap; opacity: var(--on); transform: translateY(calc((1 - var(--on)) * -8px)); }
.tile__chip .reticle--chip { --ret-gap: calc(14px - 8px * var(--on)); --ret-len: 10px; color: var(--c-leaf-light); }
.reticle--tile { --ret-gap: calc(-18px + 10px * var(--on)); --ret-len: 22px; --ret-w: 2px; z-index: 1; color: var(--c-leaf-light); opacity: var(--on); }
.trades__wall { position: relative; }
.scene.trades__lock { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stop--wall { top: -56px; right: 0; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
.trades__item--other .tile::after { background: linear-gradient(to top, var(--c-shade) 0%, color-mix(in srgb, var(--c-shade) 84%, transparent) 52%, color-mix(in srgb, var(--c-shade) 30%, transparent) 78%, transparent 92%); }
@media (max-width: 860px) {
  .trades__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .tile { aspect-ratio: 1 / 1; }
  .trades__item--other { grid-column: 1 / -1; }
  .trades__item--other .tile { aspect-ratio: auto; min-height: 240px; }
  .trades__item--other .tile__text { padding: 56px var(--space-2) var(--space-2); }
  .tile__text { left: var(--space-2); right: var(--space-2); bottom: var(--space-2); }
  .tile__name { font-size: var(--fs-ui); font-weight: 700; }
  .tile__jobs { font-size: 0.8125rem; }
  .tile__list { gap: 3px 12px; font-size: 0.8125rem; }
  .tile__chip { top: var(--space-2); right: var(--space-2); padding: 4px 8px; font-size: 0.8125rem; }
  .reticle--tile { --ret-gap: calc(-12px + 6px * var(--on)); --ret-len: 16px; }
  .trades .head { margin-bottom: 64px; }
  .stop--wall { top: -52px; }
}

/* ================= faq ================= */
/* (Part 2: the FAQ pattern now lives in design\components.css, shared by every page) */

/* ================= close: the last push, over a phone lighting up at the end of the day ================= */
.close { position: relative; display: grid; align-items: center; min-height: clamp(620px, 86svh, 800px); overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); isolation: isolate; }
.close__media { position: absolute; inset: 0; z-index: -1; }
.close__media > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 50%; }
.close__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-shade) 0%, color-mix(in srgb, var(--c-shade) 80%, transparent) 34%, color-mix(in srgb, var(--c-shade) 20%, transparent) 56%, transparent 70%); }
/* the growth line climbs along the top edge and runs into the new booking */
.close__line { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 120px; color: var(--c-leaf-light); }
.booking--close { position: absolute; z-index: 2; top: 44px; right: max(var(--gutter), (100% - var(--max-w)) / 2); }
.stop--close { bottom: var(--space-4); right: var(--space-4); }
.close__in { position: relative; z-index: 2; padding-block: 150px var(--space-6); pointer-events: none; }
.close__in > * { pointer-events: auto; }
.close__words { display: grid; gap: var(--space-4); max-width: 560px; }
.close__title { font-size: var(--fs-h1); color: var(--c-on-ink); }
.close__line-text { color: color-mix(in srgb, var(--c-on-ink) 90%, transparent); }
.picker--close { max-width: 470px; }
@media (max-width: 899px) {
  .close { display: block; min-height: 0; }
  .close__media { position: relative; z-index: 0; aspect-ratio: 16 / 10; }
  .close__media::after { background: none; }
  .close__line { width: 100%; height: 70px; }
  .booking--close { top: auto; bottom: var(--space-3); right: var(--space-2); max-width: min(300px, 100% - 2 * var(--space-4)); }
  .stop--close { top: var(--space-2); right: var(--space-2); bottom: auto; }
  .close__in { padding-block: var(--space-4) var(--space-6); }
  .picker--close { max-width: none; }
}
