/* The About page (plan.md, "About"). #hero: the café owner at her counter full-bleed, fading into the cream at its
   foot, the words centered low over it, out-work in glass at the photo's right third (under it on the phone). #promise:
   the unique element, fine-print, in a wide panel on the designed ground, the h2 at the panel's left on clean paper
   (above the scene under 600 px). #work: three moments of an owner's week in the row of photos, each with its small
   live card in glass (a sideways row on the phone). #founder: a sunny street of local shops full-bleed, the logo's O
   and the agency's idea over its graded left side. #close: the tailor writing a new booking, the panel at the left.
   Tokens only. */

/* ---------- #hero ---------- */
.abh { position: relative; isolation: isolate; padding-bottom: var(--section-y); }
.abh__media { position: relative; height: clamp(540px, 46vw, 680px); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 46%, transparent 88%); mask-image: linear-gradient(180deg, #000 46%, transparent 88%); }
.abh__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 12%; }
/* out-work over the glass case at the photo's right third, clear of her face (upper left third) */
.abh__stage { position: absolute; inset: 0 0 auto; height: clamp(540px, 46vw, 680px); pointer-events: none; }
.scene.abh__work { position: absolute; top: clamp(4.5rem, 8vw, 6.5rem); right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); width: min(340px, 30%); pointer-events: auto; }
.abh__stop { top: clamp(1.25rem, 3vw, 2.5rem); right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); pointer-events: auto; }
.abh__words { position: relative; z-index: 2; margin-top: clamp(-12rem, -14vw, -8rem); text-align: center; }
.abh__title { margin: 0 auto .9rem; max-width: 16ch; font-size: clamp(2.5rem, 1.2rem + 3vw, 4.2rem); line-height: 1.04; }
.abh__line { max-width: 38rem; margin: 0 auto 1.5rem; }
.abh__cta { display: grid; justify-items: center; }
@media (max-width: 759px) {
  .abh__media { height: 440px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); }
  .abh__media img { object-position: 38% 8%; }
  /* the card under her, over the photo's faded foot */
  .abh__stage { position: relative; inset: auto; height: auto; display: flex; justify-content: flex-end; margin-top: -9.5rem; padding-inline: .75rem; }
  .scene.abh__work { position: relative; top: auto; right: auto; width: min(300px, 84%); }
  .abh__stop { top: .5rem; right: auto; left: .75rem; }
  .abh__words { margin-top: 1.5rem; }
}

/* ---------- #promise: fine-print in its panel; the h2 at the panel's left, on the paper the sheet leaves clean ---------- */
.abp__in { container-type: inline-size; }
.abp__panel { position: relative; }
.abp__head { position: absolute; z-index: 2; top: 50%; left: clamp(1.5rem, 4cqw, 3.5rem); width: min(30%, 22rem); translate: 0 -50%; }
.abp__head h2 { margin-bottom: .8rem; }
.abp__head .lede { margin: 0; }
.abp__stage { position: relative; height: 480px; }
.scene.abp__scene { position: absolute; inset: 0; }
.abp__stop { top: 1rem; right: 1rem; z-index: 3; }
@container (max-width: 859px) {
  .abp__head h2 { font-size: 2.1rem; }
  .abp__head .lede { font-size: 1rem; }
}
@container (max-width: 599px) {
  .abp__head { position: static; width: auto; translate: none; padding: 1.75rem 1.25rem 0; text-align: center; }
  .abp__stage { height: 520px; }
}

/* ---------- #work: three moments of an owner's week, each with its small live card at its photo's foot ---------- */
.abw__head { max-width: 44rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.abw__stop { top: .9rem; right: .9rem; }
.abw__stop--item { display: none; }
.abw__plan, .abw__chat { position: absolute; z-index: 3; left: .75rem; right: .75rem; bottom: .75rem; display: grid; align-content: start; gap: .45rem; margin: 0; padding: .9rem 1rem; list-style: none; }
/* the three cards as tall as each other: their tops level along the row (the site check takes the highest moving
   card first, and one in a slide scrolled away would take its stop icon out of view) */
.abw__plan, .abw__chat, .abw__seq { min-height: 12.75rem; }
.prow__media .abw__seq { align-content: end; }
.abw__plan-head b { display: block; font-family: var(--font-ui); font-size: 1rem; font-weight: 800; line-height: 1.3; }
.abw__plan-head small { display: block; color: var(--c-ink-soft); font-size: .8125rem; line-height: 1.35; }
.abw__line { display: flex; align-items: center; gap: .55rem; font-family: var(--font-ui); font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.abw__tick { flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--c-brand-dark); color: var(--c-paper); font-size: .8rem; }
.abw__human { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: var(--c-action); color: var(--c-on-action); font-family: var(--font-ui); font-size: .875rem; font-weight: 800; line-height: 1.2; }
.abw__msg { max-width: 86%; padding: .55rem .8rem; border-radius: var(--radius-s); font-family: var(--font-ui); font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.abw__msg--me { justify-self: end; background: var(--c-brand-dark); color: var(--c-paper); }
.abw__msg--team { justify-self: start; background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
/* the plan's four lines stand from the start (no empty card); each checks in, in turn: its tick fills, its words darken */
.abw__plan .abw__line { color: color-mix(in srgb, var(--c-ink) calc(var(--kit-in, 1) * 100%), var(--c-ink-soft)); }
.abw__plan .abw__tick { background: color-mix(in srgb, var(--c-brand-dark) calc(var(--kit-in, 1) * 100%), var(--c-line)); }
.abw__plan .abw__tick .icon { opacity: var(--kit-in, 1); }
.abw__chat [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
@media (scripting: enabled) {
  .abw__plan .abw__line { color: color-mix(in srgb, var(--c-ink) calc(var(--kit-in, 0) * 100%), var(--c-ink-soft)); }
  .abw__plan .abw__tick { background: color-mix(in srgb, var(--c-brand-dark) calc(var(--kit-in, 0) * 100%), var(--c-line)); }
  .abw__plan .abw__tick .icon { opacity: var(--kit-in, 0); }
  .abw__chat [data-kit-at]:not(:first-child) { opacity: var(--kit-in, 0); transform: translateY(calc((1 - var(--kit-in, 0)) * 10px)); }
}
@media (max-width: 759px) {
  .abw__stop:not(.abw__stop--item) { display: none; }
  .abw__stop--item { display: grid; }
}

/* ---------- #founder: the street of local shops full-bleed, the logo's O and the idea over its graded left side ---------- */
.abf { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(520px, 44vw, 640px); overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); }
.abf__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.abf__media video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 55%; }
.abf::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 82%, transparent), color-mix(in srgb, var(--c-ink) 64%, transparent) 46%, color-mix(in srgb, var(--c-ink) 18%, transparent) 72%, transparent 90%); }
/* the wrap as wide as the band (a grid would shrink it to its words), the logo and the words on its graded left */
.abf__in { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); width: calc(100% - 2 * var(--gutter)); padding-block: clamp(3rem, 6vw, 5rem); }
/* her own transparent logo file, standing on the band's ground with no tile (round 3, Diane) */
.abf__logo { flex: none; display: block; width: clamp(92px, 8.6vw, 128px); height: auto; aspect-ratio: 1; }
.abf__words { max-width: 34rem; }
.abf__words h2 { color: var(--c-on-ink); }
.abf__words .lede { margin: 0; color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); }
.abf__stop { top: 1rem; right: 1rem; }
@media (max-width: 759px) {
  .abf { min-height: 560px; align-items: end; }
  .abf::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 78%, transparent), color-mix(in srgb, var(--c-ink) 30%, transparent) 62%, transparent); }
  .abf__in { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .abf__media video { object-position: 40% 50%; }
}

/* ---------- #close: the tailor writing a new booking, the panel at the left ---------- */
.abclose { --close-pos: 64% 30%; --close-pos-m: 68% 18%; }
.abclose__seq { top: 1.5rem; right: 1.5rem; width: min(16rem, 22%); }
.abclose .close__stop { right: auto; left: 1rem; }
@media (max-width: 1199px) {
  .abclose { min-height: 0; align-items: end; justify-items: center; padding: 22rem 1.5rem 1.5rem; }
  .abclose::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 50%, transparent), transparent 60%); }
  .abclose .close__media :is(video, img) { object-position: 64% 22%; }
  .abclose__seq { top: 1.25rem; left: 1.25rem; right: auto; width: min(17rem, 40%); }
  .abclose .close__stop { left: auto; right: 1rem; }
}
@media (max-width: 759px) {
  .abclose { padding: 19rem .75rem .75rem; justify-items: stretch; }
  .abclose .close__media :is(video, img) { object-position: var(--close-pos-m); }
  /* his face fills the top of the phone's frame: no card over it */
  .abclose__seq { display: none; }
}
