/* The approved desktop composition stays in site.css. */
.mobile-home-summary,
.mobile-home-cta,
.mobile-pose-cycle,
.mobile-more-examples { display: none; }

.mobile-home-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  body { --mobile-header-height: 88px; }
  body[data-page] .site-header {
    min-height: var(--mobile-header-height);
    padding: 8px 18px;
    gap: 12px;
  }
  body[data-page] .site-header .brand {
    width: 155px;
    max-width: 58%;
  }
  body[data-page] .site-header::before {
    width: min(78vw, 270px);
    height: 105px;
  }
  body[data-page] .site-header.is-scrolled {
    min-height: 72px;
    padding: 4px 18px;
  }
  body[data-page] .site-header.is-scrolled .brand { width: 145px; }
  body[data-page] .menu-toggle {
    min-height: 44px;
    padding: 12px 0;
    gap: 9px;
    font-size: 12px;
    letter-spacing: .06em;
  }
  body[data-page] .menu-toggle > span:first-child { display: inline; }
  body[data-page] .menu-lines { width: 22px; gap: 6px; }
  body[data-page] .menu-lines i { width: 22px; }
  body[data-page] .menu-lines i:last-child { width: 16px; }
  body[data-page="home"] .gb-mobile-score { top: 80px; }

  body[data-page="home"] .hero {
    min-height: 0;
    height: auto;
    overflow: hidden;
  }
  body[data-page="home"] .hero-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px;
    height: auto;
    min-height: 0;
    padding: 104px 22px 0;
    overflow: hidden;
  }
  body[data-page="home"] .hero-stage .hero-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 100%;
    max-width: none;
    padding: 0;
    z-index: 4;
  }
  body[data-page="home"] .hero-stage h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(30px, 7.8vw, 40px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.06em;
    text-wrap: initial;
  }
  body[data-page="home"] .hero-stage .word-swoosh {
    height: 21px;
    bottom: -15px;
  }
  body[data-page="home"] .mobile-home-summary {
    display: block;
    margin: 22px 0 19px;
    color: var(--ink);
    font: 500 16px/1.5 var(--body);
  }
  body[data-page="home"] .hero-copy .mobile-home-cta {
    display: flex;
    justify-content: space-between;
    width: fit-content;
    max-width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 15px 18px;
    gap: 16px;
    font-size: 15px;
    line-height: 1.5;
  }
  body[data-page="home"] .hero-stage .persona {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: center;
    inset: auto;
    width: calc(100% + 44px);
    max-width: none;
    height: clamp(240px, 74vw, 318px);
    min-height: 0;
    overflow: hidden;
    z-index: 2;
  }
  body[data-page="home"] .hero-stage .persona-motion {
    inset: 26px auto auto 50%;
    width: min(110vw, 430px);
    height: min(165vw, 645px);
    transform: translateX(-50%);
  }
  body[data-page="home"] .hero-stage .persona-pose { object-position: center top; }
  body[data-page="home"] .hero-stage .persona-controls {
    position: relative;
    grid-column: 1;
    grid-row: 3;
    inset: auto;
    width: 100%;
    margin: 0 0 18px;
  }
  body[data-page="home"].mobile-home-ready .hero-stage .persona-controls { display: none; }
  body[data-page="home"] .mobile-pose-cycle {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    position: relative;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 13px;
    margin: 0 0 12px;
    border: 1px solid #1d1d1b30;
    border-radius: 999px;
    background: #fffcf8f2;
    color: var(--ink);
    font: 700 13px/1.3 var(--heading);
    cursor: pointer;
  }
  body[data-page="home"] .mobile-pose-cycle > span:first-child { font-size: 20px; line-height: 1; }
  body[data-page="home"] .mobile-pose-cycle:active { transform: scale(.97); }
  body[data-page="home"] .hero-followup { display: none; }
  body[data-page="home"] .hero-stage .hero-backdrop::before {
    width: 100%;
    height: 45%;
    right: -35%;
    bottom: -15%;
  }
  body[data-page="home"] .hero-stage .hero-backdrop::after {
    width: 36%;
    height: 23%;
    right: -20%;
    top: 46%;
  }
  body[data-page="home"] .hero-stage .hero-halftone {
    top: auto;
    bottom: 0;
    height: 38%;
    width: 68%;
    right: -3%;
  }
  body[data-page="home"] .hero-stage .hero-inkline {
    width: 79%;
    height: 46%;
    right: 8%;
    bottom: -5%;
  }

  body[data-page="home"] .intro-section {
    padding: 56px 22px 62px;
  }
  body[data-page="home"] .intro-grid { gap: 28px; }
  body[data-page="home"] .intro-heading h2 { font-size: clamp(40px, 10vw, 58px); }
  body[data-page="home"] .handwritten-note { font-size: 21px; }
  body[data-page="home"] .intro-story .lead { font-size: 25px; }
  body[data-page="home"] .intro-story > p:not(.lead) {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 22px;
  }
  body[data-page="home"] .examples-intro {
    align-items: center;
    gap: 16px;
    margin-top: 42px;
    padding-top: 0;
  }
  body[data-page="home"] .examples-intro h3 {
    font-size: clamp(28px, 7vw, 40px);
  }
  body[data-page="home"] .pop-label {
    width: 104px;
    min-height: 96px;
    padding: 14px;
    margin-right: 3px;
    box-shadow: 4px 4px 0 var(--coral);
  }
  body[data-page="home"] .pop-label span { font-size: 18px; }
  body[data-page="home"] .examples {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 28px;
    scroll-margin-top: 94px;
  }
  body[data-page="home"] .example {
    min-height: 0;
    padding: 23px 24px;
  }
  body[data-page="home"] .example h3 {
    max-width: none;
    margin-bottom: 11px;
    font-size: 26px;
    line-height: 1.16;
  }
  body[data-page="home"] .example p {
    max-width: none;
    font-size: 16px;
    line-height: 1.6;
  }
  body[data-page="home"] .example-arrow { display: none; }
  body[data-page="home"] .example-home { order: 0; }
  body[data-page="home"] .example-page { order: 1; }
  body[data-page="home"] .example-quote { order: 2; }
  body[data-page="home"] .example-doc { order: 3; }
  body[data-page="home"] .example-team { order: 4; }
  body[data-page="home"] .example-form { order: 5; }
  body[data-page="home"] .examples[data-mobile-expanded="false"] :is(.example-doc, .example-team, .example-form) {
    display: none;
  }
  body[data-page="home"] .mobile-more-examples {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 50px;
    margin-top: 17px;
    padding: 12px 3px;
    border: 0;
    border-bottom: 1px solid #1d1d1b50;
    background: transparent;
    color: var(--plum);
    text-align: left;
    font: 800 16px/1.5 var(--heading);
    cursor: pointer;
  }
  body[data-page="home"] .mobile-more-symbol { font-size: 25px; line-height: 1; }
  body[data-page="home"] .intro-bottom {
    display: block;
    margin-top: 33px;
    padding-top: 29px;
  }
  body[data-page="home"] .intro-bottom p { margin-bottom: 25px; }
  body[data-page="home"] .intro-bottom .cta {
    max-width: 100%;
    min-height: 54px;
    padding: 15px 18px;
    font-size: 15px;
    gap: 14px;
  }
}

@media (max-width: 720px) and (max-height: 500px) and (orientation: landscape) {
  body[data-page] .site-header { min-height: 72px; padding: 4px 18px; }
  body[data-page] .site-header .brand { width: 145px; }
  body[data-page] .site-header::before { width: 230px; height: 88px; }
  body[data-page="home"] .hero-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 14px;
    padding: 90px 18px 0;
  }
  body[data-page="home"] .hero-stage .hero-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding-bottom: 18px;
  }
  body[data-page="home"] .hero-stage h1 { font-size: clamp(24px, 4.2vw, 30px); }
  body[data-page="home"] .mobile-home-summary { margin: 19px 0 15px; }
  body[data-page="home"] .hero-copy .mobile-home-cta {
    gap: 10px;
    padding: 12px 14px;
    font-size: 14px;
    min-height: 48px;
  }
  body[data-page="home"] .hero-stage .persona {
    grid-column: 2;
    grid-row: 1;
    width: calc(100% + 22px);
    height: 235px;
  }
  body[data-page="home"] .hero-stage .persona-motion {
    width: min(55vw, 360px);
    height: min(82.5vw, 540px);
    top: 24px;
  }
  body[data-page="home"] .mobile-pose-cycle {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 10px;
  }
  body[data-page="home"] .hero-stage .persona-controls {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
