/* Mobile document flow. Desktop compositions and the standard footer stay intact. */
@media (max-width:760px) {
  body.sales-page,body.flow-page {
    --mobile-section-top:calc(var(--site-icon-top) + var(--site-icon-size) + var(--site-label-gap));
  }
  body.sales-page > .sales-brand-home { position:fixed; }

  /* Section labels belong to their content on mobile, below the fixed chrome. */
  body.sales-page #main-content section .site-context-label,
  body.begin-page #work.work-showcase > .site-context-label,
  body.flow-page .flow-main .flow-label.site-context-label {
    position:static !important;
    inset:auto !important;
    transform:none !important;
    height:auto !important;
    width:auto !important;
    max-width:none !important;
    margin:0 0 1.5rem !important;
    padding:0 !important;
    opacity:1 !important;
    visibility:visible !important;
    font:400 .72rem/1.5 'IBM Plex Mono',monospace;
    letter-spacing:.08em;
    white-space:normal;
    overflow:visible;
    overflow-wrap:normal;
    pointer-events:auto;
  }
  body.sales-page #main-content section > .site-context-label,
  body.begin-page #work.work-showcase > .site-context-label {
    width:calc(100% - 2 * var(--sales-gutter)) !important;
    margin-inline:auto !important;
  }
  body.sense-page #main-content .sense-scene > .site-context-label {
    width:calc(100% - 2 * var(--sense-gutter)) !important;
  }
  body.sales-page main .cta { max-width:100%; white-space:normal; }
  body.sales-page main .price-card__status { flex-wrap:wrap; }
  body.sales-page main .price-card__capacity-band { grid-template-columns:minmax(0,1fr); }
  body.sales-page .service-closing #offer { display:block; padding:var(--mobile-section-top) 0 0; }
  body.sales-page .service-closing #offer > .sales-shell { width:calc(100% - 2 * var(--sales-gutter)); }
  body.sales-page .service-closing #offer .price-card { grid-template-columns:minmax(0,1fr); }
  body.sales-page .service-closing #offer .price-card__body { gap:1.25rem; }
  body.sales-page .service-closing .sales-crosslinks { margin-block:2rem; }

  /* Begin: readable sections, full-width cards and no mobile scroll spacers. */
  .begin-page :is(#problems,#services,#journey,#engagement,#next-step) {
    height:auto; min-height:0; padding:var(--mobile-section-top) 0 3.5rem; display:block;
  }
  .begin-page :is(#problems,#services,#journey,#engagement) > .sales-shell,
  .begin-page :is(.journey-layout > .sales-section__header,#engagement > .sales-shell) {
    position:static; height:auto; min-height:0;
  }
  .begin-page :is(.journey-layout,.engagement-layout) { grid-template-columns:minmax(0,1fr); gap:1.75rem; }
  .begin-page :is(.service-grid,.problem-grid,.engagement-path) { grid-template-columns:minmax(0,1fr); }
  .begin-page .sales-section__header { flex-direction:column; align-items:flex-start; gap:1.5rem; }
  .begin-page .sales-section__header h2 { max-width:none; font-size:clamp(1.75rem,7.5vw,2.2rem); line-height:1.12; }
  .begin-page .service-card--feature { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
  .begin-page :is(.service-card > span,.service-card__aside > span) {
    align-self:flex-end; width:100%; text-align:right;
  }
  .begin-page #engagement .engagement-card { padding-inline-start:1.6rem; }
  .begin-page #engagement .engagement-card::before { display:block; left:0; }
  .begin-page :is(.problem-card,.service-card,.journey-stage,.engagement-card) { opacity:1; transform:none; }
  .begin-page .work-showcase-hold,.begin-page .journey-scroll-hold { height:auto; }
  .begin-page .work-showcase-hold #work.work-showcase {
    position:relative; height:auto; min-height:0; padding:var(--mobile-section-top) 0 3.5rem; display:block;
  }
  .begin-page #work.work-showcase .sales-section__header { margin-bottom:2rem; }
  #work .work-showcase__panel:not([hidden]) { display:block; height:auto; min-height:0; }
  #work :is(.work-showcase__viewport,.work-showcase__track,.work-showcase__group,.work-preview) { height:auto; }
  .begin-page #next-step { padding-bottom:0; }
  .begin-page #next-step .price-card { padding:1.5rem 0; gap:1.5rem; }
  .begin-page #next-step .price-card__title { font-size:clamp(1.8rem,8vw,2.4rem); }
  .begin-page #next-step .price-card__title span { white-space:normal; }
  .begin-page #next-step .price-card__actions { margin-top:1.5rem; }
  .begin-page #next-step .sales-crosslinks { height:auto; margin-block:2rem; }

  /* HPT: one reading column, with each question followed by its explanation. */
  .hpt-concept .hpt-scene,
  .hpt-concept .teardown-closing-screen #after-review.hpt-next { padding:var(--mobile-section-top) 0 3.5rem; }
  .hpt-concept .hpt-shell { width:calc(100% - 2 * var(--sales-gutter)); }
  .hpt-concept .hpt-question-path { grid-template-columns:minmax(0,1fr); gap:2rem; margin-top:2rem; }
  .hpt-concept .hpt-question-path > div { display:block; }
  .hpt-concept .hpt-question-path .hpt-index { display:block; margin-bottom:.85rem; }
  .hpt-concept .hpt-question-path p { font-size:clamp(1.45rem,6.5vw,1.8rem); margin:0 0 .85rem; }
  .hpt-concept .hpt-question-path small { max-width:none; font-size:.95rem; line-height:1.6; margin:0; }
  .hpt-concept .hpt-path-line { display:none; }
  .hpt-concept :is(.hpt-inspect__layout,.hpt-output__layout) { grid-template-columns:minmax(0,1fr); gap:2rem; }
  .hpt-concept :is(.hpt-friction__intro,.hpt-inspect__heading,.hpt-next__intro,.hpt-finding) { display:block; }
  .hpt-concept .hpt-finding__fix { margin-top:1.5rem; }
  .hpt-concept .hpt-marker-toolbar { flex-wrap:wrap; }
  .hpt-concept .hpt-marker-toolbar > p { flex-basis:100%; }
  .hpt-concept .hpt-marker-toolbar button { width:44px; height:44px; }
  .hpt-concept .hpt-next__routes > :is(div,a) { grid-template-columns:minmax(0,1fr); gap:1rem; }
  .hpt-concept .hpt-next__routes p { grid-column:auto; }
  .hpt-concept .hpt-report { transform:none; }

  /* AEO: keep the comparison, inspector and offer in a single reading order. */
  .audit-page--aeo .sales-section { padding-block:var(--mobile-section-top) 3.5rem; }
  .audit-page--aeo :is(.aeo-discovery,.aeo-examination,.aeo-shift-notes) { grid-template-columns:minmax(0,1fr); }
  .audit-page--aeo .aeo-citation-chips { flex-wrap:wrap; }
  .audit-page--aeo .sales-section .price-card__title { font-size:clamp(1.8rem,8vw,2.4rem); }

  /* Flow: all content is visible in natural flow; active desktop states cannot hide it. */
  .flow-page .flow-hero { overflow:clip; }
  .flow-page .flow-main :is(.flow-pitch,.flow-timeline,.flow-included-scroll,.flow-pricing,.flow-fit-story) {
    min-height:0; height:auto; padding:var(--mobile-section-top) var(--site-gutter) 3.5rem;
  }
  .flow-page .flow-main :is(.flow-pitch__sticky,.flow-timeline__sticky,.flow-included-scroll__sticky,.flow-pricing__sticky,.flow-fit-story__sticky) {
    position:static; min-height:0; height:auto; padding:0; display:block; overflow:visible;
  }
  .flow-page .flow-pitch__grid { grid-template-columns:minmax(0,1fr); min-height:0; gap:1.75rem; }
  .flow-page .flow-pitch h2 { min-height:0; max-width:none; font-size:clamp(2rem,9vw,2.75rem); }
  .flow-page .flow-pitch__ellipsis { display:none; }
  .flow-page .flow-pitch__title-grow { width:auto; max-height:none; overflow:visible; }
  .flow-page .flow-pitch__right { display:flex; flex-direction:column; gap:1.5rem; min-height:0; }
  .flow-page .flow-pitch :is(.flow-pitch__title-grow,.flow-pitch__steps,.flow-pitch__steps p,.flow-pitch__copy,.flow-pitch__copy p,.flow-corner-cta) {
    opacity:1; visibility:visible; transform:none; pointer-events:auto;
  }
  .flow-page .flow-pitch .flow-corner-cta { position:static; display:inline-block; margin-top:1.5rem; }
  .flow-page .flow-main .flow-corner-cta {
    position:static; display:inline-flex; flex-direction:column; align-items:flex-start;
    margin-top:1.5rem; text-align:left; opacity:1; transform:none;
  }
  .flow-page .flow-pitch__steps p { white-space:normal; font-size:1.2rem; line-height:1.4; }
  .flow-page :is(.flow-timeline__entries,.flow-fit-story__items) { position:static; min-height:0; display:grid; gap:2.5rem; }
  .flow-page :is(.flow-timeline__entry,.flow-fit-story__item) { position:static; inset:auto; width:100%; opacity:1; transform:none; }
  .flow-page .flow-timeline__entry { grid-template-rows:auto auto; gap:.75rem; }
  .flow-page .flow-timeline__rail { display:none; }
  .flow-page .flow-timeline__duration { margin:0; }
  .flow-page .flow-timeline__copy { padding:0; }
  .flow-page .flow-timeline__copy h3 { font-size:clamp(1.75rem,7.5vw,2.4rem); }
  .flow-page .flow-included-columns { grid-template-columns:minmax(0,1fr); height:auto; min-height:0; border:0; }
  .flow-page .flow-included-column,
  .flow-page .flow-included-column.is-active {
    display:block; min-height:0; padding:1.5rem 0; border:0; border-top:1px solid var(--flow-line); background:transparent; color:var(--flow-ink);
  }
  .flow-page .flow-included-column::before,.flow-page .flow-included-column::after { display:none; }
  .flow-page .flow-included-column h3,
  .flow-page .flow-included-column.is-active h3 {
    position:static; transform:none; writing-mode:horizontal-tb; font-family:'Work Sans',sans-serif;
    font-size:clamp(1.8rem,8vw,2.5rem); line-height:1.1; color:var(--flow-ink) !important;
  }
  .flow-page .flow-included-column div,
  .flow-page .flow-included-column.is-active div {
    position:static; margin-top:1rem; opacity:1; transform:none; color:var(--flow-ink) !important;
  }
  .flow-page .flow-included-column :is(span,em) { color:inherit !important; }
  .flow-page .flow-fit-story__numbers { display:none; }
  .flow-page .flow-fit-story__item h3 { max-width:none; font-size:clamp(1.8rem,8vw,2.5rem); }
  .flow-page .flow-fit-story__item p { max-width:none; margin-top:1rem; }
  .flow-page .flow-pricing__sticky { opacity:1; transform:none; transition:none; }
  .flow-page .flow-included-column { cursor:default; }
  .flow-page .custom-cursor { display:none; }
  .flow-page,.flow-page a,.flow-page button { cursor:auto; }
  .flow-page .flow-price { opacity:1; transform:none; }
}
@media (min-width:721px) and (max-width:760px) {
  .flow-page .flow-hero { padding:7rem var(--site-gutter) 3.5rem; }
  .flow-page .flow-hero .flow-hero__copy { width:100%; max-width:none; }
  .flow-page .flow-hero .flow-hero__image { position:absolute; width:125vw; right:-48vw; top:55%; opacity:.25; }
}

/* Phone closings use content-sized rows and one owner for each gap. */
@media (max-width:600px) {
  body.sales-page :is(#offer,#next-step) .price-card {
    row-gap:1.5rem;
  }
  body.sales-page :is(#offer,#next-step) .price-card .price-card__intro {
    display:grid;
    align-content:start;
    gap:1rem;
  }
  body.sales-page :is(#offer,#next-step) .price-card .price-card__body {
    display:grid;
    align-content:start;
    gap:1.5rem;
  }
  body.sales-page :is(#offer,#next-step) .price-card :is(.price-card__intro,.price-card__body) > * {
    margin-block:0;
  }
  body.begin-page .begin-closing-screen #next-step > .sales-shell {
    margin-block:0;
  }
  body.sales-page .service-closing .sales-crosslinks,
  body.begin-page #next-step .sales-crosslinks,
  body.audit-page--aeo .sales-crosslinks,
  body.hpt-concept .teardown-closing-screen > .sales-crosslinks {
    margin-block:0;
  }
  body.sales-page .sales-crosslinks > .sales-crosslink {
    height:auto;
    min-height:0;
    padding-block:1.5rem;
    gap:.75rem;
  }
}
