@import url("../arsenal/statement.css");
/* services.css: the Services page's own layout, with the tokens of system.css. Grounds by plan.md: hero footage,
   promise brand tint, groups white, mix charcoal, see-it warm tint, faq white, close footage. */

/* hero: full-bleed photo, the words on a soft white shade from the left, the search card floating on the right */
.svc-hero { position: relative; display: grid; align-items: center; min-height: clamp(600px, 46vw, 720px); overflow: hidden; background: var(--c-paper); }
.svc-hero__pic { position: absolute; inset: 0; overflow: hidden; }
.svc-hero__pic .frame__pic img { object-position: 50% 45%; }
.svc-hero__pic::after { content: ""; position: absolute; inset: 0 auto 0 -2px; width: 72%; background: linear-gradient(90deg, rgb(255 255 255 / .97) 0%, rgb(255 255 255 / .9) 46%, rgb(255 255 255 / 0) 100%); pointer-events: none; }
.svc-hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-4); align-items: center; padding-block: var(--space-6); }
.svc-hero__words h1 { font-size: var(--fs-h1); max-width: 14ch; }
.svc-hero__line { margin: var(--space-3) 0 var(--space-4); font-size: 1.1875rem; color: var(--c-ink-soft); max-width: 30rem; }
.svc-hero__stage { position: relative; display: grid; justify-items: end; align-self: end; margin-bottom: calc(-1 * var(--space-4)); }
.svc-hero__stage .scene { position: relative; width: min(470px, 100%); height: 440px; }
/* room under the third result for the new-call card, so it never lands on the result's words */
.svc-hero [data-scene="search-demo"] .sd-card { padding-bottom: 62px; }
.svc-hero__stop { top: 18px; right: 18px; }

/* promise: the statement as it stands, on the brand tint */
#promise.statement { --st-bg: var(--c-brand-tint); }

/* groups: the designer's own stack of rooms. Each room sticks under the index and the next slides over it. */
.rooms { --rooms-top: 168px; }
.rooms__bar { position: sticky; top: 84px; z-index: 6; display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin: 0 auto var(--space-2); padding: .5rem; width: max-content; max-width: 100%; box-sizing: border-box; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 999px; box-shadow: var(--shadow-m); }
.rooms__index { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.rooms__index li { display: flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 .85rem 0 .6rem; border-radius: 999px; font-family: var(--font-ui); font-size: .875rem; font-weight: 700; color: var(--c-ink-soft); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.rooms__index svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.rooms__index li[data-on] { color: var(--c-ink); background: var(--c-brand-tint); }
.rooms__index li[data-on] svg { fill: var(--c-brand); stroke: var(--c-brand); }
.rooms__index li:hover { color: var(--c-brand-text); }
.rooms__stop { position: static; flex: none; width: 40px; height: 40px; }
.rooms__list { margin: 0; padding: 0; list-style: none; }
.room { position: sticky; top: calc(var(--rooms-top) + var(--i) * 16px); margin-bottom: 14vh; }
.room:last-child { margin-bottom: 0; }
.room__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); min-height: clamp(600px, 72vh, 660px); overflow: hidden; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.room__words { position: relative; display: flex; flex-direction: column; justify-content: center; padding: var(--space-5) var(--space-4); }
.room__gable { width: 120px; height: 40px; margin-bottom: var(--space-2); overflow: visible; }
.room__gable path { fill: none; stroke: var(--c-brand); stroke-width: 3; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.room__num { margin: 0; font-family: var(--font-ui); font-size: .9375rem; font-weight: 800; color: var(--c-accent-text); letter-spacing: .02em; }
.room__words h3 { margin-top: .35rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
.room__items { display: grid; gap: .9rem; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.room__items li { padding-left: 1.4rem; position: relative; }
.room__items li::before { content: ""; position: absolute; left: 0; top: .5em; width: .65rem; height: .55rem; background: var(--g-roof); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.room__items b { display: block; font-family: var(--font-ui); font-size: 1.0625rem; }
.room__items span { display: block; font-size: var(--fs-small); color: var(--c-ink-soft); }
.room__pic { border-radius: 0; min-height: 100%; }
.room__pic .frame__pic img { object-position: var(--pos, 50% 50%); }
.room__scene { position: absolute; z-index: 2; }
.room__scene .scene { position: relative; width: 100%; height: 100%; }
.room__scene--l { left: 24px; }
.room__scene--r { right: 24px; }
.room__scene--lmap { top: 50%; width: min(400px, calc(100% - 48px)); height: 540px; margin-top: -270px; }
.room__scene--funnel { top: 50%; width: min(440px, calc(100% - 48px)); height: 450px; margin-top: -225px; }
.room__scene--island { bottom: 0; width: min(400px, calc(100% - 48px)); height: 320px; }
.room__scene--callbook { inset: 0; }
@media (max-width: 1100px) {
  .room__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .room__pic { min-height: 600px; order: -1; }
  .room__words { padding: var(--space-4) var(--space-3); }
}
@media (max-width: 900px) {
  .rooms__bar { position: static; width: 100%; justify-content: space-between; border-radius: var(--radius-m); }
  .rooms__index { flex-wrap: wrap; }
  .rooms__index li span { display: none; }
  .room { position: relative; top: 0; margin-bottom: var(--space-4); }
  .room__in { box-shadow: var(--shadow-m); }
}
@media (max-width: 640px) {
  .room__pic { min-height: 580px; }
  .room__scene--l, .room__scene--r { left: 12px; right: 12px; width: auto; }
  .room__scene--lmap { height: 520px; margin-top: -260px; }
  .room__scene--funnel { height: 450px; margin-top: -225px; }
  .room__scene--callbook { inset: 0; left: 0; right: 0; }
}

/* mix: the signature on the designed ground (charcoal and the faint roofline) */
.mix { --ground-top: 40px; }
.mix__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.mix__words h2 { font-size: var(--fs-h2); }
.mix__words p { margin-top: var(--space-2); font-size: 1.125rem; color: color-mix(in srgb, var(--c-on-ink) 80%, transparent); }
.mix__stage { position: relative; height: 580px; }
.mix__stage .scene { position: absolute; inset: 0; }
.mix { position: relative; }
.mix__stop { top: 18px; right: 18px; }
@media (max-width: 900px) {
  .mix__grid { grid-template-columns: minmax(0, 1fr); }
  .mix__stage { height: 656px; }
  .mix__stage .scene { inset: 56px 0 0; }
  .mix__stop { top: 0; right: 0; }
}
/* the promise on a phone: tall enough that its sentence has risen whole once the band is all in view */
@media (max-width: 640px) {
  #promise.statement { min-height: 560px; display: grid; align-content: center; }
}

/* see-it: a framed clip of the owner, the new customers in glass beside her */
.seeit__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.seeit__pic { aspect-ratio: 16 / 10; box-shadow: var(--shadow-l); }
.seeit__pic .frame__pic video { object-position: 50% 30%; }
.seeit__scene { position: absolute; z-index: 2; left: 20px; bottom: 20px; width: min(380px, 56%); height: 290px; }
.seeit__scene .scene { position: absolute; inset: 0; }
.seeit__stop { top: 14px; right: 14px; }
.seeit__words h2 { font-size: var(--fs-h2); }
.seeit__words p { margin-top: var(--space-2); font-size: 1.125rem; color: var(--c-ink-soft); }
@media (max-width: 900px) {
  .seeit__grid { grid-template-columns: minmax(0, 1fr); }
  .seeit__pic { aspect-ratio: auto; height: 560px; }
  .seeit__pic .frame__pic video { object-position: 50% 20%; }
  .seeit__scene { left: 12px; right: 12px; width: auto; bottom: 12px; }
}

/* close */
.svc-close .close__pic .frame__pic img { object-position: 50% 8%; }
@media (max-width: 900px) { .svc-close .close__pic .frame__pic img { object-position: 18% 10%; } }
.close--p2 .close__note { margin-top: .85rem; color: color-mix(in srgb, var(--c-on-ink) 80%, transparent); font-size: var(--fs-small); }

/* the first screen on small screens */
@media (max-width: 900px) {
  .svc-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .svc-hero__in { display: contents; }
  .svc-hero__words { order: 1; padding: var(--space-4) var(--gutter) var(--space-4); }
  .svc-hero__pic { order: 2; position: relative; height: 640px; }
  .svc-hero__pic .frame__pic img { object-position: 66% 50%; }
  .svc-hero__pic::after { display: none; }
  .svc-hero__stage { order: 3; align-self: stretch; position: relative; margin: -640px 0 0; height: 640px; box-sizing: border-box; padding: var(--space-2) 12px 0; align-content: start; justify-items: center; }
  .svc-hero__stop { top: auto; bottom: 18px; }
}
@media (max-width: 480px) {
  .btn--main { width: 100%; padding-inline: 1rem; }
}
