@media(max-width:760px){:root{--hx-phone-font-cut:1.5px;}:where(body){font-size:calc(1rem - 1.5px);}}
/* Phone-only presentation. Desktop uses its approved, unchanged type and layout.
   Noto Serif SC is self-hosted under the SIL OFL: no OS-font or external-CDN dependency.
   Font license: url("assets/OFL-NotoSerifSC.txt") */
@font-face {
  font-family: "HX Mobile Serif";
  src: url("assets/hx-mobile-serif-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body.hx-framework:is([data-hx-palette="home"],[data-hx-palette="about"],[data-hx-palette="offerings"],[data-hx-palette="resources"]) {
    /* Existing phone_type.py subtracts 1.5px once: rendered 28 / 14 / 19px. */
    --hx-phone-title-size: 29.5px;
    --hx-phone-body-size: 15.5px;
    --hx-phone-intro-size: 15.5px;
    --hx-phone-card-title-size: 20.5px;
  }
  body.hx-framework main#main-content :is(h1,h2,h3,.hx-v18-motto,.hx-value-envelope,.hx-v18-cta),
  body.hx-framework header.hx-site-header .hx-site-brand {
    font-family: "HX Mobile Serif",Georgia,serif !important;
  }
  /* V7 mobile composition: start the copy at 135px rather than centering it
     in a tall desktop-style field. Artwork and all approved words are retained. */
  body.hx-framework.hx-home-v6 main#main-content > .home-hero.hx-v18-hero {
    justify-content: flex-start !important;
    padding: 135px 6vw 95px !important;
  }
  body.hx-framework header.hx-site-header:not(.is-scrolled):not(.is-open) {
    background: linear-gradient(180deg,#10233dc2,#10233d4d 70%,transparent) !important;
  }
  body.hx-framework header.hx-site-header .hx-site-brand { color: #f3d39e; }
  /* Share the desktop heading hierarchy, with a phone-sized type scale. */
  body.hx-framework[data-hx-palette="home"] main#main-content > .home-hero .hx-v18-content h1,
  body.hx-framework[data-hx-palette="home"] main#main-content > .hx-home-import .hx-secondary-copy > h2 {
    font-size: calc(var(--hx-phone-title-size) - var(--hx-phone-font-cut,0px)) !important;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content > .home-hero .hx-v18-content h1 {
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content > .hx-home-import .hx-secondary-copy > h2 {
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
  }
  body.hx-framework[data-hx-palette="home"] .hx-v18-intro .hx-home-intro-body {
    font-weight: 400;
  }
  body.hx-framework[data-hx-palette="home"] .hx-v18-intro {
    font-size:calc(var(--hx-phone-body-size) - var(--hx-phone-font-cut,0px)) !important;
    line-height:1.8 !important;
  }
  body.hx-framework[data-hx-palette="home"] .hx-v18-motto {
    font-size:calc(clamp(22px,6vw,26px) - var(--hx-phone-font-cut,0px)) !important;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content :is(
    .home-intro-values > .sectiontitle,
    .home-offerings > .sectiontitle,
    .home-testimonials > .sectiontitle,
    .home-cta > .sectiontitle,
    .dark > .sectiontitle,
    .hx-founder-details > .sectiontitle,
    .hx-ready-moment > .sectiontitle
  ) {
    font-size:calc(var(--hx-phone-title-size) - var(--hx-phone-font-cut,0px)) !important;
    line-height:1.3;
    letter-spacing:.01em;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content .home-values-inner .card p {
    --hx-prose-size:var(--hx-phone-body-size);
  }
  body.hx-framework[data-hx-palette="home"] main#main-content .home-offering-card p {
    --hx-prose-size:16px;
    font-size:calc(16px - var(--hx-phone-font-cut,0px));
  }
  body.hx-framework[data-hx-palette="home"] .hx-v18-cta {
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 #ffffff80,0 4px 12px #00000020 !important;
  }
  /* A real text-independent arrow cannot turn into an iOS emoji tile. */
  body.hx-framework .hx-v18-cta > span {
    display: inline-block;
    position: relative;
    width: 14px;
    height: 14px;
    font-size: 0;
    vertical-align: middle;
  }
  body.hx-framework .hx-v18-cta > span::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    left: 0;
    bottom: 1px;
    transform: rotate(-45deg);
    transform-origin: left center;
  }
  body.hx-framework .hx-v18-cta > span::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    top: 2px;
    right: 3px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
  }
}

/* Phone reading rhythm. Keep the approved gutters; long prose must read as
   paragraphs rather than using the same large centered type as key statements. */
@media (max-width: 600px) {
  body.hx-framework[data-hx-palette="home"] main#main-content .home-values-inner {
    border-top: 0;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content > .home-intro-values > .sectiontitle {
    top: auto;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content > .home-intro-values > .split {
    top: auto;
    padding-top: 0;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content > .home-intro-values > .split p.lead {
    --hx-prose-size: var(--hx-phone-intro-size);
    line-height: 1.9;
    margin-block: 0 28px;
    text-wrap: balance;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content > .home-intro-values > .split p.small {
    --hx-prose-size: var(--hx-phone-intro-size);
    line-height: 1.95;
    text-align: start;
    text-align-last: start;
    text-wrap: pretty;
    margin-block: 0;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content > .home-founder :is(p.lead,p.small) {
    --hx-prose-size: var(--hx-phone-body-size);
    line-height: 1.95;
    text-align: start;
    margin-block: 0 24px;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content .hx-about-philosophy > h2.sectiontitle {
    font-size: calc(clamp(20px,5.5vw,24px) - var(--hx-phone-font-cut,0px)) !important;
    margin-bottom: 36px;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content .hx-about-philosophy .hx-about-prose p {
    --hx-prose-size: var(--hx-phone-body-size);
    line-height: 1.95;
    margin-bottom: 22px;
    text-align: center;
    text-align-last: center;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content .hx-about-philosophy .hx-about-prose p:last-child {
    margin-bottom: 0;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content .hx-review-privacy .hx-privacy p {
    --hx-prose-size: var(--hx-phone-body-size);
    font-size: calc(var(--hx-phone-body-size) - var(--hx-phone-font-cut,0px));
    line-height: 1.95;
    margin-bottom: 24px;
    text-align: start;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content .hx-review-privacy .hx-privacy p:first-child {
    --hx-prose-size: 17.5px;
    font-size: calc(17.5px - var(--hx-phone-font-cut,0px));
    margin-bottom: 28px;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content .hx-review-privacy .hx-privacy p:last-child {
    margin-bottom: 0;
  }
  /* Card titles stay subordinate to section titles; long names can breathe. */
  body.hx-framework[data-hx-palette="home"] main#main-content :is(
    .home-values-inner .card > h3,
    .home-offering-card > h3,
    #home-resources .card > h3,
    #home-offerings .hx-offering-tile > h3
  ) {
    font-size: calc(var(--hx-phone-card-title-size) - var(--hx-phone-font-cut,0px));
    line-height: 1.4;
    font-weight: 500;
    text-wrap: pretty;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content .home-offering-card {
    padding: 26px 24px;
    min-height: 220px;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content #home-offerings .hx-offering-tile {
    padding: 26px 22px;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content #home-offerings .hx-offering-dot {
    width: 28px;
    height: 28px;
    margin-bottom: 18px;
  }
  body.hx-framework[data-hx-palette="home"] main#main-content :is(
    #home-resources .card p,
    #home-offerings .hx-offering-tile p
  ) {
    --hx-prose-size: 16px;
  }
  /* Legacy V7 assigns important line heights to lead/small paragraphs. */
  body.hx-framework[data-hx-palette="home"] main#main-content :is(
    .home-intro-values > .split p,
    .home-founder p,
    .hx-about-philosophy .hx-about-prose p,
    .hx-review-privacy .hx-privacy p
  ) {
    line-height: 1.95 !important;
  }
}
