/* about.css: the About page (plan.md, About; Joe's About copy v3). Places and sizes its parts with the tokens of
   system.css. Grounds (Tomer, 19 Nov): hero white, name pale blue, simple navy, inside white, steps azure, team
   blue-white, promises navy, close footage; never two neighbors alike. */

/* ---------- 1. the header: the words, and a woodworker at his bench with wyw in glass over the clip ---------- */
.ab-hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.ab-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ab-hero__words { display: grid; gap: var(--space-4); max-width: 560px; }
.ab-hero__title { font-size: var(--fs-h1); }
.ab-hero__words .lead { font-size: 20px; line-height: 1.55; max-width: 34ch; }
.ab-hero__frame { position: relative; width: min(560px, 100%); justify-self: end; aspect-ratio: 4 / 4.2; }
.ab-hero__media { position: absolute; inset: 0; overflow: hidden; border-radius: var(--petal); background: var(--c-ink-2); isolation: isolate; box-shadow: 0 40px 80px -36px color-mix(in srgb, var(--c-ink) 55%, transparent); }
.ab-hero__clip { position: absolute; inset: -2px; }
.ab-hero__clip > video, .ab-hero__clip > img, .ab-hero__clip .kit-first { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% 40%; }
.ab-hero__frame > [data-scene] { position: absolute; inset: 0; }
.ab-hero__stop { position: absolute; right: 16px; top: 16px; z-index: 3; }
@media (max-width: 900px) {
  .ab-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ab-hero__frame { justify-self: center; }
}
@media (max-width: 600px) {
  .ab-hero { padding-top: 28px; }
  .ab-hero__frame { aspect-ratio: 4 / 4.4; }
}

/* ---------- 2. the name: Joe's words, and the kiku itself, on the pale blue band ---------- */
.ab-name__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ab-name__words { display: grid; gap: var(--space-3); max-width: 560px; }
.ab-name__words h2 { font-size: var(--fs-h2); }
.ab-name__words p { font-size: 18px; line-height: 1.65; color: var(--c-ink-soft); }
.ab-name__mark { width: 40px; height: 40px; fill: var(--c-brand); margin-top: var(--space-2); }
.ab-name__frame { aspect-ratio: 4 / 5; width: min(460px, 100%); justify-self: end; box-shadow: 0 36px 70px -34px color-mix(in srgb, var(--c-ink) 60%, transparent); }
.ab-name__clip { position: absolute; inset: -12px; }
.ab-name__clip > video, .ab-name__clip .kit-first, .ab-name__clip > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.ab-name__stop { position: absolute; right: 16px; bottom: 16px; z-index: 3; }
/* Joe's painting (20 Nov), square in the 4:5 frame: cropped at the sides only, the vase, the four blooms and the seal
   in view */
.ab-name__clip > img { object-position: 100% 50%; }
@media (max-width: 900px) {
  .ab-name__grid { grid-template-columns: minmax(0, 1fr); }
  .ab-name__frame { justify-self: center; aspect-ratio: 5 / 4; width: 100%; }
  .ab-name__clip > img { object-position: 50% 90%; }
}

/* ---------- 2b. Joe's background (v8): a camera at work beside his words, on white ---------- */
.ab-bg__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ab-bg__frame { aspect-ratio: 4 / 3.4; box-shadow: 0 36px 70px -34px color-mix(in srgb, var(--c-ink) 60%, transparent); }
.ab-bg__clip { position: absolute; inset: -12px; }
.ab-bg__clip > video, .ab-bg__clip .kit-first, .ab-bg__clip > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.ab-bg__stop { position: absolute; left: 16px; bottom: 16px; z-index: 3; }
.ab-bg__words { display: grid; gap: var(--space-3); max-width: 600px; }
.ab-bg__words h2 { font-size: var(--fs-h2); }
.ab-bg__words p { font-size: 17px; line-height: 1.7; color: var(--c-ink-soft); }
@media (max-width: 900px) {
  .ab-bg__grid { grid-template-columns: minmax(0, 1fr); }
  .ab-bg__frame { aspect-ratio: 16 / 10; }
}

/* ---------- 3. what we do: Joe's words on the navy band, then his channels running into one inbox ---------- */
.ab-simple__ring { width: 980px; height: 980px; right: -360px; top: -320px; }
.ab-simple__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ab-simple__head { display: grid; gap: var(--space-4); }
.ab-simple__head h2 { font-size: var(--fs-h2); }
.ab-simple .ab-simple__line { font: 700 clamp(26px, 2.4vw, 34px)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--c-on-ink); }
.ab-simple__copy { display: grid; gap: var(--space-3); }
.ab-simple__copy > p { font-size: 17px; line-height: 1.7; color: var(--c-on-ink); }
.ab-simple__copy .cta-block { margin-top: var(--space-2); }
.ab-simple__copy .ab-simple__dba { font-size: 14px; color: var(--c-ink-soft-on-ink); }
.ab-simple__stage { position: relative; margin-top: clamp(48px, 6vw, 80px); max-width: 980px; margin-inline: auto; }
.ab-simple__stop { position: absolute; right: 0; top: -52px; }
@media (max-width: 900px) {
  .ab-simple__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 4. what's inside the plan: plancards, about a made-up roofer ---------- */
.ab-inside__stage { position: relative; }
.ab-inside__stop { position: absolute; right: 12px; top: 12px; z-index: 3; }

/* ---------- 5. the six steps, on the azure band: a line that fills as you scroll, a card for each step ---------- */
.ab-steps__ring { width: 1200px; height: 1200px; left: -520px; top: 18%; }
.ab-steps .section-head .lead { max-width: 60ch; }
.timeline { position: relative; --p: 0; --rail: 28px; max-width: 1120px; margin-inline: auto; }
.ab-steps__stop { position: sticky; top: 96px; z-index: 4; display: flex; width: fit-content; margin: 0 0 -44px auto; }
.timeline__track { position: absolute; left: calc(var(--rail) - 2px); top: 28px; bottom: 28px; width: 4px; border-radius: 2px; background: color-mix(in srgb, var(--c-on-brand) 26%, transparent); overflow: hidden; }
.timeline__fill { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(var(--p)); background: var(--c-on-brand); }
.timeline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 48px); }
.tl-item { position: relative; padding-left: calc(var(--rail) * 2 + 28px); }
.tl-dot { position: absolute; left: 0; top: 22px; display: grid; place-items: center; width: calc(var(--rail) * 2); height: calc(var(--rail) * 2); border-radius: 50%; background: var(--c-brand); border: 2px solid color-mix(in srgb, var(--c-on-brand) 50%, transparent); color: var(--c-on-brand); font: 700 17px var(--font-display); transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.tl-item.is-reached .tl-dot { background: var(--c-paper); color: var(--c-brand-text); border-color: var(--c-paper); transform: scale(1.06); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c-paper) 18%, transparent); }
.tl-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; overflow: hidden; border-radius: var(--petal); background: var(--c-paper); color: var(--c-ink); box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--c-ink) 70%, transparent); opacity: 0.94; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.tl-item.is-reached .tl-card { opacity: 1; transform: none; }
.tl-card__words { display: grid; align-content: center; gap: 10px; padding: clamp(24px, 3vw, 40px); }
.ab-steps .tl-card .tl-card__words h3 { font-size: clamp(22px, 2vw, 28px); color: var(--c-ink); }
.ab-steps .tl-card .tl-card__words p { font-size: 16px; line-height: 1.6; color: var(--c-ink-soft); }
.tl-tag { justify-self: start; padding: 4px 12px; border-radius: 10px 3px 10px 3px; font: 700 13px var(--font-ui); letter-spacing: 0.01em; }
.tl-tag--you { background: var(--c-ink); color: var(--c-on-ink); }
.tl-tag--us { background: var(--c-brand-light); color: var(--c-brand-text); }
.tl-card__scene { position: relative; display: grid; place-items: center; padding: clamp(18px, 2.4vw, 32px); background: var(--c-paper-alt); min-height: 300px; }
.tl-card__scene > [data-scene] { width: min(440px, 100%); }
.tl-item--you .tl-card__scene { background: var(--c-brand-light); }
.react-off .tl-card { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .tl-card { grid-template-columns: minmax(0, 1fr); }
  .tl-card__scene { min-height: 0; }
}
@media (max-width: 600px) {
  .timeline { --rail: 15px; }
  .tl-item { padding-left: calc(var(--rail) * 2 + 10px); }
  .tl-dot { top: 18px; font-size: 13px; }
  .tl-card__words { padding: 20px 18px; }
  .tl-card__scene { padding: 12px 6px; }
  .ab-steps__stop { top: 80px; }
}

/* ---------- 6. the team: a phone in an owner's hands, the dashboard in glass, a human a tap away ---------- */
.ab-team__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ab-team__words { display: grid; gap: var(--space-3); }
.ab-team__words h2 { font-size: var(--fs-h2); }
/* the dashboard sits over the dark cooktop on the left, so the phone in her hands stays in view on the right */
.ab-team__frame { min-height: 540px; display: grid; align-items: center; justify-items: start; padding: clamp(20px, 3vw, 40px); }
.ab-team__pic { position: absolute; inset: -14px; }
.ab-team__pic img, .ab-team__pic picture { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 40%; }
.ab-team__scene { position: relative; width: min(380px, 52%); }
.ab-team__chip { position: absolute; right: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 600 15px var(--font-ui); box-shadow: var(--shadow-l); }
.ab-team__chip .mark { width: 18px; height: 18px; fill: var(--c-brand); }
a.ab-team__chip { text-decoration: none; transition: background-color 0.2s ease; }
a.ab-team__chip:hover { background: var(--c-brand-light); }
.ab-team__stop { position: absolute; right: 16px; top: 16px; z-index: 3; }
@media (max-width: 900px) {
  .ab-team__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  /* on a phone the dashboard sits over the phone in her hands: the red case shows above it, her hands below */
  .ab-team__frame { min-height: 0; padding: 150px 12px 76px; justify-items: stretch; }
  .ab-team__pic img { object-position: 78% 40%; }
  .ab-team__scene { width: 100%; }
}

/* ---------- 7. the promises, on the navy band, beside a café owner with the pill over her photo ---------- */
.ab-promises__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ab-promises__words { display: grid; gap: var(--space-4); }
.ab-promises__words h2 { font-size: var(--fs-h2); }
.ab-promises__list { list-style: none; margin: 0; padding: 0; display: grid; }
.ab-promises__list li { display: flex; gap: 14px; align-items: flex-start; padding-block: 16px; border-top: 1px solid color-mix(in srgb, var(--c-on-ink) 16%, transparent); }
.ab-promises__list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--c-on-ink) 16%, transparent); }
.ab-promises__list .mark { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: var(--c-brand-on-ink); }
.ab-promises__list span { display: grid; gap: 2px; font-size: 16px; line-height: 1.5; color: var(--c-ink-soft-on-ink); }
.ab-promises__list b { font: 700 18px var(--font-display); color: var(--c-on-ink); }
.ab-promises__frame { aspect-ratio: 4 / 5; width: min(500px, 100%); justify-self: end; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.ab-promises__pic { position: absolute; inset: -14px; }
.ab-promises__pic img, .ab-promises__pic picture { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.ab-promises__scene { position: absolute; left: 14px; right: 14px; bottom: 22px; height: 120px; }
.ab-promises__scene > [data-scene] { position: absolute; inset: 0; }
.ab-promises__stop { position: absolute; right: 16px; top: 16px; z-index: 3; }
@media (max-width: 900px) {
  .ab-promises__grid { grid-template-columns: minmax(0, 1fr); }
  .ab-promises__frame { justify-self: center; }
}

/* ---------- 8. the close: a boutique owner closing up, the frame opening to the full width as it rises ---------- */
.ab-close { position: relative; isolation: isolate; overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); min-height: clamp(520px, 70vh, 640px); display: grid; align-items: center; }
.ab-close__frame { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ab-close__media { position: absolute; inset: -28px; }
.ab-close__media > video, .ab-close__media .kit-first { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 10%; }
.ab-close__shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 90%, transparent) 0%, color-mix(in srgb, var(--c-ink) 70%, transparent) 40%, transparent 72%); }
.ab-close__in { padding-block: 88px; }
.ab-close__words { display: grid; gap: var(--space-4); max-width: 560px; }
.ab-close__words h2 { font-size: var(--fs-h2); color: var(--c-on-ink); }
.ab-close__words .lead, .ab-close__words .cta-note { color: var(--c-ink-soft-on-ink); }
.ab-close__stop { position: absolute; right: var(--gutter); bottom: 24px; z-index: 3; }
/* the booking just in (Joe, 20 Nov), under the words and the button: the roofer fills the right side at every width,
   so a card over the clip would cover his hands or his face */
.ab-close__note { position: relative; z-index: 2; width: max-content; max-width: 100%; margin-top: var(--space-5); }
@media (max-width: 760px) {
  .ab-close { min-height: 0; }
  .ab-close__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 88%, transparent) 0%, color-mix(in srgb, var(--c-ink) 70%, transparent) 60%, color-mix(in srgb, var(--c-ink) 40%, transparent) 100%); }
  .ab-close__media > video { object-position: 90% 30%; }
}
/* the footer sits right under the close's footage */
.page-about .site-footer { margin-top: 0; }
