@import url("../arsenal/statement.css");
/* Services (plan.md, Services): one evening at Copperline Heating & Air, from 6:40 pm to the door the next morning.
   The shared pieces (sheets, strips, the stamp, the service cards, the compare, the FAQ) are components.css's; here
   each part's layout. Wide layouts from 1200 px; under it each scene stands on the lower part of its picture. */

/* ---------- hero: a phone lighting up on a desk, the words on a blueprint sheet beside it ---------- */
.svc-hero {
  --hero-h: clamp(36rem, calc(100vh - 72px), 52rem);
  --fw: max(100vw, calc(var(--hero-h) * 2.1));   /* the photo's drawn width: the phone about three quarters of the height */
  --r: max(0px, calc(0.263 * var(--fw) - 32%));  /* how far it reaches past the right edge: the phone's middle at 68% */
  position: relative; height: var(--hero-h); overflow: hidden; background: var(--c-paper-alt);
}
@supports (height: 100svh) { .svc-hero { --hero-h: clamp(36rem, calc(100svh - 72px), 52rem); } }
.svc-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.svc-hero .svc-hero__photo { position: absolute; top: 50%; right: var(--r); width: var(--fw); height: auto; aspect-ratio: 3 / 2; margin: 0; transform: translateY(-48.5%); }
.svc-hero__in { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); pointer-events: none; }
.svc-hero__sheet { pointer-events: auto; }
.svc-hero__sheet { width: min(34rem, 46vw); padding: clamp(1.75rem, 3vw, 2.75rem); border: 1px solid var(--c-line); border-radius: var(--radius-s); background-color: var(--c-paper); background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); box-shadow: var(--shadow-l); }
.svc-hero__title { font-size: clamp(2.2rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1.04; }
.svc-hero__line { max-width: 30rem; margin: 1rem 0 1.75rem; font-size: 1.125rem; line-height: 1.5; color: var(--c-ink-soft); }
/* the stop icon on the desk, beside the phone's lower right corner */
.svc-hero__stop { position: absolute; z-index: 3; left: calc(100% + var(--r) - 0.165 * var(--fw) + 1rem); top: calc(50% + 0.183 * var(--fw) - 2.5rem); }

/* the lock screen, designed at 240 x 522 and laid on the phone's screen by core.js */
.lock { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; padding: 11px 11px 0; overflow: hidden; color: var(--c-on-ink); font-family: var(--font-ui); background-size: 14px 14px; }
.lock__status { display: flex; justify-content: flex-end; align-self: stretch; height: 12px; }
.lock__status svg { width: 44px; height: 12px; fill: currentColor; }
.lock__padlock { width: 15px; height: 15px; margin-top: 12px; fill: currentColor; }
.lock__day { margin: 5px 0 0; font: 500 14px/1.2 var(--font-ui); color: color-mix(in srgb, var(--c-on-ink) 82%, transparent); }
.lock__clock { margin: 0; font: 600 62px/1.02 var(--font-display); letter-spacing: -0.01em; }
.lock__notes { position: relative; z-index: 1; display: grid; gap: 7px; width: 100%; margin-top: 16px; }
/* the kit's hold: from the hidden end mark on (all four landed), the alerts leave by fading out together in place, never
   sliding back the way they came */
.lock:has(.kit-end[data-kit-on]) .note { transform: none; }
.note { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "icon app time" "text text text"; align-items: center; gap: 5px 7px; padding: 9px 10px 10px; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.6); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * -10px)) scale(calc(0.96 + 0.04 * var(--kit-in, 1))); }
.note__icon { grid-area: icon; display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--radius-s); color: var(--c-on-ink); }
.note__icon svg { width: 14px; height: 14px; fill: currentColor; }
.note__icon--maps { background: var(--c-brand); }
.note__icon--ads { background: var(--c-brand-dark); }
.note__icon--calls { background: var(--c-ink); }
.note__icon--book { background: var(--c-accent); }
.note__app { grid-area: app; overflow: hidden; font: 600 12px/1.2 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--c-ink-soft); }
.note__time { grid-area: time; font: 400 12px/1.2 var(--font-ui); color: var(--c-ink-soft); }
.note__text { grid-area: text; font: 600 14px/1.3 var(--font-ui); }
.lock__mark { position: absolute; left: 50%; bottom: 26px; width: 150px; height: 150px; margin-left: -75px; color: var(--c-on-ink); opacity: 0.07; }
.lock__home { position: absolute; left: 50%; bottom: 8px; width: 90px; height: 4px; margin-left: -45px; border-radius: 2px; background: var(--c-on-ink); opacity: 0.85; }

@media (max-width: 899px) {
  /* the words first on the pale blueprint, then the desk, zoomed so the phone's screen stays readable */
  .svc-hero { --fw: min(370vw, 1500px); display: flex; flex-direction: column; height: auto; background: none; }
  .svc-hero__in { display: block; height: auto; max-width: none; margin: 0; padding-block: 2.25rem 2rem; background-color: var(--c-paper-alt); background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); }
  .svc-hero__sheet { width: auto; max-width: 36rem; padding: 0; border: 0; background: none; box-shadow: none; }
  .svc-hero__line { margin-bottom: 1.5rem; }
  .svc-hero__media { position: relative; inset: auto; height: calc(0.367 * var(--fw) + 4.75rem); }
  .svc-hero .svc-hero__photo { top: calc(1rem - 0.138 * var(--fw)); right: auto; left: calc(50% - 0.737 * var(--fw)); transform: none; }
  /* at the desk's top right corner, beside the phone, so the first screen shows it (measured from the section's foot:
     the desk's height less 1rem and the icon) */
  .svc-hero__stop { left: auto; top: auto; right: 0.45rem; bottom: calc(0.367 * var(--fw) + 4.75rem - 3.5rem); }
}

/* ---------- the chapters: the head on the paper, the picture full-bleed with its time and its scene, the services
   as plan-sheet cards over its foot ---------- */
.chapter { padding-block: var(--section-y); background: var(--c-paper); }
.chapter__head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.chapter__title { max-width: 44rem; font-size: var(--fs-h2); line-height: 1.08; }
.chapter__line { max-width: 40rem; margin: 0.9rem 0 0; font-size: 1.125rem; line-height: 1.5; color: var(--c-ink-soft); }
.chapter__head--end { text-align: right; }
.chapter__head--end .chapter__title, .chapter__head--end .chapter__line { margin-left: auto; }
/* on the phone the head is as wide as the screen: it keeps the site's side margin and reads from the left, as
   every other head does */
@media (max-width: 899px) {
  .chapter__head { padding-inline: var(--gutter); }
  .chapter__head--end { text-align: left; }
  .chapter__head--end .chapter__title, .chapter__head--end .chapter__line { margin-left: 0; }
}
.chapter__stage { position: relative; height: clamp(36rem, 50vw, 46rem); overflow: hidden; background: var(--c-ink); }
.chapter__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter__stage .stamp { top: 1.25rem; left: var(--gutter); }
/* a scene's own style sets its box relative: the stage's wins here */
.chapter__stage > .chapter__scene { position: absolute; z-index: 2; }
.chapter__stop { position: absolute; z-index: 3; top: 1.25rem; right: var(--gutter); }
.chapter > .svc-cards { position: relative; z-index: 4; width: calc(100% - 2 * var(--gutter)); max-width: var(--max-w); margin: -3.25rem auto 0; }

/* found, 6:40 pm: her face upper right, the searches on the calm left half */
.chapter--found .chapter__photo { object-position: 70% 30%; }
.chapter--found .chapter__scene { left: var(--gutter); top: 4.25rem; bottom: 4.75rem; width: min(50%, 50rem); }
/* ads, 6:44 pm: his face in the left third, the ad on the right */
.chapter--ads .chapter__photo { object-position: 30% 40%; }
.chapter--ads .chapter__scene { right: var(--gutter); top: 4rem; bottom: 4.5rem; width: 30rem; }
/* answer, 6:58 pm: his face in the middle, the call on the clear right side, in its tall layout */
.chapter--answer .chapter__stage { height: clamp(40rem, 52vw, 48rem); }
.chapter--answer .chapter__photo { object-position: 40% 30%; }
.chapter--answer .chapter__scene { right: var(--gutter); top: 4rem; bottom: 4.5rem; width: min(26rem, 34%); }

@media (max-width: 1199px) {
  /* each scene on the lower part of its picture, the face above it; the services under the picture */
  .chapter__stage { --top: 18rem; --sh: 34rem; --ph: calc(var(--top) + var(--sh)); height: calc(var(--top) + var(--sh)); background: none; }
  .chapter__photo { bottom: auto; height: var(--ph); }
  .chapter--found .chapter__scene, .chapter--ads .chapter__scene, .chapter--answer .chapter__scene { left: 50%; right: auto; top: var(--top); bottom: auto; width: min(calc(100% - 1rem), 30rem); height: var(--sh); transform: translateX(-50%); }
  .chapter > .svc-cards { margin-top: 1rem; }
  .chapter--found .chapter__photo { object-position: 84% 0%; }
  .chapter--ads .chapter__stage { --top: 21rem; --sh: 27.5rem; }
  .chapter--ads .chapter__photo { object-position: 25% 0%; }
  .chapter--answer .chapter__stage { --top: 14rem; --sh: 35rem; --ph: 31.5rem; height: calc(var(--top) + var(--sh)); }
  .chapter--answer .chapter__photo { object-position: 50% 0%; }
}
@media (max-width: 759px) {
  .chapter > .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .chapter .svc-card { padding: 0.7rem 0.75rem 0.8rem; }
  .chapter .svc-card h3 { font-size: 1rem; }
}

/* ---------- break: the statement on the pale blueprint ---------- */
.statement.svc-break { background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); }
/* the site check measures the page at its top, where these words still wait below their masks to rise with the
   scroll, and reports each one cut off: the masks clip by clip-path instead of overflow, the same picture */
.svc-break .statement__w { overflow: visible; clip-path: inset(0); }

/* ---------- reviews, 6:51 pm: a framed photo, the island over its lower left, the services beside it ---------- */
.picked__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.picked__frame { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius-m); background: var(--c-ink); box-shadow: var(--shadow-l); }
.picked__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 30%; }
.picked__frame .stamp { top: 1rem; left: 1rem; }
.picked__frame > .picked__scene { position: absolute; z-index: 2; left: 0; bottom: 0; width: min(100%, 26rem); height: 62%; }
.picked__stop { position: absolute; z-index: 3; top: 1rem; right: 1rem; }
.picked__side .head { margin-bottom: 1.75rem; }
.svc-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 899px) {
  .picked__in { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .picked__side { display: contents; }
  .picked__side .head { order: 1; }
  .picked__frame { order: 2; aspect-ratio: 3 / 4; max-width: 34rem; width: 100%; margin-inline: auto; }
  .picked__photo { object-position: 45% 30%; }
  .picked__frame > .picked__scene { width: 100%; height: 70%; }
  .picked__side .svc-cards { order: 3; margin-top: 1rem; }
}
@media (max-width: 759px) {
  .svc-cards--grid { gap: 0.6rem; }
  .picked .svc-card { padding: 0.7rem 0.75rem 0.8rem; }
  .picked .svc-card h3 { font-size: 1rem; }
}

/* ---------- evening: the compare at 50, his face left of the line, the father right of it ---------- */
.evening__compare { height: clamp(30rem, 44vw, 38rem); }
.evening .before .compare__photo { object-position: 40% 35%; }
.evening .after .compare__photo { object-position: 60% 40%; }
.evening .before .compare__cards { left: 3.5%; top: auto; bottom: 1.5rem; transform: none; }
.evening .after .compare__cards { left: auto; right: 3%; top: 4.25rem; transform: none; }
@media (max-width: 759px) {
  .evening__compare { height: 36rem; }
  .evening .before .compare__photo { object-position: 38% 30%; }
  .evening .after .compare__photo { object-position: 70% 35%; }
  /* each side's tag and cards stay inside their own side where the line rests (50%) */
  .evening .before .compare__tag { left: 0.6rem; max-width: calc(50% - 1.4rem); }
  .evening .after .compare__tag { right: 0.6rem; max-width: calc(50% - 1.4rem); text-align: right; }
  .evening .before .compare__cards { left: 0.6rem; right: calc(50% + 0.6rem); bottom: 0.9rem; }
  .evening .after .compare__cards { left: calc(50% + 0.6rem); right: 0.6rem; top: auto; bottom: 0.9rem; }
}

/* ---------- report, 7:30 am: a framed photo, his face in the left third, the month's sources over the plain wall ---------- */
.report__head { margin-bottom: 2rem; }
.report__frame { position: relative; overflow: hidden; border-radius: var(--radius-m); background-color: var(--c-ink); background-image: linear-gradient(var(--c-grid-on-ink) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid-on-ink) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); box-shadow: var(--shadow-l); container-type: inline-size; }
.report__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
.report__frame .stamp { top: 1.1rem; left: 1.1rem; }
.report__box > .report__scene { position: absolute; z-index: 2; }
.report__stop { position: absolute; z-index: 3; right: 1rem; bottom: 1rem; }
.report__box { position: relative; aspect-ratio: 1240 / 600; }
@container (min-width: 1150px) {
  .report__box > .report__scene { right: 2.5%; top: 50%; width: 52%; aspect-ratio: 900 / 480; transform: translateY(-50%); }
}
@container (min-width: 640px) and (max-width: 1149.98px) {
  .report__box { aspect-ratio: 7 / 5; }
  .report__photo { object-position: 100% 35%; }
  .report__box > .report__scene { right: 1.25rem; top: 50%; width: 600px; aspect-ratio: 900 / 480; transform: translateY(-50%); }
}
@container (max-width: 639.98px) {
  .report__box { aspect-ratio: auto; height: 56rem; }
  .report__photo { bottom: auto; height: 35rem; object-position: 32% 0%; }
  .report__box > .report__scene { left: 50%; top: 15rem; width: min(calc(100% - 1rem), 35rem); height: 40rem; transform: translateX(-50%); }
  /* just above the scene, so the two fit in one view */
  .report__stop { top: 12rem; bottom: auto; }
}

/* ---------- mix: the signature on the pale blueprint ---------- */
.mix__stage { position: relative; padding-top: 3.25rem; container-type: inline-size; }
.mix__scene { position: relative; width: 100%; max-width: 420px; margin-inline: auto; aspect-ratio: 358 / 700; }
@container (min-width: 920px) { .mix__scene { max-width: none; aspect-ratio: 1100 / 440; } }
.mix__stop { position: absolute; top: 0; right: 0; }
.mix__cta { justify-content: center; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* ---------- close, 8:00 am the next morning: the door, the booking card, the words low in the middle ---------- */
.svc-close { position: relative; height: clamp(38rem, 54vw, 48rem); overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); }
.svc-close__media { position: absolute; inset: 0; }
.svc-close__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 20%; }
.svc-close > .stamp { top: 1.25rem; left: var(--gutter); }
.svc-close__card { position: absolute; z-index: 2; top: 46%; left: var(--gutter); width: 19rem; }
.svc-close__box { position: absolute; z-index: 2; left: 50%; bottom: clamp(1.5rem, 4vw, 3rem); width: min(42rem, calc(100% - 2 * var(--gutter))); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius-s); text-align: center; transform: translateX(-50%); background-color: var(--c-ink); background-image: linear-gradient(var(--c-grid-on-ink) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid-on-ink) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); box-shadow: var(--shadow-l); }
.svc-close__title { color: var(--c-on-ink); font-size: var(--fs-h2); line-height: 1.08; }
.svc-close__line { max-width: 32rem; margin: 0.8rem auto 1.5rem; font-size: 1.0625rem; line-height: 1.5; color: color-mix(in srgb, var(--c-on-ink) 80%, transparent); }
.svc-close__cta { justify-content: center; }
.svc-close__stop { position: absolute; z-index: 3; top: 1.25rem; right: var(--gutter); }
@media (max-width: 899px) {
  .svc-close { display: flex; flex-direction: column; height: auto; }
  .svc-close__media { position: relative; inset: auto; height: 26rem; }
  .svc-close__clip { object-position: 40% 15%; }
  .svc-close__card { top: 17.5rem; width: min(19rem, calc(100% - 2 * var(--gutter))); }
  .svc-close__box { position: relative; left: auto; bottom: auto; width: auto; padding: 2.25rem var(--gutter) 2.5rem; border-radius: 0; transform: none; box-shadow: none; }
}
