@import url("../arsenal/motif-window.css");
@import url("../arsenal/bento-live.css");
/* services.css: the Services page's parts, placed and sized with the tokens of system.css (plan.md, Services). */

/* ---- hero: motif-window as it stands (the site's one big piece as it stands), the mark as its shape. Its shade is the
   site's: an even charcoal block on the headline's side, its corner stepped in squares (no gradient: her brand) ---- */
.svc-hero { --s: 56px; }
.svc-hero .motif-window__h { font-weight: 700; letter-spacing: -0.025em; word-spacing: 0; font-size: clamp(42px, calc(3.1cqi + 22px), 78px); line-height: 1.03; }
.svc-hero .motif-window__shade { inset: 0 auto 0 0; width: 52%; background: color-mix(in srgb, var(--c-charcoal) 74%, transparent);
  clip-path: polygon(0 0, calc(100% - var(--s) * 3) 0, calc(100% - var(--s) * 3) var(--s), calc(100% - var(--s) * 2) var(--s), calc(100% - var(--s) * 2) calc(var(--s) * 2),
    calc(100% - var(--s)) calc(var(--s) * 2), calc(100% - var(--s)) calc(var(--s) * 3), 100% calc(var(--s) * 3), 100% 100%, 0 100%); }
/* each clip laid 1 px past its box, so no line of the ground shows at its edge */
.svc-hero .motif-window__media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.svc-hero .act { gap: 14px; }
.svc-hero .act__note { color: var(--c-on-navy-soft); }
.svc-hero__stop { top: 90px; right: var(--gutter); }
@container motif-window (width < 760px) {
  .svc-hero { --s: 28px; }
  .svc-hero .motif-window__shade { inset: auto 0 0 0; width: auto; height: 62%;
    clip-path: polygon(0 calc(var(--s) * 2), 34% calc(var(--s) * 2), 34% var(--s), 67% var(--s), 67% 0, 100% 0, 100% 100%, 0 100%); }
  .svc-hero__stop { top: 84px; }
}

/* ---- all: every service at once on the designed ground (soft gray, its grid of squares): bento-live's mechanics,
   restyled as this site's: white tiles, each upper left corner cut in a square step, a tall tile and a wide one, a
   mint square on the tile that plays ---- */
.all { overflow: hidden; }
.all__px--1 { left: 5%; top: 72px; }
.all__px--2 { right: 7%; bottom: 64px; }
.all .wrap { position: relative; }
.all .bento-live { position: relative; --bt-surface: var(--c-paper); --bt-face: var(--c-paper); --bt-line: var(--c-line); --bt-gap: 18px; --bt-row: 290px; }
.all .bento-live__tools { position: absolute; top: -58px; right: 0; margin: 0; }
.all .bento-live__tools .stop { position: relative; }
.all .bento-live__tile { --cut: 28px; border-radius: var(--radius-m); background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut), var(--cut) var(--cut)); }
.all .bento-live__tile:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink-soft); }
.all .bento-live__vis { background: var(--c-paper-alt); }
.all .bento-live__vis::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: color-mix(in srgb, var(--c-ink) 5%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='7' y='7' width='14' height='14' rx='3'/%3E%3C/svg%3E") 0 0 / 28px 28px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='7' y='7' width='14' height='14' rx='3'/%3E%3C/svg%3E") 0 0 / 28px 28px; }
.all .bento-live__words { border-top: 1px solid var(--c-line); background: var(--c-paper); padding: 18px 22px 20px; }
.all .bento-live__title { font: 700 var(--fs-h3)/1.25 var(--font-head); letter-spacing: -0.01em; }
.all .bento-live__line { font: 400 var(--fs-small)/1.45 var(--font-text); color: var(--c-ink-soft); }
.all .bento-live__go { align-self: end; width: 12px; height: 12px; margin-bottom: 6px; border-radius: 3px; background: var(--c-line); box-shadow: none; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast); }
.all .bento-live__tile:hover .bento-live__go { background: var(--c-brand); transform: translate(2px, -2px); }
.all .bento-live__tile::after { top: 14px; right: 14px; width: 12px; height: 12px; border-radius: 3px; box-shadow: none; }
/* the day's open time: an outlined empty slot (no hatching); its words step aside while the new visit drops into it */
.all .bm-open { background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.all .bm-slot:has(> div:nth-child(3).bm-new) > .bm-open > * { visibility: hidden; }
/* what starts at a tile's top left (the rating, the day's name) stands clear of its cut corner (28 px) at every width,
   so no letter or figure is cut by it */
.all .bm-score { padding-left: 18px; }
.all .bm-dayhead { padding-left: 16px; }
@container bento-live (width >= 1000px) {
  .all .bento-live__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .all .bento-live__grid > li:nth-child(n) { grid-column: auto; grid-row: auto; }
  .all .bento-live__grid > li:nth-child(1) { grid-row: span 2; }
  .all .bento-live__grid > li:nth-child(6) { grid-column: 1 / -1; }
  .all .bm-reviews { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 18px; align-content: center; }
  .all .bm-score { grid-template-columns: auto auto auto; justify-content: start; align-items: center; column-gap: 10px; }
  .all .bm-score > .bm-stars { display: none; }
  .all .bm-big { font-size: 34px; }
  .all .bm-revs { height: 112px; }
  /* the tall results tile: the card across its foot, the new call above it, inside the tile */
  .all .bm-rank .bm-card { left: 14px; right: 14px; bottom: 14px; width: auto; }
  .all .bm-card .bm-pop { left: auto; right: 6px; top: -70px; }
}
/* three columns under 1200 px: the titles take two lines, so the rows grow until each moment fits its tile whole */
@container bento-live (1000px <= width < 1200px) {
  .all .bento-live__grid { grid-auto-rows: 320px; }
}

/* ---- found: get found, over full-bleed footage of a homeowner searching at her laptop; the map on an even navy
   tint on the left, its corner stepped; the services as white chips over the clear table at the right ---- */
.found { --s: calc(var(--px) * 4); position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); }
.found__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.found__media video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 64% 30%; }
.found__tint { position: absolute; inset: 0 auto 0 0; z-index: -1; width: 50%; background: color-mix(in srgb, var(--c-navy) 90%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s) * 3), calc(100% - var(--s)) calc(100% - var(--s) * 3), calc(100% - var(--s)) calc(100% - var(--s) * 2),
    calc(100% - var(--s) * 2) calc(100% - var(--s) * 2), calc(100% - var(--s) * 2) calc(100% - var(--s)), calc(100% - var(--s) * 3) calc(100% - var(--s)), calc(100% - var(--s) * 3) 100%, 0 100%); }
.found__in { position: relative; display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); column-gap: clamp(32px, 4vw, 72px); align-items: end; }
.found__head { grid-column: 1; grid-row: 1; margin-bottom: 28px; max-width: 520px; }
.found__stage { grid-column: 1; grid-row: 2; position: relative; width: 100%; max-width: 460px; height: 540px; }
.found__stage .scene { width: 100%; height: 100%; }
.found__chips { grid-column: 2; grid-row: 1 / span 2; align-self: end; justify-self: end; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(600px, 100%); }
.found__stop { top: 0; right: -54px; }
@media (max-width: 1100px) { .found__chips { grid-template-columns: minmax(0, 1fr); width: min(320px, 100%); } }
@media (max-width: 900px) {
  .found { display: flex; flex-direction: column; padding: 0 0 56px; }
  .found__in { display: contents; }
  .found__head { order: 1; padding: 48px var(--gutter) 0; margin-bottom: 24px; }
  .found__media { order: 2; position: relative; inset: auto; z-index: 0; height: 600px; }
  .found__media video { object-position: 62% 20%; }
  .found__tint { display: none; }
  .found__stage { order: 3; margin: -470px auto 0; width: calc(100% - 2 * var(--gutter)); max-width: 430px; height: 510px; }
  .found__chips { order: 4; margin: 20px var(--gutter) 0; width: auto; justify-self: auto; }
  .found__stop { top: -48px; right: 0; }
}

/* ---- break: the word SEEN, its squares windows onto Greenline's work (the scene seen), on charcoal ---- */
.break { position: relative; overflow: hidden; height: clamp(380px, 44vw, 640px); }
.break__media { position: absolute; inset: 0; }
.break__media video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 50%; }
.break__stop { right: var(--gutter); bottom: 22px; }
@media (max-width: 700px) { .break { height: 300px; } }

/* ---- groups: three framed photos, each with its scene and its services, sides alternating ---- */
.groups__list { display: grid; gap: clamp(64px, 7vw, 104px); }
.group { display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.group:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 0.36fr); }
.group:nth-child(even) .group__title { order: 2; }
.group__title { font: 600 clamp(1.6rem, 1.1rem + 1.3vw, 2.35rem)/1.12 var(--font-head); letter-spacing: -0.015em; max-width: 13ch; }
.group__media { position: relative; height: 720px; }
.group__pic { --cut: calc(var(--px) * 2); position: absolute; inset: 0; border-radius: var(--radius-l); overflow: hidden; background: var(--c-charcoal); }
.group__pic > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 40%); }
.group__stage { position: absolute; }
.group__stage .scene { width: 100%; height: 100%; }
.group__chips { position: absolute; z-index: 3; width: min(310px, 40%); }
.group__stop { top: 16px; right: 16px; }
/* the ad's lead, now an estimate at her table: the faces at the top, the panel below them on the right */
.group--ads .group__pic { --pos: 50% 30%; }
.group--ads .group__stage { right: 18px; bottom: 18px; width: 440px; height: 440px; }
.group--ads .group__chips { left: 18px; bottom: 18px; }
/* the owner at his pickup, his face on the right: the review asked for and posted on the left, on the hedge */
.group--chosen .group__pic { --pos: 62% 36%; }
.group--chosen .group__stage { left: 22px; top: 50%; width: 380px; height: 600px; transform: translateY(-50%); }
.group--chosen .group__chips { right: 18px; bottom: 18px; }
/* the crew member at work, his face at the left under his hat: the call and the week on the right */
.group--booked .group__pic { --pos: 38% 50%; }
.group--booked .group__stage { inset: 18px; }
.group--booked .group__chips { left: 18px; bottom: 18px; }
@media (max-width: 1100px) { .group__chips { width: min(280px, 38%); } .group--ads .group__stage { width: 380px; } }
@media (max-width: 900px) {
  .group, .group:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .group:nth-child(n) .group__title { order: 2; max-width: none; }
  .group__media { height: auto; display: grid; gap: 14px; }
  /* full bleed on the phone, so each scene keeps its design size and its words 13 px or more */
  .group__pic { position: relative; inset: auto; height: 520px; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .group--chosen .group__pic { height: 640px; }
  .group--booked .group__pic { height: 440px; }
  .group__chips { position: static; width: auto; }
  .group--ads .group__stage { left: 12px; right: 12px; bottom: 12px; width: auto; height: 450px; }
  .group--chosen .group__stage { left: 50%; top: 20px; width: min(380px, 100%); height: 600px; transform: translateX(-50%); }
  .group--booked .group__stage { inset: 12px; }
}

/* ---- mix: the free plan's mix, the page's signature, on the designed ground ---- */
.mix { overflow: hidden; }
.mix__px--1 { left: 6%; top: 96px; }
.mix__px--2 { right: 8%; bottom: 84px; }
.mix .wrap { position: relative; }
.mix__stage { position: relative; max-width: 1080px; margin: 0 auto; }
.mix__scene { width: 100%; }
.mix__stop { top: -52px; right: 0; }

/* ---- faq ---- */
.faq__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.faq__head { position: sticky; top: 104px; margin-bottom: 0; }
.faq .faq-item { box-shadow: inset 0 0 0 1px var(--c-line); }
@media (max-width: 900px) { .faq__in { grid-template-columns: minmax(0, 1fr); } .faq__head { position: static; } }

/* ---- close: the new client opening her door (her face on the right) ---- */
.page-services #close { --pos: 76% 30%; --tint-w: 52%; }
