/* Four original animated product stories, within Soprano's existing palette. */
.home-hero { min-height: 710px; grid-template-columns: 1fr 1fr; }
.home-hero .hero-copy { padding-block: 64px; }
.home-hero .hero-copy h1 { max-width: 10ch; font-size: clamp(54px, 5.55vw, 80px); line-height: 1.01; margin-bottom: 28px; }
.home-hero .hero-copy > p { max-width: 470px; font-size: 16px; line-height: 1.7; }
.home-hero .hero-copy > p strong { font-weight: 600; color: var(--white); }
.home-hero .hero-copy > .home-hero-promise { color: var(--white); font-weight: 600; margin-top: -5px; }
.home-hero .hero-proof { flex-wrap: wrap; }
.home-hero .hero-visual { padding: 32px clamp(22px, 3.1vw, 50px); min-height: 710px; flex-direction: column; }
.home-hero .hero-visual::before { width: 510px; height: 510px; top: -250px; left: -280px; }
.home-hero .hero-visual::after { width: 360px; height: 360px; bottom: -205px; right: -190px; }
.home-motion { width: 100%; max-width: 570px; color: var(--ink); text-align: left; }
.home-motion svg { width: 19px; height: 19px; }
.hm-window { background: var(--paper); border: 1px solid var(--ink); border-radius: 12px; box-shadow: 6px 7px 0 rgba(16,17,15,.12); overflow: hidden; }
.hm-window-bar { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.hm-window-bar .brand-mark { width: 132px; height: 20px; flex-basis: 132px; }
.hm-window-bar .brand-mark img { width: 155.1px; left: -14.52px; top: -71.28px; }
.hm-stage { min-height: 462px; position: relative; }
.hm-scene { padding: 25px 25px 24px; min-height: 462px; }
.hm-scene-heading { margin-bottom: 25px; }
.hm-scene-heading > p { color: var(--muted); font-size: 10px; margin: 0 0 9px; }
.hm-scene-heading > h2 { font-size: clamp(25px, 2.25vw, 33px); line-height: 1.05; letter-spacing: -.045em; max-width: 15ch; margin: 0; }
.hm-scene strong, .hm-scene b { font-weight: 600; }
.hm-scene small { display: block; font-size: 9px; line-height: 1.45; color: var(--muted); font-weight: 400; }
.hm-flow-labels { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; margin-bottom: 10px; }
.hm-flow-labels > span { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; }
.hm-flow-labels svg { width: 15px; height: 15px; }
.hm-bank-flow { display: grid; gap: 9px; }
.hm-match-row { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; }
.hm-transfer, .hm-lease { position: relative; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); min-height: 76px; }
.hm-transfer > strong, .hm-lease > strong { display: block; font-size: 11px; line-height: 1.35; padding-right: 3px; }
.hm-transfer > b, .hm-lease > b { display: block; margin-top: 5px; font-size: 13px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hm-lease { background: var(--lilac); border-color: transparent; }
.hm-lease > strong { padding-right: 13px; }
.hm-check { position: absolute; right: 8px; top: 11px; }
.hm-check svg { width: 12px; height: 12px; }
.home-motion .hm-flow-arrow { width: 34px; height: 24px; }
.hm-result { display: flex; align-items: center; gap: 10px; padding: 14px 13px; background: var(--lime); border-radius: 7px; margin-top: 16px; }
.hm-result-icon { flex: 0 0 auto; }
.hm-result > span:nth-child(2) { flex: 1; min-width: 0; }
.hm-result strong { display: block; font-size: 11px; }
.hm-result small { margin-top: 2px; font-size: 9px; color: var(--ink); }
.hm-result > b { font-size: 18px; white-space: nowrap; letter-spacing: -.035em; }
.hm-candidate { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.hm-person { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--pink); font-size: 11px; font-weight: 600; }
.hm-candidate strong { display: block; font-size: 12px; }
.hm-candidate-count { margin-left: auto; font-size: 9px; color: var(--muted); }
.hm-file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.hm-file-list { display: grid; gap: 8px; }
.hm-file { display: flex; align-items: center; gap: 7px; padding: 11px 9px; border: 1px solid var(--line); background: var(--white); border-radius: 6px; min-height: 50px; font-size: 10px; }
.hm-file > svg { width: 16px; height: 16px; }
.hm-file > span { flex: 1; }
.hm-file small { font-size: 8px; margin-top: 2px; }
.hm-file > svg:last-child { width: 11px; height: 11px; }
.hm-analysis { background: var(--lilac); border-radius: 7px; padding: 13px 12px; }
.hm-analysis-title { display: flex; align-items: center; gap: 7px; margin-bottom: 15px; }
.hm-analysis-title strong { font-size: 11px; }
.hm-analysis-title svg { width: 16px; height: 16px; }
.hm-analysis-line { display: flex; align-items: center; gap: 6px; font-size: 9px; margin-top: 10px; }
.hm-analysis-line svg { width: 12px; height: 12px; }
.hm-analysis .hm-analysis-note { font-size: 8px; margin-top: 13px; line-height: 1.5; }
.hm-visit { display: flex; align-items: center; gap: 12px; background: var(--lime); border-radius: 7px; padding: 15px 13px; margin-top: 21px; }
.hm-calendar-page { width: 40px; flex: 0 0 auto; background: var(--white); border: 1px solid var(--ink); border-radius: 5px; text-align: center; overflow: hidden; }
.hm-calendar-page > small { padding: 3px 2px; border-bottom: 1px solid var(--ink); font-size: 7px; letter-spacing: .06em; color: var(--ink); }
.hm-calendar-page > strong { display: block; font-size: 21px; padding: 2px 0; }
.hm-visit > span { flex: 1; }
.hm-visit > span > strong { display: block; font-size: 12px; }
.hm-visit small { font-size: 9px; color: var(--ink); }
.hm-visit em { display: block; font-size: 8px; font-style: normal; margin-top: 5px; }
.hm-visit > svg { width: 21px; height: 21px; }
.hm-scene-messages .hm-scene-heading { margin-bottom: 18px; }
.hm-thread { display: flex; flex-direction: column; gap: 11px; }
.hm-chat { max-width: 89%; padding: 10px 13px; border-radius: 8px; font-size: 10px; line-height: 1.45; }
.hm-chat > small { font-size: 8px; margin-bottom: 4px; color: var(--ink); opacity: .65; }
.hm-chat > p { margin: 0; }
.hm-chat-tenant { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 2px; }
.hm-chat-soprano { align-self: flex-end; width: 89%; background: var(--lilac); border-bottom-right-radius: 2px; }
.hm-attachment { display: flex; align-items: center; gap: 9px; margin-top: 9px; padding: 9px 10px; background: var(--paper); border-radius: 5px; }
.hm-attachment > span { flex: 1; }
.hm-attachment strong { font-size: 10px; }
.hm-attachment small { font-size: 8px; }
.hm-attachment > svg:last-child { width: 13px; height: 13px; }
.hm-balance { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(16,17,15,.15); font-size: 13px; font-variant-numeric: tabular-nums; }
.hm-balance small { font-size: 8px; }
.hm-balance > i { font-style: normal; font-size: 14px; color: var(--muted); }
.hm-balance > strong { padding: 5px 7px; border-radius: 4px; background: var(--lime); }
.hm-balance > strong small { color: var(--ink); }
.hm-scene-collection .hm-scene-heading { margin-bottom: 21px; }
.hm-collection { display: grid; }
.hm-collection-step { display: flex; align-items: center; gap: 12px; position: relative; min-height: 57px; }
.hm-collection-step:not(:last-child)::after { content: ''; position: absolute; top: 42px; bottom: -15px; left: 14px; width: 1px; background: var(--line); }
.hm-step-number { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); flex: 0 0 auto; font-size: 10px; position: relative; z-index: 1; }
.hm-collection-step > span:nth-child(2) { flex: 1; }
.hm-collection-step strong { display: block; font-size: 11px; }
.hm-collection-step small { font-size: 9px; margin-top: 3px; }
.hm-step-check { display: flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 50%; background: var(--lime); }
.hm-step-check svg { width: 13px; height: 13px; }
.hm-lawyer { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--white); padding: 17px 15px; border-radius: 7px; margin-top: 17px; }
.hm-lawyer-icon { color: var(--lime); }
.hm-lawyer-icon svg { width: 29px; height: 29px; }
.hm-lawyer > div { flex: 1; min-width: 0; }
.hm-lawyer strong { display: block; font-size: 13px; }
.hm-lawyer small { font-size: 9px; color: var(--paper); margin-top: 3px; }
.hm-lawyer > div > span { display: block; margin-top: 8px; font-size: 8px; color: var(--lime); }
.hm-lawyer > svg { color: var(--lime); width: 15px; height: 15px; }
.hm-navigation { display: flex; align-items: center; gap: 15px; margin-top: 22px; }
.hm-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; flex: 1; min-width: 0; }
.hm-tabs > button { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 45px; position: relative; border: 0; border-bottom: 1px solid rgba(16,17,15,.25); background: transparent; padding: 0 0 9px; font-size: 10px; font-weight: 500; text-align: left; transition: opacity .2s; }
.hm-tab-number { display: block; font-size: 8px; margin-bottom: 3px; opacity: .6; }
.hm-tabs > button[aria-selected="false"] { opacity: .65; }
.hm-tabs > button:hover { opacity: 1; }
.hm-tabs > button[aria-selected="true"] { font-weight: 700; }
.hm-tabs [data-motion-progress] { display: block; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--ink); }
.hm-tabs > button[aria-selected="true"] [data-motion-progress] { transform: scaleX(1); }
.hm-caption-row { display: flex; align-items: start; gap: 18px; justify-content: space-between; margin-top: 15px; min-height: 35px; }
.hm-caption-row > p { max-width: 410px; margin: 0; font-size: 10px; line-height: 1.5; }
.hm-caption-row > span { font-size: 9px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
@media (min-width: 801px) and (max-width: 1120px) {
  .home-hero { grid-template-columns: .9fr 1.1fr; }
  .home-hero .hero-copy { padding-inline: 30px; }
  .home-hero .hero-copy h1 { font-size: clamp(47px, 5.4vw, 61px); }
  .home-hero .hero-copy > p { font-size: 15px; }
  .home-hero .hero-visual { padding-inline: 22px; }
  .hm-scene { padding-inline: 19px; }
  .hm-scene-heading > h2 { font-size: 28px; }
  .hm-tabs { gap: 9px; }
  .hm-tabs > button { font-size: 9px; }
  .hm-transfer, .hm-lease { padding-inline: 9px; }
  .hm-transfer > strong, .hm-lease > strong { font-size: 10px; }
  .hm-result > b { font-size: 15px; }
  .hm-result strong { font-size: 10px; }
  .hm-result small { font-size: 8px; }
  .hm-file-grid { gap: 8px; }
  .hm-analysis { padding-inline: 9px; }
  .hm-analysis-line { font-size: 8px; }
}
@media (max-width: 800px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero .hero-copy { padding: 58px var(--gutter) 61px; }
  .home-hero .hero-copy h1 { font-size: clamp(56px, 10vw, 76px); max-width: 10ch; }
  .home-hero .hero-copy > p { max-width: 520px; font-size: 16px; }
  .home-hero .hero-visual { min-height: 0; padding: 48px 25px 38px; }
  .home-motion { max-width: 550px; }
  .hm-scene-heading > h2 { font-size: 31px; }
  .hm-tabs > button { font-size: 10px; }
}
@media (max-width: 480px) {
  .home-hero .hero-copy { padding-top: 47px; padding-bottom: 48px; }
  .home-hero .hero-copy h1 { font-size: clamp(47px, 12.3vw, 59px); margin-bottom: 26px; }
  .home-hero .hero-copy > p { font-size: 15px; line-height: 1.65; }
  .home-hero .hero-visual { padding: 35px 20px 28px; }
  .hm-window { border-radius: 10px; box-shadow: 4px 5px 0 rgba(16,17,15,.12); }
  .hm-window-bar { padding: 12px 15px; min-height: 43px; }
  .hm-stage, .hm-scene { min-height: 451px; }
  .hm-scene { padding: 23px 16px 20px; }
  .hm-scene-heading { margin-bottom: 23px; }
  .hm-scene-heading > p { font-size: 9px; }
  .hm-scene-heading > h2 { font-size: 27px; }
  .hm-match-row { grid-template-columns: 1fr 24px 1fr; }
  .home-motion .hm-flow-arrow { width: 24px; }
  .hm-flow-labels { column-gap: 24px; }
  .hm-flow-labels > span { font-size: 9px; gap: 5px; }
  .hm-transfer, .hm-lease { padding: 10px 8px; min-height: 75px; }
  .hm-transfer > strong, .hm-lease > strong { font-size: 10px; }
  .hm-transfer small, .hm-lease small { font-size: 8px; }
  .hm-transfer > b, .hm-lease > b { font-size: 12px; }
  .hm-check { right: 5px; top: 9px; }
  .hm-check svg { width: 10px; height: 10px; }
  .hm-result { padding: 12px 10px; gap: 8px; }
  .hm-result-icon svg { width: 16px; height: 16px; }
  .hm-result strong { font-size: 10px; }
  .hm-result small { font-size: 8px; }
  .hm-result > b { font-size: 15px; }
  .hm-file-grid { gap: 9px; }
  .hm-file { padding: 10px 7px; gap: 5px; font-size: 9px; }
  .hm-file > svg { width: 13px; height: 13px; }
  .hm-file > svg:last-child { width: 9px; height: 9px; }
  .hm-file small { font-size: 7px; }
  .hm-analysis { padding: 12px 9px; }
  .hm-analysis-title { gap: 5px; }
  .hm-analysis-title strong { font-size: 10px; }
  .hm-analysis-line { font-size: 8px; gap: 4px; }
  .hm-analysis .hm-analysis-note { font-size: 7px; }
  .hm-candidate-count { font-size: 8px; }
  .hm-candidate strong { font-size: 11px; }
  .hm-candidate small { font-size: 8px; }
  .hm-visit { padding: 13px 10px; gap: 10px; }
  .hm-visit > span > strong { font-size: 11px; }
  .hm-visit small { font-size: 8px; }
  .hm-visit em { font-size: 7px; }
  .hm-visit > svg { display: none; }
  .hm-thread { gap: 10px; }
  .hm-chat { max-width: 92%; font-size: 9px; padding: 10px 11px; }
  .hm-chat-soprano { width: 92%; }
  .hm-chat > small { font-size: 7px; }
  .hm-attachment { padding: 8px; gap: 6px; }
  .hm-attachment strong { font-size: 9px; }
  .hm-attachment small { font-size: 7px; }
  .hm-balance { font-size: 12px; }
  .hm-balance small { font-size: 7px; }
  .hm-collection-step { gap: 10px; min-height: 57px; }
  .hm-collection-step strong { font-size: 10px; }
  .hm-collection-step small { font-size: 8px; }
  .hm-lawyer { gap: 10px; padding: 15px 12px; }
  .hm-lawyer strong { font-size: 12px; }
  .hm-lawyer small { font-size: 8px; }
  .hm-lawyer-icon svg { width: 25px; height: 25px; }
  .hm-lawyer > svg { display: none; }
  .hm-navigation { gap: 11px; margin-top: 20px; }
  .hm-tabs { gap: 9px; }
  .hm-tabs > button { font-size: 8px; min-height: 43px; }
  .hm-tab-number { font-size: 7px; }
  .hm-caption-row { gap: 12px; min-height: 33px; }
  .hm-caption-row > p { font-size: 9px; }
  .hm-caption-row > span { font-size: 8px; }
}
@media (max-width: 360px) {
  .home-hero .hero-visual { padding-inline: 14px; }
  .hm-scene { padding-inline: 13px; }
  .hm-tabs { gap: 6px; }
  .hm-tabs > button { font-size: 7px; }
  .hm-result { gap: 6px; }
  .hm-result > b { font-size: 14px; }
  .hm-result small { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-motion *, .home-motion *::before, .home-motion *::after { scroll-behavior: auto; }
}
/* Reserve one common stage for the four stories; no clipping or scaling of text. */
.hm-stage, .hm-scene { min-height: 500px; }
.hm-scene { padding-block: 20px; }
.hm-scene-heading,
.hm-scene-messages .hm-scene-heading,
.hm-scene-collection .hm-scene-heading { margin-bottom: 18px; }
.hm-transfer, .hm-lease { padding-block: 8px; min-height: 66px; }
.hm-result { margin-top: 13px; padding-block: 12px; }
.hm-candidate { margin-bottom: 12px; padding-bottom: 10px; }
.hm-file-list { gap: 6px; }
.hm-file { min-height: 44px; padding-block: 8px; }
.hm-analysis { padding-block: 11px; }
.hm-analysis-title { margin-bottom: 11px; }
.hm-analysis-line { margin-top: 8px; }
.hm-analysis .hm-analysis-note { margin-top: 10px; }
.hm-visit { margin-top: 15px; padding-block: 12px; }
.hm-collection-step { min-height: 53px; }
.hm-collection-step:not(:last-child)::after { top: 40px; }
.hm-lawyer { margin-top: 15px; padding-block: 15px; }
@media (max-width: 480px) {
  .hm-stage, .hm-scene { min-height: 470px; }
  .hm-scene { padding-block: 20px; }
  .hm-scene-heading,
  .hm-scene-messages .hm-scene-heading,
  .hm-scene-collection .hm-scene-heading { margin-bottom: 18px; }
  .hm-transfer, .hm-lease { min-height: 66px; padding-block: 8px; }
  .hm-file { min-height: 42px; }
  .hm-visit { margin-top: 15px; }
  .hm-collection-step { min-height: 53px; }
}

/* Decorative overflow must not become a scroll container when tabs receive focus. */
.home-hero .hero-visual { overflow: clip; }

/* The two conversations set the shared height on narrow screens. */
@media (max-width: 480px) { .hm-stage, .hm-scene { min-height: 510px; } }
