/* site\assets\css\pages\services.css: the Services page (plan.md, "Services"): the hero (a framed clip with its alerts
   beside the words), four chapters (graphite cards with the photo full-bleed, and framed photos on paper, sides
   alternating), the plan's mix on the graphite designed ground, the FAQ and the closing band (components). Tokens of
   design\system.css only. */

/* ---------- hero: the framed clip of a phone lighting up, the words beside it ---------- */
.svc-hero { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 var(--section-y); }
.svc-hero__in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5.5rem); }
.svc-hero__frame { --pos: 24% 50%; position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - 150px); min-height: 520px; width: 100%; border-radius: var(--radius-l); overflow: hidden; background: var(--c-graphite); isolation: isolate; box-shadow: var(--shadow-l); }
.svc-hero__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos); }
.svc-hero__frame::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(var(--c-shade), 0) 40%, rgba(var(--c-shade), 0.55) 100%); }
.scene.svc-hero__scene { position: absolute; inset: 0 0 40px 0; z-index: 2; }
.svc-hero__stop { position: absolute; top: 1rem; right: 1rem; z-index: 3; }
.svc-hero__title { font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.1rem); max-width: 14ch; }
.svc-hero__line { margin-top: 1.25rem; font-size: 1.2rem; line-height: 1.55; color: var(--c-ink-soft); max-width: 30rem; }
.svc-hero__go { margin-top: 2rem; }
@media (max-width: 899px) {
  .svc-hero__in { grid-template-columns: 1fr; gap: 2rem; }
  .svc-hero__words { order: -1; }
  .svc-hero__frame { aspect-ratio: 4 / 3.4; max-height: none; min-height: 0; }
}

/* ---------- chapters: what each group gives the owner, and the work shown on a real photo ---------- */
.chap__chip { margin-left: 0.6rem; font-size: 0.8125rem; letter-spacing: 0.02em; vertical-align: 0.45em; }
.svcs { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; }
.svc { padding: 1rem 0 1.05rem; border-top: 1px solid var(--c-line); scroll-margin-top: 6rem; }
.svc__name { font-size: 1.14rem; font-weight: 600; letter-spacing: -0.01em; }
.svc__gives { margin-top: 0.3rem; font-size: 1rem; line-height: 1.5; }
.svc__expect { margin-top: 0.35rem; font-size: 0.9375rem; line-height: 1.45; color: var(--c-ink-soft); }
.svc__expect .mono { margin-right: 0.45rem; color: var(--c-brand-text); }
.svc:target .svc__name { color: var(--c-brand-text); }

/* A chapter on a graphite card: the photo full-bleed, the words on the card's shade, the scene in glass. */
.chap--card { padding-top: var(--section-y); }
.chap__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); min-height: 780px; margin-inline: var(--inset); border-radius: var(--radius-l); overflow: hidden; background: var(--c-graphite-deep); color: var(--c-on-ink); isolation: isolate; }
.chap__media { position: absolute; inset: 0; z-index: -1; }
.chap__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chap__shade { position: absolute; inset: 0; }
.chap__shade::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--c-ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-ink-line) 1px, transparent 1px); background-size: 56px 56px; opacity: 0.5; }
.chap__card .chap__words { grid-column: 2; align-self: center; padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 4.5rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0; }
.chap__card .sec-title { color: var(--c-on-ink); }
.chap__card .sec-line { color: var(--c-on-ink-soft); }
.chap__card .chap__chip { border-color: var(--c-glass-line); color: var(--c-on-ink-soft); }
.chap__card .svc { border-top-color: var(--c-ink-line); }
.chap__card .svc__expect { color: var(--c-on-ink-soft); }
.chap__card .svc__expect .mono { color: var(--c-brand-on-ink); }
.chap__card .svc:target .svc__name { color: var(--c-brand-on-ink); }
.chap__card .scene.chap__scene { position: absolute; z-index: 1; }
.chap__stop { position: absolute; top: 1rem; right: 1rem; z-index: 3; }

/* found: her face in the middle, the map at the left (the stove side), the words at the right */
.chap--found .chap__photo { object-position: 50% 18%; }
.chap--found .chap__shade::before, .chap--trust .chap__shade::before { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(var(--c-shade), 0.94) 0%, rgba(var(--c-shade), 0.9) 34%, rgba(var(--c-shade), 0.45) 48%, rgba(var(--c-shade), 0) 60%); }
.chap--found .chap__shade::after, .chap--trust .chap__shade::after { -webkit-mask: radial-gradient(90% 100% at 100% 50%, #000 0%, transparent 60%); mask: radial-gradient(90% 100% at 100% 50%, #000 0%, transparent 60%); }
.chap--found .scene.chap__scene { left: clamp(1rem, 2.5vw, 2.5rem); top: 50%; width: min(31%, 430px); height: 560px; margin-top: -280px; }
.chap--found .chap__stop { top: auto; right: auto; left: clamp(1rem, 2.5vw, 2.5rem); bottom: calc(50% + 280px + 0.75rem); }
.chap--trust .chap__stop { top: auto; right: auto; left: clamp(1rem, 2.5vw, 2.5rem); bottom: calc(330px + clamp(1rem, 2.5vw, 2.5rem) + 0.75rem); }

/* trust: her face left of center, the shape low at the left over the table, the words at the right */
.chap--trust .chap__photo { object-position: 30% 22%; }
.chap--trust .scene.chap__scene { left: clamp(1rem, 2.5vw, 2.5rem); bottom: clamp(1rem, 2.5vw, 2.5rem); width: min(34%, 430px); height: 330px; }

/* A chapter framed on paper: the words at the left, the photo in a rounded frame at the right with its scene. */
.chap--framed { padding-top: var(--section-y); }
.chap__in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.chap__frame { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--c-graphite); isolation: isolate; box-shadow: var(--shadow-l); }
.chap__frame .chap__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
.chap__frame .scene.chap__scene { position: absolute; z-index: 1; }

/* ads: the couple under the stained ceiling at the frame's right, the ads panel over the window side */
.chap--ads .chap__frame { height: 600px; }
.chap--ads .chap__photo { object-position: 0% 30%; }
.chap--ads .scene.chap__scene { left: 0; top: 0; bottom: 0; width: 470px; }

/* leads: the remodeler fitting cabinets, the call and the week at the frame's left */
@media (min-width: 900px) { .chap--leads .chap__in { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); } }
.chap--leads .chap__frame { height: 680px; }
.chap--leads .chap__photo { object-position: 50% 30%; }
.chap--leads .scene.chap__scene { inset: 0; }

@media (max-width: 1199px) {
  .chap__card { display: flex; flex-direction: column; min-height: 0; }
  .chap__card .chap__words { padding: 2.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem; }
  .chap__media { position: relative; inset: auto; z-index: 0; height: 900px; margin: 0 0.6rem 0.6rem; border-radius: var(--radius-m); overflow: hidden; }
  .chap--found .chap__shade::before, .chap--trust .chap__shade::before { background: linear-gradient(180deg, rgba(var(--c-shade), 0) 50%, rgba(var(--c-shade), 0.35) 100%); }
  .chap__shade::after { display: none; }
  .chap--found .chap__photo { object-position: 40% 0%; }
  .chap--found .scene.chap__scene { left: 50%; top: auto; bottom: 0.9rem; width: min(calc(100% - 1.8rem), 560px); height: 540px; margin: 0; transform: translateX(-50%); }
  .chap--trust .chap__media { height: 760px; }
  .chap--trust .chap__photo { object-position: 38% 0%; }
  .chap--trust .scene.chap__scene { left: 50%; bottom: 0.9rem; width: min(calc(100% - 1.8rem), 440px); height: 320px; transform: translateX(-50%); }
  .chap--found .chap__stop { left: auto; right: 1.4rem; bottom: calc(540px + 1.5rem); }
  .chap--trust .chap__stop { left: auto; right: 1.4rem; bottom: calc(320px + 1.5rem); }
}
@media (max-width: 899px) {
  .chap__in { grid-template-columns: 1fr; }
  .chap--ads .chap__frame { height: 900px; }
  .chap--ads .chap__photo { inset: auto -1px -1px; height: 125%; object-position: 63% 100%; }
  .chap--ads .scene.chap__scene { top: auto; bottom: 0; height: 460px; width: 100%; }
  .chap--leads .chap__frame { height: 640px; }
  .chap__frame .chap__stop { top: 1rem; bottom: auto; }
  .chap--ads .chap__frame .chap__stop { top: auto; bottom: calc(460px + 0.75rem); }
}
@media (max-width: 559px) {
  .chap__media { height: 860px; }
  .chap--trust .chap__media { height: 700px; }
}

/* ---------- mix: the plan's mix on the graphite designed ground ---------- */
.mix { padding-top: var(--section-y); }
.mix__card { position: relative; margin-inline: var(--inset); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); border-radius: var(--radius-l); overflow: hidden; background: var(--c-graphite); color: var(--c-on-ink); isolation: isolate; }
.mix__card::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--c-ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-ink-line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(110% 90% at 50% 60%, #000 0%, transparent 78%); mask: radial-gradient(110% 90% at 50% 60%, #000 0%, transparent 78%); opacity: 0.7; }
.mix__head .sec-title { color: var(--c-on-ink); }
.mix__head .sec-line { color: var(--c-on-ink-soft); }
/* step 13, finding 1: at least 500 px for the two cards side by side; when the scene is narrower than 760 px it stacks
   them in its flow (the report, then the plan), so its height follows them at every width and neither covers the other */
.scene.mix__scene { display: block; width: 100%; min-height: 500px; }
.mix__stop { align-self: end; }
