/* A phone composition in its own right. Desktop retains its original styling. */
@media (max-width: 800px) {
  html:has(body.agent-premium) { scroll-padding-top: 80px; }
  body.spatial-site.agent-flow-site.agent-premium { font-size: 16px; line-height: 1.65; }
  body.agent-flow-site.agent-premium .wrap,
  body.agent-flow-site.agent-premium .wrap-narrow { width: min(560px,calc(100% - 40px)); }
  body.agent-flow-site.agent-premium .site-header { background: #0c1423; }
  body.agent-flow-site.agent-premium .header-inner { height: 64px; min-height: 64px; gap: 20px; }
  body.agent-flow-site.agent-premium .brand { gap: 9px; }
  body.agent-flow-site.agent-premium .brand-mark { width: 32px; height: 32px; }
  body.agent-flow-site.agent-premium .brand-name { font-size: 12px; }
  body.agent-flow-site.agent-premium .brand-name span+span { font-size: 9px; letter-spacing: .1em; }
  body.agent-flow-site.agent-premium .menu { min-height: 44px; padding: 8px 13px; font-size: 12px; }
  body.agent-flow-site.agent-premium .nav { top: 64px; padding: 18px 20px 24px; }
  body.agent-flow-site.agent-premium .menu-backdrop { top: 64px; }
  body.agent-flow-site.agent-premium .button { min-height: 50px; padding: 13px 20px; font-size: 14px; border-radius: 12px; }
  body.agent-flow-site.agent-premium .text-link { min-height: 44px; padding-block: 10px; font-size: 14px; }

  /* A compact, open hero: message, action, then the interactive illustration. */
  body.spatial-site.agent-flow-site.agent-premium .agent-hero { padding: 32px 0 48px; min-height: 0; }
  body.agent-flow-site.agent-premium .agent-hero-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
  body.agent-flow-site.agent-premium .agent-hero h1 { font-size: clamp(36px,10.4vw,52px); line-height: 1.1; letter-spacing: -.035em; max-width: 16ch; }
  body.agent-flow-site.agent-premium .agent-hero .agent-lede { font-size: 16px; line-height: 1.65; margin-top: 18px; max-width: 42ch; }
  body.agent-flow-site.agent-premium .agent-hero .agent-actions { margin-top: 22px; gap: 2px; flex-direction: column; align-items: stretch; }
  body.agent-flow-site.agent-premium .agent-hero .agent-actions .text-link { align-self: center; margin: 0; }
  body.agent-flow-site.agent-premium .agent-hero .agent-personal { font-size: 12px; line-height: 1.6; margin-top: 10px; max-width: none; text-align: center; }
  body.agent-flow-site.agent-premium .celerity-silk { opacity: .26; object-position: top; }
  body.agent-flow-site.agent-premium .agent-sculpture-figure { max-width: 440px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  body.agent-flow-site.agent-premium .agent-sculpture-stage { height: 222px; margin: 0; }
  body.agent-flow-site.agent-premium .agent-mode-tabs { width: 100%; padding: 4px; gap: 2px; margin: 0; border-radius: 13px; box-shadow: none; background: #152039; }
  body.agent-flow-site.agent-premium .agent-mode-tabs button { min-height: 44px; font-size: 12px; padding: 9px 5px; border-radius: 9px; }
  body.agent-flow-site.agent-premium .agent-example { padding: 16px 0 0; min-height: 104px; }
  body.agent-flow-site.agent-premium .agent-example .agent-example-heading { font-size: 16px; font-weight: 650; line-height: 1.45; }
  body.agent-flow-site.agent-premium .agent-example .agent-example-steps { font-size: 14px; line-height: 1.65; margin-top: 6px; }
  body.agent-flow-site.agent-premium .agent-sculpture-figure > figcaption { font-size: 12px; line-height: 1.5; margin-top: 8px; padding: 0; color: #9eacc6; }

  /* Steady reading rhythm; artwork owns the expressive motion. */
  body.agent-flow-site.agent-premium h2 { font-size: clamp(29px,8.1vw,38px); line-height: 1.17; letter-spacing: -.03em; }
  body.agent-flow-site.agent-premium .agent-section { padding-block: 52px; }
  body.agent-flow-site.agent-premium .agent-section-heading { display: block; margin-bottom: 26px; }
  body.agent-flow-site.agent-premium .agent-section-heading > p { margin-top: 14px; font-size: 16px; line-height: 1.65; }
  body.agent-flow-site.agent-premium .agent-copy > h2 { margin-bottom: 18px; }
  body.agent-flow-site.agent-premium .agent-copy p { font-size: 16px; line-height: 1.7; }
  body.agent-flow-site.agent-premium .agent-copy p.agent-large-copy { font-size: 21px; line-height: 1.5; color: #e1e7f5; }
  body.agent-flow-site.agent-premium .agent-copy > .text-link { margin-top: 12px; }
  body.agent-flow-site.agent-premium :is(.agent-split,.agent-system-explainer,.agent-intro-grid) { grid-template-columns: 1fr; gap: 24px; }
  body.agent-flow-site.agent-premium .agent-system-scene .agent-scene-stage { height: 230px; }
  body.agent-flow-site.agent-premium .agent-intro-scene .agent-scene-stage { height: 220px; }
  body.agent-flow-site.agent-premium .agent-scene figcaption { font-size: 12px; line-height: 1.6; max-width: 30ch; }
  body.agent-flow-site.agent-premium :is([data-flow-effect="title"],[data-flow-effect="heading"],[data-flow-effect="step"]) { translate: none; rotate: none; opacity: 1; will-change: auto !important; }

  /* Each application is an editorial row, with a small moving illustration. */
  body.agent-flow-site.agent-premium .agent-usecase { grid-template-columns: 1fr 110px; gap: 8px 14px; padding-block: 24px; align-items: center; }
  body.agent-flow-site.agent-premium .agent-usecase > figure { grid-column: 2; grid-row: 1; height: 105px; width: 110px; }
  body.agent-flow-site.agent-premium .agent-usecase-scene .agent-scene-stage { width: 110px; height: 105px; max-width: none; margin: 0; }
  body.agent-flow-site.agent-premium .agent-usecase > h3 { grid-column: 1; grid-row: 1; font-size: 25px; line-height: 1.2; }
  body.agent-flow-site.agent-premium .agent-usecase > div { grid-column: 1/-1; grid-row: 2; }
  body.agent-flow-site.agent-premium .agent-usecase > .usecase-arrow { grid-column: 2; grid-row: 3; justify-self: end; padding: 6px 0; }
  body.agent-flow-site.agent-premium .agent-usecase h4 { font-size: 17px; line-height: 1.45; }
  body.agent-flow-site.agent-premium .agent-usecase p { font-size: 15px; line-height: 1.7; margin-top: 8px; }
  body.agent-flow-site.agent-premium .agent-section-summary { font-size: 17px; line-height: 1.65; margin: 16px 0 8px; }
  body.agent-flow-site.agent-premium .agent-process > li { padding: 0 0 22px 40px; margin-bottom: 22px; }
  body.agent-flow-site.agent-premium .agent-process > li:last-child { margin-bottom: 0; padding-bottom: 0; }
  body.agent-flow-site.agent-premium .agent-process :is(h2,h3) { font-size: 20px; line-height: 1.35; }
  body.agent-flow-site.agent-premium .agent-process p { font-size: 15px; line-height: 1.7; margin-top: 8px; }
  body.agent-flow-site.agent-premium .agent-list :is(h3,dt) { font-size: 21px; line-height: 1.4; }
  body.agent-flow-site.agent-premium .agent-list :is(p,dd) { font-size: 16px; line-height: 1.7; }

  /* Supporting pages use the same phone scale and one-column structure. */
  body.agent-flow-site.agent-premium .agent-page-intro { padding-block: 34px 24px; }
  body.agent-flow-site.agent-premium .agent-page-intro h1 { font-size: clamp(35px,9.8vw,48px); line-height: 1.13; }
  body.agent-flow-site.agent-premium .agent-page-intro p { font-size: 16px; line-height: 1.7; margin-top: 18px; }
  body.agent-flow-site.agent-premium .agent-page-intro .button { margin-top: 24px; }
  body.agent-flow-site.agent-premium .agent-page-intro + .agent-section { padding-top: 32px; }
  body.agent-flow-site.agent-premium .agent-faq-list summary { font-size: 17px; line-height: 1.5; min-height: 44px; }
  body.agent-flow-site.agent-premium .agent-faq-list details { padding-block: 16px; }
  body.agent-flow-site.agent-premium .agent-faq-list p { font-size: 16px; line-height: 1.7; margin-top: 12px; }

  body.agent-flow-site.agent-premium :is(.founder-editorial-grid,.agent-founder.founder-feature,.founder-working-grid,.founder-about-intro-grid) { grid-template-columns: 1fr; gap: 28px; }
  body.agent-flow-site.agent-premium :is(.founder-editorial-hero,.founder-about-intro) { padding-block: 34px 48px; }
  body.agent-flow-site.agent-premium .founder-editorial-copy { padding: 0; }
  body.agent-flow-site.agent-premium :is(.founder-editorial-copy,.founder-about-intro) h1 { font-size: clamp(36px,10.4vw,48px); line-height: 1.1; }
  body.agent-flow-site.agent-premium .founder-editorial-lead { font-size: 16px; line-height: 1.7; margin-top: 18px; }
  body.agent-flow-site.agent-premium .founder-editorial-actions { margin-top: 22px; gap: 8px; flex-direction: column; align-items: stretch; }
  body.agent-flow-site.agent-premium .founder-editorial-actions .text-link { align-self: center; }
  body.agent-flow-site.agent-premium .founder-feature-copy { order: -1; }
  body.agent-flow-site.agent-premium :is(.founder-feature-copy,.founder-working-copy) h2 { font-size: 31px; line-height: 1.17; margin-bottom: 18px; }
  body.agent-flow-site.agent-premium .founder-feature-lead { font-size: 18px; line-height: 1.6; }
  body.agent-flow-site.agent-premium :is(.founder-feature-copy,.founder-working-copy) > p:not(.founder-feature-lead) { font-size: 16px; line-height: 1.7; margin-top: 16px; }
  body.agent-flow-site.agent-premium .founder-feature-copy > .text-link { margin-top: 14px; }
  body.agent-flow-site.agent-premium .atelier-portrait.founder-portrait-stage { width: min(100%,330px); padding: 16px 26px 0; }
  body.agent-flow-site.agent-premium .founder-portrait-stage .portrait-window img { height: 330px !important; object-position: center 38% !important; }
  body.agent-flow-site.agent-premium .founder-photo-credit { padding-top: 16px; gap: 5px; }
  body.agent-flow-site.agent-premium .founder-photo-credit strong { font-size: 22px; }
  body.agent-flow-site.agent-premium .founder-about-intro-grid > div { display: block; }
  body.agent-flow-site.agent-premium .founder-about-intro p { font-size: 16px; line-height: 1.7; }
  body.agent-flow-site.agent-premium .founder-about-intro p + p { margin-top: 16px; }
  body.agent-flow-site.agent-premium .founder-documentary { width: min(100%,360px); justify-self: center; }

  body.agent-flow-site.agent-premium .contact-layout { gap: 32px; }
  body.agent-flow-site.agent-premium .contact-form-wrap { padding: 24px 18px; border-radius: 14px; }
  body.agent-flow-site.agent-premium .contact-form-wrap > h2 { font-size: 28px; }
  body.agent-flow-site.agent-premium .contact-form :is(input,textarea) { font-size: 16px; min-height: 48px; }
  body.agent-flow-site.agent-premium .contact-form .button { width: 100%; }
  body.agent-flow-site.agent-premium .contact-option { padding-block: 18px; }
  body.agent-flow-site.agent-premium .legal { padding-block: 36px 52px; }
  body.agent-flow-site.agent-premium .legal h1 { font-size: 35px; }
  body.agent-flow-site.agent-premium .legal h2 { font-size: 25px; }

  body.agent-flow-site.agent-premium .agent-cta { padding-block: 52px; }
  body.agent-flow-site.agent-premium .agent-cta h2 { font-size: 32px; line-height: 1.18; }
  body.agent-flow-site.agent-premium .agent-cta p { font-size: 16px; line-height: 1.7; margin-top: 16px; }
  body.agent-flow-site.agent-premium .agent-cta .button { width: 100%; margin-top: 24px; }
  body.agent-flow-site.agent-premium .brand-mascot { width: 80px; height: 80px; margin: 0 auto 16px; }
  body.agent-flow-site.agent-premium .footer { padding: 40px 0 24px; }
  body.agent-flow-site.agent-premium .footer-main { display: grid; grid-template-columns: 1fr; gap: 24px; }
  body.agent-flow-site.agent-premium .footer-copy { font-size: 14px; line-height: 1.6; margin-top: 12px; }
  body.agent-flow-site.agent-premium .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
  body.agent-flow-site.agent-premium .footer-contact { gap: 2px; }
  body.agent-flow-site.agent-premium :is(.footer-nav,.footer-contact) a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 14px; }
  body.agent-flow-site.agent-premium .resonance-wordmark { margin-top: 32px; }
  body.agent-flow-site.agent-premium .footer-meta { margin-top: 20px; padding-top: 20px; gap: 8px; }
  body.agent-flow-site.agent-premium .footer-meta a { display: inline-flex; align-items: center; min-height: 44px; }
}
