/* who-we-help.css: Who we help's own look (plan.md, "Who we help"). The word window's own CSS first. */
@import url("../arsenal/word-window.css");

/* ---- hero: the word "Booked." on the ink, four trades at work inside it, under the fixed header ---- */
.who-hero { padding-block: calc(var(--header-h) + clamp(2.5rem, 1rem + 4vw, 5rem)) clamp(4rem, 2rem + 5vw, 7rem); background: radial-gradient(42% 55% at 90% 0%, var(--c-glow) 0%, rgba(0, 85, 255, 0) 70%), var(--c-ink); overflow: clip; }
.who-hero__stop { top: calc(var(--header-h) + 0.75rem); right: var(--gutter); }
.who-hero .word-window__after { flex-direction: column; gap: 0; }
.who-hero .word-window__line { max-width: 38rem; color: var(--c-soft-on-ink); }
.who-hero .cta-row { justify-content: center; margin-top: var(--space-4); }
.who-hero .cta-row__note { color: var(--c-soft-on-ink); }

/* ---- kinds: the words at the left (sticky on a computer), the trades' tiles at the right, on the paper ---- */
.kinds__grid { display: grid; gap: var(--space-5); }
.kinds__head { display: grid; gap: var(--space-3); align-content: start; }
.kinds__head .lede { max-width: 28rem; }
.kinds__tiles { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); }
.kinds__stop { top: -3.25rem; right: 0; }
.kinds__tile { grid-template-rows: auto 1fr; gap: 0.85rem; }
.kinds__text { display: grid; gap: 0.4rem; align-content: start; transition: transform var(--dur-med) var(--ease-out); }
.kinds .tile__fields { color: var(--c-ink-soft); }
.kinds__line { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; color: var(--c-ink); text-wrap: pretty; }
.kinds__tile:hover .kinds__text, .kinds__tile:focus-visible .kinds__text, .kinds__tile.is-playing .kinds__text { transform: translateY(-4px); }
.kinds .tile:focus-visible .tile__media { outline-color: var(--c-brand); }
.kinds__tile--more { grid-column: 1 / -1; }
.kinds__tile--more .tile__media { aspect-ratio: 16 / 9; }
.kinds__tile--more .tile__media img { object-position: 60% 40%; }
@media (min-width: 1200px) {
  .kinds__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); align-items: start; }
  .kinds__head { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
}
@media (max-width: 599px) {
  .kinds__tiles { gap: var(--space-4) 0.75rem; }
  .kinds__line { font-size: 0.9375rem; }
}
@media (prefers-reduced-motion: reduce) { .kinds__text { transition: none; } }

/* ---- every: the signature, the wall of every kind of business on the designed ground, full width ---- */
.who-every { padding-block: clamp(4.5rem, 2rem + 6vw, 8.5rem); }
.who-every__head { text-align: center; }
.who-every__head .h2 { max-width: 18ch; margin-inline: auto; }
.who-every__stage { position: relative; margin-top: clamp(1.25rem, 0.25rem + 2.5vw, 2.75rem); }
.who-every__stop { top: 0.25rem; right: var(--gutter); }
.who-every__scene { position: relative; height: 490px; }
@media (max-width: 1116px) { .who-every__scene { height: 530px; } }
@media (max-width: 599px) { .who-every__scene { height: 460px; } }

/* ---- anyway: the words at the left; at the right a garage door rolling up, the chat in a glass phone over its free
   side (on a phone, the chat over the sky and the door under it) ---- */
.who-anyway__grid { display: grid; gap: var(--space-5); align-items: center; }
.who-anyway__words { display: grid; gap: var(--space-3); justify-items: start; max-width: 36rem; }
.who-anyway__words .h2 { font-size: clamp(2.125rem, 1.35rem + 2.2vw, 3.5rem); }
.who-anyway__words .cta-row { margin-top: var(--space-2); }
.who-anyway__frame { height: 42rem; }
.who-anyway__media { position: absolute; inset: 0; z-index: -1; }
.who-anyway__media video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 50%; }
.who-anyway__stop { top: 0.75rem; right: 0.75rem; }
.who-anyway__phone { position: absolute; left: 0.75rem; top: 0.75rem; width: calc(100% - 4.5rem); max-width: 20rem; height: 18rem; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.7rem; padding: 0.9rem 0.85rem 1rem; border-radius: 26px; background: var(--c-glass-ink); border: 1px solid var(--c-glass-edge); color: var(--c-on-ink); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: var(--shadow-l); }
.who-chat__head { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding-bottom: 0.7rem; border-bottom: 1px solid var(--c-glass-edge); }
.who-chat__avatar { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--c-brand); color: var(--c-on-brand); }
.who-chat__avatar svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.who-chat__head b { display: block; font-size: 0.9375rem; line-height: 1.2; }
.who-chat__head small { display: block; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.03em; color: var(--c-soft-on-ink); }
.who-chat__list { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.25rem); mask-image: linear-gradient(180deg, transparent 0, #000 1.25rem); }
.who-chat__input { display: none; }
.who-anyway .msg { flex: none; margin: 0; max-width: 88%; padding: 0.65rem 0.85rem; border-radius: 16px; font-size: 0.9375rem; line-height: 1.35; opacity: calc(var(--kit-in, 1) * (1 - var(--kit-out, 0))); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.who-anyway .msg--bot { align-self: flex-start; background: rgba(249, 249, 251, 0.12); border: 1px solid var(--c-glass-edge); border-bottom-left-radius: 6px; }
.who-anyway .msg--you { align-self: flex-end; background: var(--c-brand); color: var(--c-on-brand); border-bottom-right-radius: 6px; font-weight: 600; }
.who-anyway .msg--typing { display: inline-flex; gap: 5px; align-self: flex-start; padding: 0.85rem 1rem; background: rgba(249, 249, 251, 0.12); border-radius: 16px 16px 16px 6px; }
.who-anyway .msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-on-ink); opacity: 0.5; animation: who-typing 1s infinite ease-in-out; }
.who-anyway .msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.who-anyway .msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes who-typing { 0%, 60%, 100% { transform: none; opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
.who-anyway .msg--found { display: grid; gap: 0.15rem; width: 88%; align-self: flex-start; background: var(--c-paper); color: var(--c-ink); border-bottom-left-radius: 6px; }
.who-anyway .msg--found b { font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-brand-text); }
.who-anyway .msg--found span { font-weight: 600; font-size: 1rem; }
.who-anyway .msg--found small { font-size: 0.875rem; color: var(--c-ink-soft); }
.who-anyway .msg__bar { position: relative; display: block; height: 5px; margin-top: 0.45rem; border-radius: 3px; background: var(--c-paper-alt); overflow: hidden; }
.who-anyway .msg__bar [data-kit-bar] { position: absolute; inset: 0 auto 0 0; width: calc(var(--kit-fill, 0) * 100%); border-radius: 3px; background: var(--c-brand); }
@media (prefers-reduced-motion: reduce) { .who-anyway .msg--typing i { animation: none; } }
@media (min-width: 600px) {
  .who-anyway__frame { height: 34rem; }
  .who-anyway__media video { object-position: 30% 50%; }
  .who-anyway__phone { left: 1.5rem; top: 1.5rem; bottom: 1.5rem; width: 17.5rem; max-width: none; height: auto; padding: 1rem 0.9rem 0.9rem; border-radius: 28px; }
  .who-chat__input { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0; padding: 0.55rem 0.55rem 0.55rem 0.9rem; border-radius: var(--radius-pill); border: 1px solid var(--c-glass-edge); background: rgba(249, 249, 251, 0.06); font-size: 0.875rem; color: var(--c-soft-on-ink); }
  .who-chat__input i { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
  .who-chat__input svg { width: 1rem; height: 1rem; }
}
@media (min-width: 1200px) {
  .who-anyway__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-6); }
  .who-anyway__frame { aspect-ratio: 4 / 3; height: auto; }
}

/* ---- buyers: three-buyers on the designed ground (its own ink left off, so the ground shows) ---- */
.who-buyers__head { display: grid; gap: var(--space-3); justify-items: center; text-align: center; margin-bottom: clamp(3.25rem, 2rem + 3vw, 4.5rem); }
.who-buyers__head .h2 { max-width: 20ch; }
.who-buyers__head .lede { max-width: 36rem; }
.who-buyers__stage { position: relative; max-width: 1100px; margin-inline: auto; }
.who-buyers__stop { top: -3.25rem; right: 0; }
.who-buyers__scene { height: 460px; background: none; }
@media (max-width: 759px) { .who-buyers__scene { height: auto; min-height: 820px; } }
